Business::Shipping::UPS_Online::RateRequest
user_id password access_key
If user_id, password, and/or access_key are not defined, then the following shell environment variables will be used, if defined:
UPS_USER_ID UPS_PASSWORD UPS_ACCESS_KEY
1DM 1DML 1DA One Day Air 1DAL 2DM 2DA Two Day Air 2DML 2DAL 3DS Three Day Select GNDCOM Ground Commercial GNDRES Ground Residential
XPR UPS Worldwide Express XDM UPS Worldwide Express Plus UPSSTD UPS Standard XPRL UPS Worldwide Express Letter XDML UPS Worldwide Express Plus Letter XPD UPS Worldwide Expedited
user_id password access_key pickup_type from_country from_zip to_country to_zip to_residential service packaging weight
test_server no_ssl event_handlers from_city to_city signature_type insured_currency_type insured_value
Ignored. For compatibility with UPS_Offline only.
Generate the XML document.
See Business::Shipping::RateRequest for full documentation. Adds the following keys to each error:
error_severity : Transient, Hard, or Warning minimum_retry_seconds : The minimum number of seconds to wait locations : An arrayref of hashrefs. Each hash ref has the keys, element and attribute. error_data : An arrayref of strings containing the invalid data
We have to override the to_country_abbrev function becuase UPS_Online likes its own spellings of certain country abbreviations (GB, etc.).
Redefines attribute.
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.