Class TerminalReconciliation
java.lang.Object
com.codename1.payment.terminal.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.
-
Constructor Summary
ConstructorsConstructorDescriptionTerminalReconciliation(boolean success, int transactionCount, long totalAmount, String currency, String message, String[] receipt) Parameters
-
Method Summary
Modifier and TypeMethodDescriptionThe ISO 4217 code of the total, or null.The terminal's explanation, or null.String[]The report as the terminal printed it, line by line, or null.longTheir sum in the currency's minor unit, or -1 when not reported.intThe number of payments in the batch, or -1 when not reported.booleanWhether the terminal closed the batch.
-
Constructor Details
-
TerminalReconciliation
public TerminalReconciliation(boolean success, int transactionCount, long totalAmount, String currency, String message, String[] receipt) Parameters
-
success: whether the terminal closed the batch -
transactionCount: the number of payments in it, or -1 when the terminal did not report it -
totalAmount: their sum in the currency's minor unit, or -1 when not reported -
currency: the ISO 4217 code of the total, or null -
message: the terminal's explanation, or null -
receipt: 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
The ISO 4217 code of the total, or null. -
getMessage
The terminal's explanation, or null. -
getReceipt
The report as the terminal printed it, line by line, or null.
-