line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Customer/BalanceTransaction.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
|
|
|
|
|
|
|
## https://stripe.com/docs/api/customer_bank_accounts |
11
|
|
|
|
|
|
|
package Net::API::Stripe::Customer::BankAccount; |
12
|
|
|
|
|
|
|
BEGIN |
13
|
|
|
|
|
|
|
{ |
14
|
2
|
|
|
2
|
|
21778061
|
use strict; |
|
2
|
|
|
|
|
17
|
|
|
2
|
|
|
|
|
68
|
|
15
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
61
|
|
16
|
2
|
|
|
2
|
|
36
|
use parent qw( Net::API::Stripe::Connect::ExternalAccount::Bank ); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
11
|
|
17
|
2
|
|
|
2
|
|
143
|
use vars qw( $VERSION ); |
|
2
|
|
|
|
|
13
|
|
|
2
|
|
|
|
|
105
|
|
18
|
2
|
|
|
2
|
|
40
|
our( $VERSION ) = 'v0.1.0'; |
19
|
|
|
|
|
|
|
}; |
20
|
|
|
|
|
|
|
|
21
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
42
|
|
22
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
72
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=encoding utf8 |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 NAME |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Net::API::Stripe::Customer::BankAccount - A Stripe Customer Bank Account Object |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 SYNOPSIS |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
my $bt = $stripe->customer_bank_account({ |
37
|
|
|
|
|
|
|
account_holder_name => 'Big Corp, Inc', |
38
|
|
|
|
|
|
|
account_holder_type => 'company', |
39
|
|
|
|
|
|
|
bank_name => 'Big Bank, Corp' |
40
|
|
|
|
|
|
|
country => 'us', |
41
|
|
|
|
|
|
|
currency => 'usd', |
42
|
|
|
|
|
|
|
customer => $customer_object, |
43
|
|
|
|
|
|
|
default_for_currency => $stripe->true, |
44
|
|
|
|
|
|
|
fingerprint => 'kshfkjhfkjsjdla', |
45
|
|
|
|
|
|
|
last4 => 1234, |
46
|
|
|
|
|
|
|
metadata => { transaction_id => 2222 }, |
47
|
|
|
|
|
|
|
routing_number => 123, |
48
|
|
|
|
|
|
|
status => 'new', |
49
|
|
|
|
|
|
|
}); |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
See documentation in L<Net::API::Stripe> for example to make api calls to Stripe to create those objects. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 VERSION |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
v0.100.0 |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 DESCRIPTION |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
This class represents a customer bank account. It is almost the same as the L<external account|Net::API::Stripe::Connect::ExternalAccount::Bank>, and it actually inherits all of its methods from it. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 API SAMPLE |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
{ |
64
|
|
|
|
|
|
|
"id": "ba_1LI2gm2eZvKYlo2CwYyzfryc", |
65
|
|
|
|
|
|
|
"object": "bank_account", |
66
|
|
|
|
|
|
|
"account_holder_name": "Jane Austen", |
67
|
|
|
|
|
|
|
"account_holder_type": "company", |
68
|
|
|
|
|
|
|
"account_type": null, |
69
|
|
|
|
|
|
|
"bank_name": "STRIPE TEST BANK", |
70
|
|
|
|
|
|
|
"country": "US", |
71
|
|
|
|
|
|
|
"currency": "usd", |
72
|
|
|
|
|
|
|
"customer": null, |
73
|
|
|
|
|
|
|
"fingerprint": "1JWtPxqbdX5Gamtc", |
74
|
|
|
|
|
|
|
"last4": "6789", |
75
|
|
|
|
|
|
|
"metadata": {}, |
76
|
|
|
|
|
|
|
"routing_number": "110000000", |
77
|
|
|
|
|
|
|
"status": "new" |
78
|
|
|
|
|
|
|
} |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head1 HISTORY |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head2 v0.1.0 |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Initial version |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 AUTHOR |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 SEE ALSO |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Stripe API documentation: |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
L<https://stripe.com/docs/api/customer_bank_accounts>, L<https://stripe.com/docs/payments/bank-debits-transfers> |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
Copyright (c) 2022 DEGUEST Pte. Ltd. |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
101
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=cut |