NAME

Business::Shipping::UPS_Online::RateRequest

VERSION

Version $Rev: 195 $

REQUIRED FIELDS

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

SERVICE TYPES

Domestic

1DM        
1DML    
1DA        One Day Air
1DAL    
2DM    
2DA        Two Day Air
2DML    
2DAL    
3DS        Three Day Select    
GNDCOM    Ground Commercial
GNDRES    Ground Residential

International

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

ARGUMENTS

Required

user_id
password
access_key
pickup_type
from_country
from_zip
to_country
to_zip
to_residential
service
packaging
weight

Optional

test_server
no_ssl
event_handlers
from_city
to_city

METHODS

access_key

test_server

no_ssl

to_city

from_state()

Ignored. For compatibility with UPS_Offline only.

pickup_type

_massage_values

_gen_request_xml

Generate the XML document.

get_total_charges()

Returns the total charges.

_handle_response

to_country_abbrev()

We have to override the to_country_abbrev function becuase UPS_Online likes its own spellings of certain country abbreviations (GB, etc.).

Redefines attribute.

AUTHOR

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

COPYRIGHT AND LICENCE

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.