Interface InventoryEntry
- All Superinterfaces:
BaseResource,Customizable<InventoryEntry>,DomainResource<InventoryEntry>,Identifiable<InventoryEntry>,InventoryEntryMixin,Referencable<InventoryEntry>,ResourceIdentifiable<InventoryEntry>,Versioned<InventoryEntry>,WithKey
Example to create an instance using the builder pattern
InventoryEntry inventoryEntry = InventoryEntry.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.sku("{sku}")
.quantityOnStock(0.3)
.availableQuantity(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic InventoryEntryBuilderbuilder()builder factory method for InventoryEntrystatic InventoryEntryBuilderbuilder(InventoryEntry template) create builder for InventoryEntry instancecopyDeep()static InventoryEntrydeepCopy(InventoryEntry template) factory method to create a deep copy of InventoryEntry@NotNull LongAvailable amount of stock (quantityOnStock- reserved).@NotNull ZonedDateTimeDate and time (UTC) the InventoryEntry was initially created.@Valid CreatedByIDs and references that created the InventoryEntry.@Valid CustomFieldsCustom Fields of the InventoryEntry.Date and time of the next restock.@NotNull StringgetId()Unique identifier of the InventoryEntry.getKey()User-defined unique identifier of the InventoryEntry.@NotNull ZonedDateTimeDate and time (UTC) the InventoryEntry was last updated.@Valid LastModifiedByIDs and references that last modified the InventoryEntry.Maximum quantity that can be added to a Cart.Minimum quantity that can be added to a Cart.@NotNull LongOverall amount of stock (availableQuantity+ reserved).How often the InventoryEntry is restocked (in days).@NotNull StringgetSku()ProductVariantskuof the InventoryEntry.@Valid ChannelReferenceChannel that supplies this InventoryEntry.@NotNull LongCurrent version of the InventoryEntry.static InventoryEntryof()factory methodstatic InventoryEntryof(InventoryEntry template) factory method to create a shallow copy InventoryEntrystatic ReferenceTypeIdvoidsetAvailableQuantity(Long availableQuantity) Available amount of stock (quantityOnStock- reserved).voidsetCreatedAt(ZonedDateTime createdAt) Date and time (UTC) the InventoryEntry was initially created.voidsetCreatedBy(CreatedBy createdBy) IDs and references that created the InventoryEntry.voidsetCustom(CustomFields custom) Custom Fields of the InventoryEntry.voidsetExpectedDelivery(ZonedDateTime expectedDelivery) Date and time of the next restock.voidUnique identifier of the InventoryEntry.voidUser-defined unique identifier of the InventoryEntry.voidsetLastModifiedAt(ZonedDateTime lastModifiedAt) Date and time (UTC) the InventoryEntry was last updated.voidsetLastModifiedBy(LastModifiedBy lastModifiedBy) IDs and references that last modified the InventoryEntry.voidsetMaxCartQuantity(Integer maxCartQuantity) Maximum quantity that can be added to a Cart.voidsetMinCartQuantity(Integer minCartQuantity) Minimum quantity that can be added to a Cart.voidsetQuantityOnStock(Long quantityOnStock) Overall amount of stock (availableQuantity+ reserved).voidsetRestockableInDays(Long restockableInDays) How often the InventoryEntry is restocked (in days).voidProductVariantskuof the InventoryEntry.voidsetSupplyChannel(ChannelReference supplyChannel) Channel that supplies this InventoryEntry.voidsetVersion(Long version) Current version of the InventoryEntry.static com.fasterxml.jackson.core.type.TypeReference<InventoryEntry>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithInventoryEntry(Function<InventoryEntry, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizableMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods inherited from interface com.commercetools.api.models.inventory.InventoryEntryMixin
toReference, toResourceIdentifier
-
Method Details
-
getId
Unique identifier of the InventoryEntry.
- Specified by:
getIdin interfaceBaseResource- Specified by:
getIdin interfaceDomainResource<InventoryEntry>- Specified by:
getIdin interfaceIdentifiable<InventoryEntry>- Specified by:
getIdin interfaceVersioned<InventoryEntry>- Returns:
- id
-
getVersion
Current version of the InventoryEntry.
- Specified by:
getVersionin interfaceBaseResource- Specified by:
getVersionin interfaceDomainResource<InventoryEntry>- Specified by:
getVersionin interfaceVersioned<InventoryEntry>- Returns:
- version
-
getCreatedAt
Date and time (UTC) the InventoryEntry was initially created.
- Specified by:
getCreatedAtin interfaceBaseResource- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the InventoryEntry was last updated.
- Specified by:
getLastModifiedAtin interfaceBaseResource- Returns:
- lastModifiedAt
-
getLastModifiedBy
IDs and references that last modified the InventoryEntry.
- Returns:
- lastModifiedBy
-
getCreatedBy
IDs and references that created the InventoryEntry.
- Returns:
- createdBy
-
getKey
String getKey()User-defined unique identifier of the InventoryEntry.
-
getSku
ProductVariant
skuof the InventoryEntry.- Returns:
- sku
-
getSupplyChannel
Channel that supplies this InventoryEntry.
- Returns:
- supplyChannel
-
getQuantityOnStock
Overall amount of stock (
availableQuantity+ reserved).- Returns:
- quantityOnStock
-
getAvailableQuantity
Available amount of stock (
quantityOnStock- reserved).- Returns:
- availableQuantity
-
getMinCartQuantity
Integer getMinCartQuantity()Minimum quantity that can be added to a Cart. See Quantity limits.
- Returns:
- minCartQuantity
-
getMaxCartQuantity
Integer getMaxCartQuantity()Maximum quantity that can be added to a Cart. See Quantity limits.
- Returns:
- maxCartQuantity
-
getRestockableInDays
Long getRestockableInDays()How often the InventoryEntry is restocked (in days).
- Returns:
- restockableInDays
-
getExpectedDelivery
ZonedDateTime getExpectedDelivery()Date and time of the next restock.
- Returns:
- expectedDelivery
-
getCustom
Custom Fields of the InventoryEntry.
- Specified by:
getCustomin interfaceCustomizable<InventoryEntry>- Returns:
- custom
-
setId
Unique identifier of the InventoryEntry.
- Specified by:
setIdin interfaceBaseResource- Parameters:
id- value to be set
-
setVersion
Current version of the InventoryEntry.
- Specified by:
setVersionin interfaceBaseResource- Parameters:
version- value to be set
-
setCreatedAt
Date and time (UTC) the InventoryEntry was initially created.
- Specified by:
setCreatedAtin interfaceBaseResource- Parameters:
createdAt- value to be set
-
setLastModifiedAt
Date and time (UTC) the InventoryEntry was last updated.
- Specified by:
setLastModifiedAtin interfaceBaseResource- Parameters:
lastModifiedAt- value to be set
-
setLastModifiedBy
IDs and references that last modified the InventoryEntry.
- Parameters:
lastModifiedBy- value to be set
-
setCreatedBy
IDs and references that created the InventoryEntry.
- Parameters:
createdBy- value to be set
-
setKey
User-defined unique identifier of the InventoryEntry.
- Parameters:
key- value to be set
-
setSku
ProductVariant
skuof the InventoryEntry.- Parameters:
sku- value to be set
-
setSupplyChannel
Channel that supplies this InventoryEntry.
- Parameters:
supplyChannel- value to be set
-
setQuantityOnStock
Overall amount of stock (
availableQuantity+ reserved).- Parameters:
quantityOnStock- value to be set
-
setAvailableQuantity
Available amount of stock (
quantityOnStock- reserved).- Parameters:
availableQuantity- value to be set
-
setMinCartQuantity
Minimum quantity that can be added to a Cart. See Quantity limits.
- Parameters:
minCartQuantity- value to be set
-
setMaxCartQuantity
Maximum quantity that can be added to a Cart. See Quantity limits.
- Parameters:
maxCartQuantity- value to be set
-
setRestockableInDays
How often the InventoryEntry is restocked (in days).
- Parameters:
restockableInDays- value to be set
-
setExpectedDelivery
Date and time of the next restock.
- Parameters:
expectedDelivery- value to be set
-
setCustom
Custom Fields of the InventoryEntry.
- Specified by:
setCustomin interfaceCustomizable<InventoryEntry>- Parameters:
custom- value to be set
-
of
factory method- Returns:
- instance of InventoryEntry
-
of
factory method to create a shallow copy InventoryEntry- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
InventoryEntry copyDeep()- Specified by:
copyDeepin interfaceBaseResource
-
deepCopy
factory method to create a deep copy of InventoryEntry- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InventoryEntry- Returns:
- builder
-
builder
create builder for InventoryEntry instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withInventoryEntry
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
referenceTypeId
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-