Shipment/Service.pm

filter: Statementstmt 100% 55 / 55 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 16 / 16 Podpod n/a totaltotal 100% 71 / 71 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Shipment/Purolator/WSDLV2/Interfaces/ServiceAvailabilityService/ServiceAvailabilityServiceEndpoint.pm ↑ Summary Shipment/Temando/WSDL/Interfaces/quoting_Service/quoting_port.pm »
1 package Shipment::Service;
2 12 $Shipment::Service::VERSION = '3.11';
3 12 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 12 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6  
7 12 ▶use Data::Currency;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 12 ▶use Scalar::Util qw/blessed/;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 12 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 12 ▶use MooX::Types::MooseLike::Base qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
11 12 ▶use MooX::Types::MooseLike::DateTime qw( DateAndTime );
Subroutine BEGIN: called CC=1 SCAR=0.0
12 12 ▶use Shipment::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 12 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15  
16 12 has 'id' => (
17 is => 'rw',
18 isa => Str,
19 );
20  
21 12 has 'carrier_id' => (
22 is => 'rw',
23 isa => Str,
24 );
25  
26  
27 12 has 'name' => (
28 is => 'rw',
29 isa => Str,
30 );
31  
32 12 has 'carrier_name' => (
33 is => 'rw',
34 isa => Str,
35 );
36  
37 12 has 'service_name' => (
38 is => 'rw',
39 isa => Str,
40 );
41  
42  
43 12 has 'package' => (
44 is => 'rw',
45 isa => InstanceOf ['Shipment::Package'],
46 );
47  
48  
49 12 has 'etd' => (
50 is => 'rw',
51 isa => Num,
52 );
53  
54 12 has 'pickup_etd' => (
55 is => 'rw',
56 isa => Num,
57 );
58  
59  
60 12 has 'ship_date' => (
61 is => 'rw',
62 isa => DateAndTime,
63 coerce => \&Shipment::Base::coerce_datetime,
64 );
65  
66  
67 12 has 'eta' => (
68 is => 'rw',
69 isa => DateAndTime,
70 coerce => \&Shipment::Base::coerce_datetime,
71 );
72  
73  
74 12 has 'guaranteed' => (
75 is => 'rw',
76 isa => Bool,
77 default => 0,
78 );
79  
80  
81 has 'cost' => (
82 is => 'rw',
83 isa => InstanceOf ['Data::Currency'],
84 1 ▶ default => sub { Data::Currency->new(0) },
Subroutine __ANON__: called CC=1 SCAR=0.0
85 12 );
86  
87 has 'base_cost' => (
88 is => 'rw',
89 isa => InstanceOf ['Data::Currency'],
90 3 ▶ default => sub { Data::Currency->new(0) },
Subroutine __ANON__: called CC=1 SCAR=0.0
91 12 );
92  
93 has 'tax' => (
94 is => 'rw',
95 isa => InstanceOf ['Data::Currency'],
96 3 ▶ default => sub { Data::Currency->new(0) },
Subroutine __ANON__: called CC=1 SCAR=0.0
97 12 );
98  
99  
100 has 'extra_charges' => (
101 is => 'rw',
102 isa => InstanceOf ['Data::Currency'],
103 3 ▶ default => sub { Data::Currency->new(0) },
Subroutine __ANON__: called CC=1 SCAR=0.0
104 12 );
105  
106 has 'adjustments' => (
107 is => 'rw',
108 isa => InstanceOf ['Data::Currency'],
109 3 ▶ default => sub { Data::Currency->new(0) },
Subroutine __ANON__: called CC=1 SCAR=0.0
110 12 );
111  
112  
113 12 has 'options' => (
114 is => 'rw',
115 isa => HashRef [Str],
116 );
117  
118  
119 has 'extras' => (
120 is => 'rw',
121 isa => HashRef [InstanceOf ['Shipment::Service']],
122 3 ▶ default => sub { {} },
Subroutine __ANON__: called CC=1 SCAR=0.0
123 12 );
124  
125  
126 has 'discount' => (
127 is => 'rw',
128 isa => InstanceOf ['Data::Currency'],
129 3 ▶ default => sub { Data::Currency->new(0) },
Subroutine __ANON__: called CC=1 SCAR=0.0
130 12 );
131  
132 12 1;
133  
134 __END__
« Shipment/Purolator/WSDLV2/Interfaces/ServiceAvailabilityService/ServiceAvailabilityServiceEndpoint.pm ↑ Summary Shipment/Temando/WSDL/Interfaces/quoting_Service/quoting_port.pm »