line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Connect/Business/Profile.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::Business::Profile; |
11
|
|
|
|
|
|
|
BEGIN |
12
|
|
|
|
|
|
|
{ |
13
|
1
|
|
|
1
|
|
884
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
14
|
1
|
|
|
1
|
|
5
|
use parent qw( Net::API::Stripe::Generic ); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
15
|
1
|
|
|
1
|
|
204
|
our( $VERSION ) = 'v0.100.0'; |
16
|
|
|
|
|
|
|
}; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
1
|
|
sub mcc { return( shift->_set_get_scalar( 'mcc', @_ ) ); } |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
1
|
|
sub name { return( shift->_set_get_scalar( 'name', @_ ) ); } |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
1
|
|
sub product_description { return( shift->_set_get_scalar( 'product_description', @_ ) ); } |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
1
|
|
sub support_address { return( shift->_set_get_object( 'support_address', 'Net::API::Stripe::Address', @_ ) ); } |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
1
|
|
sub support_email { return( shift->_set_get_scalar( 'support_email', @_ ) ); } |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
0
|
1
|
|
sub support_phone { return( shift->_set_get_scalar( 'support_phone', @_ ) ); } |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
0
|
1
|
|
sub support_url { return( shift->_set_get_uri( 'support_url', @_ ) ); } |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
0
|
1
|
|
sub url { return( shift->_set_get_uri( 'url', @_ ) ); } |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=encoding utf8 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Net::API::Stripe::Connect::Business::Profile - A Stripe Account Business Profile Object |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 SYNOPSIS |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
my $profile = $stripe->account->business_profile({ |
47
|
|
|
|
|
|
|
name => 'Big Corp, Inc', |
48
|
|
|
|
|
|
|
product_description => 'Professional services', |
49
|
|
|
|
|
|
|
support_address => $address_object, |
50
|
|
|
|
|
|
|
support_email => 'john.doe@example.com', |
51
|
|
|
|
|
|
|
support_phone => '+81-(0)90-1234-5678', |
52
|
|
|
|
|
|
|
support_url => 'https://example.com/support', |
53
|
|
|
|
|
|
|
url => 'https://example.com', |
54
|
|
|
|
|
|
|
}); |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 VERSION |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
v0.100.0 |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 DESCRIPTION |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Optional information related to the business. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This is instantiated by method B<business_profile> from module L<Net::API::Stripe::Connect::Account> |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=over 4 |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=item B<new>( %ARG ) |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Creates a new L<Net::API::Stripe::Connect::Business::Profile> object. |
73
|
|
|
|
|
|
|
It may also take an hash like arguments, that also are method of the same name. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=back |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 METHODS |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=over 4 |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=item B<mcc> string |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
The merchant category code for the account. MCCs are used to classify businesses based on the goods or services they provide. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=item B<name> string |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
The customer-facing business name. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=item B<product_description> string |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
Internal-only description of the product sold or service provided by the business. Itâs used by Stripe for risk and underwriting purposes. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=item B<support_address> hash |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
A publicly available mailing address for sending support issues to. |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
This is a L<Net::API::Stripe::Address> object. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=item B<support_email> string |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
A publicly available email address for sending support issues to. |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=item B<support_phone> string |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
A publicly available phone number to call with support issues. |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=item B<support_url> string |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
A publicly available website for handling support issues. |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
This is a C<URI> object. |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=item B<url> string |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
The businessâs publicly available website. |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
This is a C<URI> object. |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=back |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=head1 API SAMPLE |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
{ |
124
|
|
|
|
|
|
|
"id": "acct_fake123456789", |
125
|
|
|
|
|
|
|
"object": "account", |
126
|
|
|
|
|
|
|
"business_profile": { |
127
|
|
|
|
|
|
|
"mcc": null, |
128
|
|
|
|
|
|
|
"name": "MyShop, Inc", |
129
|
|
|
|
|
|
|
"product_description": "Great products shipping all over the world", |
130
|
|
|
|
|
|
|
"support_address": { |
131
|
|
|
|
|
|
|
"city": "Tokyo", |
132
|
|
|
|
|
|
|
"country": "JP", |
133
|
|
|
|
|
|
|
"line1": "1-2-3 Kudan-minami, Chiyoda-ku", |
134
|
|
|
|
|
|
|
"line2": "", |
135
|
|
|
|
|
|
|
"postal_code": "100-0012", |
136
|
|
|
|
|
|
|
"state": "" |
137
|
|
|
|
|
|
|
}, |
138
|
|
|
|
|
|
|
"support_email": "billing@example.com", |
139
|
|
|
|
|
|
|
"support_phone": "+81312345678", |
140
|
|
|
|
|
|
|
"support_url": "", |
141
|
|
|
|
|
|
|
"url": "https://www.example.com" |
142
|
|
|
|
|
|
|
}, |
143
|
|
|
|
|
|
|
"business_type": "company", |
144
|
|
|
|
|
|
|
"capabilities": { |
145
|
|
|
|
|
|
|
"card_payments": "active" |
146
|
|
|
|
|
|
|
}, |
147
|
|
|
|
|
|
|
"charges_enabled": true, |
148
|
|
|
|
|
|
|
"company": { |
149
|
|
|
|
|
|
|
"address_kana": { |
150
|
|
|
|
|
|
|
"city": "ï¾ï¾ï¾ï¾ï½¸", |
151
|
|
|
|
|
|
|
"country": "JP", |
152
|
|
|
|
|
|
|
"line1": "2-3", |
153
|
|
|
|
|
|
|
"line2": "ï¾
ï½¼", |
154
|
|
|
|
|
|
|
"postal_code": null, |
155
|
|
|
|
|
|
|
"state": null, |
156
|
|
|
|
|
|
|
"town": "クï¾ï¾ï¾ï¾ï¾
ï¾1" |
157
|
|
|
|
|
|
|
}, |
158
|
|
|
|
|
|
|
"address_kanji": { |
159
|
|
|
|
|
|
|
"city": "å代ç°åº", |
160
|
|
|
|
|
|
|
"country": "JP", |
161
|
|
|
|
|
|
|
"line1": "", |
162
|
|
|
|
|
|
|
"line2": "", |
163
|
|
|
|
|
|
|
"postal_code": null, |
164
|
|
|
|
|
|
|
"state": null, |
165
|
|
|
|
|
|
|
"town": "ä¹æ®µå1-2-3" |
166
|
|
|
|
|
|
|
}, |
167
|
|
|
|
|
|
|
"directors_provided": false, |
168
|
|
|
|
|
|
|
"name": "MyShop, Inc", |
169
|
|
|
|
|
|
|
"name_kana": "カï¾ï¾ï½¼ï½·ï½¶ï½²ï½¼ï½¬ï¾ï½²ï½¼ï½®ï½¯ï¾ï¾ï½²ï¾ï½¸", |
170
|
|
|
|
|
|
|
"name_kanji": "æ ªå¼ä¼ç¤¾ãã¤ã·ã§ããã¤ã³ã¯", |
171
|
|
|
|
|
|
|
"owners_provided": true, |
172
|
|
|
|
|
|
|
"phone": null, |
173
|
|
|
|
|
|
|
"tax_id_provided": true, |
174
|
|
|
|
|
|
|
"verification": { |
175
|
|
|
|
|
|
|
"document": { |
176
|
|
|
|
|
|
|
"back": null, |
177
|
|
|
|
|
|
|
"details": null, |
178
|
|
|
|
|
|
|
"details_code": null, |
179
|
|
|
|
|
|
|
"front": null |
180
|
|
|
|
|
|
|
} |
181
|
|
|
|
|
|
|
} |
182
|
|
|
|
|
|
|
}, |
183
|
|
|
|
|
|
|
"country": "JP", |
184
|
|
|
|
|
|
|
"created": 1484973659, |
185
|
|
|
|
|
|
|
"default_currency": "jpy", |
186
|
|
|
|
|
|
|
"details_submitted": true, |
187
|
|
|
|
|
|
|
"email": "tech@example.com", |
188
|
|
|
|
|
|
|
"external_accounts": { |
189
|
|
|
|
|
|
|
"object": "list", |
190
|
|
|
|
|
|
|
"data": [ |
191
|
|
|
|
|
|
|
{ |
192
|
|
|
|
|
|
|
"id": "ba_fake123456789", |
193
|
|
|
|
|
|
|
"object": "bank_account", |
194
|
|
|
|
|
|
|
"account": "acct_fake123456789", |
195
|
|
|
|
|
|
|
"account_holder_name": "ã«ï¼ãã¤ã·ã§ããã¤ã³ã¯", |
196
|
|
|
|
|
|
|
"account_holder_type": null, |
197
|
|
|
|
|
|
|
"bank_name": "ä¸äºä½åéè¡", |
198
|
|
|
|
|
|
|
"country": "JP", |
199
|
|
|
|
|
|
|
"currency": "jpy", |
200
|
|
|
|
|
|
|
"default_for_currency": true, |
201
|
|
|
|
|
|
|
"fingerprint": "VkINqgzE0zu5x1xw", |
202
|
|
|
|
|
|
|
"last4": "2235", |
203
|
|
|
|
|
|
|
"metadata": {}, |
204
|
|
|
|
|
|
|
"routing_number": "0009218", |
205
|
|
|
|
|
|
|
"status": "new" |
206
|
|
|
|
|
|
|
} |
207
|
|
|
|
|
|
|
], |
208
|
|
|
|
|
|
|
"has_more": false, |
209
|
|
|
|
|
|
|
"url": "/v1/accounts/acct_fake123456789/external_accounts" |
210
|
|
|
|
|
|
|
}, |
211
|
|
|
|
|
|
|
"metadata": {}, |
212
|
|
|
|
|
|
|
"payouts_enabled": true, |
213
|
|
|
|
|
|
|
"requirements": { |
214
|
|
|
|
|
|
|
"current_deadline": null, |
215
|
|
|
|
|
|
|
"currently_due": [], |
216
|
|
|
|
|
|
|
"disabled_reason": null, |
217
|
|
|
|
|
|
|
"eventually_due": [], |
218
|
|
|
|
|
|
|
"past_due": [], |
219
|
|
|
|
|
|
|
"pending_verification": [] |
220
|
|
|
|
|
|
|
}, |
221
|
|
|
|
|
|
|
"settings": { |
222
|
|
|
|
|
|
|
"branding": { |
223
|
|
|
|
|
|
|
"icon": "file_fake123456789", |
224
|
|
|
|
|
|
|
"logo": null, |
225
|
|
|
|
|
|
|
"primary_color": "#0e77ca" |
226
|
|
|
|
|
|
|
}, |
227
|
|
|
|
|
|
|
"card_payments": { |
228
|
|
|
|
|
|
|
"decline_on": { |
229
|
|
|
|
|
|
|
"avs_failure": false, |
230
|
|
|
|
|
|
|
"cvc_failure": false |
231
|
|
|
|
|
|
|
}, |
232
|
|
|
|
|
|
|
"statement_descriptor_prefix": null |
233
|
|
|
|
|
|
|
}, |
234
|
|
|
|
|
|
|
"dashboard": { |
235
|
|
|
|
|
|
|
"display_name": "myshop-inc", |
236
|
|
|
|
|
|
|
"timezone": "Asia/Tokyo" |
237
|
|
|
|
|
|
|
}, |
238
|
|
|
|
|
|
|
"payments": { |
239
|
|
|
|
|
|
|
"statement_descriptor": "MYSHOP, IN", |
240
|
|
|
|
|
|
|
"statement_descriptor_kana": "ï¾ï½²ï½¼ï½®ï½¯ï¾ï¾ï½²ï¾ï½¸", |
241
|
|
|
|
|
|
|
"statement_descriptor_kanji": "ãã¤ã·ã§ããã¤ã³ã¯" |
242
|
|
|
|
|
|
|
}, |
243
|
|
|
|
|
|
|
"payouts": { |
244
|
|
|
|
|
|
|
"debit_negative_balances": true, |
245
|
|
|
|
|
|
|
"schedule": { |
246
|
|
|
|
|
|
|
"delay_days": 4, |
247
|
|
|
|
|
|
|
"interval": "weekly", |
248
|
|
|
|
|
|
|
"weekly_anchor": "thursday" |
249
|
|
|
|
|
|
|
}, |
250
|
|
|
|
|
|
|
"statement_descriptor": null |
251
|
|
|
|
|
|
|
} |
252
|
|
|
|
|
|
|
}, |
253
|
|
|
|
|
|
|
"tos_acceptance": { |
254
|
|
|
|
|
|
|
"date": 1484979187, |
255
|
|
|
|
|
|
|
"ip": "114.17.230.189", |
256
|
|
|
|
|
|
|
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36" |
257
|
|
|
|
|
|
|
}, |
258
|
|
|
|
|
|
|
"type": "custom" |
259
|
|
|
|
|
|
|
} |
260
|
|
|
|
|
|
|
|
261
|
|
|
|
|
|
|
=head1 HISTORY |
262
|
|
|
|
|
|
|
|
263
|
|
|
|
|
|
|
=head2 v0.1 |
264
|
|
|
|
|
|
|
|
265
|
|
|
|
|
|
|
Initial version |
266
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
=head1 AUTHOR |
268
|
|
|
|
|
|
|
|
269
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
270
|
|
|
|
|
|
|
|
271
|
|
|
|
|
|
|
=head1 SEE ALSO |
272
|
|
|
|
|
|
|
|
273
|
|
|
|
|
|
|
Stripe API documentation: |
274
|
|
|
|
|
|
|
|
275
|
|
|
|
|
|
|
L<https://stripe.com/docs/api/accounts/object> |
276
|
|
|
|
|
|
|
|
277
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
278
|
|
|
|
|
|
|
|
279
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
280
|
|
|
|
|
|
|
|
281
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
282
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
283
|
|
|
|
|
|
|
|
284
|
|
|
|
|
|
|
=cut |