line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/usr/local/src/perl/Net-API-Stripe/lib/Net/API/Stripe/Connect/Account/TosAcceptance.pm |
3
|
|
|
|
|
|
|
## Version v0.101.0 |
4
|
|
|
|
|
|
|
## Copyright(c) 2020 DEGUEST Pte. Ltd. |
5
|
|
|
|
|
|
|
## Author: Jacques Deguest <jack@deguest.jp> |
6
|
|
|
|
|
|
|
## Created 2019/11/02 |
7
|
|
|
|
|
|
|
## Modified 2020/11/28 |
8
|
|
|
|
|
|
|
## All rights reserved |
9
|
|
|
|
|
|
|
## |
10
|
|
|
|
|
|
|
## This program is free software; you can redistribute it and/or modify it |
11
|
|
|
|
|
|
|
## under the same terms as Perl itself. |
12
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
13
|
|
|
|
|
|
|
BEGIN |
14
|
|
|
|
|
|
|
{ |
15
|
|
|
|
|
|
|
use strict; |
16
|
2
|
|
|
2
|
|
24107280
|
use warnings; |
|
2
|
|
|
|
|
16
|
|
|
2
|
|
|
|
|
61
|
|
17
|
2
|
|
|
2
|
|
10
|
use parent qw( Net::API::Stripe::Generic ); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
60
|
|
18
|
2
|
|
|
2
|
|
11
|
use vars qw( $VERSION ); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
11
|
|
19
|
2
|
|
|
2
|
|
147
|
our( $VERSION ) = 'v0.101.0'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
116
|
|
20
|
2
|
|
|
2
|
|
38
|
}; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
use strict; |
23
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
40
|
|
24
|
2
|
|
|
2
|
|
10
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
270
|
|
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
1
|
|
|
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
0
|
0
|
|
|
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
0
|
1
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
0
|
1
|
|
|
33
|
|
|
|
|
|
|
=encoding utf8 |
34
|
0
|
|
|
0
|
1
|
|
|
35
|
|
|
|
|
|
|
=head1 NAME |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Net::API::Stripe::Connect::Account::TosAcceptance - An interface to Stripe API |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 SYNOPSIS |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
my $tos_ok = $stripe->account->tos_acceptance({ |
42
|
|
|
|
|
|
|
date => '2020-04-12', |
43
|
|
|
|
|
|
|
ip => '1.2.3.4', |
44
|
|
|
|
|
|
|
user_agent => 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.66 Safari/537.36', |
45
|
|
|
|
|
|
|
}); |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 VERSION |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
v0.101.0 |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 DESCRIPTION |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Details on the acceptance of the Stripe Services Agreement |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This is instantiated by method B<tos_acceptance> from module L<Net::API::Stripe::Connect::Account> |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head2 new( %ARG ) |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Creates a new L<Net::API::Stripe::Connect::Account::TosAcceptance> object. |
62
|
|
|
|
|
|
|
It may also take an hash like arguments, that also are method of the same name. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 METHODS |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head2 date timestamp |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
The Unix timestamp marking when the Stripe Services Agreement was accepted by the account representative |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head2 ip string |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
The IP address from which the Stripe Services Agreement was accepted by the account representative |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head2 service_agreement string |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
The user's service agreement type |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 user_agent string |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
The user agent of the browser from which the Stripe Services Agreement was accepted by the account representative |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 API SAMPLE |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
{ |
85
|
|
|
|
|
|
|
"id": "acct_fake123456789", |
86
|
|
|
|
|
|
|
"object": "account", |
87
|
|
|
|
|
|
|
"business_profile": { |
88
|
|
|
|
|
|
|
"mcc": null, |
89
|
|
|
|
|
|
|
"name": "MyShop, Inc", |
90
|
|
|
|
|
|
|
"product_description": "Great products shipping all over the world", |
91
|
|
|
|
|
|
|
"support_address": { |
92
|
|
|
|
|
|
|
"city": "Tokyo", |
93
|
|
|
|
|
|
|
"country": "JP", |
94
|
|
|
|
|
|
|
"line1": "1-2-3 Kudan-minami, Chiyoda-ku", |
95
|
|
|
|
|
|
|
"line2": "", |
96
|
|
|
|
|
|
|
"postal_code": "100-0012", |
97
|
|
|
|
|
|
|
"state": "" |
98
|
|
|
|
|
|
|
}, |
99
|
|
|
|
|
|
|
"support_email": "billing@example.com", |
100
|
|
|
|
|
|
|
"support_phone": "+81312345678", |
101
|
|
|
|
|
|
|
"support_url": "", |
102
|
|
|
|
|
|
|
"url": "https://www.example.com" |
103
|
|
|
|
|
|
|
}, |
104
|
|
|
|
|
|
|
"business_type": "company", |
105
|
|
|
|
|
|
|
"capabilities": { |
106
|
|
|
|
|
|
|
"card_payments": "active" |
107
|
|
|
|
|
|
|
}, |
108
|
|
|
|
|
|
|
"charges_enabled": true, |
109
|
|
|
|
|
|
|
"company": { |
110
|
|
|
|
|
|
|
"address_kana": { |
111
|
|
|
|
|
|
|
"city": "チヨダク", |
112
|
|
|
|
|
|
|
"country": "JP", |
113
|
|
|
|
|
|
|
"line1": "2-3", |
114
|
|
|
|
|
|
|
"line2": "ナシ", |
115
|
|
|
|
|
|
|
"postal_code": null, |
116
|
|
|
|
|
|
|
"state": null, |
117
|
|
|
|
|
|
|
"town": "クダンミナミ1" |
118
|
|
|
|
|
|
|
}, |
119
|
|
|
|
|
|
|
"address_kanji": { |
120
|
|
|
|
|
|
|
"city": "千代田区", |
121
|
|
|
|
|
|
|
"country": "JP", |
122
|
|
|
|
|
|
|
"line1": "", |
123
|
|
|
|
|
|
|
"line2": "", |
124
|
|
|
|
|
|
|
"postal_code": null, |
125
|
|
|
|
|
|
|
"state": null, |
126
|
|
|
|
|
|
|
"town": "九段南1-2-3" |
127
|
|
|
|
|
|
|
}, |
128
|
|
|
|
|
|
|
"directors_provided": false, |
129
|
|
|
|
|
|
|
"name": "MyShop, Inc", |
130
|
|
|
|
|
|
|
"name_kana": "カブシキカイシャマイショップインク", |
131
|
|
|
|
|
|
|
"name_kanji": "株式会社マイショップインク", |
132
|
|
|
|
|
|
|
"owners_provided": true, |
133
|
|
|
|
|
|
|
"phone": null, |
134
|
|
|
|
|
|
|
"tax_id_provided": true, |
135
|
|
|
|
|
|
|
"verification": { |
136
|
|
|
|
|
|
|
"document": { |
137
|
|
|
|
|
|
|
"back": null, |
138
|
|
|
|
|
|
|
"details": null, |
139
|
|
|
|
|
|
|
"details_code": null, |
140
|
|
|
|
|
|
|
"front": null |
141
|
|
|
|
|
|
|
} |
142
|
|
|
|
|
|
|
} |
143
|
|
|
|
|
|
|
}, |
144
|
|
|
|
|
|
|
"country": "JP", |
145
|
|
|
|
|
|
|
"created": 1484973659, |
146
|
|
|
|
|
|
|
"default_currency": "jpy", |
147
|
|
|
|
|
|
|
"details_submitted": true, |
148
|
|
|
|
|
|
|
"email": "tech@example.com", |
149
|
|
|
|
|
|
|
"external_accounts": { |
150
|
|
|
|
|
|
|
"object": "list", |
151
|
|
|
|
|
|
|
"data": [ |
152
|
|
|
|
|
|
|
{ |
153
|
|
|
|
|
|
|
"id": "ba_fake123456789", |
154
|
|
|
|
|
|
|
"object": "bank_account", |
155
|
|
|
|
|
|
|
"account": "acct_fake123456789", |
156
|
|
|
|
|
|
|
"account_holder_name": "カ)マイショップインク", |
157
|
|
|
|
|
|
|
"account_holder_type": null, |
158
|
|
|
|
|
|
|
"bank_name": "三井住友銀行", |
159
|
|
|
|
|
|
|
"country": "JP", |
160
|
|
|
|
|
|
|
"currency": "jpy", |
161
|
|
|
|
|
|
|
"default_for_currency": true, |
162
|
|
|
|
|
|
|
"fingerprint": "VkINqgzE0zu5x1xw", |
163
|
|
|
|
|
|
|
"last4": "2235", |
164
|
|
|
|
|
|
|
"metadata": {}, |
165
|
|
|
|
|
|
|
"routing_number": "0009218", |
166
|
|
|
|
|
|
|
"status": "new" |
167
|
|
|
|
|
|
|
} |
168
|
|
|
|
|
|
|
], |
169
|
|
|
|
|
|
|
"has_more": false, |
170
|
|
|
|
|
|
|
"url": "/v1/accounts/acct_fake123456789/external_accounts" |
171
|
|
|
|
|
|
|
}, |
172
|
|
|
|
|
|
|
"metadata": {}, |
173
|
|
|
|
|
|
|
"payouts_enabled": true, |
174
|
|
|
|
|
|
|
"requirements": { |
175
|
|
|
|
|
|
|
"current_deadline": null, |
176
|
|
|
|
|
|
|
"currently_due": [], |
177
|
|
|
|
|
|
|
"disabled_reason": null, |
178
|
|
|
|
|
|
|
"eventually_due": [], |
179
|
|
|
|
|
|
|
"past_due": [], |
180
|
|
|
|
|
|
|
"pending_verification": [] |
181
|
|
|
|
|
|
|
}, |
182
|
|
|
|
|
|
|
"settings": { |
183
|
|
|
|
|
|
|
"branding": { |
184
|
|
|
|
|
|
|
"icon": "file_fake123456789", |
185
|
|
|
|
|
|
|
"logo": null, |
186
|
|
|
|
|
|
|
"primary_color": "#0e77ca" |
187
|
|
|
|
|
|
|
}, |
188
|
|
|
|
|
|
|
"card_payments": { |
189
|
|
|
|
|
|
|
"decline_on": { |
190
|
|
|
|
|
|
|
"avs_failure": false, |
191
|
|
|
|
|
|
|
"cvc_failure": false |
192
|
|
|
|
|
|
|
}, |
193
|
|
|
|
|
|
|
"statement_descriptor_prefix": null |
194
|
|
|
|
|
|
|
}, |
195
|
|
|
|
|
|
|
"dashboard": { |
196
|
|
|
|
|
|
|
"display_name": "myshop-inc", |
197
|
|
|
|
|
|
|
"timezone": "Asia/Tokyo" |
198
|
|
|
|
|
|
|
}, |
199
|
|
|
|
|
|
|
"payments": { |
200
|
|
|
|
|
|
|
"statement_descriptor": "MYSHOP, IN", |
201
|
|
|
|
|
|
|
"statement_descriptor_kana": "マイショップインク", |
202
|
|
|
|
|
|
|
"statement_descriptor_kanji": "マイショップインク" |
203
|
|
|
|
|
|
|
}, |
204
|
|
|
|
|
|
|
"payouts": { |
205
|
|
|
|
|
|
|
"debit_negative_balances": true, |
206
|
|
|
|
|
|
|
"schedule": { |
207
|
|
|
|
|
|
|
"delay_days": 4, |
208
|
|
|
|
|
|
|
"interval": "weekly", |
209
|
|
|
|
|
|
|
"weekly_anchor": "thursday" |
210
|
|
|
|
|
|
|
}, |
211
|
|
|
|
|
|
|
"statement_descriptor": null |
212
|
|
|
|
|
|
|
} |
213
|
|
|
|
|
|
|
}, |
214
|
|
|
|
|
|
|
"tos_acceptance": { |
215
|
|
|
|
|
|
|
"date": 1484979187, |
216
|
|
|
|
|
|
|
"ip": "114.17.230.189", |
217
|
|
|
|
|
|
|
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36" |
218
|
|
|
|
|
|
|
}, |
219
|
|
|
|
|
|
|
"type": "custom" |
220
|
|
|
|
|
|
|
} |
221
|
|
|
|
|
|
|
|
222
|
|
|
|
|
|
|
=head1 HISTORY |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
=head2 v0.1 |
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
Initial version |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
=head1 AUTHOR |
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
231
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
=head1 SEE ALSO |
233
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
Stripe API documentation: |
235
|
|
|
|
|
|
|
|
236
|
|
|
|
|
|
|
L<https://stripe.com/docs/api/accounts/object> |
237
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
239
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
241
|
|
|
|
|
|
|
|
242
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
243
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
244
|
|
|
|
|
|
|
|
245
|
|
|
|
|
|
|
=cut |