Why not adopt me?
NAME
Net::Async::Webservice::UPS::Package - a package for UPS
VERSION
version 1.0.4
ATTRIBUTES
packaging_type
Type of packaging (see "PackagingType" in Net::Async::Webservice::UPS::Types), defaults to PACKAGE
.
measurement_system
Either metric
(centimeters and kilograms) or english
(inches and pounds), required.
length
Length of the package, in centimeters or inches depending on "measurement_system".
width
Width of the package, in centimeters or inches depending on "measurement_system".
height
Height of the package, in centimeters or inches depending on "measurement_system".
weight
Weight of the package, in kilograms or pounds depending on "measurement_system".
id
Integer, usually only used internally when requesting rates.
METHODS
linear_unit
Returns CM
or IN
depending on "measurement_system".
weight_unit
Returns KGS
or LBS
depending on "measurement_system".
as_hash
Returns a hashref that, when passed through XML::Simple, will produce the XML fragment needed in UPS requests to represent this package.
is_oversized
Returns an integer indicating whether this package is to be considered "oversized", and if so, in which oversize class it fits.
Mostly used internally by "as_hash".
cache_id
Returns a string identifying this package.
AUTHORS
Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>
Sherzod B. Ruzmetov <sherzodr@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.