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