File Coverage

lib/Net/API/Stripe/Connect/Account/Verification.pm
Criterion Covered Total %
statement 19 29 65.5
branch n/a
condition n/a
subroutine 7 17 41.1
pod 10 10 100.0
total 36 56 64.2


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