io.sphere.sdk.customergroups.commands.CustomerGroupUpdateCommand Maven / Gradle / Ivy
package io.sphere.sdk.customergroups.commands;
import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.commands.UpdateCommandDsl;
import io.sphere.sdk.customergroups.CustomerGroup;
import io.sphere.sdk.customergroups.expansion.CustomerGroupExpansionModel;
import io.sphere.sdk.expansion.MetaModelExpansionDsl;
import io.sphere.sdk.models.Versioned;
import java.util.Collections;
import java.util.List;
/**
* Updates a customer group.
*
{@doc.gen list actions}
@see CustomerGroup
*/
public interface CustomerGroupUpdateCommand extends UpdateCommandDsl, MetaModelExpansionDsl> {
static CustomerGroupUpdateCommand of(final Versioned versioned, final List extends UpdateAction> updateActions) {
return new CustomerGroupUpdateCommandImpl(versioned, updateActions);
}
static CustomerGroupUpdateCommand of(final Versioned versioned, final UpdateAction updateAction) {
return new CustomerGroupUpdateCommandImpl(versioned, Collections.singletonList(updateAction));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy