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