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