Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public final class TerminalReconciliation
- Object
- TerminalReconciliation
The outcome of PaymentTerminal.reconcile(): the terminal closed its
batch and sent it to the acquirer for settlement.
The figures are the terminal’s own. A provider that settles on its servers reports what it knows; compare them with the app’s records and treat the acquirer’s settlement report as authoritative.
Constructors
public TerminalReconciliation(boolean success, int transactionCount, long totalAmount, String currency, String message, String[] receipt) |
Methods
public boolean isSuccess() | Whether the terminal closed the batch. |
public int getTransactionCount() | The number of payments in the batch, or -1 when not reported. |
public long getTotalAmount() | Their sum in the currency’s minor unit, or -1 when not reported. |
public String getCurrency() | The ISO 4217 code of the total, or null. |
public String getMessage() | The terminal’s explanation, or null. |
public String[] getReceipt() | The report as the terminal printed it, line by line, or null. |
Inherited methods
Constructor details
TerminalReconciliation
public TerminalReconciliation(boolean success, int transactionCount, long totalAmount, String currency, String message, String[] receipt)Parameters
successboolean- whether the terminal closed the batch
transactionCountint- the number of payments in it, or -1 when the terminal did not report it
totalAmountlong- their sum in the currency’s minor unit, or -1 when not reported
currencyString- the ISO 4217 code of the total, or null
messageString- the terminal’s explanation, or null
receiptString[]- the report as the terminal printed it, or null
Method details
isSuccess
public boolean isSuccess()Whether the terminal closed the batch.
getTransactionCount
public int getTransactionCount()The number of payments in the batch, or -1 when not reported.
getTotalAmount
public long getTotalAmount()Their sum in the currency’s minor unit, or -1 when not reported.
getCurrency
public String getCurrency()The ISO 4217 code of the total, or null.
getMessage
public String getMessage()The terminal’s explanation, or null.
getReceipt
public String[] getReceipt()The report as the terminal printed it, line by line, or null.