io.sphere.sdk.productdiscounts.commands.ProductDiscountUpdateCommand Maven / Gradle / Ivy
package io.sphere.sdk.productdiscounts.commands;
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 io.sphere.sdk.productdiscounts.ProductDiscount;
import io.sphere.sdk.productdiscounts.expansion.ProductDiscountExpansionModel;
import java.util.Collections;
import java.util.List;
/**
{@doc.gen list actions}
*/
public interface ProductDiscountUpdateCommand extends UpdateCommandDsl, MetaModelExpansionDsl> {
static ProductDiscountUpdateCommand of(final Versioned versioned, final UpdateAction updateAction) {
return of(versioned, Collections.singletonList(updateAction));
}
static ProductDiscountUpdateCommand of(final Versioned versioned, final List extends UpdateAction> updateActions) {
return new ProductDiscountUpdateCommandImpl(versioned, updateActions);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy