File Coverage

lib/Net/API/Stripe/Connect/Account/Settings/Dashboard.pm
Criterion Covered Total %
statement 19 21 90.4
branch n/a
condition n/a
subroutine 7 9 77.7
pod 2 2 100.0
total 28 32 87.5


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 <jack@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   1114 use strict;
  1         2  
  1         32  
14 1     1   5 use warnings;
  1         5  
  1         30  
15 1     1   5 use parent qw( Net::API::Stripe::Generic );
  1         4  
  1         14  
16 1     1   75 use vars qw( $VERSION );
  1         2  
  1         53  
17 1     1   28 our( $VERSION ) = 'v0.100.0';
18             };
19              
20 1     1   10 use strict;
  1         5  
  1         25  
21 1     1   5 use warnings;
  1         1  
  1         86  
22              
23 0     0 1   sub display_name { return( shift->_set_get_scalar( 'display_name', @_ ) ); }
24              
25 0     0 1   sub timezone { return( shift->_set_get_object( 'timezone', 'Net::API::Stripe::TimeZone', @_ ) ); }
26              
27             1;
28              
29             __END__
30              
31             =encoding utf8
32              
33             =head1 NAME
34              
35             Net::API::Stripe::Connect::Account::Settings::Dashboard - A Stripe Account Settings Object for Dashboard
36              
37             =head1 SYNOPSIS
38              
39             my $dashboard = $stripe->account->settings->dashboard({
40             display_name => 'Some settings name',
41             timezone => 'Asia/Tokyo',
42             });
43              
44             =head1 VERSION
45              
46             v0.100.0
47              
48             =head1 DESCRIPTION
49              
50             Settings used to configure the account within the Stripe dashboard.
51              
52             This is instantiated by method B<dashboard> from module 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::Settings::Dashboard> 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 display_name string
64              
65             The display name for this account. This is used on the Stripe Dashboard to differentiate between accounts.
66              
67             =head2 timezone string
68              
69             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.
70              
71             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.
72              
73             =head1 API SAMPLE
74              
75             {
76             "id": "acct_fake123456789",
77             "object": "account",
78             "business_profile": {
79             "mcc": null,
80             "name": "My Shop, Inc",
81             "product_description": "Great products shipping all over the world",
82             "support_address": {
83             "city": "Tokyo",
84             "country": "JP",
85             "line1": "1-2-3 Kudan-minami, Chiyoda-ku",
86             "line2": "",
87             "postal_code": "100-0012",
88             "state": ""
89             },
90             "support_email": "billing@example.com",
91             "support_phone": "+81312345678",
92             "support_url": "",
93             "url": "https://www.example.com"
94             },
95             "business_type": "company",
96             "capabilities": {
97             "card_payments": "active"
98             },
99             "charges_enabled": true,
100             "country": "JP",
101             "default_currency": "jpy",
102             "details_submitted": true,
103             "email": "tech@example.com",
104             "metadata": {},
105             "payouts_enabled": true,
106             "settings": {
107             "branding": {
108             "icon": "file_1DLf5rCeyNCl6fY2kS4e5hMT",
109             "logo": null,
110             "primary_color": "#0e77ca"
111             },
112             "card_payments": {
113             "decline_on": {
114             "avs_failure": false,
115             "cvc_failure": false
116             },
117             "statement_descriptor_prefix": null
118             },
119             "dashboard": {
120             "display_name": "myshop-inc",
121             "timezone": "Asia/Tokyo"
122             },
123             "payments": {
124             "statement_descriptor": "MYSHOP, INC",
125             "statement_descriptor_kana": "マイショップインク",
126             "statement_descriptor_kanji": "マイショップインク"
127             },
128             "payouts": {
129             "debit_negative_balances": true,
130             "schedule": {
131             "delay_days": 4,
132             "interval": "weekly",
133             "weekly_anchor": "thursday"
134             },
135             "statement_descriptor": null
136             }
137             },
138             "type": "standard"
139             }
140              
141             =head1 HISTORY
142              
143             =head2 v0.1
144              
145             Initial version
146              
147             =head1 AUTHOR
148              
149             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
150              
151             =head1 SEE ALSO
152              
153             Stripe API documentation:
154              
155             L<https://stripe.com/docs/api/accounts/object>
156              
157             =head1 COPYRIGHT & LICENSE
158              
159             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
160              
161             You can use, copy, modify and redistribute this package and associated
162             files under the same terms as Perl itself.
163              
164             =cut