ReconciliationEvent

public class ReconciliationEvent

Sent to the appropriate listener in response to reconciliation requests.

Fields

ACTIVE_TOTALS_TYPE

public static final String ACTIVE_TOTALS_TYPE

GROUP_TOTALS_TYPE

public static final String GROUP_TOTALS_TYPE

TYPE

public static final String TYPE

The event type

Methods

generateTransactionEventResponse

public TransactionEventResponse generateTransactionEventResponse()

Generate the TransactionEventResponse associated with this transaction.

getBatchCloseDatetime

public String getBatchCloseDatetime()

The datetime that the batch was closed. Follows the ISO 8601 date/time extended standard format or the ISO 8601 date format if only the date is returned.

getBatchOpenDatetime

public String getBatchOpenDatetime()

The datetime that the batch was opened. Follows the ISO 8601 date/time extended standard format or the ISO 8601 date format if only the date is returned.

getCutoverHostId

public String getCutoverHostId()

The Host ID used in the host message as part of a cutover operation.

getEndHostId

public String getEndHostId()

The ending ID included in this batch.

getEventId

public String getEventId()

Returns the event ID associated with this event. Useful for matching the event received by the listener to the original status returned when issuing the call, for example, calling com.verifone.commerce.payment.TransactionManager.reprintReceipt(Payment) returns a CommerceEvent containing an event ID, which will match the event ID received by the CommerceListener when the receipt reprint is complete.

getInvoiceId

public String getInvoiceId()

The invoice ID for the transaction as a reference.

getMessage

public String getMessage()

A user-readable message. This message may not be localized, in which case the type field should be used for determining a localized message.

getReconciliationId

public String getReconciliationId()

The ID for this reconciliation, or null if not relevant.

getReconciliationSummaries

public ArrayList<ReconciliationSummary> getReconciliationSummaries()

The consolidated totals of sales/refunds/cashbacks/surcharges/gratuities if provided by the host.

getReconciliationTotals

public ArrayList<ReconciliationTotal> getReconciliationTotals()

The reconciliation totals, useful for generating a Z report when the type is TYPE, or an X report when the type is ACTIVE_TOTALS_TYPE.

getReport

public Receipt getReport()

In some cases, the terminal will generate this report in an easily-printed fashion. Use the Receipt.getAsHtml() to obtain an HTML document that can be easily printed.

getSessionId

public String getSessionId()

Get the session ID for the session which triggered this event.

getSettlementDatetime

public String getSettlementDatetime()

The datetime that the batch was settled. Follows the ISO 8601 date/time extended standard format or the ISO 8601 date format if only the date is returned.

getStartHostId

public String getStartHostId()

The starting ID included in this batch.

getStatus

public int getStatus()

Get the status for this particular event. A status of 0 means success, any other status is a failure.

getTransaction

public Transaction getTransaction()

The transaction associated with this event.

getType

public String getType()

The type of status. This will generally be SUCCESS for a status of 0, and contain a different type for other errors.