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