line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Financial/Connections/Account.pm |
3
|
|
|
|
|
|
|
## Version v0.1.0 |
4
|
|
|
|
|
|
|
## Copyright(c) 2022 DEGUEST Pte. Ltd. |
5
|
|
|
|
|
|
|
## Author: Jacques Deguest <jack@deguest.jp> |
6
|
|
|
|
|
|
|
## Created 2022/10/29 |
7
|
|
|
|
|
|
|
## Modified 2022/10/29 |
8
|
|
|
|
|
|
|
## |
9
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
10
|
|
|
|
|
|
|
BEGIN |
11
|
|
|
|
|
|
|
{ |
12
|
|
|
|
|
|
|
use strict; |
13
|
2
|
|
|
2
|
|
24214100
|
use parent qw( Net::API::Stripe::Generic ); |
|
2
|
|
|
|
|
15
|
|
|
2
|
|
|
|
|
87
|
|
14
|
2
|
|
|
2
|
|
11
|
our( $VERSION ) = 'v0.1.0'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
11
|
|
15
|
2
|
|
|
2
|
|
945
|
}; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
1
|
|
|
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
1
|
|
{ |
21
|
|
|
|
|
|
|
as_of => { type => "datetime" }, |
22
|
0
|
|
|
0
|
1
|
|
cash => { package => "Net::API::Stripe::Balance", type => "object" }, |
23
|
|
|
|
|
|
|
credit => { package => "Net::API::Stripe::Payment::Source", type => "object" }, |
24
|
0
|
|
|
0
|
1
|
|
current => { type => "hash" }, |
25
|
|
|
|
|
|
|
type => { type => "scalar" }, |
26
|
|
|
|
|
|
|
}, @_ ) ); } |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
{ |
29
|
|
|
|
|
|
|
last_attempted_at => { type => "datetime" }, |
30
|
|
|
|
|
|
|
status => { type => "scalar" }, |
31
|
|
|
|
|
|
|
}, @_ ) ); } |
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
0
|
1
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
0
|
|
|
0
|
1
|
|
|
40
|
|
|
|
|
|
|
{ |
41
|
0
|
|
|
0
|
1
|
|
last_attempted_at => { type => "datetime" }, |
42
|
|
|
|
|
|
|
status => { type => "scalar" }, |
43
|
0
|
|
|
0
|
1
|
|
}, @_ ) ); } |
44
|
|
|
|
|
|
|
|
45
|
0
|
|
|
0
|
1
|
|
|
46
|
|
|
|
|
|
|
|
47
|
0
|
|
|
0
|
1
|
|
|
48
|
|
|
|
|
|
|
|
49
|
0
|
|
|
0
|
1
|
|
|
50
|
|
|
|
|
|
|
1; |
51
|
0
|
|
|
0
|
1
|
|
# NOTE: POD |
52
|
|
|
|
|
|
|
|
53
|
0
|
|
|
0
|
1
|
|
=encoding utf8 |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 NAME |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Net::API::Stripe::Financial::Connections::Account - The Account object |
58
|
|
|
|
|
|
|
|
59
|
0
|
|
|
0
|
1
|
|
=head1 SYNOPSIS |
60
|
|
|
|
|
|
|
|
61
|
0
|
|
|
0
|
1
|
|
=head1 VERSION |
62
|
|
|
|
|
|
|
|
63
|
0
|
|
|
0
|
1
|
|
v0.1.0 |
64
|
|
|
|
|
|
|
|
65
|
0
|
|
|
0
|
1
|
|
=head1 DESCRIPTION |
66
|
|
|
|
|
|
|
|
67
|
0
|
|
|
0
|
1
|
|
A Financial Connections Account represents an account that exists outside of Stripe, to which you have been granted some degree of access. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 METHODS |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head2 id string |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Unique identifier for the object. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head2 object string |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
String representing the object's type. Objects of the same type share the same value. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head2 account_holder object |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
The account holder that this account belongs to. |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
This is a L<Net::API::Stripe::Payment::Source> object. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head2 balance hash |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
The most recent information about the account's balance. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
It has the following properties: |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=over 4 |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=item C<as_of> timestamp |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
The time that the external institution calculated this balance. Measured in seconds since the Unix epoch. |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=item C<cash> hash |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Information on a C<cash> balance. Only set if C<balance.type> is C<cash>. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
When expanded, this is a L<Net::API::Stripe::Balance> object. |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=item C<credit> hash |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
Information on a C<credit> balance. Only set if C<balance.type> is C<credit>. |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
When expanded, this is a L<Net::API::Stripe::Payment::Source> object. |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=item C<current> hash |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
The balances owed to (or by) the account holder. |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
Each key is a three-letter L<ISO currency code|https://www.iso.org/iso-4217-currency-codes.html>, in lowercase. |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=item C<type> string |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
The C<type> of the balance. An additional hash is included on the balance with a name matching this value. |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=back |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=head2 balance_refresh hash |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
The state of the most recent attempt to refresh the account balance. |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
It has the following properties: |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
=over 4 |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
=item C<last_attempted_at> timestamp |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=item C<status> string |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
The status of the last refresh attempt. |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
=back |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
=head2 category string |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
The type of the account. Account category is further divided in C<subcategory>. |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
=head2 created timestamp |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
Time at which the object was created. Measured in seconds since the Unix epoch. |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
=head2 display_name string |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
A human-readable name that has been assigned to this account, either by the account holder or by the institution. |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=head2 institution_name string |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
The name of the institution that holds this account. |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
=head2 last4 string |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
The last 4 digits of the account number. If present, this will be 4 numeric characters. |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
=head2 livemode boolean |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
Has the value C<true> if the object exists in live mode or the value C<false> if the object exists in test mode. |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
=head2 ownership expandable |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
The most recent information about the account's owners. |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
When expanded this is an L<Net::API::Stripe::Financial::Connections::AccountOwnership> object. |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
=head2 ownership_refresh hash |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
The state of the most recent attempt to refresh the account owners. |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
It has the following properties: |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
=over 4 |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
=item C<last_attempted_at> timestamp |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
=item C<status> string |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
The status of the last refresh attempt. |
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
=back |
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
=head2 permissions array |
190
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
The list of permissions granted by this account. |
192
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
=head2 status string |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
The status of the link to the account. |
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
=head2 subcategory string |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
If C<category> is C<cash>, one of: |
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
=over 4 |
202
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
=item - C<checking> |
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
=item - C<savings> |
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
=item - C<other> |
208
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
=back |
210
|
|
|
|
|
|
|
|
211
|
|
|
|
|
|
|
If C<category> is C<credit>, one of: |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
=over 4 |
214
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
=item - C<mortgage> |
216
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
=item - C<line_of_credit> |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
=item - C<credit_card> |
220
|
|
|
|
|
|
|
|
221
|
|
|
|
|
|
|
=item - C<other> |
222
|
|
|
|
|
|
|
|
223
|
|
|
|
|
|
|
=back |
224
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
If C<category> is C<investment> or C<other>, this will be C<other>. |
226
|
|
|
|
|
|
|
|
227
|
|
|
|
|
|
|
=head2 supported_payment_method_types array |
228
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
The L<PaymentMethod type|https://stripe.com/docs/api/payment_methods/object#payment_method_object-type>(s) that can be created from this account. |
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
=head2 transaction_refresh object |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
The state of the most recent attempt to refresh the account transactions. |
234
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
This is a L<Net::API::Stripe::Balance::Transaction> object. |
236
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
=head1 API SAMPLE |
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
[ |
240
|
|
|
|
|
|
|
{ |
241
|
|
|
|
|
|
|
"accountholder" : { |
242
|
|
|
|
|
|
|
"customer" : "cus_AJ78ZaALpqgiuZ", |
243
|
|
|
|
|
|
|
"type" : "customer" |
244
|
|
|
|
|
|
|
}, |
245
|
|
|
|
|
|
|
"balance" : null, |
246
|
|
|
|
|
|
|
"balance_refresh" : null, |
247
|
|
|
|
|
|
|
"category" : "cash", |
248
|
|
|
|
|
|
|
"created" : "1662261086", |
249
|
|
|
|
|
|
|
"display_name" : "Sample Checking Account", |
250
|
|
|
|
|
|
|
"id" : "fca_1Le9F42eZvKYlo2Cboplw3LC", |
251
|
|
|
|
|
|
|
"institution_name" : "StripeBank", |
252
|
|
|
|
|
|
|
"last4" : "6789", |
253
|
|
|
|
|
|
|
"livemode" : 0, |
254
|
|
|
|
|
|
|
"object" : "linked_account", |
255
|
|
|
|
|
|
|
"ownership" : null, |
256
|
|
|
|
|
|
|
"ownership_refresh" : null, |
257
|
|
|
|
|
|
|
"permissions" : [], |
258
|
|
|
|
|
|
|
"status" : "active", |
259
|
|
|
|
|
|
|
"subcategory" : "checking", |
260
|
|
|
|
|
|
|
"supported_payment_method_types" : [ |
261
|
|
|
|
|
|
|
"us_bank_account" |
262
|
|
|
|
|
|
|
], |
263
|
|
|
|
|
|
|
"transaction_refresh" : null |
264
|
|
|
|
|
|
|
} |
265
|
|
|
|
|
|
|
] |
266
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
=head1 HISTORY |
268
|
|
|
|
|
|
|
|
269
|
|
|
|
|
|
|
=head2 v0.1.0 |
270
|
|
|
|
|
|
|
|
271
|
|
|
|
|
|
|
Initial version |
272
|
|
|
|
|
|
|
|
273
|
|
|
|
|
|
|
=head1 AUTHOR |
274
|
|
|
|
|
|
|
|
275
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
276
|
|
|
|
|
|
|
|
277
|
|
|
|
|
|
|
=head1 SEE ALSO |
278
|
|
|
|
|
|
|
|
279
|
|
|
|
|
|
|
L<Stripe API documentation|https://stripe.com/docs/api/financial_connections/accounts> |
280
|
|
|
|
|
|
|
|
281
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
282
|
|
|
|
|
|
|
|
283
|
|
|
|
|
|
|
Copyright (c) 2019-2022 DEGUEST Pte. Ltd. |
284
|
|
|
|
|
|
|
|
285
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
286
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
287
|
|
|
|
|
|
|
|
288
|
|
|
|
|
|
|
=cut |