Stripe/Connect/Account/Settings/Payments.pm

filter: Statementstmt 72.7% 8 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod 100% 3 / 3 totaltotal 70.0% 14 / 20 CC 1 SCAR 4.1
CC
1
Cov
73%
statement_descriptor
2.0
statement_descriptor_kana
2.0
statement_descriptor_kanji
2.0
CRAP 1.5
« Stripe/Connect/Account/LoginLink.pm ↑ Summary Stripe/Connect/Account/Settings/Payouts.pm »
1 ##----------------------------------------------------------------------------
2 ## Stripe API - ~/lib/Net/API/Stripe/Connect/Account/Settings/Payments.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::Payments;
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 statement_descriptor { return( shift->_set_get_scalar( 'statement_descriptor', @_ ) ); }
Subroutine statement_descriptor: not called CC=1 SCAR=6.9
Pod documented
19  
20 0 ▶sub statement_descriptor_kana { return( shift->_set_get_scalar( 'statement_descriptor_kana', @_ ) ); }
Subroutine statement_descriptor_kana: not called CC=1 SCAR=6.9
Pod documented
21  
22 0 ▶sub statement_descriptor_kanji { return( shift->_set_get_scalar( 'statement_descriptor_kanji', @_ ) ); }
Subroutine statement_descriptor_kanji: not called CC=1 SCAR=6.9
Pod documented
23  
24  
25 1 1;
26  
27 __END__
28  
29 =encoding utf8
30  
31 =head1 NAME
32  
33 Net::API::Stripe::Connect::Account::Settings::Payments - A Stripe Account Settings Object for Payments
34  
35 =head1 SYNOPSIS
36  
37 my $payments = $stripe->account->settings->payments({
38 statement_descriptor => 'Contract drafting',
39 statement_descriptor_kana => 'けいやくあんぶんさくせい'
40 statement_descriptor_kanji => '契約案文作成',
41 });
42  
43 =head1 VERSION
44  
45 v0.100.0
46  
47 =head1 DESCRIPTION
48  
49 Settings used to configure the account within the Stripe dashboard.
50  
51 This is instantiated by method B<payments> from module L<Net::API::Stripe::Connect::Account::Settings>
52  
53 =head1 CONSTRUCTOR
54  
55 =over 4
56  
57 =item B<new>( %ARG )
58  
59 Creates a new L<Net::API::Stripe::Connect::Account::Settings::Payments> object.
60 It may also take an hash like arguments, that also are method of the same name.
61  
62 =back
63  
64 =head1 METHODS
65  
66 =over 4
67  
68 =item B<statement_descriptor> string
69  
70 The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic statement_descriptor specified on the charge.
71  
72 =item B<statement_descriptor_kana> string
73  
74 The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only)
75  
76 =item B<statement_descriptor_kanji> string
77  
78 The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only)
79  
80 =back
81  
82 =head1 API SAMPLE
83  
84 {
85 "id": "acct_fake123456789",
86 "object": "account",
87 "business_profile": {
88 "mcc": null,
89 "name": "My Shop, Inc",
90 "product_description": "Great products shipping all over the world",
91 "support_address": {
92 "city": "Tokyo",
93 "country": "JP",
94 "line1": "1-2-3 Kudan-minami, Chiyoda-ku",
95 "line2": "",
96 "postal_code": "100-0012",
97 "state": ""
98 },
99 "support_email": "billing@example.com",
100 "support_phone": "+81312345678",
101 "support_url": "",
102 "url": "https://www.example.com"
103 },
104 "business_type": "company",
105 "capabilities": {
106 "card_payments": "active"
107 },
108 "charges_enabled": true,
109 "country": "JP",
110 "default_currency": "jpy",
111 "details_submitted": true,
112 "email": "tech@example.com",
113 "metadata": {},
114 "payouts_enabled": true,
115 "settings": {
116 "branding": {
117 "icon": "file_fake123456789",
118 "logo": null,
119 "primary_color": "#0e77ca"
120 },
121 "card_payments": {
122 "decline_on": {
123 "avs_failure": false,
124 "cvc_failure": false
125 },
126 "statement_descriptor_prefix": null
127 },
128 "dashboard": {
129 "display_name": "myshop-inc",
130 "timezone": "Asia/Tokyo"
131 },
132 "payments": {
133 "statement_descriptor": "MYSHOP, INC",
134 "statement_descriptor_kana": "マイショップインク",
135 "statement_descriptor_kanji": "マイショップインク"
136 },
137 "payouts": {
138 "debit_negative_balances": true,
139 "schedule": {
140 "delay_days": 4,
141 "interval": "weekly",
142 "weekly_anchor": "thursday"
143 },
144 "statement_descriptor": null
145 }
146 },
147 "type": "standard"
148 }
149  
150 =head1 HISTORY
151  
152 =head2 v0.1
153  
154 Initial version
155  
156 =head1 AUTHOR
157  
158 Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
159  
160 =head1 SEE ALSO
161  
162 Stripe API documentation:
163  
164 L<https://stripe.com/docs/api/accounts/object>
165  
166 =head1 COPYRIGHT & LICENSE
167  
168 Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
169  
170 You can use, copy, modify and redistribute this package and associated
171 files under the same terms as Perl itself.
172  
173 =cut
« Stripe/Connect/Account/LoginLink.pm ↑ Summary Stripe/Connect/Account/Settings/Payouts.pm »