line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
7
|
|
|
7
|
|
38
|
use strict; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
169
|
|
2
|
7
|
|
|
7
|
|
35
|
use warnings; |
|
7
|
|
|
|
|
16
|
|
|
7
|
|
|
|
|
174
|
|
3
|
7
|
|
|
7
|
|
34
|
use MRO::Compat 'c3'; |
|
7
|
|
|
|
|
16
|
|
|
7
|
|
|
|
|
260
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package WebService::Shippo::Shipments; |
6
|
|
|
|
|
|
|
require WebService::Shippo::Shipment; |
7
|
7
|
|
|
|
|
1135
|
use base qw( |
8
|
|
|
|
|
|
|
WebService::Shippo::Collection |
9
|
|
|
|
|
|
|
WebService::Shippo::Create |
10
|
|
|
|
|
|
|
WebService::Shippo::Fetch |
11
|
7
|
|
|
7
|
|
35
|
); |
|
7
|
|
|
|
|
12
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub item_class () { 'WebService::Shippo::Shipment' } |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub collection_class () { __PACKAGE__ } |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
BEGIN { |
18
|
7
|
|
|
7
|
|
47
|
no warnings 'once'; |
|
7
|
|
|
|
|
29
|
|
|
7
|
|
|
|
|
246
|
|
19
|
7
|
|
|
7
|
|
196
|
*Shippo::Shipments:: = *WebService::Shippo::Shipments::; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=pod |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=encoding utf8 |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 NAME |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
WebService::Shippo::Shipment - Shipment collection class |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 VERSION |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
version 0.0.21 |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 DESCRIPTION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
At the heart of the Shippo API is the Shipment object. It is made up |
39
|
|
|
|
|
|
|
of sender and recipient addresses, details of the parcel to be shipped |
40
|
|
|
|
|
|
|
and, for international shipments, the customs declaration. Once created, |
41
|
|
|
|
|
|
|
a Shipment object can be used to retrieve shipping rates and purchase a |
42
|
|
|
|
|
|
|
shipping label. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 API DOCUMENTATION |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
For more information about Shipments, consult the Shippo API documentation: |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=over 2 |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=item * L |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=back |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 REPOSITORY |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=over 2 |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=item * L |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=item * L |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=back |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 AUTHOR |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Iain Campbell |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Iain Campbell. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
You may distribute this software under the terms of either the GNU General |
73
|
|
|
|
|
|
|
Public License or the Artistic License, as specified in the Perl README |
74
|
|
|
|
|
|
|
file. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=cut |