line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
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
|
|
|
1
|
|
823
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
14
|
1
|
|
|
1
|
|
5
|
use parent qw( Net::API::Stripe::Generic ); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
15
|
1
|
|
|
1
|
|
179
|
our( $VERSION ) = 'v0.100.0'; |
16
|
|
|
|
|
|
|
}; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
1
|
|
sub id { return( shift->_set_get_scalar( 'id', @_ ) ); } |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
1
|
|
sub object { return( shift->_set_get_scalar( 'object', @_ ) ); } |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
1
|
|
sub account { return( shift->_set_get_scalar_or_object( 'account', 'Net::API::Stripe::Connect::Account', @_ ) ); } |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
1
|
|
sub requested { return( shift->_set_get_boolean( 'requested', @_ ) ); } |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
1
|
|
sub requested_at { return( shift->_set_get_datetime( 'requested_at', @_ ) ); } |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
0
|
1
|
|
sub requirements { return( shift->_set_get_object( 'requirements', 'Net::API::Stripe::Connect::Account::Requirements', @_ ) ); } |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
## active, inactive, pending, or unrequested. |
31
|
0
|
|
|
0
|
1
|
|
sub status { return( shift->_set_get_scalar( 'status', @_ ) ); } |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
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 |