File Coverage

lib/Net/API/Stripe/Connect/Account/Company.pm
Criterion Covered Total %
statement 19 37 51.3
branch n/a
condition n/a
subroutine 7 25 28.0
pod 18 18 100.0
total 44 80 55.0


line stmt bran cond sub pod time code
1             ##----------------------------------------------------------------------------
2             ## Stripe API - ~/lib/Net/API/Stripe/Connect/Account/Company.pm
3             ## Version v0.101.0
4             ## Copyright(c) 2019 DEGUEST Pte. Ltd.
5             ## Author: Jacques Deguest <jack@deguest.jp>
6             ## Created 2019/11/02
7             ## Modified 2022/10/29
8             ##
9             ##----------------------------------------------------------------------------
10             BEGIN
11             {
12             use strict;
13 2     2   23870026 use warnings;
  2         14  
  2         65  
14 2     2   11 use parent qw( Net::API::Stripe::Generic );
  2         4  
  2         56  
15 2     2   12 use vars qw( $VERSION );
  2         4  
  2         10  
16 2     2   138 our( $VERSION ) = 'v0.101.0';
  2         6  
  2         117  
17 2     2   40 };
18              
19             use strict;
20 2     2   15 use warnings;
  2         4  
  2         43  
21 2     2   12  
  2         5  
  2         782  
22              
23 0     0 1    
24              
25 0     0 1    
26              
27 0     0 1    
28              
29 0     0 1    
30              
31 0     0 1    
32              
33 0     0 1    
34              
35 0     0 1    
36              
37 0     0 1    
38              
39 0     0 1    
40             1;
41 0     0 1    
42              
43 0     0 1   =encoding utf8
44              
45 0     0 1   =head1 NAME
46              
47 0     0 1   Net::API::Stripe::Connect::Account::Company - A Stripe Company Object
48              
49 0     0 1   =head1 SYNOPSIS
50              
51 0     0 1   my $cie = $stripe->account->company({
52             address => $stripe->address({
53 0     0 1   line1 => '1-2-3 Kudan-Minami, Chiyoda-ku',
54             line2 => 'Big Bldg 12F',
55 0     0 1   city => 'Tokyo',
56             postal_code => '123-4567',
57 0     0 1   country => 'jp',
58             }),
59             address_kana => $stripe->address({
60             line1 => 'ちよだくくだんみなみ1-2-3',
61             line2 => 'だいびる12かい',
62             city => 'とうきょうと',
63             postal_code => '123-4567',
64             country => 'jp',
65             }),
66             address_kanji => $stripe->address({
67             line1 => '千代田区九段南1-2-3',
68             line2 => '大ビル12階',
69             city => '東京都',
70             postal_code => '123-4567',
71             country => 'jp',
72             }),
73             name => 'Yamato Nadehiko, Inc',
74             name_kana => 'やまとなでひこかぶしきがいしゃ',
75             name_kanji => '大和撫子株式会社',
76             phone => '+81-(0)3-1234-5678',
77             structure => 'private_corporation',
78             });
79              
80             =head1 VERSION
81              
82             v0.101.0
83              
84             =head1 DESCRIPTION
85              
86             Settings used to apply the account’s branding to email receipts, invoices, Checkout, and other products.
87              
88             This is called from method B<company> in modules L<Net::API::Stripe::Connect::Account> and L<Net::API::Stripe::Issuing::Card::Holder>
89              
90             =head1 CONSTRUCTOR
91              
92             =head2 new( %ARG )
93              
94             Creates a new L<Net::API::Stripe::Connect::Account::Company> object.
95             It may also take an hash like arguments, that also are method of the same name.
96              
97             =head1 METHODS
98              
99             =head2 additional string_array
100              
101             Additional fields which are only required for some users.
102              
103             =head2 address hash
104              
105             The company’s primary address.
106              
107             This is a L<Net::API::Stripe::Address> object.
108              
109             =head2 address_kana hash
110              
111             The Kana variation of the company’s primary address (Japan only).
112              
113             This is a L<Net::API::Stripe::Address> object.
114              
115             =head2 address_kanji hash
116              
117             The Kanji variation of the company’s primary address (Japan only).
118              
119             This is a L<Net::API::Stripe::Address> object.
120              
121             =head2 directors_provided boolean
122              
123             Whether the company’s directors have been provided. This Boolean will be true if you’ve manually indicated that all directors are provided via the directors_provided parameter.
124              
125             =head2 executives_provided boolean
126              
127             Whether the company’s executives have been provided. This Boolean will be true if you’ve manually indicated that all executives are provided via the executives_provided parameter, or if Stripe determined that sufficient executives were provided.
128              
129             =head2 minimum string_array
130              
131             Fields which every account must eventually provide.
132              
133             =head2 name string
134              
135             The company’s legal name.
136              
137             =head2 name_kana string
138              
139             The Kana variation of the company’s legal name (Japan only).
140              
141             =head2 name_kanji string
142              
143             The Kanji variation of the company’s legal name (Japan only).
144              
145             =head2 owners_provided boolean
146              
147             Whether the company’s owners have been provided. This Boolean will be true if you’ve manually indicated that all owners are provided via the owners_provided parameter, or if Stripe determined that all owners were provided. Stripe determines ownership requirements using both the number of owners provided and their total percent ownership (calculated by adding the percent_ownership of each owner together).
148              
149             =head2 ownership_declaration object
150              
151             This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
152              
153             This is a L<Net::API::Stripe::Connect::Account::TosAcceptance> object.
154              
155             =head2 phone string
156              
157             The company’s phone number (used for verification).
158              
159             =head2 structure string
160              
161             The category identifying the legal structure of the company or legal entity. See Business structure for more details (L<https://stripe.com/docs/connect/identity-verification#business-structure>).
162              
163             Possible enum values
164              
165             =over 4
166              
167             =item government_instrumentality
168              
169             =item governmental_unit
170              
171             =item incorporated_non_profit
172              
173             =item multi_member_llc
174              
175             =item private_corporation
176              
177             =item private_partnership
178              
179             =item public_corporation
180              
181             =item public_partnership
182              
183             =item tax_exempt_government_instrumentality
184              
185             =item unincorporated_association
186              
187             =item unincorporated_non_profit
188              
189             =back
190              
191             =head2 tax_id_provided boolean
192              
193             Whether the company’s business ID number was provided.
194              
195             =head2 tax_id_registrar string
196              
197             The jurisdiction in which the tax_id is registered (Germany-based companies only).
198              
199             =head2 vat_id_provided boolean
200              
201             Whether the company’s business VAT number was provided.
202              
203             =head2 verification hash
204              
205             Information on the verification state of the company. This is a L<Net::API::Stripe::Connect::Account::Verification> object.
206              
207             =head1 API SAMPLE
208              
209             {
210             "id": "acct_fake123456789",
211             "object": "account",
212             "business_profile": {
213             "mcc": null,
214             "name": "My Shop, Inc",
215             "product_description": "Great products shipping all over the world",
216             "support_address": {
217             "city": "Tokyo",
218             "country": "JP",
219             "line1": "1-2-3 Kudan-minami, Chiyoda-ku",
220             "line2": "",
221             "postal_code": "100-0012",
222             "state": ""
223             },
224             "support_email": "billing@example.com",
225             "support_phone": "+81312345678",
226             "support_url": "",
227             "url": "https://www.example.com"
228             },
229             "business_type": "company",
230             "capabilities": {
231             "card_payments": "active"
232             },
233             "charges_enabled": true,
234             "country": "JP",
235             "default_currency": "jpy",
236             "details_submitted": true,
237             "email": "tech@example.com",
238             "metadata": {},
239             "payouts_enabled": true,
240             "settings": {
241             "branding": {
242             "icon": "file_fake123456789",
243             "logo": null,
244             "primary_color": "#0e77ca"
245             },
246             "card_payments": {
247             "decline_on": {
248             "avs_failure": false,
249             "cvc_failure": false
250             },
251             "statement_descriptor_prefix": null
252             },
253             "dashboard": {
254             "display_name": "myshop-inc",
255             "timezone": "Asia/Tokyo"
256             },
257             "payments": {
258             "statement_descriptor": "MYSHOP, INC",
259             "statement_descriptor_kana": "マイショップインク",
260             "statement_descriptor_kanji": "マイショップインク"
261             },
262             "payouts": {
263             "debit_negative_balances": true,
264             "schedule": {
265             "delay_days": 4,
266             "interval": "weekly",
267             "weekly_anchor": "thursday"
268             },
269             "statement_descriptor": null
270             }
271             },
272             "type": "standard"
273             }
274              
275             =head1 HISTORY
276              
277             =head2 v0.1
278              
279             Initial version
280              
281             =head1 STRIPE HISTORY
282              
283             =head2 2019-12-24
284              
285             Stripe added the B<executives_provided> property.
286              
287             =head1 AUTHOR
288              
289             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
290              
291             =head1 SEE ALSO
292              
293             Stripe API documentation:
294              
295             L<https://stripe.com/docs/api/accounts/object>
296              
297             =head1 COPYRIGHT & LICENSE
298              
299             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
300              
301             You can use, copy, modify and redistribute this package and associated
302             files under the same terms as Perl itself.
303              
304             =cut