| 1 | ##---------------------------------------------------------------------------- | ||
| 2 | ## Stripe API - ~/lib/Net/API/Stripe/Connect/Account.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 | ## https://stripe.com/docs/api/account/object | ||
| 11 | package Net::API::Stripe::Connect::Account; | ||
| 12 | BEGIN | ||
| 13 | 2 | ▶ | { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 2 | ▶ | use parent qw( Net::API::Stripe::Generic ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 2 | ▶ | use vars qw( $VERSION ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 2 | our( $VERSION ) = 'v0.101.0'; | |
| 19 | }; | ||
| 20 | |||
| 21 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | |||
| 24 | 0 | ▶ | sub id { return( shift->_set_get_scalar( 'id', @_ ) ); } |
|
Subroutine
id: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 25 | |||
| 26 | 0 | ▶ | sub object { return( shift->_set_get_scalar( 'object', @_ ) ); } |
|
Subroutine
object: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 27 | |||
| 28 | ## Moved as of 2019-02-19 | ||
| 29 | # sub business_logo { return( shift->_set_get_scalar_or_object( 'business_logo', 'Net::API::Stripe::File', @_ ) ); } | ||
| 30 | # Thanks to Module::Generic _set_get_object feature, even if settings is not set this will not crash | ||
| 31 | |||
| 32 | 0 | ▶ | sub business_logo { return( shift->settings->branding->icon( @_ ) ); } |
|
Subroutine
business_logo: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 33 | |||
| 34 | ## Moved as of 2019-02-19 | ||
| 35 | ## sub business_logo_large { return( shift->_set_get_scalar( 'business_logo_large', @_ ) ); } | ||
| 36 | |||
| 37 | 0 | ▶ | sub business_logo_large { return( shift->settings->branding->logo( @_ ) ); } |
|
Subroutine
business_logo_large: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 38 | |||
| 39 | ## Moved as of 2019-02-19 | ||
| 40 | ## sub business_name { return( shift->_set_get_scalar( 'business_name', @_ ) ); } | ||
| 41 | |||
| 42 | 0 | ▶ | sub business_name { return( shift->business_profile->name( @_ ) ); } |
|
Subroutine
business_name: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 43 | |||
| 44 | ## Moved as of 2019-02-19 | ||
| 45 | ## sub business_primary_color { return( shift->_set_get_scalar( 'business_primary_color', @_ ) ); } | ||
| 46 | |||
| 47 | 0 | ▶ | sub business_primary_color { return( shift->settings->branding->primary_color( @_ ) ); } |
|
Subroutine
business_primary_color: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 48 | |||
| 49 | 0 | ▶ | sub business_profile { return( shift->_set_get_object( 'business_profile', 'Net::API::Stripe::Connect::Business::Profile', @_ ) ); } |
|
Subroutine
business_profile: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 50 | |||
| 51 | 0 | ▶ | sub business_type { return( shift->_set_get_scalar( 'business_type', @_ ) ); } |
|
Subroutine
business_type: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 52 | |||
| 53 | ## Moved as of 2019-02-19 | ||
| 54 | ## sub business_url { return( shift->_set_get_uri( 'business_url', @_ ) ); } | ||
| 55 | |||
| 56 | 0 | ▶ | sub business_url { return( shift->business_profile->url( @_ ) ); } |
|
Subroutine
business_url: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 57 | |||
| 58 | ## This is a fake module (Net::API::Stripe::Connect::Account::Capabilities), but will allow the user to call the property as method of that module | ||
| 59 | ## sub capabilities { return( shift->_set_get_hash_as_object( 'capabilities', 'Net::API::Stripe::Connect::Account::Capabilities', @_ ) ); } | ||
| 60 | |||
| 61 | 0 | ▶ | sub capabilities { return( shift->_set_get_class( 'capabilities', |
|
Subroutine
capabilities: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 62 | { | ||
| 63 | acss_debit_payments => { type => "scalar" }, | ||
| 64 | affirm_payments => { type => "scalar" }, | ||
| 65 | afterpay_clearpay_payments => { type => "scalar" }, | ||
| 66 | au_becs_debit_payments => { type => "scalar" }, | ||
| 67 | bacs_debit_payments => { type => "scalar" }, | ||
| 68 | bancontact_payments => { type => "scalar" }, | ||
| 69 | bank_transfer_payments => { type => "scalar" }, | ||
| 70 | blik_payments => { type => "scalar" }, | ||
| 71 | boleto_payments => { type => "scalar" }, | ||
| 72 | card_issuing => { type => "scalar" }, | ||
| 73 | card_payments => { type => "scalar" }, | ||
| 74 | cartes_bancaires_payments => { type => "scalar" }, | ||
| 75 | eps_payments => { type => "scalar" }, | ||
| 76 | fpx_payments => { type => "scalar" }, | ||
| 77 | giropay_payments => { type => "scalar" }, | ||
| 78 | grabpay_payments => { type => "scalar" }, | ||
| 79 | ideal_payments => { type => "scalar" }, | ||
| 80 | jcb_payments => { type => "scalar" }, | ||
| 81 | klarna_payments => { type => "scalar" }, | ||
| 82 | konbini_payments => { type => "scalar" }, | ||
| 83 | legacy_payments => { type => "scalar" }, | ||
| 84 | link_payments => { type => "scalar" }, | ||
| 85 | oxxo_payments => { type => "scalar" }, | ||
| 86 | p24_payments => { type => "scalar" }, | ||
| 87 | paynow_payments => { type => "scalar" }, | ||
| 88 | promptpay_payments => { type => "scalar" }, | ||
| 89 | sepa_debit_payments => { type => "scalar" }, | ||
| 90 | sofort_payments => { type => "scalar" }, | ||
| 91 | tax_reporting_us_1099_k => { type => "scalar" }, | ||
| 92 | tax_reporting_us_1099_misc => { type => "scalar" }, | ||
| 93 | transfers => { type => "scalar" }, | ||
| 94 | us_bank_account_ach_payments => { type => "scalar" }, | ||
| 95 | }, @_ ) ); } | ||
| 96 | |||
| 97 | 0 | ▶ | sub charges_enabled { return( shift->_set_get_boolean( 'charges_enabled', @_ ) ); } |
|
Subroutine
charges_enabled: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 98 | |||
| 99 | 0 | ▶ | sub company { return( shift->_set_get_object( 'company', 'Net::API::Stripe::Connect::Account::Company', @_ ) ); } |
|
Subroutine
company: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 100 | |||
| 101 | 0 | ▶ | sub controller { return( shift->_set_get_class( 'controller', |
|
Subroutine
controller: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 102 | { | ||
| 103 | is_controller => { type => "boolean" }, | ||
| 104 | type => { type => "scalar" }, | ||
| 105 | }, @_ ) ); } | ||
| 106 | |||
| 107 | 0 | ▶ | sub country { return( shift->_set_get_scalar( 'country', @_ ) ); } |
|
Subroutine
country: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 108 | |||
| 109 | 0 | ▶ | sub created { return( shift->_set_get_datetime( 'created', @_ ) ); } |
|
Subroutine
created: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 110 | |||
| 111 | ## Moved as of 2019-02-19 | ||
| 112 | # sub debit_negative_balances { return( shift->_set_get_scalar( 'debit_negative_balances', @_ ) ); } | ||
| 113 | |||
| 114 | 0 | ▶ | sub debit_negative_balances { return( shift->settings->payouts->debit_negative_balances( @_ ) ); } |
|
Subroutine
debit_negative_balances: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 115 | |||
| 116 | ## Moved as of 2019-02-19 | ||
| 117 | # sub decline_charge_on { return( shift->_set_get_object( 'decline_charge_on', 'Net::API::Stripe::Connect::Account::DeclineChargeOn', @_ ) ); } | ||
| 118 | |||
| 119 | 0 | ▶ | sub decline_charge_on { return( shift->settings->card_payments->decline_on( @_ ) ); } |
|
Subroutine
decline_charge_on: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 120 | |||
| 121 | 0 | ▶ | sub default_currency { return( shift->_set_get_scalar( 'default_currency', @_ ) ); } |
|
Subroutine
default_currency: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 122 | |||
| 123 | 0 | ▶ | sub details_submitted { return( shift->_set_get_boolean( 'details_submitted', @_ ) ); } |
|
Subroutine
details_submitted: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 124 | |||
| 125 | ## Moved as of 2019-02-19 | ||
| 126 | ## sub display_name { return( shift->_set_get_scalar( 'display_name', @_ ) ); } | ||
| 127 | |||
| 128 | 0 | ▶ | sub display_name { return( shift->settings->dashboard->display_name( @_ ) ); } |
|
Subroutine
display_name: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 129 | |||
| 130 | 0 | ▶ | sub email { return( shift->_set_get_scalar( 'email', @_ ) ); } |
|
Subroutine
email: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 131 | |||
| 132 | 0 | ▶ | sub external_accounts { return( shift->_set_get_object( 'external_accounts', 'Net::API::Stripe::Connect::Account::ExternalAccounts', @_ ) ); } |
|
Subroutine
external_accounts: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 133 | |||
| 134 | 0 | ▶ | sub future_requirements { return( shift->_set_get_object( 'future_requirements', 'Net::API::Stripe::Connect::Account::Requirements', @_ ) ); } |
|
Subroutine
future_requirements: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 135 | |||
| 136 | 0 | ▶ | sub individual { return( shift->_set_get_object( 'individual', 'Net::API::Stripe::Connect::Person', @_ ) ); } |
|
Subroutine
individual: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 137 | |||
| 138 | 0 | ▶ | sub legal_entity { return( shift->_set_get_object( 'legal_entity', 'Net::API::Stripe::Connect::Account::LegalEntity', @_ ) ); } |
|
Subroutine
legal_entity: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 139 | |||
| 140 | 0 | ▶ | sub metadata { return( shift->_set_get_hash( 'metadata', @_ ) ); } |
|
Subroutine
metadata: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 141 | |||
| 142 | 0 | ▶ | sub payout_schedule { return( shift->settings->payouts->schedule( @_ ) ); } |
|
Subroutine
payout_schedule: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 143 | |||
| 144 | ## Moved as of 2019-02-19 | ||
| 145 | ## sub payout_statement_descriptor { return( shift->_set_get_scalar( 'payout_statement_descriptor', @_ ) ); } | ||
| 146 | |||
| 147 | 0 | ▶ | sub payout_statement_descriptor { return( shift->settings->payouts->statement_descriptor( @_ ) ); } |
|
Subroutine
payout_statement_descriptor: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 148 | |||
| 149 | ## Moved as of 2019-02-19 | ||
| 150 | ## sub product_description { return( shift->_set_get_scalar( 'product_description', @_ ) ); } | ||
| 151 | |||
| 152 | 0 | ▶ | sub payouts_enabled { return( shift->_set_get_boolean( 'payouts_enabled', @_ ) ); } |
|
Subroutine
payouts_enabled: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 153 | |||
| 154 | ## Moved as of 2019-02-19 | ||
| 155 | ## sub payout_schedule { return( shift->_set_get_object( 'payout_schedule', 'Net::API::Stripe::Connect::Account::PaymentSchedule', @_ ) ); } | ||
| 156 | |||
| 157 | 0 | ▶ | sub product_description { return( shift->business_profile->product_description( @_ ) ); } |
|
Subroutine
product_description: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 158 | |||
| 159 | 0 | ▶ | sub requirements { return( shift->_set_get_object( 'requirements', 'Net::API::Stripe::Connect::Account::Requirements', @_ ) ); } |
|
Subroutine
requirements: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 160 | |||
| 161 | 0 | ▶ | sub settings { return( shift->_set_get_object( 'settings', 'Net::API::Stripe::Connect::Account::Settings', @_ ) ); } |
|
Subroutine
settings: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 162 | |||
| 163 | ## Moved as of 2019-02-19 | ||
| 164 | ## sub statement_descriptor { return( shift->_set_get_scalar( 'statement_descriptor', @_ ) ); } | ||
| 165 | |||
| 166 | 0 | ▶ | sub statement_descriptor { return( shift->settings->payments->statement_descriptor( @_ ) ); } |
|
Subroutine
statement_descriptor: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 167 | |||
| 168 | ## Moved as of 2019-02-19 | ||
| 169 | ## sub support_address { return( shift->_set_get_object( 'support_address', 'Net::API::Stripe::Address', @_ ) ); } | ||
| 170 | |||
| 171 | 0 | ▶ | sub support_address { return( shift->business_profile->support_address( @_ ) ); } |
|
Subroutine
support_address: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 172 | |||
| 173 | ## Moved as of 2019-02-19 | ||
| 174 | ## sub support_email { return( shift->_set_get_scalar( 'support_email', @_ ) ); } | ||
| 175 | |||
| 176 | 0 | ▶ | sub support_email { return( shift->business_profile->support_email( @_ ) ); } |
|
Subroutine
support_email: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 177 | |||
| 178 | ## Moved as of 2019-02-19 | ||
| 179 | ## sub support_phone { return( shift->_set_get_scalar( 'support_phone', @_ ) ); } | ||
| 180 | |||
| 181 | 0 | ▶ | sub support_phone { return( shift->business_profile->support_phone( @_ ) ); } |
|
Subroutine
support_phone: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 182 | |||
| 183 | ## Moved as of 2019-02-19 | ||
| 184 | ## sub support_url { return( shift->_set_get_uri( 'support_url', @_ ) ); } | ||
| 185 | |||
| 186 | 0 | ▶ | sub support_url { return( shift->business_profile->support_url( @_ ) ); } |
|
Subroutine
support_url: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 187 | |||
| 188 | ## Moved as of 2019-02-19 | ||
| 189 | ## sub timezone { return( shift->_set_get_scalar( 'timezone', @_ ) ); } | ||
| 190 | |||
| 191 | 0 | ▶ | sub timezone { return( shift->settings->dashboard->timezone( @_ ) ); } |
|
Subroutine
timezone: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 192 | |||
| 193 | 0 | ▶ | sub tos_acceptance { return( shift->_set_get_object( 'tos_acceptance', 'Net::API::Stripe::Connect::Account::TosAcceptance', @_ ) ); } |
|
Subroutine
tos_acceptance: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 194 | |||
| 195 | ## standard, express, or custom | ||
| 196 | |||
| 197 | 0 | ▶ | sub type { return( shift->_set_get_scalar( 'type', @_ ) ); } |
|
Subroutine
type: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 198 | |||
| 199 | ## Not used anymore as of 2019-02-19 | ||
| 200 | |||
| 201 | 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
| |||
| 202 | |||
| 203 | 2 | 1; | |
| 204 | |||
| 205 | __END__ | ||