« lib/WebService/Braintree/_/TransactionLineItem.pm
↑ Summary
lib/WebService/Braintree/_/VenmoAccount.pm »
| 1 | # vim: sw=4 ts=4 ft=perl | ||
| 2 | |||
| 3 | package WebService::Braintree::_::UsBankAccount; | ||
| 4 | 22 | $WebService::Braintree::_::UsBankAccount::VERSION = '1.7'; | |
| 5 | 22 | ▶ | use 5.010_001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 22 | ▶ | use strictures 1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | WebService::Braintree::_::UsBankAccount | ||
| 11 | |||
| 12 | =head1 PURPOSE | ||
| 13 | |||
| 14 | This class represents a US bank account. | ||
| 15 | |||
| 16 | This class will only be created as part of a L<response|WebService::Braintree::Result> or L<error response|WebService::Braintree::ErrorResult>. | ||
| 17 | |||
| 18 | =cut | ||
| 19 | |||
| 20 | 22 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 22 | ▶ | use MooX::Aliases; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | |||
| 23 | 22 | extends 'WebService::Braintree::_'; | |
| 24 | |||
| 25 | 22 | ▶ | use WebService::Braintree::Types qw( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | AchMandate | ||
| 27 | 22 | ); | |
| 28 | |||
| 29 | =head1 ATTRIBUTES | ||
| 30 | |||
| 31 | =cut | ||
| 32 | |||
| 33 | =head2 account_type() | ||
| 34 | |||
| 35 | This is the type for this account. | ||
| 36 | |||
| 37 | =cut | ||
| 38 | |||
| 39 | 22 | has account_type => ( | |
| 40 | is => 'ro', | ||
| 41 | ); | ||
| 42 | |||
| 43 | =head2 ach_mandate() | ||
| 44 | |||
| 45 | This is the ACH mandate for this account. This will be an | ||
| 46 | object of type L<WebService::Braintree::_::AchMandate/>. | ||
| 47 | |||
| 48 | =cut | ||
| 49 | |||
| 50 | 22 | has ach_mandate => ( | |
| 51 | is => 'ro', | ||
| 52 | isa => AchMandate, | ||
| 53 | coerce => 1, | ||
| 54 | ); | ||
| 55 | |||
| 56 | =head2 bank_name() | ||
| 57 | |||
| 58 | This is the bank name for this account. | ||
| 59 | |||
| 60 | =cut | ||
| 61 | |||
| 62 | 22 | has bank_name => ( | |
| 63 | is => 'ro', | ||
| 64 | ); | ||
| 65 | |||
| 66 | =head2 default() | ||
| 67 | |||
| 68 | This is true if this account is default. | ||
| 69 | |||
| 70 | C<< is_default() >> is an alias for this attribute. | ||
| 71 | |||
| 72 | =cut | ||
| 73 | |||
| 74 | 22 | has default => ( | |
| 75 | is => 'ro', | ||
| 76 | alias => 'is_default', | ||
| 77 | ); | ||
| 78 | |||
| 79 | =head2 image_url() | ||
| 80 | |||
| 81 | This is the image URL for this account. | ||
| 82 | |||
| 83 | =cut | ||
| 84 | |||
| 85 | 22 | has image_url => ( | |
| 86 | is => 'ro', | ||
| 87 | ); | ||
| 88 | |||
| 89 | =head2 last_4() | ||
| 90 | |||
| 91 | This is the last-4 for this account. | ||
| 92 | |||
| 93 | =cut | ||
| 94 | |||
| 95 | 22 | has last_4 => ( | |
| 96 | is => 'ro', | ||
| 97 | ); | ||
| 98 | |||
| 99 | =head2 routing_number() | ||
| 100 | |||
| 101 | This is the routing number for this account. | ||
| 102 | |||
| 103 | =cut | ||
| 104 | |||
| 105 | 22 | has routing_number => ( | |
| 106 | is => 'ro', | ||
| 107 | ); | ||
| 108 | |||
| 109 | =head2 token() | ||
| 110 | |||
| 111 | This is the token for this account. | ||
| 112 | |||
| 113 | =cut | ||
| 114 | |||
| 115 | 22 | has token => ( | |
| 116 | is => 'ro', | ||
| 117 | ); | ||
| 118 | |||
| 119 | 22 | __PACKAGE__->meta->make_immutable; | |
| 120 | |||
| 121 | 22 | 1; | |
| 122 | __END__ | ||