public interface StockReservationOptionsIf
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCatalogId()
The id of the catalog which contains dynamic product information such as the price and
quantity
|
int |
getMaxReservationsPerCustomer()
When set to a value greater than -1 (default) it limits the quantity of any one product that
a customer can reserve.
|
int |
getReservationTimeSecs()
The number of seconds a product is reserved for.
|
boolean |
isAllowPartialReservation()
When true all available products are reserved even if the desired quantity isn't available.
|
boolean |
isCalcQuantityForBundles()
When set to true the quantity available for a product is calculated by reading the quantities
of the products within the bundle.
|
boolean |
isUseExternalPrice()
If true we attempt to fetch the prices from the external table
|
boolean |
isUseExternalQuantity()
If true we attempt to fetch the quantities from the external table
|
void |
setAllowPartialReservation(boolean allowPartialReservation)
When true all available products are reserved even if the desired quantity isn't available.
|
void |
setCalcQuantityForBundles(boolean calcQuantityForBundles)
When set to true the quantity available for a product is calculated by reading the quantities
of the products within the bundle.
|
void |
setCatalogId(java.lang.String catalogId)
The id of the catalog which contains dynamic product information such as the price and
quantity
|
void |
setMaxReservationsPerCustomer(int maxReservationsPerCustomer)
When set to a value greater than -1 (default) it limits the quantity of any one product that
a customer can reserve.
|
void |
setReservationTimeSecs(int reservationTimeSecs)
The number of seconds a product is reserved for.
|
void |
setUseExternalPrice(boolean useExternalPrice)
If true we attempt to fetch the prices from the external table
|
void |
setUseExternalQuantity(boolean useExternalQuantity)
If true we attempt to fetch the quantities from the external table
|
boolean isAllowPartialReservation()
allowPartialReservation is set to true. The default is
false.void setAllowPartialReservation(boolean allowPartialReservation)
allowPartialReservation is set to true. The default is
false.allowPartialReservation - the allowPartialReservation to setint getMaxReservationsPerCustomer()
void setMaxReservationsPerCustomer(int maxReservationsPerCustomer)
maxReservationsPerCustomer - the maxReservationsPerCustomer to setjava.lang.String getCatalogId()
void setCatalogId(java.lang.String catalogId)
catalogId - the catalogId to setboolean isUseExternalQuantity()
void setUseExternalQuantity(boolean useExternalQuantity)
useExternalQuantity - the useExternalQuantity to setboolean isUseExternalPrice()
void setUseExternalPrice(boolean useExternalPrice)
useExternalPrice - the useExternalPrice to setboolean isCalcQuantityForBundles()
void setCalcQuantityForBundles(boolean calcQuantityForBundles)
calcQuantityForBundles - the calcQuantityForBundles to setint getReservationTimeSecs()
void setReservationTimeSecs(int reservationTimeSecs)
reservationTimeSecs - the reservationTimeSecs to setCopyright © 2018 DS Data Systems UK Ltd.