File Coverage

lib/Net/API/Stripe/Customer/BankAccount.pm
Criterion Covered Total %
statement 19 19 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod n/a
total 26 26 100.0


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