lib/WebService/Braintree/_/Transaction/ApplePayDetail.pm

filter: Statementstmt 90.4% 19 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 88.4% 23 / 26 CC 1 SCAR 2.2
CC
1
Cov
90%
expiration_date
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/WebService/Braintree/TransactionLineItem.pm ↑ Summary lib/WebService/Braintree/_/Transaction/AmexExpressCheckoutDetail.pm »
1 # vim: sw=4 ts=4 ft=perl
2  
3 package WebService::Braintree::_::Transaction::ApplePayDetail;
4 22 $WebService::Braintree::_::Transaction::ApplePayDetail::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::ApplePayDetail
11  
12 =head1 PURPOSE
13  
14 This class represents a transaction ApplePay 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 card_type()
29  
30 This is the card type for this transaction ApplePay detail.
31  
32 =cut
33  
34 22 has card_type => (
35 is => 'ro',
36 );
37  
38 =head2 cardholder_name()
39  
40 This is the cardholder name for this transaction ApplePay detail.
41  
42 =cut
43  
44 22 has cardholder_name => (
45 is => 'ro',
46 );
47  
48 =head2 expiration_month()
49  
50 This is the expiration month for this transaction ApplePay detail.
51  
52 =cut
53  
54 22 has expiration_month => (
55 is => 'ro',
56 );
57  
58 =head2 expiration_year()
59  
60 This is the expiration year for this transaction ApplePay detail.
61  
62 =cut
63  
64 22 has expiration_year => (
65 is => 'ro',
66 );
67  
68 =head2 last_4()
69  
70 This is the last_4 for this transaction ApplePay detail.
71  
72 =cut
73  
74 22 has last_4 => (
75 is => 'ro',
76 );
77  
78 =head2 payment_instrument_name()
79  
80 This is the payment instrument name for this transaction ApplePay detail.
81  
82 =cut
83  
84 22 has payment_instrument_name => (
85 is => 'ro',
86 );
87  
88 =head2 source_description()
89  
90 This is the source description for this transaction ApplePay detail.
91  
92 =cut
93  
94 22 has source_description => (
95 is => 'ro',
96 );
97  
98 =head1 METHODS
99  
100 =head2 expiration_date()
101  
102 This returns the expiration date in MM/YYYY format.
103  
104 =cut
105  
106 0 ▶sub expiration_date {
Subroutine expiration_date: not called CC=1 SCAR=6.9
Pod documented
107 0 my $self = shift;
108 0 $self->expiration_month . '/' . $self->expiration_year;
109 }
110  
111 22 __PACKAGE__->meta->make_immutable;
112  
113 22 1;
114 __END__
« lib/WebService/Braintree/TransactionLineItem.pm ↑ Summary lib/WebService/Braintree/_/Transaction/AmexExpressCheckoutDetail.pm »