Stripe/Connect/Account/TosAcceptance.pm

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