line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
7
|
|
|
7
|
|
34
|
use strict; |
|
7
|
|
|
|
|
10
|
|
|
7
|
|
|
|
|
181
|
|
2
|
7
|
|
|
7
|
|
33
|
use warnings; |
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
173
|
|
3
|
7
|
|
|
7
|
|
31
|
use MRO::Compat 'c3'; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
199
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package WebService::Shippo::Manifest; |
6
|
7
|
|
|
|
|
1196
|
use base qw( |
7
|
|
|
|
|
|
|
WebService::Shippo::Resource |
8
|
|
|
|
|
|
|
WebService::Shippo::Create |
9
|
|
|
|
|
|
|
WebService::Shippo::Fetch |
10
|
7
|
|
|
7
|
|
31
|
); |
|
7
|
|
|
|
|
11
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub api_resource () { 'manifests' } |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub collection_class () { 'WebService::Shippo::Manifests' } |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub item_class () { __PACKAGE__ } |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
BEGIN { |
19
|
7
|
|
|
7
|
|
33
|
no warnings 'once'; |
|
7
|
|
|
|
|
11
|
|
|
7
|
|
|
|
|
231
|
|
20
|
7
|
|
|
7
|
|
234
|
*Shippo::Manifest:: = *WebService::Shippo::Manifest::; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=pod |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=encoding utf8 |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 NAME |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
WebService::Shippo::CarrierAccount - Manifest class |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 VERSION |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
version 0.0.20 |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 DESCRIPTION |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Manifests are close-outs of shipping labels of a certain day. Some carriers |
40
|
|
|
|
|
|
|
require manifests to properly process the shipments. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
The following carriers require manifests: |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=over 2 |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=item * DHL Express purchased through Shippo |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
If you use Shippo's DHL Express rates, you need to manifest ("close-out") |
49
|
|
|
|
|
|
|
your shipments each day before submitting them to the carrier. If you don't |
50
|
|
|
|
|
|
|
close-out a shipment, it might not be processed at all by DHL Express. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=item * USPS scan form |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
The USPS allows you to create "scan forms", which also is a Manifest. By |
55
|
|
|
|
|
|
|
creating scan forms, the USPS doesn't need to scan each of your packages |
56
|
|
|
|
|
|
|
individually and all tracking codes are updated immediately. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=item * Canada Post Contract customers |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Contract customers that generally ship more than 50 shipments a day will |
61
|
|
|
|
|
|
|
need to create manifests to transmit the shipments for billing, for a |
62
|
|
|
|
|
|
|
given day. Contract customers that ship less than 50 daily can generally |
63
|
|
|
|
|
|
|
skip the manifest requirement, but are encouraged to verify with Canada |
64
|
|
|
|
|
|
|
Post. If a contract customer doesn't close out a shipment day by creating |
65
|
|
|
|
|
|
|
a manifest, Canada Post may bill for & transmit the shipments on customer's |
66
|
|
|
|
|
|
|
behalf. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=back |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
I |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 API DOCUMENTATION |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
For more information about Manifests, consult the Shippo API documentation: |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=over 2 |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=item * L |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=back |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 REPOSITORY |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=over 2 |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=item * L |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=item * L |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=back |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head1 AUTHOR |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Iain Campbell |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Iain Campbell. |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
You may distribute this software under the terms of either the GNU General |
101
|
|
|
|
|
|
|
Public License or the Artistic License, as specified in the Perl README |
102
|
|
|
|
|
|
|
file. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=cut |