line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Flotum::Object::Charge; |
2
|
4
|
|
|
4
|
|
26
|
use common::sense; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
22
|
|
3
|
4
|
|
|
4
|
|
192
|
use Moo; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
20
|
|
4
|
4
|
|
|
4
|
|
1175
|
use namespace::clean; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
20
|
|
5
|
4
|
|
|
4
|
|
998
|
use MooX::late; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
19
|
|
6
|
4
|
|
|
4
|
|
583
|
use Carp; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
1024
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has flotum => ( |
9
|
|
|
|
|
|
|
is => "ro", |
10
|
|
|
|
|
|
|
weak_ref => 1, |
11
|
|
|
|
|
|
|
required => 1, |
12
|
|
|
|
|
|
|
); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
has id => ( |
15
|
|
|
|
|
|
|
is => "rw", |
16
|
|
|
|
|
|
|
isa => "Str", |
17
|
|
|
|
|
|
|
required => 1, |
18
|
|
|
|
|
|
|
); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
has customer => ( |
21
|
|
|
|
|
|
|
is => "rw", |
22
|
|
|
|
|
|
|
isa => "Net::Flotum::Object::Customer", |
23
|
|
|
|
|
|
|
weak_ref => 1, |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub payment { |
27
|
1
|
|
|
1
|
0
|
5033
|
my $self = shift; |
28
|
|
|
|
|
|
|
|
29
|
1
|
|
|
|
|
9
|
return $self->flotum->_payment_charge( @_, charge => $self ); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub capture { |
33
|
1
|
|
|
1
|
0
|
6
|
my $self = shift; |
34
|
|
|
|
|
|
|
|
35
|
1
|
|
|
|
|
19
|
return $self->flotum->_capture_charge( @_, charge => $self ); |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub refund { |
39
|
1
|
|
|
1
|
0
|
1449
|
my $self = shift; |
40
|
|
|
|
|
|
|
|
41
|
1
|
|
|
|
|
11
|
return $self->flotum->_refund_charge( @_, charge => $self ); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__END__ |