line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Payjp::Customer::Subscription; |
2
|
|
|
|
|
|
|
|
3
|
11
|
|
|
11
|
|
78
|
use strict; |
|
11
|
|
|
|
|
28
|
|
|
11
|
|
|
|
|
299
|
|
4
|
11
|
|
|
11
|
|
68
|
use warnings; |
|
11
|
|
|
|
|
20
|
|
|
11
|
|
|
|
|
267
|
|
5
|
|
|
|
|
|
|
|
6
|
11
|
|
|
11
|
|
65
|
use base 'Net::Payjp'; |
|
11
|
|
|
|
|
30
|
|
|
11
|
|
|
|
|
3132
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub cus_id{ |
9
|
4
|
|
|
4
|
0
|
11
|
my $self = shift; |
10
|
4
|
100
|
|
|
|
14
|
$self->{cus_id} = shift if @_; |
11
|
4
|
|
|
|
|
18
|
return $self->{cus_id}; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub retrieve{ |
15
|
1
|
|
|
1
|
1
|
3
|
my $self = shift; |
16
|
1
|
|
|
|
|
2
|
my $id = shift; |
17
|
1
|
50
|
|
|
|
9
|
$self->id($id) if $id; |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
|
|
4
|
$self->_request(method => 'GET', url => $self->_instance_url.'/'.$self->id); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub all{ |
23
|
1
|
|
|
1
|
1
|
4
|
my $self = shift; |
24
|
1
|
|
|
|
|
3
|
my %p = @_; |
25
|
|
|
|
|
|
|
|
26
|
1
|
|
|
|
|
5
|
$self->_request(method => 'GET', url => $self->_instance_url, param => \%p); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub _instance_url{ |
30
|
2
|
|
|
2
|
|
4
|
my $self = shift; |
31
|
2
|
|
|
|
|
8
|
return $self->api_base.'/v1/customers/'.$self->cus_id.'/subscriptions'; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |