File Coverage

lib/Net/API/Stripe/Connect/Account/Settings/Payments.pm
Criterion Covered Total %
statement 19 24 79.1
branch n/a
condition n/a
subroutine 7 12 58.3
pod 5 5 100.0
total 31 41 75.6


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