public class BookableProductOptions extends java.lang.Object implements BookableProductOptionsIf
Constructor and Description |
---|
BookableProductOptions()
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
isThrowExeptionForExceedingMaxBookings()
Throw exception if bookings exceeds the maximum number of bookings on the bookable product.
|
boolean |
isUpdateInventoryWithBookings()
When inserting a new booking, we automatically update the
bookingsMade attribute
of the BookableProduct object. |
void |
setThrowExeptionForExceedingMaxBookings(boolean throwExeptionForExceedingMaxBookings)
Throw exception if bookings exceeds the maximum number of bookings on the bookable product.
|
void |
setUpdateInventoryWithBookings(boolean updateInventoryWithBookings)
When inserting a new booking, we automatically update the
bookingsMade attribute
of the BookableProduct object. |
public boolean isThrowExeptionForExceedingMaxBookings()
isThrowExeptionForExceedingMaxBookings
in interface BookableProductOptionsIf
public void setThrowExeptionForExceedingMaxBookings(boolean throwExeptionForExceedingMaxBookings)
setThrowExeptionForExceedingMaxBookings
in interface BookableProductOptionsIf
throwExeptionForExceedingMaxBookings
- the throwExeptionForExceedingMaxBookings to setpublic boolean isUpdateInventoryWithBookings()
bookingsMade
attribute
of the BookableProduct object. When this attribute is set to true, we also update the
quantity
attribute of the Product object so that it is decreased every time a
booking is added by the quantity of the booking. This may be important if you are using any
of the Stock Reservation features offered by KonaKart which use the product quantity
attribute to determine whether reservations can be made. The default is false.isUpdateInventoryWithBookings
in interface BookableProductOptionsIf
public void setUpdateInventoryWithBookings(boolean updateInventoryWithBookings)
bookingsMade
attribute
of the BookableProduct object. When this attribute is set to true, we also update the
quantity
attribute of the Product object so that it is decreased every time a
booking is added by the quantity of the booking. This may be important if you are using any
of the Stock Reservation features offered by KonaKart which use the product quantity
attribute to determine whether reservations can be made. The default is false.setUpdateInventoryWithBookings
in interface BookableProductOptionsIf
updateInventoryWithBookings
- the updateInventoryWithBookings to setCopyright © 2018 DS Data Systems UK Ltd.