Business::Shipping::USPS_Online::RateRequest
All EXPRESS Priority Parcel Library BPM Media
Global Express Guaranteed Global Express Guaranteed Non-Document Rectangular Global Express Guaranteed Non-Document Non-Rectangular USPS GXG Envelopes Express Mail International Express Mail International Flat Rate Envelope Express Mail International Legal Flat Rate Envelope Priority Mail International Priority Mail International Large Flat Rate Box Priority Mail International Medium Flat Rate Box Priority Mail International Small Flat Rate Box Priority Mail International DVD Flat Rate Box Priority Mail International Large Video Flat Rate Box Priority Mail International Flat Rate Envelope Priority Mail International Legal Flat Rate Envelope Priority Mail International Padded Flat Rate Envelope Priority Mail International Gift Card Flat Rate Envelope Priority Mail International Small Flat Rate Envelope Priority Mail International Window Flat Rate Envelope First-Class Mail International Package First-Class Mail International Large Envelope
Note that some methods are handled by the parent class:
to_zip, from_zip, to_city, from_city, to_country, from_country.
International USPS does not require the service or from_zip parameters, but domestic does.
We use a hand-written "Required()" method for this class, because we require one of the following: pounds, ounces, or weight. It doesn't matter which one it is, but if none of them are defined, then we pick 'weight' to Require.
Generate the XML document.
See Business::Shipping::RateRequest for full documentation. Adds the following keys to each error:
package_id : The unique package id in which the error occurred error_source : The component that generated the error
Decide if we are domestic or international for this run.
For compatibility with UPS modules. Always returns 0.
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.