File Coverage

lib/Net/API/Stripe/Connect/CountrySpec/VerificationFields/Details.pm
Criterion Covered Total %
statement 19 21 90.4
branch n/a
condition n/a
subroutine 7 9 77.7
pod 2 2 100.0
total 28 32 87.5


line stmt bran cond sub pod time code
1             ##----------------------------------------------------------------------------
2             ## Stripe API - ~/lib/Net/API/Stripe/Connect/CountrySpec/VerificationFields/Details.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 1     1   978 use warnings;
  1         3  
  1         30  
14 1     1   9 use parent qw( Net::API::Stripe::Generic );
  1         2  
  1         27  
15 1     1   5 use vars qw( $VERSION );
  1         3  
  1         56  
16 1     1   69 our( $VERSION ) = 'v0.100.0';
  1         3  
  1         49  
17 1     1   20 };
18              
19             use strict;
20 1     1   6 use warnings;
  1         2  
  1         21  
21 1     1   4  
  1         3  
  1         81  
22              
23 0     0 1    
24             1;
25 0     0 1    
26              
27             =encoding utf8
28              
29             =head1 NAME
30              
31             Net::API::Stripe::Connect::CountrySpec::VerificationFields::Details - A Stripe Verification Fields Details Object
32              
33             =head1 SYNOPSIS
34              
35             my $details = $stripe->country_spec->verification_fields->company({
36             additional => [qw( field1 field2 field3 )],
37             minimum => [qw( field1 field2 field3 )]
38             });
39              
40             =head1 VERSION
41              
42             v0.100.0
43              
44             =head1 DESCRIPTION
45              
46             Lists the types of verification data needed to keep an account open.
47              
48             This is instantiated by methods B<company> and B<individual> from module L<Net::API::Stripe::Connect::CountrySpec::VerificationFields>
49              
50             =head1 CONSTRUCTOR
51              
52             =head2 new( %ARG )
53              
54             Creates a new L<Net::API::Stripe::Connect::CountrySpec::VerificationFields::Details> object.
55             It may also take an hash like arguments, that also are method of the same name.
56              
57             =head1 METHODS
58              
59             =head2 additional array containing strings
60              
61             Additional fields which are only required for some users.
62              
63             =head2 minimum array containing strings
64              
65             Fields which every account must eventually provide.
66              
67             =head1 API SAMPLE
68              
69             {
70             "id": "US",
71             "object": "country_spec",
72             "default_currency": "usd",
73             "supported_bank_account_currencies": {
74             "usd": [
75             "US"
76             ]
77             },
78             "supported_payment_currencies": [
79             "usd",
80             "aed",
81             "afn",
82             "..."
83             ],
84             "supported_payment_methods": [
85             "ach",
86             "card",
87             "stripe"
88             ],
89             "supported_transfer_countries": [
90             "US"
91             ],
92             "verification_fields": {
93             "company": {
94             "additional": [
95             "relationship.representative"
96             ],
97             "minimum": [
98             "business_profile.mcc",
99             "business_profile.url",
100             "business_type",
101             "company.address.city",
102             "company.address.line1",
103             "company.address.postal_code",
104             "company.address.state",
105             "company.name",
106             "company.phone",
107             "company.tax_id",
108             "external_account",
109             "relationship.owner",
110             "relationship.representative",
111             "tos_acceptance.date",
112             "tos_acceptance.ip"
113             ]
114             },
115             "individual": {
116             "additional": [
117             "individual.id_number"
118             ],
119             "minimum": [
120             "business_profile.mcc",
121             "business_profile.url",
122             "business_type",
123             "external_account",
124             "individual.address.city",
125             "individual.address.line1",
126             "individual.address.postal_code",
127             "individual.address.state",
128             "individual.dob.day",
129             "individual.dob.month",
130             "individual.dob.year",
131             "individual.email",
132             "individual.first_name",
133             "individual.last_name",
134             "individual.phone",
135             "individual.ssn_last_4",
136             "tos_acceptance.date",
137             "tos_acceptance.ip"
138             ]
139             }
140             }
141             }
142              
143             =head1 HISTORY
144              
145             =head2 v0.1
146              
147             Initial version
148              
149             =head1 AUTHOR
150              
151             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
152              
153             =head1 SEE ALSO
154              
155             Stripe API documentation:
156              
157             L<https://stripe.com/docs/api/country_specs/object>
158              
159             =head1 COPYRIGHT & LICENSE
160              
161             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
162              
163             You can use, copy, modify and redistribute this package and associated
164             files under the same terms as Perl itself.
165              
166             =cut