Interface ProductVariantChannelAvailability
public interface ProductVariantChannelAvailability
ProductVariantChannelAvailability
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductVariantChannelAvailability productVariantChannelAvailability = ProductVariantChannelAvailability.builder()
.id("{id}")
.version(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductVariantChannelAvailabilitybuilder
(ProductVariantChannelAvailability template) create builder for ProductVariantChannelAvailability instancedeepCopy
(ProductVariantChannelAvailability template) factory method to create a deep copy of ProductVariantChannelAvailabilityNumber of items of this Product Variant that are in stock in a specified Channel.@NotNull String
getId()
Unique identifier of the InventoryEntry.Indicates whether a Product Variant is in stock in a specified Channel.Number of days to restock a Product Variant once it is out of stock in a specified Channel.@NotNull Long
Current version of the InventoryEntry.of()
factory methodof
(ProductVariantChannelAvailability template) factory method to create a shallow copy ProductVariantChannelAvailabilityvoid
setAvailableQuantity
(Long availableQuantity) Number of items of this Product Variant that are in stock in a specified Channel.void
Unique identifier of the InventoryEntry.void
setIsOnStock
(Boolean isOnStock) Indicates whether a Product Variant is in stock in a specified Channel.void
setRestockableInDays
(Long restockableInDays) Number of days to restock a Product Variant once it is out of stock in a specified Channel.void
setVersion
(Long version) Current version of the InventoryEntry.static com.fasterxml.jackson.core.type.TypeReference<ProductVariantChannelAvailability>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getIsOnStock
Boolean getIsOnStock()Indicates whether a Product Variant is in stock in a specified Channel.
- Returns:
- isOnStock
-
getRestockableInDays
Long getRestockableInDays()Number of days to restock a Product Variant once it is out of stock in a specified Channel.
- Returns:
- restockableInDays
-
getAvailableQuantity
Long getAvailableQuantity()Number of items of this Product Variant that are in stock in a specified Channel.
- Returns:
- availableQuantity
-
getId
Unique identifier of the InventoryEntry.
- Returns:
- id
-
getVersion
Current version of the InventoryEntry.
- Returns:
- version
-
setIsOnStock
Indicates whether a Product Variant is in stock in a specified Channel.
- Parameters:
isOnStock
- value to be set
-
setRestockableInDays
Number of days to restock a Product Variant once it is out of stock in a specified Channel.
- Parameters:
restockableInDays
- value to be set
-
setAvailableQuantity
Number of items of this Product Variant that are in stock in a specified Channel.
- Parameters:
availableQuantity
- value to be set
-
setId
Unique identifier of the InventoryEntry.
- Parameters:
id
- value to be set
-
setVersion
Current version of the InventoryEntry.
- Parameters:
version
- value to be set
-
of
factory method- Returns:
- instance of ProductVariantChannelAvailability
-
of
factory method to create a shallow copy ProductVariantChannelAvailability- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductVariantChannelAvailability deepCopy(@Nullable ProductVariantChannelAvailability template) factory method to create a deep copy of ProductVariantChannelAvailability- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductVariantChannelAvailability- Returns:
- builder
-
builder
create builder for ProductVariantChannelAvailability instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductVariantChannelAvailability
default <T> T withProductVariantChannelAvailability(Function<ProductVariantChannelAvailability, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ProductVariantChannelAvailability> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-