line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::Coincheck::Send; |
2
|
2
|
|
|
2
|
|
1227754
|
use strict; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
86
|
|
3
|
2
|
|
|
2
|
|
19
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
139
|
|
4
|
|
|
|
|
|
|
use Class::Accessor::Lite ( |
5
|
2
|
|
|
|
|
16
|
ro => [qw/ |
6
|
|
|
|
|
|
|
client |
7
|
|
|
|
|
|
|
/], |
8
|
2
|
|
|
2
|
|
587
|
); |
|
2
|
|
|
|
|
1153
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new { |
11
|
1
|
|
|
1
|
0
|
33
|
my $class = shift; |
12
|
1
|
|
|
|
|
3
|
my $client = shift; |
13
|
|
|
|
|
|
|
|
14
|
1
|
|
|
|
|
6
|
bless { |
15
|
|
|
|
|
|
|
client => $client, |
16
|
|
|
|
|
|
|
}, $class; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub create { |
20
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
my $req_params = { |
23
|
|
|
|
|
|
|
address => $params{address}, |
24
|
|
|
|
|
|
|
amount => $params{amount}, |
25
|
0
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
|
|
|
my $res = $self->client->request( |
28
|
|
|
|
|
|
|
'POST' => 'api/send_money', |
29
|
|
|
|
|
|
|
$req_params, |
30
|
|
|
|
|
|
|
); |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
|
|
|
return $res; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub all { |
36
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
my $req_params = { |
39
|
|
|
|
|
|
|
currency => $params{currency}, |
40
|
0
|
|
|
|
|
|
}; |
41
|
|
|
|
|
|
|
|
42
|
0
|
|
|
|
|
|
my $res = $self->client->request( |
43
|
|
|
|
|
|
|
'GET' => 'api/send_money', |
44
|
|
|
|
|
|
|
$req_params, |
45
|
|
|
|
|
|
|
); |
46
|
|
|
|
|
|
|
|
47
|
0
|
|
|
|
|
|
return $res; |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
1; |