line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Easypost::CustomsItem; |
2
|
|
|
|
|
|
|
$Net::Easypost::CustomsItem::VERSION = '0.23'; |
3
|
1
|
|
|
1
|
|
378
|
use Types::Standard qw/Num Str Undef/; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
6
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
613
|
use Moo; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
5
|
|
6
|
|
|
|
|
|
|
with qw/Net::Easypost::PostOnBuild/; |
7
|
|
|
|
|
|
|
with qw/Net::Easypost::Resource/; |
8
|
1
|
|
|
1
|
|
304
|
use namespace::autoclean; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has [qw/description hs_tariff_number origin_country code currency/] => ( |
11
|
|
|
|
|
|
|
is => 'rw', |
12
|
|
|
|
|
|
|
isa => Str|Undef |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has [qw/quantity value weight/] => ( |
16
|
|
|
|
|
|
|
is => 'rw', |
17
|
|
|
|
|
|
|
isa => Num |
18
|
|
|
|
|
|
|
); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub _build_fieldnames { |
21
|
|
|
|
|
|
|
return [ |
22
|
1
|
|
|
1
|
|
5379
|
qw/ |
23
|
|
|
|
|
|
|
code |
24
|
|
|
|
|
|
|
currency |
25
|
|
|
|
|
|
|
description |
26
|
|
|
|
|
|
|
hs_tariff_number |
27
|
|
|
|
|
|
|
origin_country |
28
|
|
|
|
|
|
|
quantity |
29
|
|
|
|
|
|
|
value |
30
|
|
|
|
|
|
|
weight |
31
|
|
|
|
|
|
|
/ |
32
|
|
|
|
|
|
|
]; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
1
|
|
|
1
|
|
161
|
sub _build_role { 'customs_item' } |
36
|
|
|
|
|
|
|
|
37
|
1
|
|
|
1
|
|
35
|
sub _build_operation { '/customs_items' } |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub clone { |
40
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
return Net::Easypost::CustomsItems->new( |
43
|
0
|
|
|
|
|
|
map { $_ => $self->$_ } |
44
|
0
|
|
|
|
|
|
grep { defined $self->$_ } @{ $self->fieldnames } |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
); |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
__END__ |