Reversal Cloud
Reversal
Reversal
The reversal can be run by calling the reversal method.
revert
suspend fun revert( reversalData: ReversalData, operationListener: OperationListener )
The reversal method takes an instance of ReversalData as an argument and an operationListener, which will propagate the operation outcome to the caller application.
ReversalData
data class ReversalData( val amount: String?, <br> val timestamp: String?, <br> val callerName: String?, <br>
ReversalData
The ReversalData is a class used for holding information related to a reversal operation. Each property in the class corresponds to a different aspect of the payment. ReversalData class properties are detailed below:
Name parameter | Description | Type | Mandatory |
---|---|---|---|
amount | Represents the amount of reversal in cents. | String | yes |
timestamp | Represents the timestamp of the reversal | String | yes |
callerName | Represents the name of the caller initiating the reversal | String | yes |
Represents the email associated with the reversal | String | yes | |
sms | Represents the SMS information associated with the reversal | String | yes |
callerTrxId | Represents the transaction ID associated with the caller | String | yes |
terminalId | Represents the ID of the terminal | String | yes |
isSendTicket | Flag that enables the display of the send receipt button on transaction result | Boolean | yes |
isUrlTicket *** | Indicates whether the ticket is a URL link | Boolean | yes |
autoClose | Flag that hides the buttons on transaction result and allows the application to automatically go back to caller application ONLY for not retryable | Boolean | no (default false) |
*** Available only for MobilePOS