line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Braintree::PayPalAccount; |
2
|
1
|
|
|
1
|
|
4
|
use Moose; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
3
|
|
|
|
|
|
|
extends 'Net::Braintree::PaymentMethod'; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
my $meta = __PACKAGE__->meta; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub BUILD { |
8
|
0
|
|
|
0
|
0
|
|
my ($self, $attributes) = @_; |
9
|
0
|
|
|
|
|
|
$self->set_attributes_from_hash($self, $attributes); |
10
|
|
|
|
|
|
|
} |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
has email => ( is => 'rw' ); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub find { |
15
|
0
|
|
|
0
|
0
|
|
my ($class, $token) = @_; |
16
|
0
|
|
|
|
|
|
$class->gateway->paypal_account->find($token); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub update { |
20
|
0
|
|
|
0
|
0
|
|
my ($class, $token, $params) = @_; |
21
|
0
|
|
|
|
|
|
$class->gateway->paypal_account->update($token, $params); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub gateway { |
25
|
0
|
|
|
0
|
0
|
|
Net::Braintree->configuration->gateway; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |