line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Braintree::PaymentMethod; |
2
|
1
|
|
|
1
|
|
802
|
use Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
10
|
|
3
|
|
|
|
|
|
|
extends 'Net::Braintree::ResultObject'; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
has token => ( is => 'rw' ); |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub create { |
8
|
0
|
|
|
0
|
0
|
|
my ($class, $params) = @_; |
9
|
0
|
|
|
|
|
|
$class->gateway->payment_method->create($params); |
10
|
|
|
|
|
|
|
} |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub update { |
13
|
0
|
|
|
0
|
0
|
|
my ($class, $token, $params) = @_; |
14
|
0
|
|
|
|
|
|
$class->gateway->payment_method->update($token, $params); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub delete { |
18
|
0
|
|
|
0
|
0
|
|
my ($class, $token) = @_; |
19
|
0
|
|
|
|
|
|
$class->gateway->payment_method->delete($token); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub find { |
23
|
0
|
|
|
0
|
0
|
|
my ($class, $token) = @_; |
24
|
0
|
|
|
|
|
|
$class->gateway->payment_method->find($token); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub gateway { |
28
|
0
|
|
|
0
|
0
|
|
return Net::Braintree->configuration->gateway; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |