Interface InventoryImport
- All Superinterfaces:
ImportResource
- All Known Implementing Classes:
InventoryImportImpl
The data representation for an Inventory to be imported that is persisted as a Inventory in the Project.
Example to create an instance using the builder pattern
InventoryImport inventoryImport = InventoryImport.builder()
.key("{key}")
.sku("{sku}")
.quantityOnStock(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic InventoryImportBuilder
builder()
builder factory method for InventoryImportstatic InventoryImportBuilder
builder
(InventoryImport template) create builder for InventoryImport instancestatic InventoryImport
deepCopy
(InventoryImport template) factory method to create a deep copy of InventoryImport@Valid Custom
Maps toInventory.custom
.Maps toInventory.expectedDelivery
@NotNull Long
Maps toInventory.quantityOnStock
Maps toInventory.restockableInDays
@NotNull String
getSku()
Maps toInventory.sku
@Valid ChannelKeyReference
Maps toInventory.supplyChannel
static InventoryImport
of()
factory methodstatic InventoryImport
of
(InventoryImport template) factory method to create a shallow copy InventoryImportvoid
Maps toInventory.custom
.void
setExpectedDelivery
(ZonedDateTime expectedDelivery) Maps toInventory.expectedDelivery
void
setQuantityOnStock
(Long quantityOnStock) Maps toInventory.quantityOnStock
void
setRestockableInDays
(Long restockableInDays) Maps toInventory.restockableInDays
void
Maps toInventory.sku
void
setSupplyChannel
(ChannelKeyReference supplyChannel) Maps toInventory.supplyChannel
static com.fasterxml.jackson.core.type.TypeReference<InventoryImport>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withInventoryImport
(Function<InventoryImport, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.common.ImportResource
getKey, setKey, withImportResource
-
Method Details
-
getSku
Maps to
Inventory.sku
- Returns:
- sku
-
getQuantityOnStock
Maps to
Inventory.quantityOnStock
- Returns:
- quantityOnStock
-
getRestockableInDays
Maps to
Inventory.restockableInDays
- Returns:
- restockableInDays
-
getExpectedDelivery
Maps to
Inventory.expectedDelivery
- Returns:
- expectedDelivery
-
getSupplyChannel
Maps to
Inventory.supplyChannel
- Returns:
- supplyChannel
-
getCustom
Maps to
Inventory.custom
.- Returns:
- custom
-
setSku
Maps to
Inventory.sku
- Parameters:
sku
- value to be set
-
setQuantityOnStock
Maps to
Inventory.quantityOnStock
- Parameters:
quantityOnStock
- value to be set
-
setRestockableInDays
Maps to
Inventory.restockableInDays
- Parameters:
restockableInDays
- value to be set
-
setExpectedDelivery
Maps to
Inventory.expectedDelivery
- Parameters:
expectedDelivery
- value to be set
-
setSupplyChannel
Maps to
Inventory.supplyChannel
- Parameters:
supplyChannel
- value to be set
-
setCustom
Maps to
Inventory.custom
.- Parameters:
custom
- value to be set
-
of
factory method- Returns:
- instance of InventoryImport
-
of
factory method to create a shallow copy InventoryImport- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of InventoryImport- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InventoryImport- Returns:
- builder
-
builder
create builder for InventoryImport instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withInventoryImport
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
-