File Coverage

lib/Net/API/Stripe/Connect/Account/Settings/CardPayments.pm
Criterion Covered Total %
statement 19 23 82.6
branch n/a
condition n/a
subroutine 7 11 63.6
pod 4 4 100.0
total 30 38 78.9


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