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-M26
Show newest version
package io.sphere.sdk.orders.commands.updateactions;

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

/**
 Changes the order state.

 {@doc.gen intro}

 {@include.example io.sphere.sdk.orders.commands.OrderUpdateCommandTest#changeOrderState()}
 */
public class ChangeOrderState extends UpdateActionImpl {
    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