line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Fraud/Review/Session.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
|
1
|
|
|
1
|
|
976
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
14
|
1
|
|
|
1
|
|
5
|
use parent qw( Net::API::Stripe::Generic ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
15
|
1
|
|
|
1
|
|
5
|
use vars qw( $VERSION ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
16
|
1
|
|
|
1
|
|
65
|
our( $VERSION ) = 'v0.100.0'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
48
|
|
17
|
1
|
|
|
1
|
|
19
|
}; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
use strict; |
20
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
21
|
1
|
|
|
1
|
|
5
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
111
|
|
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
0
|
1
|
|
|
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
0
|
1
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
0
|
|
|
0
|
1
|
|
|
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
0
|
1
|
|
=encoding utf8 |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 NAME |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Net::API::Stripe::Fraud::Review::Session - A Stripe Fraud Review Session Object |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
This is used in L<Net::API::Stripe::Fraud::Review> |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 SYNOPSIS |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
my $session = $stripe->review->session({ |
40
|
|
|
|
|
|
|
browser => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36', |
41
|
|
|
|
|
|
|
device => 'Desktop', |
42
|
|
|
|
|
|
|
platform => 'Linux', |
43
|
|
|
|
|
|
|
version => '55.0.2883.87', |
44
|
|
|
|
|
|
|
}); |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 VERSION |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
v0.100.0 |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 DESCRIPTION |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Information related to the browsing session of the user who initiated the payment. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This is instantiated by method B<session> in module L<Net::API::Stripe::Fraud::Review> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head2 new( %ARG ) |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Creates a new L<Net::API::Stripe::Fraud::Review::Session> 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 browser string |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
The browser used in this browser session (e.g., Chrome). |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head2 device string |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Information about the device used for the browser session (e.g., Samsung SM-G930T). |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head2 platform string |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
The platform for the browser session (e.g., Macintosh). |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head2 version string |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
The version for the browser session (e.g., 61.0.3163.100). |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 API SAMPLE |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
{ |
84
|
|
|
|
|
|
|
"id": "prv_fake123456789", |
85
|
|
|
|
|
|
|
"object": "review", |
86
|
|
|
|
|
|
|
"billing_zip": null, |
87
|
|
|
|
|
|
|
"charge": "ch_fake123456789", |
88
|
|
|
|
|
|
|
"closed_reason": null, |
89
|
|
|
|
|
|
|
"created": 1571480456, |
90
|
|
|
|
|
|
|
"ip_address": null, |
91
|
|
|
|
|
|
|
"ip_address_location": null, |
92
|
|
|
|
|
|
|
"livemode": false, |
93
|
|
|
|
|
|
|
"open": true, |
94
|
|
|
|
|
|
|
"opened_reason": "rule", |
95
|
|
|
|
|
|
|
"reason": "rule", |
96
|
|
|
|
|
|
|
"session": null |
97
|
|
|
|
|
|
|
} |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head1 HISTORY |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=head2 v0.1 |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
Initial version |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=head1 AUTHOR |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=head1 SEE ALSO |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
Stripe API documentation: |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
L<https://stripe.com/docs/api> |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
120
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=cut |