Class InventoryImportImpl
java.lang.Object
com.commercetools.importapi.models.inventories.InventoryImportImpl
- All Implemented Interfaces:
ImportResource
,InventoryImport
,io.vrap.rmf.base.client.ModelBase
public class InventoryImportImpl
extends Object
implements InventoryImport, io.vrap.rmf.base.client.ModelBase
The data representation for an Inventory to be imported that is persisted as a Inventory in the Project.
-
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
Maps toInventory.custom
.Maps toInventory.expectedDelivery
getKey()
User-defined unique identifier.Maps toInventory.quantityOnStock
Maps toInventory.restockableInDays
getSku()
Maps toInventory.sku
Maps toInventory.supplyChannel
int
hashCode()
void
Maps toInventory.custom
.void
setExpectedDelivery
(ZonedDateTime expectedDelivery) Maps toInventory.expectedDelivery
void
User-defined unique identifier.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
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.importapi.models.common.ImportResource
withImportResource
Methods inherited from interface com.commercetools.importapi.models.inventories.InventoryImport
withInventoryImport
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
InventoryImportImpl
public InventoryImportImpl()create empty instance
-
-
Method Details
-
getKey
User-defined unique identifier.
- Specified by:
getKey
in interfaceImportResource
- Returns:
- key
-
getSku
Maps to
Inventory.sku
- Specified by:
getSku
in interfaceInventoryImport
- Returns:
- sku
-
getQuantityOnStock
Maps to
Inventory.quantityOnStock
- Specified by:
getQuantityOnStock
in interfaceInventoryImport
- Returns:
- quantityOnStock
-
getRestockableInDays
Maps to
Inventory.restockableInDays
- Specified by:
getRestockableInDays
in interfaceInventoryImport
- Returns:
- restockableInDays
-
getExpectedDelivery
Maps to
Inventory.expectedDelivery
- Specified by:
getExpectedDelivery
in interfaceInventoryImport
- Returns:
- expectedDelivery
-
getSupplyChannel
Maps to
Inventory.supplyChannel
- Specified by:
getSupplyChannel
in interfaceInventoryImport
- Returns:
- supplyChannel
-
getCustom
Maps to
Inventory.custom
.- Specified by:
getCustom
in interfaceInventoryImport
- Returns:
- custom
-
setKey
Description copied from interface:ImportResource
User-defined unique identifier.
- Specified by:
setKey
in interfaceImportResource
- Parameters:
key
- value to be set
-
setSku
Description copied from interface:InventoryImport
Maps to
Inventory.sku
- Specified by:
setSku
in interfaceInventoryImport
- Parameters:
sku
- value to be set
-
setQuantityOnStock
Description copied from interface:InventoryImport
Maps to
Inventory.quantityOnStock
- Specified by:
setQuantityOnStock
in interfaceInventoryImport
- Parameters:
quantityOnStock
- value to be set
-
setRestockableInDays
Description copied from interface:InventoryImport
Maps to
Inventory.restockableInDays
- Specified by:
setRestockableInDays
in interfaceInventoryImport
- Parameters:
restockableInDays
- value to be set
-
setExpectedDelivery
Description copied from interface:InventoryImport
Maps to
Inventory.expectedDelivery
- Specified by:
setExpectedDelivery
in interfaceInventoryImport
- Parameters:
expectedDelivery
- value to be set
-
setSupplyChannel
Description copied from interface:InventoryImport
Maps to
Inventory.supplyChannel
- Specified by:
setSupplyChannel
in interfaceInventoryImport
- Parameters:
supplyChannel
- value to be set
-
setCustom
Description copied from interface:InventoryImport
Maps to
Inventory.custom
.- Specified by:
setCustom
in interfaceInventoryImport
- Parameters:
custom
- value to be set
-
equals
-
hashCode
public int hashCode()
-