Business::Shipping::USPS_Online::RateRequest - Business::Shipping::USPS_Online::RateRequest documentation


Business-Shipping documentation  | view source Contained in the Business-Shipping distribution.

Index


NAME

Top

Business::Shipping::USPS_Online::RateRequest

SERVICE TYPES

Top

Domestic

    All
    EXPRESS
    Priority
    Parcel
    Library
    BPM
    Media

International

 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

METHODS

Top

domestic

to_zip

Note that some methods are handled by the parent class:

to_zip, from_zip, to_city, from_city, to_country, from_country.

Required()

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.

_gen_request_xml

Generate the XML document.

_gen_request

_massage_values

_handle_response

error_details()

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

_domestic_or_intl

Decide if we are domestic or international for this run.

to_residential()

For compatibility with UPS modules. Always returns 0.

AUTHOR

Top

Daniel Browning, db@kavod.com, http://www.kavod.com/

COPYRIGHT AND LICENCE

Top


Business-Shipping documentation  | view source Contained in the Business-Shipping distribution.