ePages 6.17.48 - DE_EPAGES/DHLIntraship/API/Tools.pm

Package DE_EPAGES::DHLIntraship::API::Tools

Useful functions for this cartridge.

Functions

GetCustomerNumber
new
truncateAttribute

GetCustomerNumber

Gets Customer Number.

Syntax
GetCustomerNumber( $ShippingFulfillmentMethod, $Address );
Input
$ShippingFulfillmentMethod (object)
ShippingFulfillmentMethodDHLIntraship
$Address (object)
Address
Return
$CustomerNumber (string)
CustomerNumber

new

Class constructor.

Syntax
new( );
Return
$self (object)
self

truncateAttribute

Truncates an attribute to its maximum allowed length.

Syntax
truncateAttribute( $Attribute, $FieldName );
Input
$Attribute (String)
Attribute to truncate.
$FieldName (String)
Name of the field to truncate.
Return
$TruncatedAttribute (object)
Truncated attribute.