Business::Shipping::Shipment - Abstract class
Abstract Class: real implementations are done in subclasses.
Shipments have a source, a destination, packages, and other attributes.
Forward the weight to the current package.
Only used for forwarding methods in simple uses of the class. For example:
$rate_request->init( service => '', weight => '', packaging => '', );
Which is simpler than:
$rate_request->shipment->service( '' ); $rate_request->shipment->packages_index( 0 )->weight( '' ); $rate_request->shipment->packages_index( 0 )->packaging( '' );
Note that it only works when there is one package only (no multiple packages).
Alias for default_package.
Returns the weight of all packages within the shipment.
Throw away the "four" from zip+four.
Redefines the MethodMaker implementation of this attribute.
to_country must be overridden to transform from various forms (alternate spellings of the full name, abbreviatations, alternate abbreviations) into the full name that we use internally.
May be overridden by subclasses to provide their own spelling ("United Kingdom" vs "Great Britain", etc.).
Returns the abbreviated form of 'to_country'.
Returns 1 (true) if the to_country value for this shipment is domestic (United States) or Canada.
Returns 1 if to_country is not set.
Uses to_country() value to determine if the order is International (non-US).
Returns 1 or 0 (true or false).
Returns the opposite of $self->intl
UPS treats Canada differently.
Alaska and Hawaii are treated differently by many shippers.
Adds a new package to the shipment.
Daniel Browning, db@kavod.com, http://www.kavod.com/
Copyright 2003-2011 Daniel Browning <db@kavod.com>. All rights reserved. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. See LICENSE for more info.
To install Business::Shipping, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::Shipping
CPAN shell
perl -MCPAN -e shell install Business::Shipping
For more information on module installation, please visit the detailed CPAN module installation guide.