File Coverage

blib/lib/Net/API/Stripe/Connect/Account/Verification.pm
Criterion Covered Total %
statement 7 17 41.1
branch n/a
condition n/a
subroutine 3 13 23.0
pod 10 10 100.0
total 20 40 50.0


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