@Immutable public class OrderServiceAdapter extends java.lang.Object implements OrderService
| Constructor and Description |
|---|
OrderServiceAdapter(OrderService service) |
| Modifier and Type | Method and Description |
|---|---|
QueryRequest<Order> |
all()
Deprecated.
|
FetchRequest<Order> |
byId(java.lang.String id)
Finds an order by an id.
|
QueryRequest<Order> |
query()
Queries orders in current project.
|
Order |
updateOrder(VersionedId orderId,
OrderUpdate orderUpdate)
Updates the order, e.g.
|
play.libs.F.Promise<SphereResult<Order>> |
updateOrderAsync(VersionedId orderId,
OrderUpdate orderUpdate)
Updates the order, e.g.
|
Order |
updatePaymentState(VersionedId orderId,
PaymentState paymentState)
Deprecated.
|
play.libs.F.Promise<SphereResult<Order>> |
updatePaymentStateAsync(VersionedId orderId,
PaymentState paymentState)
Deprecated.
|
Order |
updateShipmentState(VersionedId orderId,
ShipmentState shipmentState)
Deprecated.
|
play.libs.F.Promise<SphereResult<Order>> |
updateShipmentStateAsync(VersionedId orderId,
ShipmentState shipmentState)
Deprecated.
|
public OrderServiceAdapter(@Nonnull
OrderService service)
public FetchRequest<Order> byId(java.lang.String id)
OrderServicebyId in interface OrderService@Deprecated public QueryRequest<Order> all()
OrderServiceall in interface OrderServicepublic QueryRequest<Order> query()
OrderServicequery in interface OrderService@Deprecated public Order updatePaymentState(VersionedId orderId, PaymentState paymentState)
OrderServiceupdatePaymentState in interface OrderService@Deprecated public play.libs.F.Promise<SphereResult<Order>> updatePaymentStateAsync(VersionedId orderId, PaymentState paymentState)
OrderServiceupdatePaymentStateAsync in interface OrderService@Deprecated public Order updateShipmentState(VersionedId orderId, ShipmentState shipmentState)
OrderServiceupdateShipmentState in interface OrderService@Deprecated public play.libs.F.Promise<SphereResult<Order>> updateShipmentStateAsync(VersionedId orderId, ShipmentState shipmentState)
OrderServiceupdateShipmentStateAsync in interface OrderServicepublic Order updateOrder(VersionedId orderId, OrderUpdate orderUpdate)
OrderServiceupdateOrder in interface OrderServiceorderId - the versioned id of the order to updateorderUpdate - the changes to be appliedpublic play.libs.F.Promise<SphereResult<Order>> updateOrderAsync(VersionedId orderId, OrderUpdate orderUpdate)
OrderServiceupdateOrderAsync in interface OrderServiceorderId - the versioned id of the order to updateorderUpdate - the changes to be applied