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

io.sphere.sdk.orders.commands.updateactions.ChangeOrderState Maven / Gradle / Ivy

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

import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.orders.Order;
import io.sphere.sdk.orders.OrderState;

/**

 {@include.example io.sphere.sdk.orders.commands.OrderUpdateCommandTest#changeOrderState()}
 */
public class ChangeOrderState extends UpdateAction {
    private final OrderState orderState;

    private ChangeOrderState(final OrderState orderState) {
        super("changeOrderState");
        this.orderState = orderState;
    }

    public static ChangeOrderState of(final OrderState orderState) {
        return new ChangeOrderState(orderState);
    }

    public OrderState getOrderState() {
        return orderState;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy