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