line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Connect/Account/Verification.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::Connect::Account::Verification; |
11
|
|
|
|
|
|
|
BEGIN |
12
|
|
|
|
|
|
|
{ |
13
|
2
|
|
|
2
|
|
21332907
|
use strict; |
|
2
|
|
|
|
|
16
|
|
|
2
|
|
|
|
|
62
|
|
14
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
61
|
|
15
|
2
|
|
|
2
|
|
10
|
use parent qw( Net::API::Stripe::Generic ); |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
13
|
|
16
|
2
|
|
|
2
|
|
153
|
use vars qw( $VERSION ); |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
115
|
|
17
|
2
|
|
|
2
|
|
40
|
our( $VERSION ) = 'v0.100.0'; |
18
|
|
|
|
|
|
|
}; |
19
|
|
|
|
|
|
|
|
20
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
38
|
|
21
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
480
|
|
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
0
|
1
|
|
sub additional_document { return( shift->_set_get_object( 'additional_document', 'Net::API::Stripe::Connect::Account::Document', @_ ) ); } |
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
0
|
1
|
|
sub details { return( shift->_set_get_scalar( 'details', @_ ) ); } |
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
0
|
1
|
|
sub details_code { return( shift->_set_get_scalar( 'details_code', @_ ) ); } |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
0
|
1
|
|
sub document { return( shift->_set_get_object( 'document', 'Net::API::Stripe::Connect::Account::Document', @_ ) ); } |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
## Old methods |
32
|
0
|
|
|
0
|
1
|
|
sub disabled_reason { return( shift->_set_get_scalar( 'disabled_reason', @_ ) ); } |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
0
|
1
|
|
sub due_by { return( shift->_set_get_datetime( 'due_by', @_ ) ); } |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
0
|
1
|
|
sub fields_needed { return( shift->_set_get_array( 'fields_needed', @_ ) ); } |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
0
|
1
|
|
sub status { return( shift->_set_get_scalar( 'status', @_ ) ); } |
39
|
|
|
|
|
|
|
|
40
|
0
|
|
|
0
|
1
|
|
sub verified_address { return( shift->_set_get_scalar( 'verified_address', @_ ) ); } |
41
|
|
|
|
|
|
|
|
42
|
0
|
|
|
0
|
1
|
|
sub verified_name { return( shift->_set_get_scalar( 'verified_name', @_ ) ); } |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__END__ |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=encoding utf8 |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 NAME |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Net::API::Stripe::Connect::Account::Verification - A Stripe Account Verification Object |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 SYNOPSIS |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
my $check = $stripe->account->verification({ |
57
|
|
|
|
|
|
|
additional_document => $document_object, |
58
|
|
|
|
|
|
|
details => 'Provided identity information could not be verified', |
59
|
|
|
|
|
|
|
details_code => 'document_name_mismatch', |
60
|
|
|
|
|
|
|
document => $document_object, |
61
|
|
|
|
|
|
|
# For tax ids verification |
62
|
|
|
|
|
|
|
# verified_address => '1-2-3 Kudan-minami, Chiyoda-ku, Tokyo 123-4567', |
63
|
|
|
|
|
|
|
# verified_name => 'John Doe', |
64
|
|
|
|
|
|
|
status => 'unverified', |
65
|
|
|
|
|
|
|
}); |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 VERSION |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
v0.100.0 |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 DESCRIPTION |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
The Stripe API has changed considerably as of 2019-02-19. The original methods here were used previously in Stripe API as part of the account verification, but has been replaced by a L<Net::API::Stripe::Connect::Account::Requirements> module. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Instead, the new methods are used for person, or company verification, not account. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
This is instantiated by method B<tos_acceptance> from modules L<Net::API::Stripe::Connect::Account>, L<Net::API::Stripe::Connect::Account::Company>, L<Net::API::Stripe::Connect::Person> |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head2 new( %ARG ) |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Creates a new L<Net::API::Stripe::Connect::Account::Verification> object. |
84
|
|
|
|
|
|
|
It may also take an hash like arguments, that also are method of the same name. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 METHODS |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head2 additional_document hash |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
This is a L<Net::API::Stripe::Connect::Account::Document> object. |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head2 details string |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
A user-displayable string describing the verification state for the person. For example, this may say “Provided identity information could not be verified”. |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head2 details_code string |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
One of document_address_mismatch, document_dob_mismatch, document_duplicate_type, document_id_number_mismatch, document_name_mismatch, failed_keyed_identity, or failed_other. A machine-readable code specifying the verification state for the person. |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head2 document hash |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
An identifying document for the person, either a passport or local ID card. |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
This is a L<Net::API::Stripe::Connect::Account::Document> object. |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=head2 status string |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
Verification status, one of pending, unavailable, unverified, or verified. |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
For persons, possible values are unverified, pending, or verified. |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head2 verified_address string |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
Verified address. |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=head2 verified_name string |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
Verified name. |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=head1 OBSOLETE METHODS |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=head2 disabled_reason |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
This has been replaced with the method B<past_due> in L<Net::API::Stripe::Connect::Account::Requirements> |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=head2 due_by |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
This has been replaced with the method B<current_deadline> in L<Net::API::Stripe::Connect::Account::Requirements> |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=head2 fields_needed |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
Not documented |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=head1 HISTORY |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
=head2 v0.1 |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
Initial version |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=head1 AUTHOR |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
=head1 SEE ALSO |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
Stripe API documentation: |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
L<https://stripe.com/docs/api/accounts/object> |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
157
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
=cut |
160
|
|
|
|
|
|
|
|