ePages 6.17.39 - DE_EPAGES/GLS/API/Tools.pm

Package DE_EPAGES::GLS::API::Tools

This package provides the GLS global functionality.

@EXPORT_OK
GetErrorType
SendmailtoGLS
CheckRangeGLS
GetLabelImagePath

Functions

CheckRangeGLS
GetErrorType
GetLabelImagePath
SendmailtoGLS

CheckRangeGLS

Check if the range is ready to finish

Syntax
CheckRangeGLS($IntervalType,$Interval,$ShippingFulfillmentType);
Example
CheckRangeGLS($IntervalType,$Interval,$ShippingFulfillmentType);
Input
$Shop
Shop
$IntervalType
ShippingFulfillmentMethodGLS
$Interval
integer
$ShippingFulfillmentType
ShippingFulfillmentType

GetErrorType

returns the correct error message from an error id

Syntax
$errorMsg = GetErrorType($errorID);
Example
my $errorMsg = GetErrorType($errorID);
Input
#ErrorCode
string
Return
(string)
#errorType

GetLabelImagePath

returns the path for the barcode image of a shipping label

Syntax
$Path = GetLabelImagePath($ShippingLabel);
Example
my $Path  = GetLabelImagePath($ShippingLabel,'gif');
Input
#ShippingLabel (object)
shipping label object
Return
#Path (string)
path and image name

SendmailtoGLS

Send a mail to GLS in order to inform them that a delivery is ready for the pick up

Syntax
SendmailtoGLS($ShippingFulfillmentMethod,$interval);
Example
SendmailtoGLS($ShippingFulfillmentMethod,$interval);
Input
$ShippingFulfillmentMethod
ShippingFulfillmentMethodGLS
#$interval
integer