line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Flotum::Object::CreditCard; |
2
|
4
|
|
|
4
|
|
66
|
use strict; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
104
|
|
3
|
4
|
|
|
4
|
|
19
|
use warnings; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
81
|
|
4
|
4
|
|
|
4
|
|
50
|
use utf8; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
18
|
|
5
|
4
|
|
|
4
|
|
124
|
use Carp qw/croak/; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
181
|
|
6
|
4
|
|
|
4
|
|
22
|
use Moo; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
17
|
|
7
|
4
|
|
|
4
|
|
1150
|
use namespace::clean; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
20
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
has 'flotum' => ( is => 'ro', weak_ref => 1, required => 1); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has [ |
12
|
|
|
|
|
|
|
qw/ |
13
|
|
|
|
|
|
|
verified_by_any_merchant |
14
|
|
|
|
|
|
|
created_at |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
mask |
17
|
|
|
|
|
|
|
validity |
18
|
|
|
|
|
|
|
conjecture_brand |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
/ |
21
|
|
|
|
|
|
|
] => ( is => 'ro' ); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
has [ |
24
|
|
|
|
|
|
|
qw/ |
25
|
|
|
|
|
|
|
id |
26
|
|
|
|
|
|
|
merchant_customer_id |
27
|
|
|
|
|
|
|
/ |
28
|
|
|
|
|
|
|
] => ( is => 'ro', required => 1 ); |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub remove { |
31
|
1
|
|
|
1
|
0
|
3317
|
my ($self) = @_; |
32
|
|
|
|
|
|
|
|
33
|
1
|
|
|
|
|
11
|
my $cc = $self->flotum->_remove_customer_credit_cards( |
34
|
|
|
|
|
|
|
id => $self->id, |
35
|
|
|
|
|
|
|
merchant_customer_id => $self->merchant_customer_id |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
|
38
|
1
|
50
|
|
|
|
12
|
return $cc eq '' ? 1 : 0; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
__END__ |