public final class InventoryReferenceReplacementUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<io.sphere.sdk.inventory.InventoryEntryDraft> |
replaceInventoriesReferenceIdsWithKeys(java.util.List<io.sphere.sdk.inventory.InventoryEntry> inventoryEntries)
Takes a list of inventoryEntries that are supposed to have their custom type and supply channel reference
expanded in order to be able to fetch the keys and replace the reference ids with the corresponding keys and then
return a new list of inventory entry drafts with their references containing keys instead of the ids.
|
@Nonnull
public static java.util.List<io.sphere.sdk.inventory.InventoryEntryDraft> replaceInventoriesReferenceIdsWithKeys(@Nonnull
java.util.List<io.sphere.sdk.inventory.InventoryEntry> inventoryEntries)
inventoryEntries - the inventory entries to replace their reference ids with keys