line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Fraud.pm |
3
|
|
|
|
|
|
|
## Version v0.101.0 |
4
|
|
|
|
|
|
|
## Copyright(c) 2019 DEGUEST Pte. Ltd. |
5
|
|
|
|
|
|
|
## Author: Jacques Deguest <jack@deguest.jp> |
6
|
|
|
|
|
|
|
## Created 2019/11/02 |
7
|
|
|
|
|
|
|
## Modified 2022/10/29 |
8
|
|
|
|
|
|
|
## |
9
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
10
|
|
|
|
|
|
|
package Net::API::Stripe::Fraud; |
11
|
|
|
|
|
|
|
BEGIN |
12
|
|
|
|
|
|
|
{ |
13
|
2
|
|
|
2
|
|
21374852
|
use strict; |
|
2
|
|
|
|
|
15
|
|
|
2
|
|
|
|
|
70
|
|
14
|
2
|
|
|
2
|
|
18
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
59
|
|
15
|
2
|
|
|
2
|
|
12
|
use parent qw( Net::API::Stripe::Generic ); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
12
|
|
16
|
2
|
|
|
2
|
|
137
|
use vars qw( $VERSION ); |
|
2
|
|
|
|
|
12
|
|
|
2
|
|
|
|
|
117
|
|
17
|
2
|
|
|
2
|
|
42
|
our( $VERSION ) = 'v0.101.0'; |
18
|
|
|
|
|
|
|
}; |
19
|
|
|
|
|
|
|
|
20
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
41
|
|
21
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
397
|
|
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 actionable { return( shift->_set_get_boolean( 'actionable', @_ ) ); } |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
0
|
1
|
|
sub charge { return( shift->_set_get_scalar_or_object( 'charge', 'Net::API::Stripe::Charge', @_ ) ); } |
30
|
|
|
|
|
|
|
|
31
|
0
|
|
|
0
|
1
|
|
sub created { return( shift->_set_get_datetime( 'created', @_ ) ); } |
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
0
|
1
|
|
sub fraud_type { return( shift->_set_get_scalar( 'fraud_type', @_ ) ); } |
34
|
|
|
|
|
|
|
|
35
|
0
|
|
|
0
|
1
|
|
sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); } |
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
0
|
1
|
|
sub payment_intent { return( shift->_set_get_scalar_or_object( 'payment_intent', 'Net::API::Stripe::Payment::Intent', @_ ) ); } |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=encoding utf8 |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 NAME |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Net::API::Stripe::Fraud - A Stripe Early Fraud Warning Object |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 SYNOPSIS |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
my $fraud = $stripe->fraud({ |
52
|
|
|
|
|
|
|
actionable => $stripe->true, |
53
|
|
|
|
|
|
|
# Could also be a Net::API::Stripe::Charge object if expanded |
54
|
|
|
|
|
|
|
charge => 'ch_fake124567890', |
55
|
|
|
|
|
|
|
fraud_type => 'unauthorized_use_of_card', |
56
|
|
|
|
|
|
|
livemode => $stripe->false, |
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.101.0 |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 DESCRIPTION |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
An early fraud warning indicates that the card issuer has notified us that a charge may be fraudulent. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head2 new( %ARG ) |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Creates a new L<Net::API::Stripe::Fraud> object. |
74
|
|
|
|
|
|
|
It may also take an hash like arguments, that also are method of the same name. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 METHODS |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 id string |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Unique identifier for the object. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head2 object string, value is "radar.early_fraud_warning" |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
String representing the object’s type. Objects of the same type share the same value. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head2 actionable boolean |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
An EFW is actionable if it has not received a dispute and has not been fully refunded. You may wish to proactively refund a charge that receives an EFW, in order to avoid receiving a dispute later. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head2 charge string (expandable) |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
ID of the charge this early fraud warning is for, optionally expanded. |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
When expanded, this is a L<Net::API::Stripe::Charge> object. |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head2 created timestamp |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
Time at which the object was created. Measured in seconds since the Unix epoch. |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head2 fraud_type string |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
The type of fraud labelled by the issuer. One of card_never_received, fraudulent_card_application, made_with_counterfeit_card, made_with_lost_card, made_with_stolen_card, misc, unauthorized_use_of_card. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head2 livemode boolean |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
Has the value true if the object exists in live mode or the value false if the object exists in test mode. |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=head2 payment_intent expandable |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
ID of the Payment Intent this early fraud warning is for, optionally expanded. |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
When expanded this is an L<Net::API::Stripe::Payment::Intent> object. |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head1 API SAMPLE |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
{ |
117
|
|
|
|
|
|
|
"id": "issfr_123456789", |
118
|
|
|
|
|
|
|
"object": "radar.early_fraud_warning", |
119
|
|
|
|
|
|
|
"actionable": true, |
120
|
|
|
|
|
|
|
"charge": "ch_1234", |
121
|
|
|
|
|
|
|
"created": 123456789, |
122
|
|
|
|
|
|
|
"fraud_type": "misc", |
123
|
|
|
|
|
|
|
"livemode": false |
124
|
|
|
|
|
|
|
} |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=head1 HISTORY |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=head2 v0.1 |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
Initial version |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=head1 AUTHOR |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=head1 SEE ALSO |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
Stripe API documentation: |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
L<https://stripe.com/docs/api/radar/early_fraud_warnings/object>, L<https://stripe.com/docs/disputes#early-fraud-warnings-formerly-issuer-fraud-records> |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
147
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
=cut |