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