Package DE_EPAGES::USPS::API::Tools
This package provides general tooling for USPS cartridge.
@EXPORT_OK |
Functions
getUsZipCodeBaseOrEmpty
It takes out the zip code base from an US zipcode. It returns an empty string if code is not valid.
Syntax |
$baseZipCode = $self->getUsZipCodeBaseOrEmpty($zipCode); |
Input |
|
Return |
|
getUsZipCodeExtensionOrEmpty
It takes out the zip code extension or an empty string.
Syntax |
$extensionZipCode = $self->getUsZipCodeExtensionOrEmpty($zipCode); |
Input |
|
Return |
|
getWebServiceURL
returns the Web service URL taking into account the status of the Shop
Syntax |
$WebServiceURL = getWebServiceURL($ShippingFulfillmentMethod); |
Example |
my $WebServiceURL = getWebServiceURL($ShippingFulfillmentMethod); |
Input |
|
Return |
|
trimErrorDescription
provide a trimmed label error description from incoming raw error description
Syntax |
$LabelErrorDescription = trimErrorDescription( $errorDescription ); |
Input |
|
Return |
|