Interface ProductVariantAvailability
public interface ProductVariantAvailability
ProductVariantAvailability
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductVariantAvailability productVariantAvailability = ProductVariantAvailability.builder()
.isOnStock(true)
.restockableInDays(1)
.availableQuantity(1)
.channels(channelsBuilder -> channelsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductVariantAvailabilitybuilder
(ProductVariantAvailability template) create builder for ProductVariantAvailability instancestatic ProductVariantAvailability
deepCopy
(ProductVariantAvailability template) factory method to create a deep copy of ProductVariantAvailability@NotNull Integer
@NotNull @Valid ProductVariantChannelAvailabilityMap
@NotNull Boolean
@NotNull Integer
static ProductVariantAvailability
of()
factory methodstatic ProductVariantAvailability
of
(ProductVariantAvailability template) factory method to create a shallow copy ProductVariantAvailabilityvoid
setAvailableQuantity
(Integer availableQuantity) set availableQuantityvoid
set channelsvoid
setIsOnStock
(Boolean isOnStock) set isOnStockvoid
setRestockableInDays
(Integer restockableInDays) set restockableInDaysstatic com.fasterxml.jackson.core.type.TypeReference<ProductVariantAvailability>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getIsOnStock
- Returns:
- isOnStock
-
getRestockableInDays
- Returns:
- restockableInDays
-
getAvailableQuantity
- Returns:
- availableQuantity
-
getChannels
- Returns:
- channels
-
setIsOnStock
set isOnStock- Parameters:
isOnStock
- value to be set
-
setRestockableInDays
set restockableInDays- Parameters:
restockableInDays
- value to be set
-
setAvailableQuantity
set availableQuantity- Parameters:
availableQuantity
- value to be set
-
setChannels
set channels- Parameters:
channels
- value to be set
-
of
factory method- Returns:
- instance of ProductVariantAvailability
-
of
factory method to create a shallow copy ProductVariantAvailability- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductVariantAvailability- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductVariantAvailability- Returns:
- builder
-
builder
create builder for ProductVariantAvailability instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductVariantAvailability
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
-