line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Connect/Account/Company.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::Company; |
11
|
|
|
|
|
|
|
BEGIN |
12
|
|
|
|
|
|
|
{ |
13
|
1
|
|
|
1
|
|
841
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
14
|
1
|
|
|
1
|
|
5
|
use parent qw( Net::API::Stripe::Generic ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
15
|
1
|
|
|
1
|
|
283
|
our( $VERSION ) = 'v0.100.0'; |
16
|
|
|
|
|
|
|
}; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
1
|
|
sub address { return( shift->_set_get_object( 'address', 'Net::API::Stripe::Address', @_ ) ); } |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
1
|
|
sub address_kana { return( shift->_set_get_object( 'address_kana', 'Net::API::Stripe::AddressKana', @_ ) ); } |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
1
|
|
sub address_kanji { return( shift->_set_get_object( 'address_kanji', 'Net::API::Stripe::AddressKanji', @_ ) ); } |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
1
|
|
sub directors_provided { return( shift->_set_get_scalar( 'directors_provided', @_ ) ); } |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
1
|
|
sub executives_provided { return( shift->_set_get_boolean( 'executives_provided', @_ ) ); } |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
0
|
1
|
|
sub name { return( shift->_set_get_scalar( 'name', @_ ) ); } |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
0
|
1
|
|
sub name_kana { return( shift->_set_get_scalar( 'name_kana', @_ ) ); } |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
0
|
1
|
|
sub name_kanji { return( shift->_set_get_scalar( 'name_kanji', @_ ) ); } |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
0
|
1
|
|
sub owners_provided { return( shift->_set_get_scalar( 'owners_provided', @_ ) ); } |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
0
|
1
|
|
sub phone { return( shift->_set_get_scalar( 'phone', @_ ) ); } |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
0
|
1
|
|
sub structure { return( shift->_set_get_scalar( 'structure', @_ ) ); } |
39
|
|
|
|
|
|
|
|
40
|
0
|
|
|
0
|
1
|
|
sub tax_id_provided { return( shift->_set_get_scalar( 'tax_id_provided', @_ ) ); } |
41
|
|
|
|
|
|
|
|
42
|
0
|
|
|
0
|
1
|
|
sub tax_id_registrar { return( shift->_set_get_scalar( 'tax_id_registrar', @_ ) ); } |
43
|
|
|
|
|
|
|
|
44
|
0
|
|
|
0
|
1
|
|
sub vat_id_provided { return( shift->_set_get_scalar( 'owners_provided', @_ ) ); } |
45
|
|
|
|
|
|
|
|
46
|
0
|
|
|
0
|
1
|
|
sub verification { return( shift->_set_get_object( 'verification', 'Net::API::Stripe::Connect::Account::Verification', @_ ) ); } |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
__END__ |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=encoding utf8 |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 NAME |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Net::API::Stripe::Connect::Account::Company - A Stripe Company Object |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 SYNOPSIS |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
my $cie = $stripe->account->company({ |
61
|
|
|
|
|
|
|
address => $stripe->address({ |
62
|
|
|
|
|
|
|
line1 => '1-2-3 Kudan-Minami, Chiyoda-ku', |
63
|
|
|
|
|
|
|
line2 => 'Big Bldg 12F', |
64
|
|
|
|
|
|
|
city => 'Tokyo', |
65
|
|
|
|
|
|
|
postal_code => '123-4567', |
66
|
|
|
|
|
|
|
country => 'jp', |
67
|
|
|
|
|
|
|
}), |
68
|
|
|
|
|
|
|
address_kana => $stripe->address({ |
69
|
|
|
|
|
|
|
line1 => 'ã¡ãã ããã ãã¿ãªã¿1-2-3', |
70
|
|
|
|
|
|
|
line2 => 'ã ãã³ã12ãã', |
71
|
|
|
|
|
|
|
city => 'ã¨ããããã¨', |
72
|
|
|
|
|
|
|
postal_code => '123-4567', |
73
|
|
|
|
|
|
|
country => 'jp', |
74
|
|
|
|
|
|
|
}), |
75
|
|
|
|
|
|
|
address_kanji => $stripe->address({ |
76
|
|
|
|
|
|
|
line1 => 'å代ç°åºä¹æ®µå1-2-3', |
77
|
|
|
|
|
|
|
line2 => '大ãã«12é', |
78
|
|
|
|
|
|
|
city => 'æ±äº¬é½', |
79
|
|
|
|
|
|
|
postal_code => '123-4567', |
80
|
|
|
|
|
|
|
country => 'jp', |
81
|
|
|
|
|
|
|
}), |
82
|
|
|
|
|
|
|
name => 'Yamato Nadehiko, Inc', |
83
|
|
|
|
|
|
|
name_kana => 'ãã¾ã¨ãªã§ã²ããã¶ãããããã', |
84
|
|
|
|
|
|
|
name_kanji => '大åæ«åæ ªå¼ä¼ç¤¾', |
85
|
|
|
|
|
|
|
phone => '+81-(0)3-1234-5678', |
86
|
|
|
|
|
|
|
structure => 'private_corporation', |
87
|
|
|
|
|
|
|
}); |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head1 VERSION |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
v0.100.0 |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head1 DESCRIPTION |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Settings used to apply the accountâs branding to email receipts, invoices, Checkout, and other products. |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
This is called from method B<company> in modules L<Net::API::Stripe::Connect::Account> and L<Net::API::Stripe::Issuing::Card::Holder> |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=over 4 |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=item B<new>( %ARG ) |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
Creates a new L<Net::API::Stripe::Connect::Account::Company> object. |
106
|
|
|
|
|
|
|
It may also take an hash like arguments, that also are method of the same name. |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=back |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=head1 METHODS |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=over 4 |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=item B<address> hash |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
The companyâs primary address. |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
This is a L<Net::API::Stripe::Address> object. |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=item B<address_kana> hash |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
The Kana variation of the companyâs primary address (Japan only). |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
This is a L<Net::API::Stripe::Address> object. |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=item B<address_kanji> hash |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
The Kanji variation of the companyâs primary address (Japan only). |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
This is a L<Net::API::Stripe::Address> object. |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=item B<directors_provided> boolean |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
Whether the companyâs directors have been provided. This Boolean will be true if youâve manually indicated that all directors are provided via the directors_provided parameter. |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=item B<executives_provided> boolean |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
Whether the companyâs executives have been provided. This Boolean will be true if youâve manually indicated that all executives are provided via the executives_provided parameter, or if Stripe determined that sufficient executives were provided. |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=item B<name> string |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
The companyâs legal name. |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=item B<name_kana> string |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
The Kana variation of the companyâs legal name (Japan only). |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
=item B<name_kanji> string |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
The Kanji variation of the companyâs legal name (Japan only). |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
=item B<owners_provided> boolean |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
Whether the companyâs owners have been provided. This Boolean will be true if youâve manually indicated that all owners are provided via the owners_provided parameter, or if Stripe determined that all owners were provided. Stripe determines ownership requirements using both the number of owners provided and their total percent ownership (calculated by adding the percent_ownership of each owner together). |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
=item B<phone> string |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
The companyâs phone number (used for verification). |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
=item B<structure> string |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
The category identifying the legal structure of the company or legal entity. See Business structure for more details (L<https://stripe.com/docs/connect/identity-verification#business-structure>). |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
Possible enum values |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
=over 4 |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
=item government_instrumentality |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
=item governmental_unit |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
=item incorporated_non_profit |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
=item multi_member_llc |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
=item private_corporation |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
=item private_partnership |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
=item public_corporation |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
=item public_partnership |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
=item tax_exempt_government_instrumentality |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
=item unincorporated_association |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
=item unincorporated_non_profit |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
=back |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
=item B<tax_id_provided> boolean |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
Whether the companyâs business ID number was provided. |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
=item B<tax_id_registrar> string |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
The jurisdiction in which the tax_id is registered (Germany-based companies only). |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
=item B<vat_id_provided> boolean |
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
Whether the companyâs business VAT number was provided. |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
=item B<verification> hash |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
Information on the verification state of the company. This is a L<Net::API::Stripe::Connect::Account::Verification> object. |
207
|
|
|
|
|
|
|
|
208
|
|
|
|
|
|
|
=back |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
=head1 API SAMPLE |
211
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
{ |
213
|
|
|
|
|
|
|
"id": "acct_fake123456789", |
214
|
|
|
|
|
|
|
"object": "account", |
215
|
|
|
|
|
|
|
"business_profile": { |
216
|
|
|
|
|
|
|
"mcc": null, |
217
|
|
|
|
|
|
|
"name": "My Shop, Inc", |
218
|
|
|
|
|
|
|
"product_description": "Great products shipping all over the world", |
219
|
|
|
|
|
|
|
"support_address": { |
220
|
|
|
|
|
|
|
"city": "Tokyo", |
221
|
|
|
|
|
|
|
"country": "JP", |
222
|
|
|
|
|
|
|
"line1": "1-2-3 Kudan-minami, Chiyoda-ku", |
223
|
|
|
|
|
|
|
"line2": "", |
224
|
|
|
|
|
|
|
"postal_code": "100-0012", |
225
|
|
|
|
|
|
|
"state": "" |
226
|
|
|
|
|
|
|
}, |
227
|
|
|
|
|
|
|
"support_email": "billing@example.com", |
228
|
|
|
|
|
|
|
"support_phone": "+81312345678", |
229
|
|
|
|
|
|
|
"support_url": "", |
230
|
|
|
|
|
|
|
"url": "https://www.example.com" |
231
|
|
|
|
|
|
|
}, |
232
|
|
|
|
|
|
|
"business_type": "company", |
233
|
|
|
|
|
|
|
"capabilities": { |
234
|
|
|
|
|
|
|
"card_payments": "active" |
235
|
|
|
|
|
|
|
}, |
236
|
|
|
|
|
|
|
"charges_enabled": true, |
237
|
|
|
|
|
|
|
"country": "JP", |
238
|
|
|
|
|
|
|
"default_currency": "jpy", |
239
|
|
|
|
|
|
|
"details_submitted": true, |
240
|
|
|
|
|
|
|
"email": "tech@example.com", |
241
|
|
|
|
|
|
|
"metadata": {}, |
242
|
|
|
|
|
|
|
"payouts_enabled": true, |
243
|
|
|
|
|
|
|
"settings": { |
244
|
|
|
|
|
|
|
"branding": { |
245
|
|
|
|
|
|
|
"icon": "file_fake123456789", |
246
|
|
|
|
|
|
|
"logo": null, |
247
|
|
|
|
|
|
|
"primary_color": "#0e77ca" |
248
|
|
|
|
|
|
|
}, |
249
|
|
|
|
|
|
|
"card_payments": { |
250
|
|
|
|
|
|
|
"decline_on": { |
251
|
|
|
|
|
|
|
"avs_failure": false, |
252
|
|
|
|
|
|
|
"cvc_failure": false |
253
|
|
|
|
|
|
|
}, |
254
|
|
|
|
|
|
|
"statement_descriptor_prefix": null |
255
|
|
|
|
|
|
|
}, |
256
|
|
|
|
|
|
|
"dashboard": { |
257
|
|
|
|
|
|
|
"display_name": "myshop-inc", |
258
|
|
|
|
|
|
|
"timezone": "Asia/Tokyo" |
259
|
|
|
|
|
|
|
}, |
260
|
|
|
|
|
|
|
"payments": { |
261
|
|
|
|
|
|
|
"statement_descriptor": "MYSHOP, INC", |
262
|
|
|
|
|
|
|
"statement_descriptor_kana": "ï¾ï½²ï½¼ï½®ï½¯ï¾ï¾ï½²ï¾ï½¸", |
263
|
|
|
|
|
|
|
"statement_descriptor_kanji": "ãã¤ã·ã§ããã¤ã³ã¯" |
264
|
|
|
|
|
|
|
}, |
265
|
|
|
|
|
|
|
"payouts": { |
266
|
|
|
|
|
|
|
"debit_negative_balances": true, |
267
|
|
|
|
|
|
|
"schedule": { |
268
|
|
|
|
|
|
|
"delay_days": 4, |
269
|
|
|
|
|
|
|
"interval": "weekly", |
270
|
|
|
|
|
|
|
"weekly_anchor": "thursday" |
271
|
|
|
|
|
|
|
}, |
272
|
|
|
|
|
|
|
"statement_descriptor": null |
273
|
|
|
|
|
|
|
} |
274
|
|
|
|
|
|
|
}, |
275
|
|
|
|
|
|
|
"type": "standard" |
276
|
|
|
|
|
|
|
} |
277
|
|
|
|
|
|
|
|
278
|
|
|
|
|
|
|
=head1 HISTORY |
279
|
|
|
|
|
|
|
|
280
|
|
|
|
|
|
|
=head2 v0.1 |
281
|
|
|
|
|
|
|
|
282
|
|
|
|
|
|
|
Initial version |
283
|
|
|
|
|
|
|
|
284
|
|
|
|
|
|
|
=head1 STRIPE HISTORY |
285
|
|
|
|
|
|
|
|
286
|
|
|
|
|
|
|
=head2 2019-12-24 |
287
|
|
|
|
|
|
|
|
288
|
|
|
|
|
|
|
Stripe added the B<executives_provided> property. |
289
|
|
|
|
|
|
|
|
290
|
|
|
|
|
|
|
=head1 AUTHOR |
291
|
|
|
|
|
|
|
|
292
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
293
|
|
|
|
|
|
|
|
294
|
|
|
|
|
|
|
=head1 SEE ALSO |
295
|
|
|
|
|
|
|
|
296
|
|
|
|
|
|
|
Stripe API documentation: |
297
|
|
|
|
|
|
|
|
298
|
|
|
|
|
|
|
L<https://stripe.com/docs/api/accounts/object> |
299
|
|
|
|
|
|
|
|
300
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
301
|
|
|
|
|
|
|
|
302
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
303
|
|
|
|
|
|
|
|
304
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
305
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
306
|
|
|
|
|
|
|
|
307
|
|
|
|
|
|
|
=cut |