AmountAdjustedEvent

public class AmountAdjustedEvent

When the amount is adjusted by applications in response to the com.verifone.commerce.triggers.AmountAdjustmentRequest Trigger, the adjustments proposed are returned in this event. This allows the POS application to keep track of changes and provides the opportunity to decide which adjustments are applied in the response.

Fields

TYPE

public static final String TYPE

The constant event type for amount adjusted.

Methods

generateAmountAdjustedEventResponse

public AmountAdjustedEventResponse generateAmountAdjustedEventResponse()

Generate amount adjusted event response

getAdjustments

public ArrayList<AmountAdjustment> getAdjustments()

Get the adjustments applied by other applications.

getEventId

public String getEventId()

Return event id from this event

getInvoiceId

public String getInvoiceId()

Return invoice id from this event

getMessage

public String getMessage()

Returns the message associated with the event

getPayment

public Payment getPayment()

Get the appropriate payment object that led to this adjustment.

getSessionId

public String getSessionId()

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

getStatus

public int getStatus()

Returns the event status

getTransaction

public Transaction getTransaction()

Return transaction from event

getType

public String getType()

Returns the Event constants

isPaymentAdjustedEvent

public boolean isPaymentAdjustedEvent()

Return boolean indicating that the event occurred during payment hence is a PaymentAdjustedEvent