File Coverage

lib/Net/API/Stripe/Connect/Account/Settings.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 - ~/usr/local/src/perl/Net-API-Stripe/lib/Net/API/Stripe/Connect/Account/Settings.pm
3             ## Version v0.102.0
4             ## Copyright(c) 2020 DEGUEST Pte. Ltd.
5             ## Author: Jacques Deguest <jack@deguest.jp>
6             ## Created 2019/11/02
7             ## Modified 2022/10/29
8             ## All rights reserved
9             ##
10             ## This program is free software; you can redistribute it and/or modify it
11             ## under the same terms as Perl itself.
12             ##----------------------------------------------------------------------------
13             package Net::API::Stripe::Connect::Account::Settings;
14             BEGIN
15             {
16 2     2   21216598 use strict;
  2         15  
  2         61  
17 2     2   11 use warnings;
  2         3  
  2         55  
18 2     2   10 use parent qw( Net::API::Stripe::Generic );
  2         6  
  2         9  
19 2     2   136 use vars qw( $VERSION );
  2         4  
  2         115  
20 2     2   42 our( $VERSION ) = 'v0.102.0';
21             };
22              
23 2     2   10 use strict;
  2         5  
  2         40  
24 2     2   9 use warnings;
  2         3  
  2         401  
25              
26 0     0 1   sub bacs_debit_payments { return( shift->_set_get_object( 'bacs_debit_payments', 'Net::API::Stripe::Connect::Account', @_ ) ); }
27              
28 0     0 1   sub branding { return( shift->_set_get_object( 'branding', 'Net::API::Stripe::Connect::Account::Branding', @_ ) ); }
29              
30 0     0 1   sub card_issuing { return( shift->_set_get_object( 'card_issuing', 'Net::API::Stripe::Connect::Account', @_ ) ); }
31              
32 0     0 1   sub card_payments { return( shift->_set_get_object( 'card_payments', 'Net::API::Stripe::Connect::Account::Settings::CardPayments', @_ ) ); }
33              
34 0     0 1   sub dashboard { return( shift->_set_get_object( 'dashboard', 'Net::API::Stripe::Connect::Account::Settings::Dashboard', @_ ) ); }
35              
36 0     0 1   sub payments { return( shift->_set_get_object( 'payments', 'Net::API::Stripe::Connect::Account::Settings::Payments', @_ ) ); }
37              
38 0     0 1   sub payouts { return( shift->_set_get_object( 'payouts', 'Net::API::Stripe::Connect::Account::Settings::Payouts', @_ ) ); }
39              
40 0     0 1   sub sepa_debit_payments { return( shift->_set_get_class( 'sepa_debit_payments',
41             { creditor_id => { type => "scalar" } }, @_ ) ); }
42              
43             1;
44              
45             __END__
46              
47             =encoding utf8
48              
49             =head1 NAME
50              
51             Net::API::Stripe::Connect::Account::Settings - A Stripe Account Settings Object
52              
53             =head1 SYNOPSIS
54              
55             my $settings = $stripe->account->settings({
56             branding => $branding_object,
57             card_payments => $card_payments_object,
58             dashboard => $dashboard_object,
59             payments => $payments_object,
60             payouts => $payouts_object,
61             });
62              
63             =head1 VERSION
64              
65             v0.102.0
66              
67             =head1 DESCRIPTION
68              
69             Options for customizing how the account functions within Stripe.
70              
71             This is instantiated by method B<settings> from module L<Net::API::Stripe::Connect::Account>
72              
73             =head1 CONSTRUCTOR
74              
75             =head2 new( %ARG )
76              
77             Creates a new L<Net::API::Stripe::Connect::Account::Settings> object.
78             It may also take an hash like arguments, that also are method of the same name.
79              
80             =head1 METHODS
81              
82             =head2 bacs_debit_payments object
83              
84             Settings specific to Bacs Direct Debit on the account.
85              
86             This is a L<Net::API::Stripe::Connect::Account> object.
87              
88             =head2 branding hash
89              
90             Settings used to apply the account’s branding to email receipts, invoices, Checkout, and other products.
91              
92             This is a L<Net::API::Stripe::Connect::Account::Branding> object.
93              
94             =head2 card_issuing object
95              
96             Settings specific to the account's use of the Card Issuing product.
97              
98             This is a L<Net::API::Stripe::Connect::Account> object.
99              
100             =head2 card_payments hash
101              
102             Settings specific to card charging on the account.
103              
104             This is a L<Net::API::Stripe::Connect::Account::Settings::CardPayments> object.
105              
106             =head2 dashboard hash
107              
108             Settings used to configure the account within the Stripe dashboard.
109              
110             This is a L<Net::API::Stripe::Connect::Account::Settings::Dashboard> object.
111              
112             =head2 payments hash
113              
114             Settings that apply across payment methods for charging on the account.
115              
116             This is a L<Net::API::Stripe::Connect::Account::Settings::Payments> object.
117              
118             =head2 payouts hash
119              
120             Settings specific to the account’s payouts. This is a L<Net::API::Stripe::Connect::Account::Settings::Payouts> object.
121              
122             =head2 sepa_debit_payments hash
123              
124             Settings specific to SEPA Direct Debit on the account.
125              
126             It has the following properties:
127              
128             =over 4
129              
130             =item C<creditor_id> string
131              
132             SEPA creditor identifier that identifies the company making the payment.
133              
134             =back
135              
136             =head1 API SAMPLE
137              
138             {
139             "id": "acct_fake123456789",
140             "object": "account",
141             "business_profile": {
142             "mcc": null,
143             "name": "My Shop, Inc",
144             "product_description": "Great products shipping all over the world",
145             "support_address": {
146             "city": "Tokyo",
147             "country": "JP",
148             "line1": "1-2-3 Kudan-minami, Chiyoda-ku",
149             "line2": "",
150             "postal_code": "100-0012",
151             "state": ""
152             },
153             "support_email": "billing@example.com",
154             "support_phone": "+81312345678",
155             "support_url": "",
156             "url": "https://www.example.com"
157             },
158             "business_type": "company",
159             "capabilities": {
160             "card_payments": "active"
161             },
162             "charges_enabled": true,
163             "country": "JP",
164             "default_currency": "jpy",
165             "details_submitted": true,
166             "email": "tech@example.com",
167             "metadata": {},
168             "payouts_enabled": true,
169             "settings": {
170             "branding": {
171             "icon": "file_fake123456789",
172             "logo": null,
173             "primary_color": "#0e77ca"
174             },
175             "card_payments": {
176             "decline_on": {
177             "avs_failure": false,
178             "cvc_failure": false
179             },
180             "statement_descriptor_prefix": null
181             },
182             "dashboard": {
183             "display_name": "myshop-inc",
184             "timezone": "Asia/Tokyo"
185             },
186             "payments": {
187             "statement_descriptor": "MYSHOP, INC",
188             "statement_descriptor_kana": "マイショップインク",
189             "statement_descriptor_kanji": "マイショップインク"
190             },
191             "payouts": {
192             "debit_negative_balances": true,
193             "schedule": {
194             "delay_days": 4,
195             "interval": "weekly",
196             "weekly_anchor": "thursday"
197             },
198             "statement_descriptor": null
199             }
200             },
201             "type": "standard"
202             }
203              
204             =head1 HISTORY
205              
206             =head2 v0.1
207              
208             Initial version
209              
210             =head1 AUTHOR
211              
212             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
213              
214             =head1 SEE ALSO
215              
216             Stripe API documentation:
217              
218             L<https://stripe.com/docs/api/accounts/object>
219              
220             =head1 COPYRIGHT & LICENSE
221              
222             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
223              
224             You can use, copy, modify and redistribute this package and associated
225             files under the same terms as Perl itself.
226              
227             =cut