File Coverage

lib/Net/API/Stripe/Connect/Account/Branding.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/Branding.pm
3             ## Version v0.100.0
4             ## Copyright(c) 2019 DEGUEST Pte. Ltd.
5             ## Author: Jacques Deguest <jack@deguest.jp>
6             ## Created 2019/11/02
7             ## Modified 2020/05/15
8             ##
9             ##----------------------------------------------------------------------------
10             BEGIN
11             {
12             use strict;
13 1     1   1002 use warnings;
  1         2  
  1         32  
14 1     1   7 use parent qw( Net::API::Stripe::Generic );
  1         2  
  1         32  
15 1     1   5 use vars qw( $VERSION );
  1         2  
  1         5  
16 1     1   65 our( $VERSION ) = 'v0.100.0';
  1         2  
  1         53  
17 1     1   24 };
18              
19             use strict;
20 1     1   5 use warnings;
  1         2  
  1         18  
21 1     1   4  
  1         2  
  1         115  
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::Branding - A Stripe Account Branding Object
34              
35             =head1 SYNOPSIS
36              
37             my $obj = $stripe->account->setting->branding({
38             icon => '/some/file/path/corp.png',
39             logo => '/some/other/path/large.jpg',
40             # Or an hexadecimal value preceded by a #
41             primary_color => 'blue',
42             });
43              
44             =head1 VERSION
45              
46             v0.100.0
47              
48             =head1 DESCRIPTION
49              
50             Settings used to apply the account’s branding to email receipts, invoices, Checkout, and other products.
51              
52             This is called by method B<branding> from 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::Branding> 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 icon string (expandable)
64              
65             (ID of a file upload) An icon for the account. Must be square and at least 128px x 128px.
66              
67             When expanded, this is a L<Net::API::Stripe::File> object.
68              
69             =head2 logo string (expandable)
70              
71             (ID of a file upload) A logo for the account that will be used in Checkout instead of the icon and without the account’s name next to it if provided. Must be at least 128px x 128px.
72              
73             When expanded, this is a L<Net::API::Stripe::File> object.
74              
75             =head2 primary_color string
76              
77             A CSS hex color value representing the primary branding color for this account
78              
79             =head2 secondary_color string
80              
81             A CSS hex color value representing the secondary branding color for this account
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_1DLfake123456789",
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