io.sphere.sdk.orders.commands.updateactions.ChangeOrderState Maven / Gradle / Ivy
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