Class ProductVariantChannelAvailabilityImpl
java.lang.Object
com.commercetools.api.models.product.ProductVariantChannelAvailabilityImpl
- All Implemented Interfaces:
ProductVariantChannelAvailability
,io.vrap.rmf.base.client.ModelBase
public class ProductVariantChannelAvailabilityImpl
extends Object
implements ProductVariantChannelAvailability, io.vrap.rmf.base.client.ModelBase
ProductVariantChannelAvailability
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Number of items of this Product Variant that are in stock in a specified Channel.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.Current version of the InventoryEntry.int
hashCode()
void
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.toString()
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.product.ProductVariantChannelAvailability
withProductVariantChannelAvailability
-
Constructor Details
-
ProductVariantChannelAvailabilityImpl
public ProductVariantChannelAvailabilityImpl()create empty instance
-
-
Method Details
-
getIsOnStock
Indicates whether a Product Variant is in stock in a specified Channel.
- Specified by:
getIsOnStock
in interfaceProductVariantChannelAvailability
- Returns:
- isOnStock
-
getRestockableInDays
Number of days to restock a Product Variant once it is out of stock in a specified Channel.
- Specified by:
getRestockableInDays
in interfaceProductVariantChannelAvailability
- Returns:
- restockableInDays
-
getAvailableQuantity
Number of items of this Product Variant that are in stock in a specified Channel.
- Specified by:
getAvailableQuantity
in interfaceProductVariantChannelAvailability
- Returns:
- availableQuantity
-
getId
Unique identifier of the InventoryEntry.
- Specified by:
getId
in interfaceProductVariantChannelAvailability
- Returns:
- id
-
getVersion
Current version of the InventoryEntry.
- Specified by:
getVersion
in interfaceProductVariantChannelAvailability
- Returns:
- version
-
setIsOnStock
Description copied from interface:ProductVariantChannelAvailability
Indicates whether a Product Variant is in stock in a specified Channel.
- Specified by:
setIsOnStock
in interfaceProductVariantChannelAvailability
- Parameters:
isOnStock
- value to be set
-
setRestockableInDays
Description copied from interface:ProductVariantChannelAvailability
Number of days to restock a Product Variant once it is out of stock in a specified Channel.
- Specified by:
setRestockableInDays
in interfaceProductVariantChannelAvailability
- Parameters:
restockableInDays
- value to be set
-
setAvailableQuantity
Description copied from interface:ProductVariantChannelAvailability
Number of items of this Product Variant that are in stock in a specified Channel.
- Specified by:
setAvailableQuantity
in interfaceProductVariantChannelAvailability
- Parameters:
availableQuantity
- value to be set
-
setId
Description copied from interface:ProductVariantChannelAvailability
Unique identifier of the InventoryEntry.
- Specified by:
setId
in interfaceProductVariantChannelAvailability
- Parameters:
id
- value to be set
-
setVersion
Description copied from interface:ProductVariantChannelAvailability
Current version of the InventoryEntry.
- Specified by:
setVersion
in interfaceProductVariantChannelAvailability
- Parameters:
version
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-