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