
io.sphere.internal.command.OrderCommands Maven / Gradle / Ivy
package io.sphere.internal.command;
import io.sphere.internal.command.CommandBase;
import io.sphere.client.shop.model.*;
import net.jcip.annotations.Immutable;
/** Commands issued against the HTTP endpoints for working with shopping orders. */
public class OrderCommands {
// @Immutable
// public static final class CreateOrder extends CommandBase {
// private final String customerId;
//
// public CreateOrder(String customerId) {
// super(id, version);
// this.customerId = customerId;
// }
//
// public String getCustomerId() { return customerId; }
// }
@Immutable
public static final class UpdateShipmentState extends CommandBase {
private final ShipmentState shipmentState;
public UpdateShipmentState(String id, int version, ShipmentState shipmentState) {
super(id, version);
this.shipmentState = shipmentState;
}
public ShipmentState getShipmentState() { return shipmentState; }
}
@Immutable
public static final class UpdatePaymentState extends CommandBase {
private final PaymentState paymentState;
public UpdatePaymentState(String id, int version, PaymentState paymentState) {
super(id, version);
this.paymentState = paymentState;
}
public PaymentState getPaymentState() { return paymentState; }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy