File Coverage

lib/Net/API/Stripe/Connect/Account/TosAcceptance.pm
Criterion Covered Total %
statement 19 24 79.1
branch n/a
condition n/a
subroutine 7 12 58.3
pod 4 5 80.0
total 30 41 73.1


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