ePages 6.11.0 - DE_EPAGES/PriceList/API/WebService/PriceListAssignmentService.pm

Package DE_EPAGES::PriceList::API::WebService::PriceListAssignmentService

Implements the PriceList Assignment WebService.

Base
DE_EPAGES::Shop::API::WebService::BaseShopService

Functions

getQuantityDiscounts
getScalePrices
getValueDiscounts
new
setQuantityDiscounts
setScalePrices
setValueDiscounts

getQuantityDiscounts

WebService-Method: getInfo Returns information about quantity discounts for given products and pricelists

Syntax
$SoapData = $self->getQuantityDiscounts( $aProducts, $aPriceLists )
Input
$aProducts (ref.array.string)
list of product paths
$aPriceLists (ref.array.string)
list of pricelist paths
Return
$SoapData (SOAP::Data)
a SOAP::Data structure with the
info of all given products

getScalePrices

WebService-Method: getInfo Returns information about scale prices for given products and pricelists

Syntax
$SoapData = $self->getScalePrices( $aProducts, $aPriceLists )
Input
$aProducts (ref.array.string)
list of product paths
$aPriceLists (ref.array.string)
list of pricelist paths
Return
$SoapData (SOAP::Data)
a SOAP::Data structure with the
info of all given products

getValueDiscounts

WebService-Method: getInfo Returns information about value discounts for given products and pricelists

Syntax
$SoapData = $self->getValueDiscounts( $aProducts, $aPriceLists )
Input
$aProducts (ref.array.string)
list of product paths
$aPriceLists (ref.array.string)
list of pricelist paths
Return
$SoapData (SOAP::Data)
a SOAP::Data structure with the
info of all given products

new

Creates a new web service object as a blessed hash reference and adds the values from the %Options hash.

Syntax
$Service = DE_EPAGES::PriceList::API::WebService::PriceListAssignmentService->new( %Options );
Input
%Options (hash)
user-defined values
Return
$Service (object)
web service object

setQuantityDiscounts

WebService-Method: update Updates the quantity discounts of a list of products/pricelists.

Syntax
$SoapData = $self->setQuantityDiscounts( $aProducts )
Input
$aProducts (ref.array.hash)
list of triples:
  • Product - object path to product
  • PriceList - object path to pricelist,
  • QuantityDiscounts - list of quantity discounts:
    • Quantity - float
    • Discount - float
    - ref.hash
Return
$SoapData (SOAP::Data)
a SOAP::Data structure with the
update status of all given products/pricelists

setScalePrices

WebService-Method: update Updates the scale prices of a list of products/pricelists.

Syntax
$SoapData = $self->setScalePrices( $aProducts )
Input
$aProducts (ref.array.hash)
list of triples:
  • Product - object path to product
  • PriceList - object path to pricelist,
  • ScalePrices - list of scale prices:
    • Quantity - float
    • Price - float
    - ref.hash
Return
$SoapData (SOAP::Data)
a SOAP::Data structure with the
update status of all given products/pricelists

setValueDiscounts

WebService-Method: update Updates the value discounts of a list of products/pricelists.

Syntax
$SoapData = $self->setValueDiscounts( $aProducts )
Input
$aProducts (ref.array.hash)
list of triples:
  • Product - object path to product
  • PriceList - object path to pricelist,
  • ValueDiscounts - list of value discounts:
    • Value - float
    • Discount - float
    - ref.hash
Return
$SoapData (SOAP::Data)
a SOAP::Data structure with the
update status of all given products/pricelists