ePages 7.38.0 - DE_EPAGES/DHL/API/DHL.pm

Package DE_EPAGES::DHL::API::DHL

This is the API class to access the DHL SOAP Webservices

Base
Exporter
@EXPORT_OK
ValidateShoppingCart
ShoppingCartCheckoutViaPayment
ShoppingCartCheckoutDirect
LoadBoughtShoppingCart
RequestProductInfo
SelectPackstation
CreatePackstationAddress
DeletePackstationAddress

Functions

CreatePackstationAddress
DeletePackstationAddress
LoadBoughtShoppingCart
RequestProductInfo
SelectPackstation
ShoppingCartCheckoutDirect
ShoppingCartCheckoutViaPayment
ValidateShoppingCart

CreatePackstationAddress

Create an address object for a Packstation

Syntax
CreatePackstationAddress($Basket, $hAddress);
Input
$Basket (object)
the basket object
$hAddress (ref.hash)
the address of the Packstation
Return
$Address (object)
address object

DeletePackstationAddress

Delete address if it's a Packstation address

Syntax
DeletePackstationAddress($Address);
Input
$Address (object)
the address of the Packstation
Return
-

LoadBoughtShoppingCart

Calls LoadBuyedShoppingCart webservice

Syntax
LoadBoughtShoppingCart( $ShippingLabel, $ShoppingCartId );
Input
$ShippingLabel (DE_EPAGES::DHL::API::Object::DHLShippingLabel)
shipping label
$ShoppingCartId (integer)
Shopping cart ID
Return
$SOAPResponse (object)
SOAP response

RequestProductInfo

Fetch DHL product list via web service call

Syntax
RequestProductInfo();
Return
$SOAPResponse (object)
SOAP response

SelectPackstation

Select a packstation to use

Syntax
SelectPackstation($Basket, $PostNumber, $Address);
Input
$Basket (object)
the basket object
$PostNumber (string)
the PostNumber of the customer
$Address (object)
the shipping address
Return
-

ShoppingCartCheckoutDirect

Calls ShoppingCartCheckoutDirect webservice

Syntax
ShoppingCartCheckoutDirect( $aDHLShippingLabels );
Input
$aDHLShippingLabels (ref.array.object)
shipping labels
$UseNullpay (boolean)
use nullpay as payment
Return
$SOAPResponse (object)
SOAP response

ShoppingCartCheckoutViaPayment

Calls ShoppingCartCheckoutViaPayment webservice

Syntax
ShoppingCartCheckoutViaPayment( $aDHLShippingLabels );
Input
$aDHLShippingLabels (ref.array.object)
shipping labels
$ReturnURL (string)
return URL
Return
$SOAPResponse (object)
SOAP response

ValidateShoppingCart

Calls ValidateShoppingCart webservice

Syntax
ValidateShoppingCart( $aDHLShippingLabels );
Input
$aDHLShippingLabels (ref.array.object)
shipping labels
Return
$SoapResponse (object)
SOAP response