Class InventoryEntry
java.lang.Object
com.commercetools.graphql.api.types.InventoryEntry
- All Implemented Interfaces:
ReferenceExpandable,Versioned
Inventory allows you to track stock quantity per SKU and optionally per supply channel
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionInventoryEntry(String sku, Long quantityOnStock, Long availableQuantity, String key, Integer restockableInDays, OffsetDateTime expectedDelivery, Channel supplyChannel, Reference supplyChannelRef, CustomFieldsType custom, String id, Long version, OffsetDateTime createdAt, OffsetDateTime lastModifiedAt, Initiator createdBy, Initiator lastModifiedBy) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()getKey()getSku()inthashCode()static InventoryEntry.BuildervoidsetAvailableQuantity(Long availableQuantity) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCreatedBy(Initiator createdBy) voidsetCustom(CustomFieldsType custom) voidsetExpectedDelivery(OffsetDateTime expectedDelivery) voidvoidvoidsetLastModifiedAt(OffsetDateTime lastModifiedAt) voidsetLastModifiedBy(Initiator lastModifiedBy) voidsetQuantityOnStock(Long quantityOnStock) voidsetRestockableInDays(Integer restockableInDays) voidvoidsetSupplyChannel(Channel supplyChannel) voidsetSupplyChannelRef(Reference supplyChannelRef) voidsetVersion(Long version) toString()
-
Constructor Details
-
InventoryEntry
public InventoryEntry() -
InventoryEntry
public InventoryEntry(String sku, Long quantityOnStock, Long availableQuantity, String key, Integer restockableInDays, OffsetDateTime expectedDelivery, Channel supplyChannel, Reference supplyChannelRef, CustomFieldsType custom, String id, Long version, OffsetDateTime createdAt, OffsetDateTime lastModifiedAt, Initiator createdBy, Initiator lastModifiedBy)
-
-
Method Details
-
getSku
-
setSku
-
getQuantityOnStock
-
setQuantityOnStock
-
getAvailableQuantity
-
setAvailableQuantity
-
getKey
-
setKey
-
getRestockableInDays
-
setRestockableInDays
-
getExpectedDelivery
-
setExpectedDelivery
-
getSupplyChannel
-
setSupplyChannel
-
getSupplyChannelRef
-
setSupplyChannelRef
-
getCustom
-
setCustom
-
getId
- Specified by:
getIdin interfaceReferenceExpandable- Specified by:
getIdin interfaceVersioned
-
setId
- Specified by:
setIdin interfaceReferenceExpandable- Specified by:
setIdin interfaceVersioned
-
getVersion
- Specified by:
getVersionin interfaceVersioned
-
setVersion
- Specified by:
setVersionin interfaceVersioned
-
getCreatedAt
- Specified by:
getCreatedAtin interfaceVersioned
-
setCreatedAt
- Specified by:
setCreatedAtin interfaceVersioned
-
getLastModifiedAt
- Specified by:
getLastModifiedAtin interfaceVersioned
-
setLastModifiedAt
- Specified by:
setLastModifiedAtin interfaceVersioned
-
getCreatedBy
- Specified by:
getCreatedByin interfaceVersioned
-
setCreatedBy
- Specified by:
setCreatedByin interfaceVersioned
-
getLastModifiedBy
- Specified by:
getLastModifiedByin interfaceVersioned
-
setLastModifiedBy
- Specified by:
setLastModifiedByin interfaceVersioned
-
toString
-
equals
-
hashCode
public int hashCode() -
newBuilder
-