ePages 7.38.0 - DE_EPAGES/Order/API/StockLevelValidator.pm

Package DE_EPAGES::Order::API::StockLevelValidator

helper class for stock level shop setting, this is use by the REST API

@EXPORT_OK
ValidateStockLevelSettings

Functions

ValidateStockLevelSettings

ValidateStockLevelSettings

Check if has enough products on stock, according to the shop setting Throws an error in case of low stock level and setting restrition

Syntax
ValidateStockLevelSettings( $Product, $RequestQuantity );
Input
$Product (DE_EPAGES::Product::API::Object::Product)
Product Object
$RequestQuantity (string)
Quantity to be request on the lineItem