public final class InventoryServiceImpl extends java.lang.Object implements InventoryService
| Constructor and Description |
|---|
InventoryServiceImpl(io.sphere.sdk.client.SphereClient ctpClient) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletionStage<io.sphere.sdk.inventory.InventoryEntry> |
createInventoryEntry(io.sphere.sdk.inventory.InventoryEntryDraft inventoryEntryDraft)
Creates new inventory entry from
inventoryEntryDraft. |
java.util.concurrent.CompletionStage<java.util.List<io.sphere.sdk.inventory.InventoryEntry>> |
fetchInventoryEntriesBySkus(java.util.Set<java.lang.String> skus)
Queries existing
InventoryEntry's against set of skus. |
java.util.concurrent.CompletionStage<io.sphere.sdk.inventory.InventoryEntry> |
updateInventoryEntry(io.sphere.sdk.inventory.InventoryEntry inventoryEntry,
java.util.List<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.inventory.InventoryEntry>> updateActions)
Updates existing inventory entry with
updateActions. |
public InventoryServiceImpl(@Nonnull
io.sphere.sdk.client.SphereClient ctpClient)
@Nonnull
public java.util.concurrent.CompletionStage<java.util.List<io.sphere.sdk.inventory.InventoryEntry>> fetchInventoryEntriesBySkus(@Nonnull
java.util.Set<java.lang.String> skus)
InventoryServiceInventoryEntry's against set of skus.fetchInventoryEntriesBySkus in interface InventoryServiceskus - Set of sku values, used in search predicateList of matching entries or empty list when there was no entry of sku matching to skus.@Nonnull
public java.util.concurrent.CompletionStage<io.sphere.sdk.inventory.InventoryEntry> createInventoryEntry(@Nonnull
io.sphere.sdk.inventory.InventoryEntryDraft inventoryEntryDraft)
InventoryServiceinventoryEntryDraft.createInventoryEntry in interface InventoryServiceinventoryEntryDraft - draft with data for new inventory entryCompletionStage with created InventoryEntry or an exception@Nonnull
public java.util.concurrent.CompletionStage<io.sphere.sdk.inventory.InventoryEntry> updateInventoryEntry(@Nonnull
io.sphere.sdk.inventory.InventoryEntry inventoryEntry,
@Nonnull
java.util.List<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.inventory.InventoryEntry>> updateActions)
InventoryServiceupdateActions.updateInventoryEntry in interface InventoryServiceinventoryEntry - entry that should be updatedupdateActions - List of actions that should be applied to inventoryEntryCompletionStage with updated InventoryEntry or an exception