Interface VariantAttributesAvailability
public interface VariantAttributesAvailability
Lightweight availability information for a Variant. Present only if InventoryEntries exist for the Variant's SKU.
Example to create an instance using the builder pattern
VariantAttributesAvailability variantAttributesAvailability = VariantAttributesAvailability.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for VariantAttributesAvailabilitybuilder(VariantAttributesAvailability template) create builder for VariantAttributesAvailability instancecopyDeep()deepCopy(VariantAttributesAvailability template) factory method to create a deep copy of VariantAttributesAvailabilityNumber of items of this Variant that are in stock.Per-channel availability for the requested supply Channels.Indicates whether the Variant is in stock.of()factory methodof(VariantAttributesAvailability template) factory method to create a shallow copy VariantAttributesAvailabilityvoidsetAvailableQuantity(Long availableQuantity) Number of items of this Variant that are in stock.voidPer-channel availability for the requested supply Channels.voidsetIsOnStock(Boolean isOnStock) Indicates whether the Variant is in stock.static tools.jackson.core.type.TypeReference<VariantAttributesAvailability>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getIsOnStock
Boolean getIsOnStock()Indicates whether the Variant is in stock.
- Returns:
- isOnStock
-
getAvailableQuantity
Long getAvailableQuantity()Number of items of this Variant that are in stock.
- Returns:
- availableQuantity
-
getChannels
Per-channel availability for the requested supply Channels. Present only when the
filter[supplyChannels]query parameter is provided.- Returns:
- channels
-
setIsOnStock
Indicates whether the Variant is in stock.
- Parameters:
isOnStock- value to be set
-
setAvailableQuantity
Number of items of this Variant that are in stock.
- Parameters:
availableQuantity- value to be set
-
setChannels
Per-channel availability for the requested supply Channels. Present only when the
filter[supplyChannels]query parameter is provided.- Parameters:
channels- value to be set
-
of
factory method- Returns:
- instance of VariantAttributesAvailability
-
of
factory method to create a shallow copy VariantAttributesAvailability- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantAttributesAvailability copyDeep() -
deepCopy
@Nullable static VariantAttributesAvailability deepCopy(@Nullable VariantAttributesAvailability template) factory method to create a deep copy of VariantAttributesAvailability- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantAttributesAvailability- Returns:
- builder
-
builder
create builder for VariantAttributesAvailability instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantAttributesAvailability
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
-