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

io.sphere.sdk.orders.messages.OrderStateTransitionMessage Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.messages.MessageDerivateHint;
import io.sphere.sdk.models.Reference;
import io.sphere.sdk.orders.Order;
import io.sphere.sdk.states.State;

/**
 * This message is the result of the {@link io.sphere.sdk.products.commands.updateactions.TransitionState} update action.
 *
 * {@include.example io.sphere.sdk.orders.commands.OrderUpdateCommandTest#transitionState()}
 *
 * @see io.sphere.sdk.orders.Order
 * @see Order#getState()
 * @see io.sphere.sdk.orders.commands.updateactions.TransitionState
 */
public class OrderStateTransitionMessage {
    public static final String MESSAGE_TYPE = "OrderStateTransition";
    public static final MessageDerivateHint MESSAGE_HINT =
            MessageDerivateHint.ofSingleMessageType(MESSAGE_TYPE, OrderStateTransitionMessage.class);


    private final Reference state;

    @JsonCreator
    private OrderStateTransitionMessage(final Reference state) {
        this.state = state;
    }

    public Reference getState() {
        return state;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy