public class OrderUpdate extends Update<UpdateAction>
Constructor and Description |
---|
OrderUpdate() |
Modifier and Type | Method and Description |
---|---|
OrderUpdate |
addDelivery(java.util.List<DeliveryItem> items)
See
Delivery . |
OrderUpdate |
addParcelToDelivery(java.lang.String deliveryId,
com.google.common.base.Optional<ParcelMeasurements> measurements,
com.google.common.base.Optional<TrackingData> trackingData) |
OrderUpdate |
setPaymentState(PaymentState paymentState) |
OrderUpdate |
setShipmentState(ShipmentState shipmentState) |
OrderUpdate |
updateSyncInfo(SyncInfo syncInfo) |
add, getActions, isEmpty
public OrderUpdate setPaymentState(PaymentState paymentState)
public OrderUpdate setShipmentState(ShipmentState shipmentState)
public OrderUpdate addDelivery(java.util.List<DeliveryItem> items)
Delivery
.
It is necessary that a shipping method is set to add a delivery.public OrderUpdate addParcelToDelivery(java.lang.String deliveryId, com.google.common.base.Optional<ParcelMeasurements> measurements, com.google.common.base.Optional<TrackingData> trackingData)
public OrderUpdate updateSyncInfo(SyncInfo syncInfo)