line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Payjp::Subscription; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
43
|
use strict; |
|
9
|
|
|
|
|
22
|
|
|
9
|
|
|
|
|
225
|
|
4
|
9
|
|
|
9
|
|
44
|
use warnings; |
|
9
|
|
|
|
|
17
|
|
|
9
|
|
|
|
|
233
|
|
5
|
|
|
|
|
|
|
|
6
|
9
|
|
|
9
|
|
47
|
use base 'Net::Payjp::Resource'; |
|
9
|
|
|
|
|
13
|
|
|
9
|
|
|
|
|
2425
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub pause{ |
9
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
10
|
0
|
|
|
|
|
|
my $id = shift; |
11
|
0
|
0
|
|
|
|
|
$self->id($id) if $id; |
12
|
|
|
|
|
|
|
|
13
|
0
|
|
|
|
|
|
$self->_request(method => 'POST', url => $self->_instance_url.'/pause'); |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub resume{ |
17
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
18
|
0
|
|
|
|
|
|
my $id = shift; |
19
|
0
|
0
|
|
|
|
|
$self->id($id) if $id; |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
|
$self->_request(method => 'POST', url => $self->_instance_url.'/resume'); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub cancel{ |
25
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
26
|
0
|
|
|
|
|
|
my $id = shift; |
27
|
0
|
0
|
|
|
|
|
$self->id($id) if $id; |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
$self->_request(method => 'POST', url => $self->_instance_url.'/cancel'); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |