public interface IPoyntStayService
extends android.os.IInterface
Stay
s. All operations
require network connectivity except for the 'get' operations, in which case, data from the local
Poynt Stays content providerName is returned. Poynt Stay content providerName is updated whenever the
stays 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 |
IPoyntStayService.Stub
Local-side IPC implementation stub class.
|
Modifier and Type | Method and Description |
---|---|
void |
cancelStay(java.lang.String stayId,
java.lang.String requestId,
IPoyntStayServiceListener callback)
Cancels the given stay through Poynt Cloud and also updates the stay in local Poynt Stay content
providerName.
|
void |
captureStay(java.lang.String stayId,
co.poynt.api.model.Stay stay,
java.lang.String requestId,
IPoyntStayServiceListener callback)
Captures the payment transactions associated with the given stay through Poynt Cloud and
also updates the stay in local Poynt Stay content providerName.
|
void |
completeStay(java.lang.String stayId,
co.poynt.api.model.Stay stay,
java.lang.String requestId,
IPoyntStayServiceListener callback)
Captures the payment transactions associated with the given stay and marks the oder as
Completed.
|
void |
createStay(co.poynt.api.model.Stay stay,
java.lang.String requestId,
IPoyntStayServiceListener callback)
Creates the stay in Poynt Cloud and also saves the created stay in Poynt Stay content
providerName.
|
void |
getStay(java.lang.String stayId,
java.lang.String requestId,
IPoyntStayServiceListener callback)
Retrieves the given stay from the local Poynt Stay content providerName if available, otherwise
fetches from the Poynt Cloud .
|
void |
getStayFromCloud(java.lang.String stayId,
java.lang.String requestId,
IPoyntStayServiceListener callback)
Retrieves the given stay from the Poynt Cloud.
|
void |
processStay(co.poynt.api.model.Stay stay,
java.lang.String requestId,
IPoyntStayServiceListener callback)
Processes the given stay through Poynt Cloud and also saves the processed stay in local Poynt Stay content
providerName.
|
void |
updateStay(java.lang.String stayId,
co.poynt.api.model.Stay stay,
java.lang.String requestId,
IPoyntStayServiceListener callback)
Updates the given stay in the Poynt Cloud and updates local Poynt Stay content providerName.
|
void createStay(co.poynt.api.model.Stay stay, java.lang.String requestId, IPoyntStayServiceListener callback) throws android.os.RemoteException
stay
- co.poynt.api.Stay
requestId
- RequestId for Idempotency enforcementcallback
- IPoyntStayServiceListener
android.os.RemoteException
void processStay(co.poynt.api.model.Stay stay, java.lang.String requestId, IPoyntStayServiceListener callback) throws android.os.RemoteException
stay
- co.poynt.api.Stay
requestId
- RequestId for Idempotency enforcementcallback
- IPoyntStayServiceListener
android.os.RemoteException
void cancelStay(java.lang.String stayId, java.lang.String requestId, IPoyntStayServiceListener callback) throws android.os.RemoteException
stay
- co.poynt.api.Stay
requestId
- RequestId for Idempotency enforcementcallback
- IPoyntStayServiceListener
android.os.RemoteException
void captureStay(java.lang.String stayId, co.poynt.api.model.Stay stay, java.lang.String requestId, IPoyntStayServiceListener callback) throws android.os.RemoteException
stayId
- ID of the stay to capturestay
- co.poynt.api.Stay
requestId
- RequestId for Idempotency enforcementcallback
- IPoyntStayServiceListener
android.os.RemoteException
void completeStay(java.lang.String stayId, co.poynt.api.model.Stay stay, java.lang.String requestId, IPoyntStayServiceListener callback) throws android.os.RemoteException
stayId
- ID of the stay to capturestay
- co.poynt.api.Stay
requestId
- RequestId for Idempotency enforcementcallback
- IPoyntStayServiceListener
android.os.RemoteException
void getStay(java.lang.String stayId, java.lang.String requestId, IPoyntStayServiceListener callback) throws android.os.RemoteException
stayId
- ID of the stay to retrieverequestId
- RequestId for tracking the requestcallback
- IPoyntStayServiceListener
android.os.RemoteException
void updateStay(java.lang.String stayId, co.poynt.api.model.Stay stay, java.lang.String requestId, IPoyntStayServiceListener callback) throws android.os.RemoteException
stayId
- ID of the stay to updatestay
- Stay
requestId
- RequestId for Idempotency enforcementcallback
- IPoyntStayServiceListener
android.os.RemoteException
void getStayFromCloud(java.lang.String stayId, java.lang.String requestId, IPoyntStayServiceListener callback) throws android.os.RemoteException
stayId
- ID of the stay to retrieverequestId
- RequestId for tracking the requestcallback
- IPoyntStayServiceListener
android.os.RemoteException