
Business::Shipping::USPS_Online::RateRequest

$Rev: 338 $

All
EXPRESS
Priority
Parcel
Library
BPM
Media
Global Express Guaranteed Document Service Global Express Guaranteed Non-Document Service Global Express Mail (EMS) Global Priority Mail - Flat-rate Envelope (Large) Global Priority Mail - Flat-rate Envelope (Small) Global Priority Mail - Variable Weight (Single) Airmail Letter-post Airmail Parcel Post Economy (Surface) Letter-post Economy (Surface) Parcel Post

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.

Dan Browning <db@kavod.com>, Kavod Technologies, http://www.kavod.com.

Copyright (c) 2003-2004 Kavod Technologies, Dan Browning. 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.