File Coverage

blib/lib/Net/API/Stripe/Connect/CountrySpec/VerificationFields.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.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;
11             BEGIN
12             {
13 1     1   839 use strict;
  1         2  
  1         28  
14 1     1   5 use parent qw( Net::API::Stripe::Generic );
  1         2  
  1         4  
15 1     1   107 our( $VERSION ) = 'v0.100.0';
16             };
17              
18 0     0 1   sub individual { shift->_set_get_object( 'individual', 'Net::API::Stripe::Connect::CountrySpec::VerificationFields::Details', @_ ); }
19              
20 0     0 1   sub company { shift->_set_get_object( 'company', 'Net::API::Stripe::Connect::CountrySpec::VerificationFields::Details', @_ ); }
21              
22             1;
23              
24             __END__
25              
26             =encoding utf8
27              
28             =head1 NAME
29              
30             Net::API::Stripe::Connect::CountrySpec::VerificationFields - A Stripe Country Spec Verification Fields Object
31              
32             =head1 SYNOPSIS
33              
34             my $check = $stripe->country_spec->verification_fields({
35             individual => $details_object,
36             company => $details_object,
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 method B<verification_fields> from module L<Net::API::Stripe::Connect::CountrySpec>
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> 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<company> hash
65              
66             Verification types for company account.
67              
68             This is a L<Net::API::Stripe::Connect::CountrySpec::VerificationFields::Details> object.
69              
70             =item B<individual> hash
71              
72             Verification types for individual account.
73              
74             This is a L<Net::API::Stripe::Connect::CountrySpec::VerificationFields::Details> object.
75              
76             =back
77              
78             =head1 API SAMPLE
79              
80             {
81             "id": "US",
82             "object": "country_spec",
83             "default_currency": "usd",
84             "supported_bank_account_currencies": {
85             "usd": [
86             "US"
87             ]
88             },
89             "supported_payment_currencies": [
90             "usd",
91             "aed",
92             "afn",
93             "..."
94             ],
95             "supported_payment_methods": [
96             "ach",
97             "card",
98             "stripe"
99             ],
100             "supported_transfer_countries": [
101             "US"
102             ],
103             "verification_fields": {
104             "company": {
105             "additional": [
106             "relationship.representative"
107             ],
108             "minimum": [
109             "business_profile.mcc",
110             "business_profile.url",
111             "business_type",
112             "company.address.city",
113             "company.address.line1",
114             "company.address.postal_code",
115             "company.address.state",
116             "company.name",
117             "company.phone",
118             "company.tax_id",
119             "external_account",
120             "relationship.owner",
121             "relationship.representative",
122             "tos_acceptance.date",
123             "tos_acceptance.ip"
124             ]
125             },
126             "individual": {
127             "additional": [
128             "individual.id_number"
129             ],
130             "minimum": [
131             "business_profile.mcc",
132             "business_profile.url",
133             "business_type",
134             "external_account",
135             "individual.address.city",
136             "individual.address.line1",
137             "individual.address.postal_code",
138             "individual.address.state",
139             "individual.dob.day",
140             "individual.dob.month",
141             "individual.dob.year",
142             "individual.email",
143             "individual.first_name",
144             "individual.last_name",
145             "individual.phone",
146             "individual.ssn_last_4",
147             "tos_acceptance.date",
148             "tos_acceptance.ip"
149             ]
150             }
151             }
152             }
153              
154             =head1 HISTORY
155              
156             =head2 v0.1
157              
158             Initial version
159              
160             =head1 AUTHOR
161              
162             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
163              
164             =head1 SEE ALSO
165              
166             Stripe API documentation:
167              
168             L<https://stripe.com/docs/api/country_specs/object>
169              
170             =head1 COPYRIGHT & LICENSE
171              
172             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
173              
174             You can use, copy, modify and redistribute this package and associated
175             files under the same terms as Perl itself.
176              
177             =cut