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