line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
7
|
|
|
7
|
|
33
|
use strict; |
|
7
|
|
|
|
|
10
|
|
|
7
|
|
|
|
|
210
|
|
2
|
7
|
|
|
7
|
|
36
|
use warnings; |
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
179
|
|
3
|
7
|
|
|
7
|
|
33
|
use MRO::Compat 'c3'; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
356
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package WebService::Shippo::Parcels; |
6
|
|
|
|
|
|
|
require WebService::Shippo::Parcel; |
7
|
7
|
|
|
|
|
1127
|
use base qw( |
8
|
|
|
|
|
|
|
WebService::Shippo::Collection |
9
|
|
|
|
|
|
|
WebService::Shippo::Create |
10
|
|
|
|
|
|
|
WebService::Shippo::Fetch |
11
|
7
|
|
|
7
|
|
34
|
); |
|
7
|
|
|
|
|
13
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub item_class () { 'WebService::Shippo::Parcel' } |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub collection_class () { __PACKAGE__ } |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
BEGIN { |
18
|
7
|
|
|
7
|
|
37
|
no warnings 'once'; |
|
7
|
|
|
|
|
16
|
|
|
7
|
|
|
|
|
228
|
|
19
|
7
|
|
|
7
|
|
187
|
*Shippo::Parcels:: = *WebService::Shippo::Parcels::; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=pod |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=encoding utf8 |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 NAME |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
WebService::Shippo::Parcel - Parcels collection class |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 VERSION |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
version 0.0.20 |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 DESCRIPTION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Parcel objects are used for creating shipments, obtaining rates and printing |
39
|
|
|
|
|
|
|
labels. Thus they are one of the fundamental building blocks of the Shippo |
40
|
|
|
|
|
|
|
API. Parcel objects are created with their basic dimensions and weight. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 API DOCUMENTATION |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
For more information about Parcels, consult the Shippo API documentation: |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=over 2 |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=item * L |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=back |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 REPOSITORY |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=over 2 |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=item * L |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=item * L |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=back |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 AUTHOR |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Iain Campbell |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Iain Campbell. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
You may distribute this software under the terms of either the GNU General |
71
|
|
|
|
|
|
|
Public License or the Artistic License, as specified in the Perl README |
72
|
|
|
|
|
|
|
file. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=cut |