io.sphere.sdk.inventory.commands.InventoryEntryUpdateCommand Maven / Gradle / Ivy
package io.sphere.sdk.inventory.commands;
import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.commands.UpdateCommandDsl;
import io.sphere.sdk.expansion.MetaModelExpansionDsl;
import io.sphere.sdk.inventory.InventoryEntry;
import io.sphere.sdk.inventory.expansion.InventoryEntryExpansionModel;
import io.sphere.sdk.models.Versioned;
import java.util.Collections;
import java.util.List;
/**
{@doc.gen list actions}
*/
public interface InventoryEntryUpdateCommand extends UpdateCommandDsl, MetaModelExpansionDsl> {
static InventoryEntryUpdateCommand of(final Versioned versioned, final UpdateAction updateAction) {
return of(versioned, Collections.singletonList(updateAction));
}
static InventoryEntryUpdateCommand of(final Versioned versioned, final List> updateActions) {
return new InventoryEntryUpdateCommandImpl(versioned, updateActions);
}
}