File Coverage

lib/Net/API/Stripe/Connect/Account/Capability.pm
Criterion Covered Total %
statement 19 27 70.3
branch n/a
condition n/a
subroutine 7 15 46.6
pod 8 8 100.0
total 34 50 68.0


line stmt bran cond sub pod time code
1             ##----------------------------------------------------------------------------
2             ## Stripe API - ~/lib/Net/API/Stripe/Connect/Account/Capability.pm
3             ## Version v0.101.0
4             ## Copyright(c) 2019 DEGUEST Pte. Ltd.
5             ## Author: Jacques Deguest <jack@deguest.jp>
6             ## Created 2019/11/02
7             ## Modified 2022/10/29
8             ##
9             ##----------------------------------------------------------------------------
10             BEGIN
11             {
12             use strict;
13 2     2   24117478 use warnings;
  2         13  
  2         63  
14 2     2   10 use parent qw( Net::API::Stripe::Generic );
  2         4  
  2         57  
15 2     2   10 use vars qw( $VERSION );
  2         4  
  2         13  
16 2     2   141 our( $VERSION ) = 'v0.101.0';
  2         5  
  2         115  
17 2     2   42 };
18              
19             use strict;
20 2     2   12 use warnings;
  2         6  
  2         39  
21 2     2   11  
  2         3  
  2         386  
22              
23 0     0 1    
24              
25 0     0 1    
26              
27 0     0 1    
28              
29 0     0 1   ## active, inactive, pending, or unrequested.
30              
31 0     0 1    
32             1;
33 0     0 1    
34              
35 0     0 1   =encoding utf8
36              
37             =head1 NAME
38              
39 0     0 1   Net::API::Stripe::Connect::Account::Capability - A Stripe Account Capability Object
40              
41             =head1 SYNOPSIS
42              
43             my $capa = $stripe->=capability({
44             account => $account_object,
45             requested => $stripe->true,
46             requested_at => '2020-04-01',
47             status => 'active',
48             });
49              
50             =head1 VERSION
51              
52             v0.101.0
53              
54             =head1 DESCRIPTION
55              
56             A hash containing the set of capabilities that was requested for this account and their associated states. Keys are names of capabilities. You can see the full list here (L<https://stripe.com/docs/api/capabilities/list>). Values may be I<active>, I<inactive>, or I<pending>.
57              
58             =head1 CONSTRUCTOR
59              
60             =head2 new( %ARG )
61              
62             Creates a new L<Net::API::Stripe::Connect::Account::Capability> object.
63             It may also take an hash like arguments, that also are method of the same name.
64              
65             =head1 METHODS
66              
67             =head2 id string
68              
69             The identifier for the capability.
70              
71             =head2 object string, value is "capability"
72              
73             String representing the object’s type. Objects of the same type share the same value.
74              
75             =head2 account string (expandable)
76              
77             The account for which the capability enables functionality.
78              
79             When expanded, this is a L<Net::API::Stripe::Connect::Account> object.
80              
81             =head2 future_requirements object
82              
83             Information about the upcoming new requirements for the capability, including what information needs to be collected, and by when.
84              
85             This is a L<Net::API::Stripe::Connect::Account::Requirements> object.
86              
87             =head2 requested boolean
88              
89             Whether the capability has been requested.
90              
91             =head2 requested_at timestamp
92              
93             Time at which the capability was requested. Measured in seconds since the Unix epoch.
94              
95             =head2 requirements hash
96              
97             Information about the requirements for the capability, including what information needs to be collected, and by when.
98              
99             This is a L<Net::API::Stripe::Connect::Account::Requirements> object.
100              
101             =head2 status string
102              
103             The status of the capability. Can be active, inactive, pending, or unrequested.
104              
105             =head1 API SAMPLE
106              
107             {
108             "id": "card_payments",
109             "object": "capability",
110             "account": "acct_fake123456789",
111             "requested": true,
112             "requested_at": 1571480455,
113             "requirements": {
114             "current_deadline": null,
115             "currently_due": [],
116             "disabled_reason": null,
117             "eventually_due": [],
118             "past_due": [],
119             "pending_verification": []
120             },
121             "status": "active"
122             }
123             =head1 HISTORY
124              
125             =head2 v0.1
126              
127             Initial version
128              
129             =head1 AUTHOR
130              
131             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
132              
133             =head1 SEE ALSO
134              
135             Stripe API documentation:
136              
137             L<https://stripe.com/docs/api/accounts/object>
138              
139             =head1 COPYRIGHT & LICENSE
140              
141             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
142              
143             You can use, copy, modify and redistribute this package and associated
144             files under the same terms as Perl itself.
145              
146             =cut