ePages 6.17.13 - DE_EPAGES/UPS/API/Object/ShippingFulfillmentMethodUPS.pm

Package DE_EPAGES::UPS::API::Object::ShippingFulfillmentMethodUPS

Class for shipping fulfillment connection

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

Functions

featureName
generateShippingLabels
getSizeUnit
getWeightUnit
isUsable
newShippingLabel

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)

generateShippingLabels

Generate the ShippingLabels and set the TransStatus of the transaction

Syntax
generateShippingLabels( $ShippingTransactionUPS );
Input
$ShippingTransactionUPS (object)
the transaction object

getSizeUnit

Returns the UnitsOfMeasurement object that represents the units system to use for shipping size with UPS depending on the country shop:

Syntax
$SizeUnit = $ShippingFulfillmentMethod->getSizeUnit() ;
Return
$SizeUnit (object)
UnitsOfMeasurement object for the size

getWeightUnit

Returns the UnitsOfMeasurement object that represents the units system to use for shipping weight with UPS depending on the country shop:

Syntax
$WeightUnit = $ShippingLabel->getWeightUnit( $Shop ) ;
Return
$WeightUnit (object)
UnitsOfMeasurement object for the weight

isUsable

Checks if ShippingFulfillmentMethod is usable

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

newShippingLabel

creates a new shipping label

Syntax
newShippingLabel( $OrderOrDocument );
Input
$OrderOrDocument (object)
a order document
Return
$Label (object)
shipping label