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