public class StockReservationOptions extends java.lang.Object implements StockReservationOptionsIf
| Constructor and Description |
|---|
StockReservationOptions()
Constructor
|
| 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
|
public boolean isAllowPartialReservation()
StockReservationOptionsIfallowPartialReservation is set to true. The default is
false.isAllowPartialReservation in interface StockReservationOptionsIfpublic void setAllowPartialReservation(boolean allowPartialReservation)
StockReservationOptionsIfallowPartialReservation is set to true. The default is
false.setAllowPartialReservation in interface StockReservationOptionsIfallowPartialReservation - the allowPartialReservation to setpublic int getMaxReservationsPerCustomer()
StockReservationOptionsIfgetMaxReservationsPerCustomer in interface StockReservationOptionsIfpublic void setMaxReservationsPerCustomer(int maxReservationsPerCustomer)
StockReservationOptionsIfsetMaxReservationsPerCustomer in interface StockReservationOptionsIfmaxReservationsPerCustomer - the maxReservationsPerCustomer to setpublic java.lang.String getCatalogId()
StockReservationOptionsIfgetCatalogId in interface StockReservationOptionsIfpublic void setCatalogId(java.lang.String catalogId)
StockReservationOptionsIfsetCatalogId in interface StockReservationOptionsIfcatalogId - the catalogId to setpublic boolean isUseExternalQuantity()
StockReservationOptionsIfisUseExternalQuantity in interface StockReservationOptionsIfpublic void setUseExternalQuantity(boolean useExternalQuantity)
StockReservationOptionsIfsetUseExternalQuantity in interface StockReservationOptionsIfuseExternalQuantity - the useExternalQuantity to setpublic boolean isCalcQuantityForBundles()
StockReservationOptionsIfisCalcQuantityForBundles in interface StockReservationOptionsIfpublic void setCalcQuantityForBundles(boolean calcQuantityForBundles)
StockReservationOptionsIfsetCalcQuantityForBundles in interface StockReservationOptionsIfcalcQuantityForBundles - the calcQuantityForBundles to setpublic boolean isUseExternalPrice()
StockReservationOptionsIfisUseExternalPrice in interface StockReservationOptionsIfpublic void setUseExternalPrice(boolean useExternalPrice)
StockReservationOptionsIfsetUseExternalPrice in interface StockReservationOptionsIfuseExternalPrice - the useExternalPrice to setpublic int getReservationTimeSecs()
StockReservationOptionsIfgetReservationTimeSecs in interface StockReservationOptionsIfpublic void setReservationTimeSecs(int reservationTimeSecs)
StockReservationOptionsIfsetReservationTimeSecs in interface StockReservationOptionsIfreservationTimeSecs - the reservationTimeSecs to setCopyright © 2018 DS Data Systems UK Ltd.