TransactionQueryEvent

public class TransactionQueryEvent

Sent to the listener when a specific query is run from the ReportManager.

Fields

TYPE

public static final String TYPE

The event type.

Methods

foundPayments

public boolean foundPayments()

Returns true if the query retrieved any results, or false if no payments were found.

generateTransactionEventResponse

public TransactionEventResponse generateTransactionEventResponse()

TransactionEventResponse from the event

getEventId

public String getEventId()

Returns an optional event ID as copied from the originating event.

getInvoiceId

public String getInvoiceId()

The invoice ID for the transaction.

getMessage

public String getMessage()

Return message from event

getPayments

public ArrayList<Payment> getPayments()

The payments retrieved by the query.

getSessionId

public String getSessionId()

Returns the session ID associated with this event, or null if detached from a session.

getStatus

public int getStatus()

Return status

getTransaction

public Transaction getTransaction()

The transaction object. Use updateTransaction(Transaction) to apply any changes for the transaction, or just update the transaction object returned by this method.

getTransactionQuery

public TransactionQuery getTransactionQuery()

Returns a copy of the query that triggered this event.

getType

public String getType()

Returns the Transaction Event constants in addition to the CommerceEvent and Status constants. Overridden here only to provide the appropriate documentation.