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