lib/WebService/Braintree/_/VenmoAccount.pm

filter: Statementstmt 100% 31 / 31 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 37 / 37 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/WebService/Braintree/_/UsBankAccount.pm ↑ Summary
1 # vim: sw=4 ts=4 ft=perl
2  
3 package WebService::Braintree::_::VenmoAccount;
4 22 $WebService::Braintree::_::VenmoAccount::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::_::VenmoAccount
11  
12 =head1 PURPOSE
13  
14 This class represents a Venmo 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 created_at()
35  
36 This returns when this account was created.
37  
38 =cut
39  
40 22 has created_at => (
41 is => 'ro',
42 );
43  
44 =head2 customer_id()
45  
46 This returns the account's customer ID.
47  
48 =cut
49  
50 22 has customer_id => (
51 is => 'ro',
52 );
53  
54 =head2 default()
55  
56 This returns if this account is default.
57  
58 C<< is_default() >> is an alias for this attribute.
59  
60 =cut
61  
62 22 has default => (
63 is => 'ro',
64 alias => 'is_default',
65 );
66  
67 =head2 image_url()
68  
69 This returns the account's image URL.
70  
71 =cut
72  
73 22 has image_url => (
74 is => 'ro',
75 );
76  
77 =head2 source_description()
78  
79 This returns the account's source description.
80  
81 =cut
82  
83 22 has source_description => (
84 is => 'ro',
85 );
86  
87 =head2 subscriptions()
88  
89 This returns the account's subscriptions. This will be an arrayref of
90 L<subscriptions|WebService::Braintree::_::Subscription/>.
91  
92 =cut
93  
94 22 has subscriptions => (
95 is => 'ro',
96 isa => ArrayRef[Subscription],
97 coerce => 1,
98 );
99  
100 =head2 token()
101  
102 This returns the account's token.
103  
104 =cut
105  
106 22 has token => (
107 is => 'ro',
108 );
109  
110 =head2 updated_at()
111  
112 This returns when this account was last updated.
113  
114 =cut
115  
116 22 has updated_at => (
117 is => 'ro',
118 );
119  
120 =head2 username()
121  
122 This returns the account's username.
123  
124 =cut
125  
126 22 has username => (
127 is => 'ro',
128 );
129  
130 =head2 venmo_user_id()
131  
132 This returns the account's Venmo userid.
133  
134 =cut
135  
136 22 has venmo_user_id => (
137 is => 'ro',
138 );
139  
140 22 __PACKAGE__->meta->make_immutable;
141  
142 22 1;
143 __END__
« lib/WebService/Braintree/_/UsBankAccount.pm ↑ Summary