Net::UPS::Package - Class representing a UPS Package
$pkg = Net::UPS::Package->new();
$pkg->packaging_type('PACKAGE');
$pkg->measurement_system('metric');
$pkg->length(40);
$pkg->width(30);
$pkg->height(2);
$pkg->weight(10);
Net::UPS::Package represents a single UPS package. In addition to the above
attributes, id attribute will be set once package is submitted for a
rate quote. id starts at 1, and will be incremented by one for
each subsequent package submitted at single request. The purpose of this
attribute is still not clear. Comments are welcome.
In addition to all the aforementioned attributes, following method(s) are
supported
- is_oversized
- Convenience method. Return value indicates if the package is oversized,
and if so, its oversize level. Possible return values are 0,
1, 2 and 3. 0 means not oversized.
For support and licensing information refer to Net::UPS