StateCreationConfigurationInterface
in
Parameters for constructing a stock availability state.
Tags
Table of Contents
Methods
- getForQuantity() : QuantityInterface|null
- Returns the quantity that is being requested.
- getInStock() : QuantityInterface|null
- Returns in stock quantity.
- getSupplierShipmentTime() : int|null
- Returns how many hours does it take to ship out the item if not in stock.
- isAllowOverorder() : bool
- Indicates whether larger quantity than is in stock can be ordered.
- isPriceKnown() : bool
- Indicates whether the item has a price defined.
Methods
getForQuantity()
Returns the quantity that is being requested.
public
getForQuantity() : QuantityInterface|null
APIYes
Return values
QuantityInterface|null —requested quantity or null
if not applicable
getInStock()
Returns in stock quantity.
public
getInStock() : QuantityInterface|null
APIYes
Return values
QuantityInterface|null —in stock quantity or null
if unknown or not applicable
getSupplierShipmentTime()
Returns how many hours does it take to ship out the item if not in stock.
public
getSupplierShipmentTime() : int|null
APIYes
Return values
int|null —number of hours or null
if unknown or not applicable
isAllowOverorder()
Indicates whether larger quantity than is in stock can be ordered.
public
isAllowOverorder() : bool
APIYes
Return values
bool —true
if larger quantity than in stock can be ordered, false
otherwise
isPriceKnown()
Indicates whether the item has a price defined.
public
isPriceKnown() : bool
APIYes
Return values
bool —true
if it has a price, false
otherwise