io.sphere.sdk.carts.commands.CartUpdateCommand Maven / Gradle / Ivy
package io.sphere.sdk.carts.commands;
import io.sphere.sdk.carts.Cart;
import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.commands.UpdateCommandDslImpl;
import io.sphere.sdk.models.Versioned;
import java.util.List;
import static java.util.Arrays.asList;
/**
{@doc.gen list actions}
*/
public class CartUpdateCommand extends UpdateCommandDslImpl {
private CartUpdateCommand(final Versioned versioned, final List extends UpdateAction> updateActions) {
super(versioned, updateActions, CartsEndpoint.ENDPOINT);
}
public static CartUpdateCommand of(final Versioned versioned, final List extends UpdateAction> updateActions) {
return new CartUpdateCommand(versioned, updateActions);
}
public static CartUpdateCommand of(final Versioned versioned, final UpdateAction updateAction) {
return of(versioned, asList(updateAction));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy