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