| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
|
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Connect/Account/Settings/Dashboard.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::Settings::Dashboard; |
|
11
|
|
|
|
|
|
|
BEGIN |
|
12
|
|
|
|
|
|
|
{ |
|
13
|
1
|
|
|
1
|
|
825
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
27
|
|
|
14
|
1
|
|
|
1
|
|
5
|
use parent qw( Net::API::Stripe::Generic ); |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
5
|
|
|
15
|
1
|
|
|
1
|
|
114
|
our( $VERSION ) = 'v0.100.0'; |
|
16
|
|
|
|
|
|
|
}; |
|
17
|
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
1
|
|
sub display_name { return( shift->_set_get_scalar( 'display_name', @_ ) ); } |
|
19
|
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
1
|
|
sub timezone { return( shift->_set_get_object( 'timezone', 'Net::API::Stripe::TimeZone', @_ ) ); } |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=encoding utf8 |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 NAME |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Net::API::Stripe::Connect::Account::Settings::Dashboard - A Stripe Account Settings Object for Dashboard |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
my $dashboard = $stripe->account->settings->dashboard({ |
|
35
|
|
|
|
|
|
|
display_name => 'Some settings name', |
|
36
|
|
|
|
|
|
|
timezone => 'Asia/Tokyo', |
|
37
|
|
|
|
|
|
|
}); |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 VERSION |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
v0.100.0 |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Settings used to configure the account within the Stripe dashboard. |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
This is instantiated by method B<dashboard> from module L<Net::API::Stripe::Connect::Account::Settings> |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=over 4 |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=item B<new>( %ARG ) |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Creates a new L<Net::API::Stripe::Connect::Account::Settings::Dashboard> object. |
|
56
|
|
|
|
|
|
|
It may also take an hash like arguments, that also are method of the same name. |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=back |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 METHODS |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=over 4 |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=item B<display_name> string |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
The display name for this account. This is used on the Stripe Dashboard to differentiate between accounts. |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=item B<timezone> string |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
The timezone used in the Stripe Dashboard for this account. A list of possible time zone values is maintained at the IANA Time Zone Database. |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
This is a L<Net::API::Stripe::TimeZone> which inherits all methods for L<DateTime::TimeZone> and add stringification so that its object, when stringified ie used as a string, will return DateTime::TimeZone->name in order to make this work transparently while giving access to all the methods of L<DateTime::TimeZone> module. |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=back |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 API SAMPLE |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
{ |
|
79
|
|
|
|
|
|
|
"id": "acct_fake123456789", |
|
80
|
|
|
|
|
|
|
"object": "account", |
|
81
|
|
|
|
|
|
|
"business_profile": { |
|
82
|
|
|
|
|
|
|
"mcc": null, |
|
83
|
|
|
|
|
|
|
"name": "My Shop, Inc", |
|
84
|
|
|
|
|
|
|
"product_description": "Great products shipping all over the world", |
|
85
|
|
|
|
|
|
|
"support_address": { |
|
86
|
|
|
|
|
|
|
"city": "Tokyo", |
|
87
|
|
|
|
|
|
|
"country": "JP", |
|
88
|
|
|
|
|
|
|
"line1": "1-2-3 Kudan-minami, Chiyoda-ku", |
|
89
|
|
|
|
|
|
|
"line2": "", |
|
90
|
|
|
|
|
|
|
"postal_code": "100-0012", |
|
91
|
|
|
|
|
|
|
"state": "" |
|
92
|
|
|
|
|
|
|
}, |
|
93
|
|
|
|
|
|
|
"support_email": "billing@example.com", |
|
94
|
|
|
|
|
|
|
"support_phone": "+81312345678", |
|
95
|
|
|
|
|
|
|
"support_url": "", |
|
96
|
|
|
|
|
|
|
"url": "https://www.example.com" |
|
97
|
|
|
|
|
|
|
}, |
|
98
|
|
|
|
|
|
|
"business_type": "company", |
|
99
|
|
|
|
|
|
|
"capabilities": { |
|
100
|
|
|
|
|
|
|
"card_payments": "active" |
|
101
|
|
|
|
|
|
|
}, |
|
102
|
|
|
|
|
|
|
"charges_enabled": true, |
|
103
|
|
|
|
|
|
|
"country": "JP", |
|
104
|
|
|
|
|
|
|
"default_currency": "jpy", |
|
105
|
|
|
|
|
|
|
"details_submitted": true, |
|
106
|
|
|
|
|
|
|
"email": "tech@example.com", |
|
107
|
|
|
|
|
|
|
"metadata": {}, |
|
108
|
|
|
|
|
|
|
"payouts_enabled": true, |
|
109
|
|
|
|
|
|
|
"settings": { |
|
110
|
|
|
|
|
|
|
"branding": { |
|
111
|
|
|
|
|
|
|
"icon": "file_1DLf5rCeyNCl6fY2kS4e5hMT", |
|
112
|
|
|
|
|
|
|
"logo": null, |
|
113
|
|
|
|
|
|
|
"primary_color": "#0e77ca" |
|
114
|
|
|
|
|
|
|
}, |
|
115
|
|
|
|
|
|
|
"card_payments": { |
|
116
|
|
|
|
|
|
|
"decline_on": { |
|
117
|
|
|
|
|
|
|
"avs_failure": false, |
|
118
|
|
|
|
|
|
|
"cvc_failure": false |
|
119
|
|
|
|
|
|
|
}, |
|
120
|
|
|
|
|
|
|
"statement_descriptor_prefix": null |
|
121
|
|
|
|
|
|
|
}, |
|
122
|
|
|
|
|
|
|
"dashboard": { |
|
123
|
|
|
|
|
|
|
"display_name": "myshop-inc", |
|
124
|
|
|
|
|
|
|
"timezone": "Asia/Tokyo" |
|
125
|
|
|
|
|
|
|
}, |
|
126
|
|
|
|
|
|
|
"payments": { |
|
127
|
|
|
|
|
|
|
"statement_descriptor": "MYSHOP, INC", |
|
128
|
|
|
|
|
|
|
"statement_descriptor_kana": "ï¾ï½²ï½¼ï½®ï½¯ï¾ï¾ï½²ï¾ï½¸", |
|
129
|
|
|
|
|
|
|
"statement_descriptor_kanji": "ãã¤ã·ã§ããã¤ã³ã¯" |
|
130
|
|
|
|
|
|
|
}, |
|
131
|
|
|
|
|
|
|
"payouts": { |
|
132
|
|
|
|
|
|
|
"debit_negative_balances": true, |
|
133
|
|
|
|
|
|
|
"schedule": { |
|
134
|
|
|
|
|
|
|
"delay_days": 4, |
|
135
|
|
|
|
|
|
|
"interval": "weekly", |
|
136
|
|
|
|
|
|
|
"weekly_anchor": "thursday" |
|
137
|
|
|
|
|
|
|
}, |
|
138
|
|
|
|
|
|
|
"statement_descriptor": null |
|
139
|
|
|
|
|
|
|
} |
|
140
|
|
|
|
|
|
|
}, |
|
141
|
|
|
|
|
|
|
"type": "standard" |
|
142
|
|
|
|
|
|
|
} |
|
143
|
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=head1 HISTORY |
|
145
|
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
=head2 v0.1 |
|
147
|
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
Initial version |
|
149
|
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
=head1 AUTHOR |
|
151
|
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
|
153
|
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
155
|
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
Stripe API documentation: |
|
157
|
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
L<https://stripe.com/docs/api/accounts/object> |
|
159
|
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
|
161
|
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
|
163
|
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
|
165
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
|
166
|
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
=cut |