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