/// <summary> /// Updates an inventory entry. /// </summary> /// <param name="inventoryentry">Inventory Entry</param> /// <param name="actions">The list of update actions to be performed on the inventory entry.</param> /// <returns>InventoryEntry</returns> /// <see href="http://dev.commercetools.com/http-api-projects-inventory.html#update-an-inventoryentry"/> public Task <Response <InventoryEntry> > UpdateInventoryEntryAsync(InventoryEntry inventoryEntry, List <UpdateAction> actions) { return(UpdateInventoryEntryAsync(inventoryEntry.Id, inventoryEntry.Version, actions)); }
/// <summary> /// Deletes an inventoryentry. /// </summary> /// <param name="inventoryEntry">Inventory Entry object</param> /// <returns>InventoryEntry</returns> /// <see href="http://dev.commercetools.com/http-api-projects-inventory.html#delete-an-inventoryentry"/> public Task <Response <InventoryEntry> > DeleteInventoryEntryAsync(InventoryEntry inventoryEntry) { return(DeleteInventoryEntryAsync(inventoryEntry.Id, inventoryEntry.Version)); }
/// <summary> /// Updates an inventory entry. /// </summary> /// <param name="inventoryentry">Inventory Entry</param> /// <param name="action">The update action to be performed on the inventory entry.</param> /// <returns>InventoryEntry</returns> /// <see href="http://dev.commercetools.com/http-api-projects-inventory.html#update-an-inventoryentry"/> public Task <Response <InventoryEntry> > UpdateInventoryEntryAsync(InventoryEntry inventoryEntry, UpdateAction action) { return(UpdateInventoryEntryAsync(inventoryEntry.Id, inventoryEntry.Version, new List <UpdateAction> { action })); }