io.sphere.sdk.cartdiscounts.commands.CartDiscountUpdateCommand Maven / Gradle / Ivy
package io.sphere.sdk.cartdiscounts.commands;
import io.sphere.sdk.cartdiscounts.CartDiscount;
import io.sphere.sdk.cartdiscounts.expansion.CartDiscountExpansionModel;
import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.commands.UpdateCommandDsl;
import io.sphere.sdk.expansion.MetaModelExpansionDsl;
import io.sphere.sdk.models.Versioned;
import java.util.Collections;
import java.util.List;
/**
{@doc.gen list actions}
*/
public interface CartDiscountUpdateCommand extends UpdateCommandDsl, MetaModelExpansionDsl> {
static CartDiscountUpdateCommand of(final Versioned versioned, final UpdateAction updateAction) {
return of(versioned, Collections.singletonList(updateAction));
}
static CartDiscountUpdateCommand of(final Versioned versioned, final List extends UpdateAction> updateActions) {
return new CartDiscountUpdateCommandImpl(versioned, updateActions);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy