ePages 7.38.0 - DE_EPAGES/Shippo/API/Connector.pm

Package DE_EPAGES::Shippo::API::Connector

Class package to handle Shippo connection stuff.

Functions

GetShippoSoapURL
SendShippoAuthCredentials
deleteConnection
getMethod
isConnectionSetupDone
new

GetShippoSoapURL

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

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

SendShippoAuthCredentials

Send the generated credentials to Shippo

Syntax
SendShippoAuthCredentials( $ShippingFulfillmentType, $AuthToken, $ProviderKey );
Input
$ShippingFulfillmentType (object)
ShippingFulfillmentType
$AuthToken (String)
AuthToken
$ShippoID (String)
Shippo Id
$ProviderKey (String)
ProviderKey

deleteConnection

It deletes ePages SOAP credentials for Shippo connections to the Shop

Syntax
$Connector->deleteConnection();

getMethod

It returns the Shippo shipping provider method for the connector

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

isConnectionSetupDone

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

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

new

Connector object constructor

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