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

io.sphere.sdk.orders.commands.updateactions.ChangeShipmentState 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.ShipmentState;

/**
 Changes the shipment state.

 {@doc.gen intro}

 {@include.example io.sphere.sdk.orders.commands.OrderUpdateCommandTest#changeShipmentState()}
 */
public class ChangeShipmentState extends UpdateActionImpl {
    private final ShipmentState shipmentState;

    private ChangeShipmentState(final ShipmentState shipmentState) {
        super("changeShipmentState");
        this.shipmentState = shipmentState;
    }

    public static ChangeShipmentState of(final ShipmentState shipmentState) {
        return new ChangeShipmentState(shipmentState);
    }

    public ShipmentState getShipmentState() {
        return shipmentState;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy