Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public final class TerminalReconciliation

  1. Object
  2. 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

success boolean
whether the terminal closed the batch
transactionCount int
the number of payments in it, or -1 when the terminal did not report it
totalAmount long
their sum in the currency’s minor unit, or -1 when not reported
currency String
the ISO 4217 code of the total, or null
message String
the terminal’s explanation, or null
receipt String[]
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.