Stripe/Connect/Account/Branding.pm

filter: Statementstmt 72.7% 8 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod 100% 3 / 3 totaltotal 70.0% 14 / 20 CC 1 SCAR 4.1
CC
1
Cov
73%
icon
2.0
logo
2.0
primary_color
2.0
CRAP 1.5
« Stripe/Billing/Invoice/TaxAmount.pm ↑ Summary Stripe/Connect/Account/LoginLink.pm »
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 <@sitael.tokyo.deguest.jp>
6 ## Created 2019/11/02
7 ## Modified 2020/05/15
8 ##
9 ##----------------------------------------------------------------------------
10 package Net::API::Stripe::Connect::Account::Branding;
11 BEGIN
12 {
13 1 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶ use parent qw( Net::API::Stripe::Generic );
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶ our( $VERSION ) = 'v0.100.0';
Subroutine BEGIN: called CC=1 SCAR=0.0
16 };
17  
18 0 ▶sub icon { return( shift->_set_get_scalar_or_object( 'icon', 'Net::API::Stripe::File', @_ ) ); }
Subroutine icon: not called CC=1 SCAR=6.9
Pod documented
19  
20 0 ▶sub logo { return( shift->_set_get_scalar_or_object( 'logo', 'Net::API::Stripe::File', @_ ) ); }
Subroutine logo: not called CC=1 SCAR=6.9
Pod documented
21  
22 0 ▶sub primary_color { return( shift->_set_get_scalar( 'primary_color', @_ ) ); }
Subroutine primary_color: not called CC=1 SCAR=6.9
Pod documented
23  
24 1 1;
25  
26 __END__
27  
28 =encoding utf8
29  
30 =head1 NAME
31  
32 Net::API::Stripe::Connect::Account::Branding - A Stripe Account Branding Object
33  
34 =head1 SYNOPSIS
35  
36 my $obj = $stripe->account->setting->branding({
37 icon => '/some/file/path/corp.png',
38 logo => '/some/other/path/large.jpg',
39 # Or an hexadecimal value preceded by a #
40 primary_color => 'blue',
41 });
42  
43 =head1 VERSION
44  
45 v0.100.0
46  
47 =head1 DESCRIPTION
48  
49 Settings used to apply the account’s branding to email receipts, invoices, Checkout, and other products.
50  
51 This is called by method B<branding> from L<Net::API::Stripe::Connect::Account::Settings>
52  
53 =head1 CONSTRUCTOR
54  
55 =over 4
56  
57 =item B<new>( %ARG )
58  
59 Creates a new L<Net::API::Stripe::Connect::Account::Branding> object.
60 It may also take an hash like arguments, that also are method of the same name.
61  
62 =back
63  
64 =head1 METHODS
65  
66 =over 4
67  
68 =item B<icon> string (expandable)
69  
70 (ID of a file upload) An icon for the account. Must be square and at least 128px x 128px.
71  
72 When expanded, this is a L<Net::API::Stripe::File> object.
73  
74 =item B<logo> string (expandable)
75  
76 (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.
77  
78 When expanded, this is a L<Net::API::Stripe::File> object.
79  
80 =item B<primary_color> string
81  
82 A CSS hex color value representing the primary branding color for this account
83  
84 =back
85  
86 =head1 API SAMPLE
87  
88 {
89 "id": "acct_fake123456789",
90 "object": "account",
91 "business_profile": {
92 "mcc": null,
93 "name": "My Shop, Inc",
94 "product_description": "Great products shipping all over the world",
95 "support_address": {
96 "city": "Tokyo",
97 "country": "JP",
98 "line1": "1-2-3 Kudan-minami, Chiyoda-ku",
99 "line2": "",
100 "postal_code": "100-0012",
101 "state": ""
102 },
103 "support_email": "billing@example.com",
104 "support_phone": "+81312345678",
105 "support_url": "",
106 "url": "https://www.example.com"
107 },
108 "business_type": "company",
109 "capabilities": {
110 "card_payments": "active"
111 },
112 "charges_enabled": true,
113 "country": "JP",
114 "default_currency": "jpy",
115 "details_submitted": true,
116 "email": "tech@example.com",
117 "metadata": {},
118 "payouts_enabled": true,
119 "settings": {
120 "branding": {
121 "icon": "file_1DLfake123456789",
122 "logo": null,
123 "primary_color": "#0e77ca"
124 },
125 "card_payments": {
126 "decline_on": {
127 "avs_failure": false,
128 "cvc_failure": false
129 },
130 "statement_descriptor_prefix": null
131 },
132 "dashboard": {
133 "display_name": "myshop-inc",
134 "timezone": "Asia/Tokyo"
135 },
136 "payments": {
137 "statement_descriptor": "MYSHOP, INC",
138 "statement_descriptor_kana": "マイショップインク",
139 "statement_descriptor_kanji": "マイショップインク"
140 },
141 "payouts": {
142 "debit_negative_balances": true,
143 "schedule": {
144 "delay_days": 4,
145 "interval": "weekly",
146 "weekly_anchor": "thursday"
147 },
148 "statement_descriptor": null
149 }
150 },
151 "type": "standard"
152 }
153  
154 =head1 HISTORY
155  
156 =head2 v0.1
157  
158 Initial version
159  
160 =head1 AUTHOR
161  
162 Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
163  
164 =head1 SEE ALSO
165  
166 Stripe API documentation:
167  
168 L<https://stripe.com/docs/api/accounts/object>
169  
170 =head1 COPYRIGHT & LICENSE
171  
172 Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
173  
174 You can use, copy, modify and redistribute this package and associated
175 files under the same terms as Perl itself.
176  
177 =cut
« Stripe/Billing/Invoice/TaxAmount.pm ↑ Summary Stripe/Connect/Account/LoginLink.pm »