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
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
To install Net::UPS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::UPS
CPAN shell
perl -MCPAN -e shell install Net::UPS
For more information on module installation, please visit the detailed CPAN module installation guide.