Stripe/Connect/Account/Capability.pm

filter: Statementstmt 53.3% 8 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 30.0% 3 / 10 Podpod 100% 7 / 7 totaltotal 56.2% 18 / 32 CC 1 SCAR 5.3
CC
1
Cov
53%
id
2.0
object
2.0
account
2.0
CRAP 1.7
« Stripe/Charge/Outcome.pm ↑ Summary Stripe/Connect/Account/Requirements.pm »
1 ##----------------------------------------------------------------------------
2 ## Stripe API - ~/lib/Net/API/Stripe/Connect/Account/Capability.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::Capability;
11 BEGIN
12 {
13 1 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶ use parent qw( Net::API::Stripe::Generic );
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶ our( $VERSION ) = 'v0.100.0';
Subroutine BEGIN: called CC=1 SCAR=0.0
16 };
17  
18 0 ▶sub id { return( shift->_set_get_scalar( 'id', @_ ) ); }
Subroutine id: not called CC=1 SCAR=6.9
Pod documented
19  
20 0 ▶sub object { return( shift->_set_get_scalar( 'object', @_ ) ); }
Subroutine object: not called CC=1 SCAR=6.9
Pod documented
21  
22 0 ▶sub account { return( shift->_set_get_scalar_or_object( 'account', 'Net::API::Stripe::Connect::Account', @_ ) ); }
Subroutine account: not called CC=1 SCAR=6.9
Pod documented
23  
24 0 ▶sub requested { return( shift->_set_get_boolean( 'requested', @_ ) ); }
Subroutine requested: not called CC=1 SCAR=6.9
Pod documented
25  
26 0 ▶sub requested_at { return( shift->_set_get_datetime( 'requested_at', @_ ) ); }
Subroutine requested_at: not called CC=1 SCAR=6.9
Pod documented
27  
28 0 ▶sub requirements { return( shift->_set_get_object( 'requirements', 'Net::API::Stripe::Connect::Account::Requirements', @_ ) ); }
Subroutine requirements: not called CC=1 SCAR=6.9
Pod documented
29  
30 ## active, inactive, pending, or unrequested.
31 0 ▶sub status { return( shift->_set_get_scalar( 'status', @_ ) ); }
Subroutine status: not called CC=1 SCAR=6.9
Pod documented
32  
33 1 1;
34  
35 __END__
36  
37 =encoding utf8
38  
39 =head1 NAME
40  
41 Net::API::Stripe::Connect::Account::Capability - A Stripe Account Capability Object
42  
43 =head1 SYNOPSIS
44  
45 my $capa = $stripe->=capability({
46 account => $account_object,
47 requested => $stripe->true,
48 requested_at => '2020-04-01',
49 status => 'active',
50 });
51  
52 =head1 VERSION
53  
54 v0.100.0
55  
56 =head1 DESCRIPTION
57  
58 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>.
59  
60 =head1 CONSTRUCTOR
61  
62 =over 4
63  
64 =item B<new>( %ARG )
65  
66 Creates a new L<Net::API::Stripe::Connect::Account::Capability> object.
67 It may also take an hash like arguments, that also are method of the same name.
68  
69 =back
70  
71 =head1 METHODS
72  
73 =over 4
74  
75 =item B<id> string
76  
77 The identifier for the capability.
78  
79 =item B<object> string, value is "capability"
80  
81 String representing the object’s type. Objects of the same type share the same value.
82  
83 =item B<account> string (expandable)
84  
85 The account for which the capability enables functionality.
86  
87 When expanded, this is a L<Net::API::Stripe::Connect::Account> object.
88  
89 =item B<requested> boolean
90  
91 Whether the capability has been requested.
92  
93 =item B<requested_at> timestamp
94  
95 Time at which the capability was requested. Measured in seconds since the Unix epoch.
96  
97 =item B<requirements> hash
98  
99 Information about the requirements for the capability, including what information needs to be collected, and by when.
100  
101 This is a L<Net::API::Stripe::Connect::Account::Requirements> object.
102  
103 =item B<status> string
104  
105 The status of the capability. Can be active, inactive, pending, or unrequested.
106  
107 =back
108  
109 =head1 API SAMPLE
110  
111 {
112 "id": "card_payments",
113 "object": "capability",
114 "account": "acct_fake123456789",
115 "requested": true,
116 "requested_at": 1571480455,
117 "requirements": {
118 "current_deadline": null,
119 "currently_due": [],
120 "disabled_reason": null,
121 "eventually_due": [],
122 "past_due": [],
123 "pending_verification": []
124 },
125 "status": "active"
126 }
127 =head1 HISTORY
128  
129 =head2 v0.1
130  
131 Initial version
132  
133 =head1 AUTHOR
134  
135 Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
136  
137 =head1 SEE ALSO
138  
139 Stripe API documentation:
140  
141 L<https://stripe.com/docs/api/accounts/object>
142  
143 =head1 COPYRIGHT & LICENSE
144  
145 Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
146  
147 You can use, copy, modify and redistribute this package and associated
148 files under the same terms as Perl itself.
149  
150 =cut
« Stripe/Charge/Outcome.pm ↑ Summary Stripe/Connect/Account/Requirements.pm »