File Coverage

lib/Net/API/Stripe/Connect/Business/Profile.pm
Criterion Covered Total %
statement 19 27 70.3
branch n/a
condition n/a
subroutine 7 15 46.6
pod 8 8 100.0
total 34 50 68.0


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