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