ePages 6.17.12 - DE_EPAGES/Chronopost/API/Object/ShippingFulfillmentMethodChronopost.pm

Package DE_EPAGES::Chronopost::API::Object::ShippingFulfillmentMethodChronopost

Class for shipping fulfillment connection

Base
DE_EPAGES::ExternalShipping::API::Object::ShippingFulfillmentMethod

Functions

areMandatoryShippingFieldsSet
featureName
isUsable
webserviceDoTransaction

areMandatoryShippingFieldsSet

Checks if mandatory shipping address fields are set into basket registration settings

Syntax
$areMandatoryShippingFieldsSet = $ShippingFulfillmentMethod->areMandatoryShippingFieldsSet( );
Return
$areMandatoryShippingFieldsSet (boolean)
True if mandatory shipping address fields are set

featureName

Returns undef as no feature is connected to this ShippingFulfillmentMethod.

Syntax
$FeatureName = $ShippingFulfillmentMethod->featureName;
Return
$FeatureName (String)
feature name (undef means no feature count)

isUsable

Checks if ShippingFulfillmentMethod is usable

Syntax
$isUsable = $ShippingFulfillmentMethod->isUsable( );
Return
$IsUsable (boolean)
True if ShippingFulfillmentMethod is usable

webserviceDoTransaction

Calls execution webservice for one transaction. Has to be implemented in child class, if ShippingFulfillmentType.IntegrationType=Webservice

Syntax
($success, $errorMsg) = $ShippingFulfillmentMethod->webserviceDoTransaction( $Transaction );
Input
$Transaction (object)
shipping transaction
Return
$success (boolean)
boolean indicating if transaction process was successful
$errorMsg (string)
string indicating why the transaction was unsuccessful