| 1 | ##---------------------------------------------------------------------------- | ||
| 2 | ## Stripe API - ~/lib/Net/API/Stripe/Fraud/ValueList.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; | ||
| 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 alias { return( shift->_set_get_scalar( 'alias', @_ ) ); } |
|
Subroutine
alias: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 23 | |||
| 24 | 0 | ▶ | sub created { return( shift->_set_get_datetime( 'created', @_ ) ); } |
|
Subroutine
created: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 25 | |||
| 26 | 0 | ▶ | sub created_by { return( shift->_set_get_scalar( 'created_by', @_ ) ); } |
|
Subroutine
created_by: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 27 | |||
| 28 | 0 | ▶ | sub item_type { return( shift->_set_get_scalar( 'item_type', @_ ) ); } |
|
Subroutine
item_type: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 29 | |||
| 30 | 0 | ▶ | sub list_items { return( shift->_set_get_object( 'list_items', 'Net::API::Stripe::List', @_ ) ); } |
|
Subroutine
list_items: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 31 | |||
| 32 | 0 | ▶ | sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); } |
|
Subroutine
livemode: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 33 | |||
| 34 | 0 | ▶ | sub metadata { return( shift->_set_get_hash( 'metadata', @_ ) ); } |
|
Subroutine
metadata: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 35 | |||
| 36 | 0 | ▶ | sub name { return( shift->_set_get_scalar( 'name', @_ ) ); } |
|
Subroutine
name: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 37 | |||
| 38 | 1 | 1; | |
| 39 | |||
| 40 | __END__ | ||
| 41 | |||
| 42 | =encoding utf8 | ||
| 43 | |||
| 44 | =head1 NAME | ||
| 45 | |||
| 46 | Net::API::Stripe::Fraud::ValueList - A Stripe Value List Object | ||
| 47 | |||
| 48 | =head1 SYNOPSIS | ||
| 49 | |||
| 50 | my $list = $stripe->value_list({ | ||
| 51 | alias => 'custom_ip_blocklist', | ||
| 52 | created_by => 'john.doe@example.com', | ||
| 53 | item_type => 'ip_address', | ||
| 54 | list_items => $list_object, | ||
| 55 | metadata => { transaction_id => 123 }, | ||
| 56 | name => 'Custom IP Blocklist', | ||
| 57 | }); | ||
| 58 | |||
| 59 | See documentation in L<Net::API::Stripe> for example to make api calls to Stripe to create those objects. | ||
| 60 | |||
| 61 | =head1 VERSION | ||
| 62 | |||
| 63 | v0.100.0 | ||
| 64 | |||
| 65 | =head1 DESCRIPTION | ||
| 66 | |||
| 67 | Value lists allow you to group values together which can then be referenced in rules. | ||
| 68 | |||
| 69 | =head1 CONSTRUCTOR | ||
| 70 | |||
| 71 | =over 4 | ||
| 72 | |||
| 73 | =item B<new>( %ARG ) | ||
| 74 | |||
| 75 | Creates a new L<Net::API::Stripe::Fraud::ValueList> object. | ||
| 76 | |||
| 77 | =back | ||
| 78 | |||
| 79 | =head1 METHODS | ||
| 80 | |||
| 81 | =over 4 | ||
| 82 | |||
| 83 | =item B<id> string | ||
| 84 | |||
| 85 | Unique identifier for the object. | ||
| 86 | |||
| 87 | =item B<object> string, value is "radar.value_list" | ||
| 88 | |||
| 89 | String representing the object’s type. Objects of the same type share the same value. | ||
| 90 | |||
| 91 | =item B<alias> string | ||
| 92 | |||
| 93 | The name of the value list for use in rules. | ||
| 94 | |||
| 95 | =item B<created> timestamp | ||
| 96 | |||
| 97 | Time at which the object was created. Measured in seconds since the Unix epoch. | ||
| 98 | |||
| 99 | =item B<created_by> string | ||
| 100 | |||
| 101 | The name or email address of the user who created this value list. | ||
| 102 | |||
| 103 | =item B<item_type> string | ||
| 104 | |||
| 105 | The type of items in the value list. One of card_fingerprint, card_bin, email, ip_address, country, string, or case_sensitive_string. | ||
| 106 | |||
| 107 | =item B<list_items> list | ||
| 108 | |||
| 109 | List of items contained within this value list. | ||
| 110 | |||
| 111 | This is a L<Net::API::Stripe::List> object with array of L<Net::API::Stripe::Fraud::List::Item> objects. | ||
| 112 | |||
| 113 | =item B<livemode> boolean | ||
| 114 | |||
| 115 | Has the value true if the object exists in live mode or the value false if the object exists in test mode. | ||
| 116 | |||
| 117 | =item B<metadata> hash | ||
| 118 | |||
| 119 | Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. | ||
| 120 | |||
| 121 | =item B<name> string | ||
| 122 | |||
| 123 | The name of the value list. | ||
| 124 | |||
| 125 | =back | ||
| 126 | |||
| 127 | =head1 API SAMPLE | ||
| 128 | |||
| 129 | { | ||
| 130 | "id": "rsl_fake123456789", | ||
| 131 | "object": "radar.value_list", | ||
| 132 | "alias": "custom_ip_blocklist", | ||
| 133 | "created": 1571480456, | ||
| 134 | "created_by": "jenny@example.com", | ||
| 135 | "item_type": "ip_address", | ||
| 136 | "list_items": { | ||
| 137 | "object": "list", | ||
| 138 | "data": [], | ||
| 139 | "has_more": false, | ||
| 140 | "url": "/v1/radar/value_list_items?value_list=rsl_fake123456789" | ||
| 141 | }, | ||
| 142 | "livemode": false, | ||
| 143 | "metadata": {}, | ||
| 144 | "name": "Custom IP Blocklist" | ||
| 145 | } | ||
| 146 | |||
| 147 | =head1 HISTORY | ||
| 148 | |||
| 149 | =head2 v0.1 | ||
| 150 | |||
| 151 | Initial version | ||
| 152 | |||
| 153 | =head1 AUTHOR | ||
| 154 | |||
| 155 | Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> | ||
| 156 | |||
| 157 | =head1 SEE ALSO | ||
| 158 | |||
| 159 | Stripe API documentation: | ||
| 160 | |||
| 161 | L<https://stripe.com/docs/api/radar/value_lists>, L<https://stripe.com/docs/radar/lists#managing-list-items> | ||
| 162 | |||
| 163 | =head1 COPYRIGHT & LICENSE | ||
| 164 | |||
| 165 | Copyright (c) 2019-2020 DEGUEST Pte. Ltd. | ||
| 166 | |||
| 167 | You can use, copy, modify and redistribute this package and associated | ||
| 168 | files under the same terms as Perl itself. | ||
| 169 | |||
| 170 | =cut | ||