public class AdminBookableProductOptions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
custom
custom field for customer's use
|
private boolean |
populateBookableProduct
if set to true the bookable product is populated on each booking when they are retrieved.
|
private boolean |
populateOrderProduct
if set to true the order product is populated on each booking when they are retrieved.
|
private boolean |
softDelete
When set to true, bookings are market as deleted rather than performing a hard delete.
|
private boolean |
throwExeptionForExceedingMaxBookings
Throw exception if bookings exceeds the maximum number of bookings on the bookable product.
|
private boolean |
updateInventoryWithBookings
When inserting a new booking or deleting a booking, we automatically update the
bookingsMade attribute of the AdminBookableProduct object. |
Constructor and Description |
---|
AdminBookableProductOptions()
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCustom() |
boolean |
isPopulateBookableProduct() |
boolean |
isPopulateOrderProduct() |
boolean |
isSoftDelete()
When set to true, bookings are market as deleted rather than performing a hard delete.
|
boolean |
isThrowExeptionForExceedingMaxBookings() |
boolean |
isUpdateInventoryWithBookings()
When inserting a new booking or deleting a booking, we automatically update the
bookingsMade attribute of the AdminBookableProduct object. |
void |
setCustom(java.lang.String custom) |
void |
setPopulateBookableProduct(boolean populateBookableProduct) |
void |
setPopulateOrderProduct(boolean populateOrderProduct) |
void |
setSoftDelete(boolean softDelete)
When set to true, bookings are market as deleted rather than performing a hard delete.
|
void |
setThrowExeptionForExceedingMaxBookings(boolean throwExeptionForExceedingMaxBookings) |
void |
setUpdateInventoryWithBookings(boolean updateInventoryWithBookings)
When inserting a new booking or deleting a booking, we automatically update the
bookingsMade attribute of the AdminBookableProduct object. |
java.lang.String |
toString() |
private boolean throwExeptionForExceedingMaxBookings
private boolean populateOrderProduct
private boolean populateBookableProduct
private boolean updateInventoryWithBookings
bookingsMade
attribute of the AdminBookableProduct object. When this attribute
is set to true, we also update the quantity
attribute of the AdminProduct object
so that it is decreased every time a booking is added and increased every time a booking is
deleted 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.private java.lang.String custom
private boolean softDelete
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getCustom()
public void setCustom(java.lang.String custom)
custom
- the custom to setpublic boolean isThrowExeptionForExceedingMaxBookings()
public void setThrowExeptionForExceedingMaxBookings(boolean throwExeptionForExceedingMaxBookings)
throwExeptionForExceedingMaxBookings
- the throwExeptionForExceedingMaxBookings to setpublic boolean isPopulateOrderProduct()
public void setPopulateOrderProduct(boolean populateOrderProduct)
populateOrderProduct
- the populateOrderProduct to setpublic boolean isPopulateBookableProduct()
public void setPopulateBookableProduct(boolean populateBookableProduct)
populateBookableProduct
- the populateBookableProduct to setpublic boolean isUpdateInventoryWithBookings()
bookingsMade
attribute of the AdminBookableProduct object. When this attribute
is set to true, we also update the quantity
attribute of the AdminProduct object
so that it is decreased every time a booking is added and increased every time a booking is
deleted 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.public void setUpdateInventoryWithBookings(boolean updateInventoryWithBookings)
bookingsMade
attribute of the AdminBookableProduct object. When this attribute
is set to true, we also update the quantity
attribute of the AdminProduct object
so that it is decreased every time a booking is added and increased every time a booking is
deleted 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.updateInventoryWithBookings
- the updateInventoryWithBookings to setpublic boolean isSoftDelete()
public void setSoftDelete(boolean softDelete)
softDelete
- the softDelete to setCopyright © 2018 DS Data Systems UK Ltd.