line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
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
|
|
|
1
|
|
808
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
14
|
1
|
|
|
1
|
|
6
|
use parent qw( Net::API::Stripe::Generic ); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
15
|
1
|
|
|
1
|
|
214
|
our( $VERSION ) = 'v0.100.0'; |
16
|
|
|
|
|
|
|
}; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
1
|
|
sub id { return( shift->_set_get_scalar( 'id', @_ ) ); } |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
1
|
|
sub object { return( shift->_set_get_scalar( 'object', @_ ) ); } |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
1
|
|
sub alias { return( shift->_set_get_scalar( 'alias', @_ ) ); } |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
1
|
|
sub created { return( shift->_set_get_datetime( 'created', @_ ) ); } |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
1
|
|
sub created_by { return( shift->_set_get_scalar( 'created_by', @_ ) ); } |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
0
|
1
|
|
sub item_type { return( shift->_set_get_scalar( 'item_type', @_ ) ); } |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
0
|
1
|
|
sub list_items { return( shift->_set_get_object( 'list_items', 'Net::API::Stripe::List', @_ ) ); } |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
0
|
1
|
|
sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); } |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
0
|
1
|
|
sub metadata { return( shift->_set_get_hash( 'metadata', @_ ) ); } |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
0
|
1
|
|
sub name { return( shift->_set_get_scalar( 'name', @_ ) ); } |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
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 |