File Coverage

lib/Net/API/Stripe/Payment/Source/ACHCreditTransfer.pm
Criterion Covered Total %
statement 19 24 79.1
branch n/a
condition n/a
subroutine 7 12 58.3
pod 4 5 80.0
total 30 41 73.1


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