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