| 1 | ##---------------------------------------------------------------------------- | ||
| 2 | ## Stripe API - ~/lib/Net/API/Stripe/Fraud/ValueList/Item.pm | ||
| 3 | ## Version v0.100.0 | ||
| 4 | ## Copyright(c) 2019 DEGUEST Pte. Ltd. | ||
| 5 | ## Author: Jacques Deguest <@sitael.tokyo.deguest.jp> | ||
| 6 | ## Created 2019/11/02 | ||
| 7 | ## Modified 2020/05/15 | ||
| 8 | ## | ||
| 9 | ##---------------------------------------------------------------------------- | ||
| 10 | package Net::API::Stripe::Fraud::ValueList::Item; | ||
| 11 | BEGIN | ||
| 12 | { | ||
| 13 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 1 | ▶ | use parent qw( Net::API::Stripe::Generic ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 1 | ▶ | our( $VERSION ) = 'v0.100.0'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | }; | ||
| 17 | |||
| 18 | 0 | ▶ | sub id { return( shift->_set_get_scalar( 'id', @_ ) ); } |
|
Subroutine
id: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 19 | |||
| 20 | 0 | ▶ | sub object { return( shift->_set_get_scalar( 'object', @_ ) ); } |
|
Subroutine
object: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 21 | |||
| 22 | 0 | ▶ | sub created { return( shift->_set_get_datetime( 'created', @_ ) ); } |
|
Subroutine
created: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 23 | |||
| 24 | 0 | ▶ | sub created_by { return( shift->_set_get_scalar( 'created_by', @_ ) ); } |
|
Subroutine
created_by: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 25 | |||
| 26 | 0 | ▶ | sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); } |
|
Subroutine
livemode: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 27 | |||
| 28 | 0 | ▶ | sub value { return( shift->_set_get_scalar( 'value', @_ ) ); } |
|
Subroutine
value: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 29 | |||
| 30 | 0 | ▶ | sub value_list { return( shift->_set_get_scalar( 'value_list', @_ ) ); } |
|
Subroutine
value_list: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 31 | |||
| 32 | 1 | 1; | |
| 33 | |||
| 34 | __END__ | ||
| 35 | |||
| 36 | =encoding utf8 | ||
| 37 | |||
| 38 | =head1 NAME | ||
| 39 | |||
| 40 | Net::API::Stripe::Fraud::ValueList::Item - A Stripe Value List Item Object | ||
| 41 | |||
| 42 | =head1 SYNOPSIS | ||
| 43 | |||
| 44 | my $item = $stripe->value_list_item({ | ||
| 45 | created_by => 'john.doe@example.com', | ||
| 46 | value => '1.2.3.4', | ||
| 47 | value_list => 'rsl_1FVF3MCeyNCl6fY2Wg2IWniP', | ||
| 48 | }); | ||
| 49 | |||
| 50 | See documentation in L<Net::API::Stripe> for example to make api calls to Stripe to create those objects. | ||
| 51 | |||
| 52 | =head1 VERSION | ||
| 53 | |||
| 54 | v0.100.0 | ||
| 55 | |||
| 56 | =head1 DESCRIPTION | ||
| 57 | |||
| 58 | Value list items allow you to add specific values to a given Radar value list, which can then be used in rules. | ||
| 59 | |||
| 60 | =head1 CONSTRUCTOR | ||
| 61 | |||
| 62 | =over 4 | ||
| 63 | |||
| 64 | =item B<new>( %ARG ) | ||
| 65 | |||
| 66 | Creates a new L<Net::API::Stripe::Fraud::ValueList::Item> object. | ||
| 67 | It may also take an hash like arguments, that also are method of the same name. | ||
| 68 | |||
| 69 | =back | ||
| 70 | |||
| 71 | =head1 METHODS | ||
| 72 | |||
| 73 | =over 4 | ||
| 74 | |||
| 75 | =item B<id> string | ||
| 76 | |||
| 77 | Unique identifier for the object. | ||
| 78 | |||
| 79 | =item B<object> string, value is "radar.value_list_item" | ||
| 80 | |||
| 81 | String representing the object’s type. Objects of the same type share the same value. | ||
| 82 | |||
| 83 | =item B<created> timestamp | ||
| 84 | |||
| 85 | Time at which the object was created. Measured in seconds since the Unix epoch. | ||
| 86 | |||
| 87 | This is a C<DateTime> object. | ||
| 88 | |||
| 89 | =item B<created_by> string | ||
| 90 | |||
| 91 | The name or email address of the user who added this item to the value list. | ||
| 92 | |||
| 93 | =item B<livemode> boolean | ||
| 94 | |||
| 95 | Has the value true if the object exists in live mode or the value false if the object exists in test mode. | ||
| 96 | |||
| 97 | =item B<value> string | ||
| 98 | |||
| 99 | The value of the item. | ||
| 100 | |||
| 101 | =item B<value_list> string | ||
| 102 | |||
| 103 | The identifier of the value list this item belongs to. | ||
| 104 | |||
| 105 | =back | ||
| 106 | |||
| 107 | =head1 API SAMPLE | ||
| 108 | |||
| 109 | { | ||
| 110 | "id": "rsli_fake123456789", | ||
| 111 | "object": "radar.value_list_item", | ||
| 112 | "created": 1571480456, | ||
| 113 | "created_by": "jenny@example.com", | ||
| 114 | "livemode": false, | ||
| 115 | "value": "1.2.3.4", | ||
| 116 | "value_list": "rsl_1FVF3MCeyNCl6fY2Wg2IWniP" | ||
| 117 | } | ||
| 118 | |||
| 119 | =head1 HISTORY | ||
| 120 | |||
| 121 | =head2 v0.1 | ||
| 122 | |||
| 123 | Initial version | ||
| 124 | |||
| 125 | =head1 AUTHOR | ||
| 126 | |||
| 127 | Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> | ||
| 128 | |||
| 129 | =head1 SEE ALSO | ||
| 130 | |||
| 131 | Stripe API documentation: | ||
| 132 | |||
| 133 | L<https://stripe.com/docs/api/radar/value_list_items>, L<https://stripe.com/docs/radar/lists#managing-list-items> | ||
| 134 | |||
| 135 | =head1 COPYRIGHT & LICENSE | ||
| 136 | |||
| 137 | Copyright (c) 2019-2020 DEGUEST Pte. Ltd. | ||
| 138 | |||
| 139 | You can use, copy, modify and redistribute this package and associated | ||
| 140 | files under the same terms as Perl itself. | ||
| 141 | |||
| 142 | =cut | ||