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