BasketAdjustedEvent

public class BasketAdjustedEvent

When the basket is adjusted by other applications in response to the com.verifone.commerce.triggers.BasketAdjustmentRequest Trigger, this event is sent to allow the recipient to decide which adjustments will be actually applied and which will not.

Fields

TYPE

public static final String TYPE

The constant event type for basket adjustment event.

Methods

generateBasketAdjustedEventResponse

public BasketAdjustedEventResponse generateBasketAdjustedEventResponse()

Generates a Basket Adjusted Response object to send through TransactionManager.sendEventResponse(CommerceResponse).

Return:

The Response concrete class.

getAdjustments

public BasketAdjustment getAdjustments()

Get the adjustments that are proposed.

getEventId

public String getEventId()

Returns event id from event

getInvoiceId

public String getInvoiceId()

Returns invoice id from event

getMessage

public String getMessage()

Returns the message associated with the event,

getOriginalBasket

public Basket getOriginalBasket()

Get the original basket without adjustments.

getSessionId

public String getSessionId()

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

getStatus

public int getStatus()

Returns the status of the event, non-zero if it encountered an error during handling

getTransaction

public Transaction getTransaction()

Return Transaction from event

getType

public String getType()

Returns the response type, generally a copy of the event type, or otherwise linked to the type of event that generated this response.