ePages 6.17.13 - DE_EPAGES/USPS/UI/JSON.pm

Package DE_EPAGES::USPS::UI::JSON

Handler for AJAX request to get information from USPS webservices

Base
DE_EPAGES::Presentation::UI::JSON

Functions

JSONUSPSAddressInformation
JSONUSPSPickUpAvailabilityRequest
JSONUSPSPickUpCancelRequest
JSONUSPSPickUpRequest
JSONUSPSSaveAddress

JSONUSPSAddressInformation

The function receives a Basket and calls the USPS AddressInformation webservice. The Result will be retuned as a String back to the Java script. If an Error appears the function will return a positive Error flag.

Syntax
JSONUSPSAddressInformation( $Servlet );
Input
$Servlet (object)
servlet object
Return
$ReturnValue (String)
JSON string with the addresses information

JSONUSPSPickUpAvailabilityRequest

Create an USPS Availability Request

Syntax
JSONUSPSPickUpAvailabilityRequest( $Servlet );
Input
$Servlet (object)
servlet object
Return
$ReturnValue (String)
Return code of the call to writeContentOutput

JSONUSPSPickUpCancelRequest

Create an USPS Cancel Request

Syntax
JSONUSPSPickUpCancelRequest( $Servlet );
Input
$Servlet (object)
servlet object
Return
$ReturnValue (String)
Return code of the call to writeContentOutput

JSONUSPSPickUpRequest

Create an USPS Pickup Request

Syntax
JSONUSPSPickUpRequest( $Servlet );
Input
$Servlet (object)
servlet object
Return
$ReturnValue (String)
Return code of the call to writeContentOutput

JSONUSPSSaveAddress

Place the selected address as shipping address of the order.

Syntax
JSONUSPSSaveAddress( $Servlet );
Input
$Servlet (object)
servlet object