line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::Braintree::PayPalAccountGateway; |
2
|
|
|
|
|
|
|
$WebService::Braintree::PayPalAccountGateway::VERSION = '0.94'; |
3
|
20
|
|
|
20
|
|
426
|
use 5.010_001; |
|
20
|
|
|
|
|
68
|
|
4
|
20
|
|
|
20
|
|
115
|
use strictures 1; |
|
20
|
|
|
|
|
148
|
|
|
20
|
|
|
|
|
856
|
|
5
|
|
|
|
|
|
|
|
6
|
20
|
|
|
20
|
|
2006
|
use Moose; |
|
20
|
|
|
|
|
45
|
|
|
20
|
|
|
|
|
126
|
|
7
|
|
|
|
|
|
|
with 'WebService::Braintree::Role::MakeRequest'; |
8
|
|
|
|
|
|
|
|
9
|
20
|
|
|
20
|
|
121906
|
use Carp qw(confess); |
|
20
|
|
|
|
|
43
|
|
|
20
|
|
|
|
|
3509
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has 'gateway' => (is => 'ro'); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub find { |
14
|
0
|
|
|
0
|
0
|
|
my ($self, $token) = @_; |
15
|
0
|
|
|
|
|
|
$self->_make_request("/payment_methods/paypal_account/$token", "get", undef)->paypal_account; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub update { |
19
|
0
|
|
|
0
|
0
|
|
my ($self, $token, $params) = @_; |
20
|
0
|
|
|
|
|
|
$self->_make_request( |
21
|
|
|
|
|
|
|
"/payment_methods/paypal_account/$token", |
22
|
|
|
|
|
|
|
"put", |
23
|
|
|
|
|
|
|
{ |
24
|
|
|
|
|
|
|
paypal_account => $params |
25
|
|
|
|
|
|
|
}); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
__END__ |