File Coverage

blib/lib/Net/API/Stripe/Payment/Source/ACHCreditTransfer.pm
Criterion Covered Total %
statement 7 12 58.3
branch n/a
condition n/a
subroutine 3 8 37.5
pod 4 5 80.0
total 14 25 56.0


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