line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Connect/Account/Document.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
|
|
|
|
|
|
|
BEGIN |
11
|
|
|
|
|
|
|
{ |
12
|
|
|
|
|
|
|
use strict; |
13
|
2
|
|
|
2
|
|
24080763
|
use warnings; |
|
2
|
|
|
|
|
13
|
|
|
2
|
|
|
|
|
63
|
|
14
|
2
|
|
|
2
|
|
17
|
use parent qw( Net::API::Stripe::Generic ); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
59
|
|
15
|
2
|
|
|
2
|
|
10
|
use vars qw( $VERSION ); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
10
|
|
16
|
2
|
|
|
2
|
|
143
|
our( $VERSION ) = 'v0.101.0'; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
120
|
|
17
|
2
|
|
|
2
|
|
45
|
}; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
use strict; |
20
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
47
|
|
21
|
2
|
|
|
2
|
|
10
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
785
|
|
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
0
|
1
|
|
|
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
0
|
1
|
|
|
26
|
|
|
|
|
|
|
{ |
27
|
0
|
|
|
0
|
1
|
|
day => { type => "number" }, |
28
|
|
|
|
|
|
|
month => { type => "number" }, |
29
|
0
|
|
|
0
|
1
|
|
year => { type => "number" }, |
30
|
|
|
|
|
|
|
}, @_ ) ); } |
31
|
0
|
|
|
0
|
1
|
|
|
32
|
|
|
|
|
|
|
{ |
33
|
|
|
|
|
|
|
day => { type => "number" }, |
34
|
|
|
|
|
|
|
month => { type => "number" }, |
35
|
|
|
|
|
|
|
year => { type => "number" }, |
36
|
|
|
|
|
|
|
}, @_ ) ); } |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
0
|
1
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
{ |
42
|
|
|
|
|
|
|
day => { type => "number" }, |
43
|
|
|
|
|
|
|
month => { type => "number" }, |
44
|
|
|
|
|
|
|
year => { type => "number" }, |
45
|
0
|
|
|
0
|
1
|
|
}, @_ ) ); } |
46
|
|
|
|
|
|
|
|
47
|
0
|
|
|
0
|
1
|
|
|
48
|
|
|
|
|
|
|
|
49
|
0
|
|
|
0
|
1
|
|
|
50
|
|
|
|
|
|
|
|
51
|
0
|
|
|
0
|
1
|
|
|
52
|
|
|
|
|
|
|
1; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=encoding utf8 |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 NAME |
58
|
0
|
|
|
0
|
1
|
|
|
59
|
|
|
|
|
|
|
Net::API::Stripe::Connect::Account::Document - An interface to Stripe API |
60
|
0
|
|
|
0
|
1
|
|
|
61
|
|
|
|
|
|
|
=head1 SYNOPSIS |
62
|
0
|
|
|
0
|
1
|
|
|
63
|
|
|
|
|
|
|
my $doc = $stripe->account->verification->document({ |
64
|
0
|
|
|
0
|
1
|
|
back => '/some/file/path/scan_back.jpg', |
65
|
|
|
|
|
|
|
details => 'Low resolution jpeg', |
66
|
0
|
|
|
0
|
1
|
|
# Set by Stripe |
67
|
|
|
|
|
|
|
# details_code => 'document_not_readable', |
68
|
|
|
|
|
|
|
front => '/some/file/path/scan_front.jpg', |
69
|
|
|
|
|
|
|
}); |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 VERSION |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
v0.101.0 |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 DESCRIPTION |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
Tis is called from method B<document> in module L<Net::API::Stripe::Connect::Account::Verification> |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head2 new( %ARG ) |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Creates a new L<Net::API::Stripe::Connect::Account::Document> object. |
86
|
|
|
|
|
|
|
It may also take an hash like arguments, that also are method of the same name. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head1 METHODS |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head2 address object |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Address as it appears in the document. |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
This is a L<Net::API::Stripe::Address> object. |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head2 back string (expandable) |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
The back of an ID returned by a file upload with a purpose value of identity_document. |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
When expanded, this is a L<Net::API::Stripe::File> object. |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head2 details string |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
A user-displayable string describing the verification state of this document. For example, if a document is uploaded and the picture is too fuzzy, this may say “Identity document is too unclear to read”. |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=head2 details_code string |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
One of document_corrupt, document_country_not_supported, document_expired, document_failed_copy, document_failed_other, document_failed_test_mode, document_fraudulent, document_failed_greyscale, document_incomplete, document_invalid, document_manipulated, document_missing_back, document_missing_front, document_not_readable, document_not_uploaded, document_photo_mismatch, document_too_large, or document_type_not_supported. A machine-readable code specifying the verification state for this document. |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=head2 dob hash |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
Date of birth as it appears in the document. |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
It has the following properties: |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=over 4 |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=item C<day> integer |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
Numerical day between 1 and 31. |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=item C<month> integer |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
Numerical month between 1 and 12. |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=item C<year> integer |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
The four-digit year. |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=back |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=head2 expiration_date hash |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
Expiration date of the document. |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
It has the following properties: |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
=over 4 |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=item C<day> integer |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
Numerical day between 1 and 31. |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=item C<month> integer |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
Numerical month between 1 and 12. |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
=item C<year> integer |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
The four-digit year. |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
=back |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
=head2 files string_array |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
Array of L<File|https://stripe.com/docs/api/files> ids containing images for this document. |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
=head2 first_name string |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
First name as it appears in the document. |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
=head2 front string (expandable) |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
The front of an ID returned by a file upload with a purpose value of identity_document. |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
When expanded, this is a L<Net::API::Stripe::File> object. |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
=head2 issued_date hash |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
Issued date of the document. |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
It has the following properties: |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
=over 4 |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
=item C<day> integer |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
Numerical day between 1 and 31. |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
=item C<month> integer |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
Numerical month between 1 and 12. |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
=item C<year> integer |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
The four-digit year. |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
=back |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
=head2 issuing_country string |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
Issuing country of the document. |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
=head2 last_name string |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
Last name as it appears in the document. |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
=head2 number string |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
Document ID number. |
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
=head2 status string |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
Status of this C<document> check. |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
=head2 type string |
207
|
|
|
|
|
|
|
|
208
|
|
|
|
|
|
|
Type of the document. |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
=head1 API SAMPLE |
211
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
{ |
213
|
|
|
|
|
|
|
"id": "person_fake123456789", |
214
|
|
|
|
|
|
|
"object": "person", |
215
|
|
|
|
|
|
|
"account": "acct_fake123456789", |
216
|
|
|
|
|
|
|
"created": 1580075612, |
217
|
|
|
|
|
|
|
"dob": { |
218
|
|
|
|
|
|
|
"day": null, |
219
|
|
|
|
|
|
|
"month": null, |
220
|
|
|
|
|
|
|
"year": null |
221
|
|
|
|
|
|
|
}, |
222
|
|
|
|
|
|
|
"first_name_kana": null, |
223
|
|
|
|
|
|
|
"first_name_kanji": null, |
224
|
|
|
|
|
|
|
"gender": null, |
225
|
|
|
|
|
|
|
"last_name_kana": null, |
226
|
|
|
|
|
|
|
"last_name_kanji": null, |
227
|
|
|
|
|
|
|
"metadata": {}, |
228
|
|
|
|
|
|
|
"relationship": { |
229
|
|
|
|
|
|
|
"director": false, |
230
|
|
|
|
|
|
|
"executive": false, |
231
|
|
|
|
|
|
|
"owner": false, |
232
|
|
|
|
|
|
|
"percent_ownership": null, |
233
|
|
|
|
|
|
|
"representative": false, |
234
|
|
|
|
|
|
|
"title": null |
235
|
|
|
|
|
|
|
}, |
236
|
|
|
|
|
|
|
"requirements": { |
237
|
|
|
|
|
|
|
"currently_due": [], |
238
|
|
|
|
|
|
|
"eventually_due": [], |
239
|
|
|
|
|
|
|
"past_due": [], |
240
|
|
|
|
|
|
|
"pending_verification": [] |
241
|
|
|
|
|
|
|
}, |
242
|
|
|
|
|
|
|
"verification": { |
243
|
|
|
|
|
|
|
"additional_document": { |
244
|
|
|
|
|
|
|
"back": null, |
245
|
|
|
|
|
|
|
"details": null, |
246
|
|
|
|
|
|
|
"details_code": null, |
247
|
|
|
|
|
|
|
"front": null |
248
|
|
|
|
|
|
|
}, |
249
|
|
|
|
|
|
|
"details": null, |
250
|
|
|
|
|
|
|
"details_code": null, |
251
|
|
|
|
|
|
|
"document": { |
252
|
|
|
|
|
|
|
"back": null, |
253
|
|
|
|
|
|
|
"details": null, |
254
|
|
|
|
|
|
|
"details_code": null, |
255
|
|
|
|
|
|
|
"front": null |
256
|
|
|
|
|
|
|
}, |
257
|
|
|
|
|
|
|
"status": "unverified" |
258
|
|
|
|
|
|
|
} |
259
|
|
|
|
|
|
|
} |
260
|
|
|
|
|
|
|
|
261
|
|
|
|
|
|
|
=head1 HISTORY |
262
|
|
|
|
|
|
|
|
263
|
|
|
|
|
|
|
=head2 v0.1 |
264
|
|
|
|
|
|
|
|
265
|
|
|
|
|
|
|
Initial version |
266
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
=head1 AUTHOR |
268
|
|
|
|
|
|
|
|
269
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
270
|
|
|
|
|
|
|
|
271
|
|
|
|
|
|
|
=head1 SEE ALSO |
272
|
|
|
|
|
|
|
|
273
|
|
|
|
|
|
|
Stripe API documentation: |
274
|
|
|
|
|
|
|
|
275
|
|
|
|
|
|
|
L<https://stripe.com/docs/api> |
276
|
|
|
|
|
|
|
|
277
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
278
|
|
|
|
|
|
|
|
279
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
280
|
|
|
|
|
|
|
|
281
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
282
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
283
|
|
|
|
|
|
|
|
284
|
|
|
|
|
|
|
=cut |