public interface IPoyntOrderService
extends android.os.IInterface
Order
s. All operations
require network connectivity except for the 'get' operations, in which case, data from the local
Poynt Orders content providerName is returned. Poynt Order content providerName is updated whenever the
orders are modified locally or on the cloud.
All calls require the necessary permissions declared
in the caller's Android Manifest file. Please refer to
Poynt OS Permissions for more details.Modifier and Type | Interface and Description |
---|---|
static class |
IPoyntOrderService.Stub
Local-side IPC implementation stub class.
|
Modifier and Type | Method and Description |
---|---|
void |
cancelOrder(java.lang.String orderId,
java.lang.String requestId,
IPoyntOrderServiceListener callback)
Cancels the given order through Poynt Cloud and also updates the order in local Poynt Order content
providerName.
|
void |
captureOrder(java.lang.String orderId,
co.poynt.api.model.Order order,
java.lang.String requestId,
IPoyntOrderServiceListener callback)
Captures the payment transactions associated with the given order through Poynt Cloud and
also updates the order in local Poynt Order content providerName.
|
void |
completeOrder(java.lang.String orderId,
co.poynt.api.model.Order order,
java.lang.String requestId,
IPoyntOrderServiceListener callback)
Captures the payment transactions associated with the given order and marks the oder as
Completed.
|
void |
createOrder(co.poynt.api.model.Order order,
java.lang.String requestId,
IPoyntOrderServiceListener callback)
Creates the order in Poynt Cloud and also saves the created order in Poynt Order content
providerName.
|
void |
getOrder(java.lang.String orderId,
java.lang.String requestId,
IPoyntOrderServiceListener callback)
Retrieves the given order from the local Poynt Order content providerName if available, otherwise
fetches from the Poynt Cloud .
|
void |
processOrder(co.poynt.api.model.Order order,
java.lang.String requestId,
IPoyntOrderServiceListener callback)
Processes the given order through Poynt Cloud and also saves the processed order in local Poynt Order content
providerName.
|
void |
saveOrder(co.poynt.api.model.Order order,
java.lang.String requestId,
IPoyntOrderServiceListener callback)
Saves the given order in local Poynt Order content provider.
|
void |
updateOrder(java.lang.String orderId,
co.poynt.api.model.Order order,
java.lang.String requestId,
IPoyntOrderServiceListener callback)
Updates the given order in the Poynt Cloud and updates local Poynt Order content providerName.
|
void saveOrder(co.poynt.api.model.Order order, java.lang.String requestId, IPoyntOrderServiceListener callback) throws android.os.RemoteException
order
- co.poynt.api.Order
requestId
- RequestId for Idempotency enforcementcallback
- IPoyntOrderServiceListener
android.os.RemoteException
void createOrder(co.poynt.api.model.Order order, java.lang.String requestId, IPoyntOrderServiceListener callback) throws android.os.RemoteException
order
- co.poynt.api.Order
requestId
- RequestId for Idempotency enforcementcallback
- IPoyntOrderServiceListener
android.os.RemoteException
void processOrder(co.poynt.api.model.Order order, java.lang.String requestId, IPoyntOrderServiceListener callback) throws android.os.RemoteException
order
- co.poynt.api.Order
requestId
- RequestId for Idempotency enforcementcallback
- IPoyntOrderServiceListener
android.os.RemoteException
void cancelOrder(java.lang.String orderId, java.lang.String requestId, IPoyntOrderServiceListener callback) throws android.os.RemoteException
order
- co.poynt.api.Order
requestId
- RequestId for Idempotency enforcementcallback
- IPoyntOrderServiceListener
android.os.RemoteException
void captureOrder(java.lang.String orderId, co.poynt.api.model.Order order, java.lang.String requestId, IPoyntOrderServiceListener callback) throws android.os.RemoteException
orderId
- ID of the order to captureorder
- co.poynt.api.Order
requestId
- RequestId for Idempotency enforcementcallback
- IPoyntOrderServiceListener
android.os.RemoteException
void completeOrder(java.lang.String orderId, co.poynt.api.model.Order order, java.lang.String requestId, IPoyntOrderServiceListener callback) throws android.os.RemoteException
orderId
- ID of the order to captureorder
- co.poynt.api.Order
- if not null and order.getContext().getSource equals
to TransactionSource.WEB the server will mark order items as FULFILLEDrequestId
- RequestId for Idempotency enforcementcallback
- IPoyntOrderServiceListener
android.os.RemoteException
void getOrder(java.lang.String orderId, java.lang.String requestId, IPoyntOrderServiceListener callback) throws android.os.RemoteException
orderId
- ID of the order to retrieverequestId
- RequestId for tracking the requestcallback
- IPoyntOrderServiceListener
android.os.RemoteException
void updateOrder(java.lang.String orderId, co.poynt.api.model.Order order, java.lang.String requestId, IPoyntOrderServiceListener callback) throws android.os.RemoteException
orderId
- ID of the order to updateorder
- Order
requestId
- RequestId for Idempotency enforcementcallback
- IPoyntOrderServiceListener
android.os.RemoteException