| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | ##---------------------------------------------------------------------------- | 
| 2 |  |  |  |  |  |  | ## Stripe API - ~/lib/Net/API/Stripe/Connect/Account/Settings.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::Settings; | 
| 11 |  |  |  |  |  |  | BEGIN | 
| 12 |  |  |  |  |  |  | { | 
| 13 | 1 |  |  | 1 |  | 817 | use strict; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 28 |  | 
| 14 | 1 |  |  | 1 |  | 5 | use parent qw( Net::API::Stripe::Generic ); | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 4 |  | 
| 15 | 1 |  |  | 1 |  | 151 | our( $VERSION ) = 'v0.100.0'; | 
| 16 |  |  |  |  |  |  | }; | 
| 17 |  |  |  |  |  |  |  | 
| 18 | 0 |  |  | 0 | 1 |  | sub branding { return( shift->_set_get_object( 'branding', 'Net::API::Stripe::Connect::Account::Branding', @_ ) ); } | 
| 19 |  |  |  |  |  |  |  | 
| 20 | 0 |  |  | 0 | 1 |  | sub card_payments { return( shift->_set_get_object( 'card_payments', 'Net::API::Stripe::Connect::Account::Settings::CardPayments', @_ ) ); } | 
| 21 |  |  |  |  |  |  |  | 
| 22 | 0 |  |  | 0 | 1 |  | sub dashboard { return( shift->_set_get_object( 'dashboard', 'Net::API::Stripe::Connect::Account::Settings::Dashboard', @_ ) ); } | 
| 23 |  |  |  |  |  |  |  | 
| 24 | 0 |  |  | 0 | 1 |  | sub payments { return( shift->_set_get_object( 'payments', 'Net::API::Stripe::Connect::Account::Settings::Payments', @_ ) ); } | 
| 25 |  |  |  |  |  |  |  | 
| 26 | 0 |  |  | 0 | 1 |  | sub payouts { return( shift->_set_get_object( 'payouts', 'Net::API::Stripe::Connect::Account::Settings::Payouts', @_ ) ); } | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  | 1; | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  | __END__ | 
| 31 |  |  |  |  |  |  |  | 
| 32 |  |  |  |  |  |  | =encoding utf8 | 
| 33 |  |  |  |  |  |  |  | 
| 34 |  |  |  |  |  |  | =head1 NAME | 
| 35 |  |  |  |  |  |  |  | 
| 36 |  |  |  |  |  |  | Net::API::Stripe::Connect::Account::Settings - A Stripe Account Settings Object | 
| 37 |  |  |  |  |  |  |  | 
| 38 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 39 |  |  |  |  |  |  |  | 
| 40 |  |  |  |  |  |  | my $settings = $stripe->account->settings({ | 
| 41 |  |  |  |  |  |  | branding => $branding_object, | 
| 42 |  |  |  |  |  |  | card_payments => $card_payments_object, | 
| 43 |  |  |  |  |  |  | dashboard => $dashboard_object, | 
| 44 |  |  |  |  |  |  | payments => $payments_object, | 
| 45 |  |  |  |  |  |  | payouts => $payouts_object, | 
| 46 |  |  |  |  |  |  | }); | 
| 47 |  |  |  |  |  |  |  | 
| 48 |  |  |  |  |  |  | =head1 VERSION | 
| 49 |  |  |  |  |  |  |  | 
| 50 |  |  |  |  |  |  | v0.100.0 | 
| 51 |  |  |  |  |  |  |  | 
| 52 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 53 |  |  |  |  |  |  |  | 
| 54 |  |  |  |  |  |  | Options for customizing how the account functions within Stripe. | 
| 55 |  |  |  |  |  |  |  | 
| 56 |  |  |  |  |  |  | This is instantiated by method B<settings> from module L<Net::API::Stripe::Connect::Account> | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  | =head1 CONSTRUCTOR | 
| 59 |  |  |  |  |  |  |  | 
| 60 |  |  |  |  |  |  | =over 4 | 
| 61 |  |  |  |  |  |  |  | 
| 62 |  |  |  |  |  |  | =item B<new>( %ARG ) | 
| 63 |  |  |  |  |  |  |  | 
| 64 |  |  |  |  |  |  | Creates a new L<Net::API::Stripe::Connect::Account::Settings> object. | 
| 65 |  |  |  |  |  |  | It may also take an hash like arguments, that also are method of the same name. | 
| 66 |  |  |  |  |  |  |  | 
| 67 |  |  |  |  |  |  | =back | 
| 68 |  |  |  |  |  |  |  | 
| 69 |  |  |  |  |  |  | =head1 METHODS | 
| 70 |  |  |  |  |  |  |  | 
| 71 |  |  |  |  |  |  | =over 4 | 
| 72 |  |  |  |  |  |  |  | 
| 73 |  |  |  |  |  |  | =item B<branding> hash | 
| 74 |  |  |  |  |  |  |  | 
| 75 |  |  |  |  |  |  | Settings used to apply the accountâs branding to email receipts, invoices, Checkout, and other products. | 
| 76 |  |  |  |  |  |  |  | 
| 77 |  |  |  |  |  |  | This is a L<Net::API::Stripe::Connect::Account::Branding> object. | 
| 78 |  |  |  |  |  |  |  | 
| 79 |  |  |  |  |  |  | =item B<card_payments> hash | 
| 80 |  |  |  |  |  |  |  | 
| 81 |  |  |  |  |  |  | Settings specific to card charging on the account. | 
| 82 |  |  |  |  |  |  |  | 
| 83 |  |  |  |  |  |  | This is a L<Net::API::Stripe::Connect::Account::Settings::CardPayments> object. | 
| 84 |  |  |  |  |  |  |  | 
| 85 |  |  |  |  |  |  | =item B<dashboard> hash | 
| 86 |  |  |  |  |  |  |  | 
| 87 |  |  |  |  |  |  | Settings used to configure the account within the Stripe dashboard. | 
| 88 |  |  |  |  |  |  |  | 
| 89 |  |  |  |  |  |  | This is a L<Net::API::Stripe::Connect::Account::Settings::Dashboard> object. | 
| 90 |  |  |  |  |  |  |  | 
| 91 |  |  |  |  |  |  | =item B<payments> hash | 
| 92 |  |  |  |  |  |  |  | 
| 93 |  |  |  |  |  |  | Settings that apply across payment methods for charging on the account. | 
| 94 |  |  |  |  |  |  |  | 
| 95 |  |  |  |  |  |  | This is a L<Net::API::Stripe::Connect::Account::Settings::Payments> object. | 
| 96 |  |  |  |  |  |  |  | 
| 97 |  |  |  |  |  |  | =item B<payouts> hash | 
| 98 |  |  |  |  |  |  |  | 
| 99 |  |  |  |  |  |  | Settings specific to the accountâs payouts. This is a L<Net::API::Stripe::Connect::Account::Settings::Payouts> object. | 
| 100 |  |  |  |  |  |  |  | 
| 101 |  |  |  |  |  |  | =back | 
| 102 |  |  |  |  |  |  |  | 
| 103 |  |  |  |  |  |  | =head1 API SAMPLE | 
| 104 |  |  |  |  |  |  |  | 
| 105 |  |  |  |  |  |  | { | 
| 106 |  |  |  |  |  |  | "id": "acct_fake123456789", | 
| 107 |  |  |  |  |  |  | "object": "account", | 
| 108 |  |  |  |  |  |  | "business_profile": { | 
| 109 |  |  |  |  |  |  | "mcc": null, | 
| 110 |  |  |  |  |  |  | "name": "My Shop, Inc", | 
| 111 |  |  |  |  |  |  | "product_description": "Great products shipping all over the world", | 
| 112 |  |  |  |  |  |  | "support_address": { | 
| 113 |  |  |  |  |  |  | "city": "Tokyo", | 
| 114 |  |  |  |  |  |  | "country": "JP", | 
| 115 |  |  |  |  |  |  | "line1": "1-2-3 Kudan-minami, Chiyoda-ku", | 
| 116 |  |  |  |  |  |  | "line2": "", | 
| 117 |  |  |  |  |  |  | "postal_code": "100-0012", | 
| 118 |  |  |  |  |  |  | "state": "" | 
| 119 |  |  |  |  |  |  | }, | 
| 120 |  |  |  |  |  |  | "support_email": "billing@example.com", | 
| 121 |  |  |  |  |  |  | "support_phone": "+81312345678", | 
| 122 |  |  |  |  |  |  | "support_url": "", | 
| 123 |  |  |  |  |  |  | "url": "https://www.example.com" | 
| 124 |  |  |  |  |  |  | }, | 
| 125 |  |  |  |  |  |  | "business_type": "company", | 
| 126 |  |  |  |  |  |  | "capabilities": { | 
| 127 |  |  |  |  |  |  | "card_payments": "active" | 
| 128 |  |  |  |  |  |  | }, | 
| 129 |  |  |  |  |  |  | "charges_enabled": true, | 
| 130 |  |  |  |  |  |  | "country": "JP", | 
| 131 |  |  |  |  |  |  | "default_currency": "jpy", | 
| 132 |  |  |  |  |  |  | "details_submitted": true, | 
| 133 |  |  |  |  |  |  | "email": "tech@example.com", | 
| 134 |  |  |  |  |  |  | "metadata": {}, | 
| 135 |  |  |  |  |  |  | "payouts_enabled": true, | 
| 136 |  |  |  |  |  |  | "settings": { | 
| 137 |  |  |  |  |  |  | "branding": { | 
| 138 |  |  |  |  |  |  | "icon": "file_fake123456789", | 
| 139 |  |  |  |  |  |  | "logo": null, | 
| 140 |  |  |  |  |  |  | "primary_color": "#0e77ca" | 
| 141 |  |  |  |  |  |  | }, | 
| 142 |  |  |  |  |  |  | "card_payments": { | 
| 143 |  |  |  |  |  |  | "decline_on": { | 
| 144 |  |  |  |  |  |  | "avs_failure": false, | 
| 145 |  |  |  |  |  |  | "cvc_failure": false | 
| 146 |  |  |  |  |  |  | }, | 
| 147 |  |  |  |  |  |  | "statement_descriptor_prefix": null | 
| 148 |  |  |  |  |  |  | }, | 
| 149 |  |  |  |  |  |  | "dashboard": { | 
| 150 |  |  |  |  |  |  | "display_name": "myshop-inc", | 
| 151 |  |  |  |  |  |  | "timezone": "Asia/Tokyo" | 
| 152 |  |  |  |  |  |  | }, | 
| 153 |  |  |  |  |  |  | "payments": { | 
| 154 |  |  |  |  |  |  | "statement_descriptor": "MYSHOP, INC", | 
| 155 |  |  |  |  |  |  | "statement_descriptor_kana": "ï¾ï½²ï½¼ï½®ï½¯ï¾ï¾ï½²ï¾ï½¸", | 
| 156 |  |  |  |  |  |  | "statement_descriptor_kanji": "ãã¤ã·ã§ããã¤ã³ã¯" | 
| 157 |  |  |  |  |  |  | }, | 
| 158 |  |  |  |  |  |  | "payouts": { | 
| 159 |  |  |  |  |  |  | "debit_negative_balances": true, | 
| 160 |  |  |  |  |  |  | "schedule": { | 
| 161 |  |  |  |  |  |  | "delay_days": 4, | 
| 162 |  |  |  |  |  |  | "interval": "weekly", | 
| 163 |  |  |  |  |  |  | "weekly_anchor": "thursday" | 
| 164 |  |  |  |  |  |  | }, | 
| 165 |  |  |  |  |  |  | "statement_descriptor": null | 
| 166 |  |  |  |  |  |  | } | 
| 167 |  |  |  |  |  |  | }, | 
| 168 |  |  |  |  |  |  | "type": "standard" | 
| 169 |  |  |  |  |  |  | } | 
| 170 |  |  |  |  |  |  |  | 
| 171 |  |  |  |  |  |  | =head1 HISTORY | 
| 172 |  |  |  |  |  |  |  | 
| 173 |  |  |  |  |  |  | =head2 v0.1 | 
| 174 |  |  |  |  |  |  |  | 
| 175 |  |  |  |  |  |  | Initial version | 
| 176 |  |  |  |  |  |  |  | 
| 177 |  |  |  |  |  |  | =head1 AUTHOR | 
| 178 |  |  |  |  |  |  |  | 
| 179 |  |  |  |  |  |  | Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> | 
| 180 |  |  |  |  |  |  |  | 
| 181 |  |  |  |  |  |  | =head1 SEE ALSO | 
| 182 |  |  |  |  |  |  |  | 
| 183 |  |  |  |  |  |  | Stripe API documentation: | 
| 184 |  |  |  |  |  |  |  | 
| 185 |  |  |  |  |  |  | L<https://stripe.com/docs/api/accounts/object> | 
| 186 |  |  |  |  |  |  |  | 
| 187 |  |  |  |  |  |  | =head1 COPYRIGHT & LICENSE | 
| 188 |  |  |  |  |  |  |  | 
| 189 |  |  |  |  |  |  | Copyright (c) 2019-2020 DEGUEST Pte. Ltd. | 
| 190 |  |  |  |  |  |  |  | 
| 191 |  |  |  |  |  |  | You can use, copy, modify and redistribute this package and associated | 
| 192 |  |  |  |  |  |  | files under the same terms as Perl itself. | 
| 193 |  |  |  |  |  |  |  | 
| 194 |  |  |  |  |  |  | =cut |