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