line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Flotum::Object::CreditCard; |
2
|
8
|
|
|
8
|
|
27
|
use strict; |
|
8
|
|
|
|
|
7
|
|
|
8
|
|
|
|
|
169
|
|
3
|
8
|
|
|
8
|
|
21
|
use warnings; |
|
8
|
|
|
|
|
9
|
|
|
8
|
|
|
|
|
139
|
|
4
|
8
|
|
|
8
|
|
22
|
use utf8; |
|
8
|
|
|
|
|
8
|
|
|
8
|
|
|
|
|
25
|
|
5
|
8
|
|
|
8
|
|
122
|
use Carp qw/croak/; |
|
8
|
|
|
|
|
8
|
|
|
8
|
|
|
|
|
271
|
|
6
|
8
|
|
|
8
|
|
27
|
use Moo; |
|
8
|
|
|
|
|
9
|
|
|
8
|
|
|
|
|
32
|
|
7
|
8
|
|
|
8
|
|
1398
|
use namespace::clean; |
|
8
|
|
|
|
|
12
|
|
|
8
|
|
|
|
|
37
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
has 'flotum' => ( is => 'ro', weak_ref => 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
|
2130
|
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
|
|
|
|
10
|
return $cc eq '' ? 1 : 0; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
__END__ |