lib/WebService/Braintree/_/PayPalAccount.pm

filter: Statementstmt 100% 33 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 39 / 39 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/WebService/Braintree/_/MerchantAccount/IndividualDetails.pm ↑ Summary lib/WebService/Braintree/_/PaymentMethodNonce.pm »
1 # vim: sw=4 ts=4 ft=perl
2  
3 package WebService::Braintree::_::PayPalAccount;
4 22 $WebService::Braintree::_::PayPalAccount::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::_::PayPalAccount
11  
12 =head1 PURPOSE
13  
14 This class represents a PayPal 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 Types::Standard qw(ArrayRef);
Subroutine BEGIN: called CC=1 SCAR=0.0
26 22 ▶use WebService::Braintree::Types qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
27 Subscription
28 22 );
29  
30 =head1 ATTRIBUTES
31  
32 =cut
33  
34 =head2 billing_agreement_id()
35  
36 This returns the account's billing agreement ID.
37  
38 =cut
39  
40 22 has billing_agreement_id => (
41 is => 'ro',
42 );
43  
44 =head2 created_at()
45  
46 This returns when this account was created.
47  
48 =cut
49  
50 22 has created_at => (
51 is => 'ro',
52 );
53  
54 =head2 customer_id()
55  
56 This returns the account's customer's ID.
57  
58 =cut
59  
60 22 has customer_id => (
61 is => 'ro',
62 );
63  
64 =head2 default()
65  
66 This returns if this account is default.
67  
68 C<< is_default() >> is an alias for this attribute.
69  
70 =cut
71  
72 22 has default => (
73 is => 'ro',
74 alias => 'is_default',
75 );
76  
77 =head2 email()
78  
79 This returns the account's email.
80  
81 =cut
82  
83 22 has email => (
84 is => 'ro',
85 );
86  
87 =head2 image_url()
88  
89 This returns the account's image URL.
90  
91 =cut
92  
93 22 has image_url => (
94 is => 'ro',
95 );
96  
97 =head2 is_channel_initiated()
98  
99 This returns true if this account is channel-initiated.
100  
101 =cut
102  
103 22 has is_channel_initiated => (
104 is => 'ro',
105 );
106  
107 =head2 limited_use_order_id()
108  
109 This returns the account's limited-use order ID.
110  
111 =cut
112  
113 22 has limited_use_order_id => (
114 is => 'ro',
115 );
116  
117 =head2 payer_info()
118  
119 This returns the account's payer info.
120  
121 =cut
122  
123 22 has payer_info => (
124 is => 'ro',
125 );
126  
127 =head2 subscriptions()
128  
129 This returns the account's subscriptions. This will be an arrayref of
130 L<subscriptions|WebService::Braintree::_::Subscription/>.
131  
132 =cut
133  
134 22 has subscriptions => (
135 is => 'ro',
136 isa => ArrayRef[Subscription],
137 coerce => 1,
138 );
139  
140 =head2 token()
141  
142 This returns the account's token.
143  
144 =cut
145  
146 22 has token => (
147 is => 'ro',
148 );
149  
150 =head2 updated_at()
151  
152 This returns when this account was last updated.
153  
154 =cut
155  
156 22 has updated_at => (
157 is => 'ro',
158 );
159  
160 22 __PACKAGE__->meta->make_immutable;
161  
162 22 1;
163 __END__
« lib/WebService/Braintree/_/MerchantAccount/IndividualDetails.pm ↑ Summary lib/WebService/Braintree/_/PaymentMethodNonce.pm »