Class InventoryEntryImpl
- All Implemented Interfaces:
BaseResource
,Customizable<InventoryEntry>
,DomainResource<InventoryEntry>
,Identifiable<InventoryEntry>
,InventoryEntry
,InventoryEntryMixin
,Referencable<InventoryEntry>
,ResourceIdentifiable<InventoryEntry>
,Versioned<InventoryEntry>
,WithKey
,io.vrap.rmf.base.client.ModelBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Available amount of stock (quantityOnStock
- reserved).Date and time (UTC) the InventoryEntry was initially created.Present on resources created after 1 February 2019 except for events not tracked.Custom Fields of the InventoryEntry.Date and time of the next restock.getId()
Unique identifier of the InventoryEntry.getKey()
User-defined unique identifier of the InventoryEntry.Date and time (UTC) the InventoryEntry was last updated.Present on resources created after 1 February 2019 except for events not tracked.Overall amount of stock (availableQuantity
+ reserved).How often the InventoryEntry is restocked (in days).getSku()
ProductVariantsku
of the InventoryEntry.Channel that supplies this InventoryEntry.Current version of the InventoryEntry.int
hashCode()
void
setAvailableQuantity
(Long availableQuantity) Available amount of stock (quantityOnStock
- reserved).void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the InventoryEntry was initially created.void
setCreatedBy
(CreatedBy createdBy) Present on resources created after 1 February 2019 except for events not tracked.void
setCustom
(CustomFields custom) Custom Fields of the InventoryEntry.void
setExpectedDelivery
(ZonedDateTime expectedDelivery) Date and time of the next restock.void
Unique identifier of the InventoryEntry.void
User-defined unique identifier of the InventoryEntry.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the InventoryEntry was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) Present on resources created after 1 February 2019 except for events not tracked.void
setQuantityOnStock
(Long quantityOnStock) Overall amount of stock (availableQuantity
+ reserved).void
setRestockableInDays
(Long restockableInDays) How often the InventoryEntry is restocked (in days).void
ProductVariantsku
of the InventoryEntry.void
setSupplyChannel
(ChannelReference supplyChannel) Channel that supplies this InventoryEntry.void
setVersion
(Long version) Current version of the InventoryEntry.toString()
Methods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizable
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface com.commercetools.api.models.inventory.InventoryEntry
withInventoryEntry
Methods inherited from interface com.commercetools.api.models.inventory.InventoryEntryMixin
toReference, toResourceIdentifier
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
InventoryEntryImpl
public InventoryEntryImpl()create empty instance
-
-
Method Details
-
getId
Unique identifier of the InventoryEntry.
- Specified by:
getId
in interfaceBaseResource
- Specified by:
getId
in interfaceDomainResource<InventoryEntry>
- Specified by:
getId
in interfaceIdentifiable<InventoryEntry>
- Specified by:
getId
in interfaceInventoryEntry
- Specified by:
getId
in interfaceVersioned<InventoryEntry>
- Returns:
- id
-
getVersion
Current version of the InventoryEntry.
- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceDomainResource<InventoryEntry>
- Specified by:
getVersion
in interfaceInventoryEntry
- Specified by:
getVersion
in interfaceVersioned<InventoryEntry>
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the InventoryEntry was initially created.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Specified by:
getCreatedAt
in interfaceInventoryEntry
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the InventoryEntry was last updated.
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Specified by:
getLastModifiedAt
in interfaceInventoryEntry
- Returns:
- lastModifiedAt
-
getLastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getLastModifiedBy
in interfaceInventoryEntry
- Returns:
- lastModifiedBy
-
getCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getCreatedBy
in interfaceInventoryEntry
- Returns:
- createdBy
-
getKey
User-defined unique identifier of the InventoryEntry.
- Specified by:
getKey
in interfaceInventoryEntry
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
getSku
ProductVariant
sku
of the InventoryEntry.- Specified by:
getSku
in interfaceInventoryEntry
- Returns:
- sku
-
getSupplyChannel
Channel that supplies this InventoryEntry.
- Specified by:
getSupplyChannel
in interfaceInventoryEntry
- Returns:
- supplyChannel
-
getQuantityOnStock
Overall amount of stock (
availableQuantity
+ reserved).- Specified by:
getQuantityOnStock
in interfaceInventoryEntry
- Returns:
- quantityOnStock
-
getAvailableQuantity
Available amount of stock (
quantityOnStock
- reserved).- Specified by:
getAvailableQuantity
in interfaceInventoryEntry
- Returns:
- availableQuantity
-
getRestockableInDays
How often the InventoryEntry is restocked (in days).
- Specified by:
getRestockableInDays
in interfaceInventoryEntry
- Returns:
- restockableInDays
-
getExpectedDelivery
Date and time of the next restock.
- Specified by:
getExpectedDelivery
in interfaceInventoryEntry
- Returns:
- expectedDelivery
-
getCustom
Custom Fields of the InventoryEntry.
- Specified by:
getCustom
in interfaceCustomizable<InventoryEntry>
- Specified by:
getCustom
in interfaceInventoryEntry
- Returns:
- custom
-
setId
Description copied from interface:InventoryEntry
Unique identifier of the InventoryEntry.
- Specified by:
setId
in interfaceBaseResource
- Specified by:
setId
in interfaceInventoryEntry
- Parameters:
id
- value to be set
-
setVersion
Description copied from interface:InventoryEntry
Current version of the InventoryEntry.
- Specified by:
setVersion
in interfaceBaseResource
- Specified by:
setVersion
in interfaceInventoryEntry
- Parameters:
version
- value to be set
-
setCreatedAt
Description copied from interface:InventoryEntry
Date and time (UTC) the InventoryEntry was initially created.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Specified by:
setCreatedAt
in interfaceInventoryEntry
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Description copied from interface:InventoryEntry
Date and time (UTC) the InventoryEntry was last updated.
- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Specified by:
setLastModifiedAt
in interfaceInventoryEntry
- Parameters:
lastModifiedAt
- value to be set
-
setLastModifiedBy
Description copied from interface:InventoryEntry
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setLastModifiedBy
in interfaceInventoryEntry
- Parameters:
lastModifiedBy
- value to be set
-
setCreatedBy
Description copied from interface:InventoryEntry
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setCreatedBy
in interfaceInventoryEntry
- Parameters:
createdBy
- value to be set
-
setKey
Description copied from interface:InventoryEntry
User-defined unique identifier of the InventoryEntry.
- Specified by:
setKey
in interfaceInventoryEntry
- Parameters:
key
- value to be set
-
setSku
Description copied from interface:InventoryEntry
ProductVariant
sku
of the InventoryEntry.- Specified by:
setSku
in interfaceInventoryEntry
- Parameters:
sku
- value to be set
-
setSupplyChannel
Description copied from interface:InventoryEntry
Channel that supplies this InventoryEntry.
- Specified by:
setSupplyChannel
in interfaceInventoryEntry
- Parameters:
supplyChannel
- value to be set
-
setQuantityOnStock
Description copied from interface:InventoryEntry
Overall amount of stock (
availableQuantity
+ reserved).- Specified by:
setQuantityOnStock
in interfaceInventoryEntry
- Parameters:
quantityOnStock
- value to be set
-
setAvailableQuantity
Description copied from interface:InventoryEntry
Available amount of stock (
quantityOnStock
- reserved).- Specified by:
setAvailableQuantity
in interfaceInventoryEntry
- Parameters:
availableQuantity
- value to be set
-
setRestockableInDays
Description copied from interface:InventoryEntry
How often the InventoryEntry is restocked (in days).
- Specified by:
setRestockableInDays
in interfaceInventoryEntry
- Parameters:
restockableInDays
- value to be set
-
setExpectedDelivery
Description copied from interface:InventoryEntry
Date and time of the next restock.
- Specified by:
setExpectedDelivery
in interfaceInventoryEntry
- Parameters:
expectedDelivery
- value to be set
-
setCustom
Description copied from interface:InventoryEntry
Custom Fields of the InventoryEntry.
- Specified by:
setCustom
in interfaceCustomizable<InventoryEntry>
- Specified by:
setCustom
in interfaceInventoryEntry
- Parameters:
custom
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-