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-M26
Show newest version
package io.sphere.sdk.orders.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.orders.Order;
import io.sphere.sdk.orders.expansion.OrderExpansionModel;

import java.util.Collections;
import java.util.List;

/**
 {@doc.gen list actions}
 */
public interface OrderUpdateCommand extends UpdateCommandDsl, MetaModelExpansionDsl> {
    static OrderUpdateCommand of(final Versioned order, final List> updateActions) {
        return new OrderUpdateCommandImpl(order, updateActions);
    }

    static OrderUpdateCommand of(final Versioned order, final UpdateAction updateAction) {
        return of(order, Collections.singletonList(updateAction));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy