File Coverage

blib/lib/Net/API/Stripe/Payment/Source/ACHDebit.pm
Criterion Covered Total %
statement 7 14 50.0
branch n/a
condition n/a
subroutine 3 10 30.0
pod 7 7 100.0
total 17 31 54.8


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