lib/WebService/Braintree/_/GrantedPaymentInstrumentUpdate.pm

filter: Statementstmt 90.9% 20 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 85.7% 24 / 28 CC 1 SCAR 1.8
CC
1
Cov
91%
BUILD
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/WebService/Braintree/PlanGateway.pm ↑ Summary lib/WebService/Braintree/_/Transaction/AndroidPayDetail.pm »
1 # vim: sw=4 ts=4 ft=perl
2  
3 package WebService::Braintree::_::GrantedPaymentInstrumentUpdate;
4 22 $WebService::Braintree::_::GrantedPaymentInstrumentUpdate::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::_::GrantedPaymentInstrumentUpdate
11  
12 =head1 PURPOSE
13  
14 This class represents an update to a granted payment instrument.
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 grant_owner_merchant_id()
30  
31 This is the grant owner merchant ID for this update.
32  
33 =cut
34  
35 22 has grant_owner_merchant_id => (
36 is => 'ro',
37 );
38  
39 =head2 grant_recipient_merchant_id()
40  
41 This is the grant recipient merchant ID for this update.
42  
43 =cut
44  
45 22 has grant_recipient_merchant_id => (
46 is => 'ro',
47 );
48  
49 =head2 payment_method_nonce()
50  
51 This is the payment method nonce for this update.
52  
53 =cut
54  
55 22 has payment_method_nonce => (
56 # q.v. BUILD() for why this is 'rw' instead of 'ro'
57 is => 'rw',
58 );
59  
60 =head2 token()
61  
62 This is the token for this update.
63  
64 =cut
65  
66 22 has token => (
67 is => 'ro',
68 );
69  
70 =head2 updated_fields()
71  
72 This is the updated fields for this update.
73  
74 =cut
75  
76 22 has updated_fields => (
77 is => 'ro',
78 );
79  
80 0 ▶sub BUILD {
Subroutine BUILD: not called CC=1 SCAR=6.9
Pod undocumented
81 0 my $self = shift;
82  
83 # This is in the Ruby SDK. I'm not sure why we want to do this.
84 $self->payment_method_nonce(
85 $self->payment_method_nonce->{nonce},
86 0 );
87 }
88  
89 22 __PACKAGE__->meta->make_immutable;
90  
91 22 1;
92 __END__
« lib/WebService/Braintree/PlanGateway.pm ↑ Summary lib/WebService/Braintree/_/Transaction/AndroidPayDetail.pm »