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

filter: Statementstmt 92.0% 23 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 90.3% 28 / 31 CC 1 SCAR 1.8
CC
1
Cov
92%
expiration_date
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/WebService/Braintree/_/GrantedPaymentInstrumentUpdate.pm ↑ Summary lib/WebService/Braintree/_/UnknownPaymentMethod.pm »
1 # vim: sw=4 ts=4 ft=perl
2  
3 package WebService::Braintree::_::Transaction::AndroidPayDetail;
4 22 $WebService::Braintree::_::Transaction::AndroidPayDetail::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::AndroidPayDetail
11  
12 =head1 PURPOSE
13  
14 This class represents a transaction AndroidPay 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 ▶use MooX::Aliases;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 22 extends 'WebService::Braintree::_';
24  
25 =head1 ATTRIBUTES
26  
27 =cut
28  
29 =head2 expiration_month()
30  
31 This is the expiration month for this transaction ApplePay detail.
32  
33 =cut
34  
35 22 has expiration_month => (
36 is => 'ro',
37 );
38  
39 =head2 expiration_year()
40  
41 This is the expiration year for this transaction ApplePay detail.
42  
43 =cut
44  
45 22 has expiration_year => (
46 is => 'ro',
47 );
48 =head2 google_transaction_id()
49  
50 This is the Google transaction id for this transaction AndroidPay checkout detail.
51  
52 =cut
53  
54 22 has google_transaction_id => (
55 is => 'ro',
56 );
57  
58 =head2 source_card_last_4()
59  
60 This is the source card last_4 for this transaction AndroidPay checkout detail.
61  
62 =cut
63  
64 22 has source_card_last_4 => (
65 is => 'ro',
66 );
67  
68 =head2 source_card_type()
69  
70 This is the source card type for this transaction AndroidPay checkout detail.
71  
72 =cut
73  
74 22 has source_card_type => (
75 is => 'ro',
76 );
77  
78 =head2 source_description()
79  
80 This is the source description for this transaction AndroidPay checkout detail.
81  
82 =cut
83  
84 22 has source_description => (
85 is => 'ro',
86 );
87  
88 =head2 virtual_card_last_4()
89  
90 This is the virtual card last_4 for this transaction AndroidPay checkout detail.
91  
92 C<< last_4() >> is an alias to this attribute.
93  
94 =cut
95  
96 22 has virtual_card_last_4 => (
97 is => 'ro',
98 alias => 'last_4',
99 );
100  
101 =head2 virtual_card_type()
102  
103 This is the virtual card type for this transaction AndroidPay checkout detail.
104  
105 C<< card_type() >> is an alias to this attribute.
106  
107 =cut
108  
109 22 has virtual_card_type => (
110 is => 'ro',
111 alias => 'card_type',
112 );
113  
114 =head1 METHODS
115  
116 =head2 expiration_date()
117  
118 This returns the expiration date in MM/YYYY format.
119  
120 =cut
121  
122 0 ▶sub expiration_date {
Subroutine expiration_date: not called CC=1 SCAR=6.9
Pod documented
123 0 my $self = shift;
124 0 $self->expiration_month . '/' . $self->expiration_year;
125 }
126  
127 22 __PACKAGE__->meta->make_immutable;
128  
129 22 1;
130 __END__
« lib/WebService/Braintree/_/GrantedPaymentInstrumentUpdate.pm ↑ Summary lib/WebService/Braintree/_/UnknownPaymentMethod.pm »