ePages 6.17.40 - DE_EPAGES/Order/API/BasketPatch.pm

Package DE_EPAGES::Order::API::BasketPatch

Implements JSON-PATCH (RFC 6902) for the basket object.

Functions

loadShopObjectByGUID
new

loadShopObjectByGUID

loads object specified by object GUID and verifies that is exists, belongs to the current shop and is an instance of a certain class. Raises an error if any condition is not fulfilled. Returns the object if all tests passed.

Syntax
$Object = $self->loadShopObjectByGUID( $GUID, $ClassAlias )
Input
$Shop (DE_EPAGES::Shop::API::Object::Shop)
a shop object
$GUID (string)
object GUID to load
$ClassAlias (string)
alias of a class
Return
$Object (object)
object

new

Constructor

Syntax
new( $Basket );
Input
$Basket (DE_EPAGES::Order::API::Object::Basket)
A basket
Return
$self (DE_EPAGES::Order::API::BasketPatch)
self