@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)
OrderService
byId
in interface OrderService
@Deprecated public QueryRequest<Order> all()
OrderService
all
in interface OrderService
public QueryRequest<Order> query()
OrderService
query
in interface OrderService
@Deprecated public Order updatePaymentState(VersionedId orderId, PaymentState paymentState)
OrderService
updatePaymentState
in interface OrderService
@Deprecated public play.libs.F.Promise<SphereResult<Order>> updatePaymentStateAsync(VersionedId orderId, PaymentState paymentState)
OrderService
updatePaymentStateAsync
in interface OrderService
@Deprecated public Order updateShipmentState(VersionedId orderId, ShipmentState shipmentState)
OrderService
updateShipmentState
in interface OrderService
@Deprecated public play.libs.F.Promise<SphereResult<Order>> updateShipmentStateAsync(VersionedId orderId, ShipmentState shipmentState)
OrderService
updateShipmentStateAsync
in interface OrderService
public Order updateOrder(VersionedId orderId, OrderUpdate orderUpdate)
OrderService
updateOrder
in interface OrderService
orderId
- the versioned id of the order to updateorderUpdate
- the changes to be appliedpublic play.libs.F.Promise<SphereResult<Order>> updateOrderAsync(VersionedId orderId, OrderUpdate orderUpdate)
OrderService
updateOrderAsync
in interface OrderService
orderId
- the versioned id of the order to updateorderUpdate
- the changes to be applied