ePages 7.21.0 - DE_EPAGES/Packlink/API/Connector.pm

Package DE_EPAGES::Packlink::API::Connector

Class package to handle Packlink connection stuff.

Functions

GetPacklinkSoapURL
SendPacklinkAuthCredentials
deleteConnection
getMethod
isConnectionSetupDone
new

GetPacklinkSoapURL

Returns the URL pointing to the SOAP interface for the shop.

Syntax
GetPacklinkSoapURL( $Shop );
Input
$Shop (object)
shop
Return
$URL (string)
URL to soap interface

SendPacklinkAuthCredentials

Send the generated credentials to Packlink

Syntax
SendPacklinkAuthCredentials( $hAuthCredentials );
Input
$hAuthCredentials (hashref)
Hash containing authorization credentials

deleteConnection

It deletes ePages SOAP credentials for Packlink connections to the Shop

Syntax
$Connector->deleteConnection();

getMethod

It returns the Packlink shipping provider method for the connector

Syntax
$ShippingProviderMethod = $Connector->getMethod();
Return
$ShippingProviderMethod (object)
Packlink shipping provider method object

isConnectionSetupDone

It returns a boolean informing about the shop being properly configured for Packlink to get Orders

Syntax
$isDone = $Connector->isConnectionSetupDone();
Return
(boolean)
$isDone

new

Connector object constructor

Syntax
$Connector = DE_EPAGES::Packlink::API::Connector->new( $ShippingProviderMethod );
Input
$ShippingProviderMethod (object)
Packlink shipping provider method object
Return
$Connector (object)
Packlink connector object