« lib/WebService/Braintree/_/Transaction/ApplePayDetail.pm
↑ Summary
lib/WebService/Braintree/MerchantAccount.pm »
| 1 | # vim: sw=4 ts=4 ft=perl | ||
| 2 | |||
| 3 | package WebService::Braintree::_::Transaction::AmexExpressCheckoutDetail; | ||
| 4 | 22 | $WebService::Braintree::_::Transaction::AmexExpressCheckoutDetail::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::_::Transaction::AmexExpressCheckoutDetail | ||
| 11 | |||
| 12 | =head1 PURPOSE | ||
| 13 | |||
| 14 | This class represents a transaction AmexExpress checkout detail. | ||
| 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 | 22 | extends 'WebService::Braintree::_'; | |
| 23 | |||
| 24 | =head1 ATTRIBUTES | ||
| 25 | |||
| 26 | =cut | ||
| 27 | |||
| 28 | =head2 bin() | ||
| 29 | |||
| 30 | This is the bin for this transaction AmexExpress checkout detail. | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | 22 | has bin => ( | |
| 35 | is => 'ro', | ||
| 36 | ); | ||
| 37 | |||
| 38 | =head2 card_member_expiry_date() | ||
| 39 | |||
| 40 | This is the card member expiry date for this transaction AmexExpress checkout detail. | ||
| 41 | |||
| 42 | =cut | ||
| 43 | |||
| 44 | 22 | has card_member_expiry_date => ( | |
| 45 | is => 'ro', | ||
| 46 | ); | ||
| 47 | |||
| 48 | =head2 card_member_number() | ||
| 49 | |||
| 50 | This is the card member number for this transaction AmexExpress checkout detail. | ||
| 51 | |||
| 52 | =cut | ||
| 53 | |||
| 54 | 22 | has card_member_number => ( | |
| 55 | is => 'ro', | ||
| 56 | ); | ||
| 57 | |||
| 58 | =head2 card_type() | ||
| 59 | |||
| 60 | This is the card type for this transaction AmexExpress checkout detail. | ||
| 61 | |||
| 62 | =cut | ||
| 63 | |||
| 64 | 22 | has card_type => ( | |
| 65 | is => 'ro', | ||
| 66 | ); | ||
| 67 | |||
| 68 | =head2 expiration_month() | ||
| 69 | |||
| 70 | This is the expiration month for this transaction ApplePay detail. | ||
| 71 | |||
| 72 | =cut | ||
| 73 | |||
| 74 | 22 | has expiration_month => ( | |
| 75 | is => 'ro', | ||
| 76 | ); | ||
| 77 | |||
| 78 | =head2 expiration_year() | ||
| 79 | |||
| 80 | This is the expiration year for this transaction ApplePay detail. | ||
| 81 | |||
| 82 | =cut | ||
| 83 | |||
| 84 | 22 | has expiration_year => ( | |
| 85 | is => 'ro', | ||
| 86 | ); | ||
| 87 | |||
| 88 | =head2 image_url() | ||
| 89 | |||
| 90 | This is the image url for this transaction AmexExpress checkout detail. | ||
| 91 | |||
| 92 | =cut | ||
| 93 | |||
| 94 | # Coerce this to URI | ||
| 95 | 22 | has image_url => ( | |
| 96 | is => 'ro', | ||
| 97 | ); | ||
| 98 | |||
| 99 | =head2 source_description() | ||
| 100 | |||
| 101 | This is the source description for this transaction AmexExpress checkout detail. | ||
| 102 | |||
| 103 | =cut | ||
| 104 | |||
| 105 | 22 | has source_description => ( | |
| 106 | is => 'ro', | ||
| 107 | ); | ||
| 108 | |||
| 109 | =head2 token() | ||
| 110 | |||
| 111 | This is the token for this transaction AmexExpress checkout detail. | ||
| 112 | |||
| 113 | =cut | ||
| 114 | |||
| 115 | 22 | has token => ( | |
| 116 | is => 'ro', | ||
| 117 | ); | ||
| 118 | |||
| 119 | =head1 METHODS | ||
| 120 | |||
| 121 | =head2 expiration_date() | ||
| 122 | |||
| 123 | This returns the expiration date in MM/YYYY format. | ||
| 124 | |||
| 125 | =cut | ||
| 126 | |||
| 127 | 0 | ▶ | sub expiration_date { |
|
Subroutine
expiration_date: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 128 | 0 | my $self = shift; | |
| 129 | 0 | $self->expiration_month . '/' . $self->expiration_year; | |
| 130 | } | ||
| 131 | |||
| 132 | 22 | __PACKAGE__->meta->make_immutable; | |
| 133 | |||
| 134 | 22 | 1; | |
| 135 | __END__ | ||