File Coverage

blib/lib/Net/API/Stripe/Connect/CountrySpec/VerificationFields/Details.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 5 60.0
pod 2 2 100.0
total 12 16 75.0


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