Interface InventoryConfiguration
Inventory configuration settings for a Project.
Example to create an instance using the builder pattern
InventoryConfiguration inventoryConfiguration = InventoryConfiguration.builder()
.releaseExpiredReservations(true)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for InventoryConfigurationbuilder(InventoryConfiguration template) create builder for InventoryConfiguration instancecopyDeep()static InventoryConfigurationdeepCopy(InventoryConfiguration template) factory method to create a deep copy of InventoryConfiguration@NotNull BooleanIf set totrue, Reservations are marked asExpiredonce theirreservationExpirationInMinutesis reached.The number of minutes after which a Reservation expires.static InventoryConfigurationof()factory methodstatic InventoryConfigurationof(InventoryConfiguration template) factory method to create a shallow copy InventoryConfigurationvoidsetReleaseExpiredReservations(Boolean releaseExpiredReservations) If set totrue, Reservations are marked asExpiredonce theirreservationExpirationInMinutesis reached.voidsetReservationExpirationInMinutes(Integer reservationExpirationInMinutes) The number of minutes after which a Reservation expires.static com.fasterxml.jackson.core.type.TypeReference<InventoryConfiguration>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getReservationExpirationInMinutes
Integer getReservationExpirationInMinutes()The number of minutes after which a Reservation expires. To use the ReserveOnCart inventory mode, this field must be set.
- Returns:
- reservationExpirationInMinutes
-
getReleaseExpiredReservations
If set to
true, Reservations are marked asExpiredonce theirreservationExpirationInMinutesis reached. The reserved inventory is then made available. If set tofalse, tracking Line Items with expired reservations becomes your responsibility.- Returns:
- releaseExpiredReservations
-
setReservationExpirationInMinutes
The number of minutes after which a Reservation expires. To use the ReserveOnCart inventory mode, this field must be set.
- Parameters:
reservationExpirationInMinutes- value to be set
-
setReleaseExpiredReservations
If set to
true, Reservations are marked asExpiredonce theirreservationExpirationInMinutesis reached. The reserved inventory is then made available. If set tofalse, tracking Line Items with expired reservations becomes your responsibility.- Parameters:
releaseExpiredReservations- value to be set
-
of
factory method- Returns:
- instance of InventoryConfiguration
-
of
factory method to create a shallow copy InventoryConfiguration- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
InventoryConfiguration copyDeep() -
deepCopy
factory method to create a deep copy of InventoryConfiguration- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InventoryConfiguration- Returns:
- builder
-
builder
create builder for InventoryConfiguration instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withInventoryConfiguration
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-