Daniel Browning > Business-Shipping > Business::Shipping::UPS_Online::RateRequest

Download:
Business-Shipping-2.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  2
View Bugs
Report a bug
Module Version: 318   Source  

NAME ^

Business::Shipping::UPS_Online::RateRequest

VERSION ^

Version $Rev: 318 $

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
    signature_type
    insured_currency_type
    insured_value

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.

_handle_response

error_details()

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

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.