line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Payjp::External; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
50
|
use strict; |
|
9
|
|
|
|
|
17
|
|
|
9
|
|
|
|
|
246
|
|
4
|
9
|
|
|
9
|
|
43
|
use warnings; |
|
9
|
|
|
|
|
16
|
|
|
9
|
|
|
|
|
225
|
|
5
|
|
|
|
|
|
|
|
6
|
9
|
|
|
9
|
|
41
|
use base 'Net::Payjp::Resource'; |
|
9
|
|
|
|
|
17
|
|
|
9
|
|
|
|
|
2946
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub create{ |
9
|
1
|
|
|
1
|
1
|
3
|
my $self = shift; |
10
|
1
|
|
|
|
|
7
|
my %p = @_; |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
|
|
15
|
$self->_request( |
13
|
|
|
|
|
|
|
method => 'POST', |
14
|
|
|
|
|
|
|
url => $self->_instance_url, |
15
|
|
|
|
|
|
|
param => \%p |
16
|
|
|
|
|
|
|
); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub retrieve{ |
20
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
21
|
0
|
|
|
|
|
|
my $id = shift; |
22
|
0
|
0
|
|
|
|
|
$self->id($id) if $id; |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
$self->_request(method => 'GET', url => $self->_instance_url.'/'.$self->id); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub save{ |
28
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
29
|
0
|
|
|
|
|
|
my %p = @_; |
30
|
|
|
|
|
|
|
|
31
|
0
|
|
|
|
|
|
$self->_request(method => 'POST', url => $self->_instance_url.'/'.$self->id, param => \%p); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub delete{ |
35
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
36
|
0
|
|
|
|
|
|
my %p = @_; |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
|
|
|
$self->_request(method => 'DELETE', url => $self->_instance_url.'/'.$self->id); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
sub all{ |
42
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
43
|
0
|
|
|
|
|
|
my %p = @_; |
44
|
|
|
|
|
|
|
|
45
|
0
|
|
|
|
|
|
$self->_request(method => 'GET', url => $self->_instance_url, param => \%p); |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |