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()
StockReservationOptionsIf
allowPartialReservation
is set to true. The default is
false.isAllowPartialReservation
in interface StockReservationOptionsIf
public void setAllowPartialReservation(boolean allowPartialReservation)
StockReservationOptionsIf
allowPartialReservation
is set to true. The default is
false.setAllowPartialReservation
in interface StockReservationOptionsIf
allowPartialReservation
- the allowPartialReservation to setpublic int getMaxReservationsPerCustomer()
StockReservationOptionsIf
getMaxReservationsPerCustomer
in interface StockReservationOptionsIf
public void setMaxReservationsPerCustomer(int maxReservationsPerCustomer)
StockReservationOptionsIf
setMaxReservationsPerCustomer
in interface StockReservationOptionsIf
maxReservationsPerCustomer
- the maxReservationsPerCustomer to setpublic java.lang.String getCatalogId()
StockReservationOptionsIf
getCatalogId
in interface StockReservationOptionsIf
public void setCatalogId(java.lang.String catalogId)
StockReservationOptionsIf
setCatalogId
in interface StockReservationOptionsIf
catalogId
- the catalogId to setpublic boolean isUseExternalQuantity()
StockReservationOptionsIf
isUseExternalQuantity
in interface StockReservationOptionsIf
public void setUseExternalQuantity(boolean useExternalQuantity)
StockReservationOptionsIf
setUseExternalQuantity
in interface StockReservationOptionsIf
useExternalQuantity
- the useExternalQuantity to setpublic boolean isCalcQuantityForBundles()
StockReservationOptionsIf
isCalcQuantityForBundles
in interface StockReservationOptionsIf
public void setCalcQuantityForBundles(boolean calcQuantityForBundles)
StockReservationOptionsIf
setCalcQuantityForBundles
in interface StockReservationOptionsIf
calcQuantityForBundles
- the calcQuantityForBundles to setpublic boolean isUseExternalPrice()
StockReservationOptionsIf
isUseExternalPrice
in interface StockReservationOptionsIf
public void setUseExternalPrice(boolean useExternalPrice)
StockReservationOptionsIf
setUseExternalPrice
in interface StockReservationOptionsIf
useExternalPrice
- the useExternalPrice to setpublic int getReservationTimeSecs()
StockReservationOptionsIf
getReservationTimeSecs
in interface StockReservationOptionsIf
public void setReservationTimeSecs(int reservationTimeSecs)
StockReservationOptionsIf
setReservationTimeSecs
in interface StockReservationOptionsIf
reservationTimeSecs
- the reservationTimeSecs to setCopyright © 2018 DS Data Systems UK Ltd.