File Coverage

lib/Net/API/Stripe/Payment/Source/ACHDebit.pm
Criterion Covered Total %
statement 19 26 73.0
branch n/a
condition n/a
subroutine 7 14 50.0
pod 7 7 100.0
total 33 47 70.2


line stmt bran cond sub pod time code
1             ##----------------------------------------------------------------------------
2             ## Stripe API - ~/lib/Net/API/Stripe/Payment/Source/ACHDebit.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             BEGIN
11             {
12             use strict;
13 1     1   1040 use warnings;
  1         6  
  1         33  
14 1     1   5 use parent qw( Net::API::Stripe::Generic );
  1         3  
  1         29  
15 1     1   5 use vars qw( $VERSION );
  1         3  
  1         7  
16 1     1   72 our( $VERSION ) = 'v0.100.0';
  1         2  
  1         50  
17 1     1   38 };
18              
19             use strict;
20 1     1   7 use warnings;
  1         2  
  1         23  
21 1     1   5  
  1         2  
  1         237  
22              
23 0     0 1    
24              
25 0     0 1    
26              
27 0     0 1    
28              
29 0     0 1   1;
30              
31 0     0 1    
32             =encoding utf8
33 0     0 1    
34             =head1 NAME
35 0     0 1    
36             Net::API::Stripe::Payment::Source::ACHDebit - A Stripe ACH Debit Object
37              
38             =head1 SYNOPSIS
39              
40             my $ach_debit = $stripe->source->ach_debit({
41             account_holder_type => 'company',
42             bank_name => 'Big Buck, Corp',
43             country => 'us',
44             fingerprint => 'hskfhskjhajl',
45             last4 => 1234,
46             routing_number => undef,
47             });
48              
49             =head1 VERSION
50              
51             v0.100.0
52              
53             =head1 DESCRIPTION
54              
55             This module contains a snapshot of the transaction specific details of the ach_debit payment method.
56              
57             This is instantiated by method B<ach_debit> in module L<Net::API::Stripe::Payment::Method::Details> and L<Net::API::Stripe::Payment::Source>
58              
59             =head1 CONSTRUCTOR
60              
61             =head2 new( %ARG )
62              
63             Creates a new L<Net::API::Stripe::Payment::Source::ACHDebit> object.
64             It may also take an hash like arguments, that also are method of the same name.
65              
66             =head1 METHODS
67              
68             =head2 account_holder_type string
69              
70             Type of entity that holds the account. This can be either individual or company.
71              
72             =head2 bank_name string
73              
74             Name of the bank associated with the bank account.
75              
76             =head2 country string
77              
78             Two-letter ISO code representing the country the bank account is located in.
79              
80             =head2 fingerprint string
81              
82             Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
83              
84             =head2 last4 string
85              
86             Last four digits of the bank account number.
87              
88             =head2 routing_number string
89              
90             Routing transit number of the bank account.
91              
92             =head1 HISTORY
93              
94             =head2 v0.1
95              
96             Initial version
97              
98             =head1 AUTHOR
99              
100             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
101              
102             =head1 SEE ALSO
103              
104             Stripe API documentation:
105              
106             L<https://stripe.com/docs/api/payment_methods/object>
107              
108             =head1 COPYRIGHT & LICENSE
109              
110             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
111              
112             You can use, copy, modify and redistribute this package and associated
113             files under the same terms as Perl itself.
114              
115             =cut