All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.orders.commands.OrderUpdateCommand Maven / Gradle / Ivy

There is a newer version: 1.0.0-M12
Show newest version
package io.sphere.sdk.orders.commands;

import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.commands.UpdateCommandDslImpl;
import io.sphere.sdk.models.Versioned;
import io.sphere.sdk.orders.Order;

import java.util.List;

import static java.util.Arrays.asList;

public class OrderUpdateCommand extends UpdateCommandDslImpl {
    private OrderUpdateCommand(final Versioned order, final List> updateActions) {
        super(order, updateActions, OrdersEndpoint.ENDPOINT);
    }

    public static OrderUpdateCommand of(final Versioned order, final List> updateActions) {
        return new OrderUpdateCommand(order, updateActions);
    }

    public static OrderUpdateCommand of(final Versioned order, final UpdateAction updateAction) {
        return of(order, asList(updateAction));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy