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