StoredValueCardEvent¶
-
public class
StoredValueCardEvent
¶ An event fired for all interactions with a stored value card.
Fields¶
STORED_VALUE_CARD_ACTIVATED¶
STORED_VALUE_CARD_ACTIVATION_FAILED¶
-
public static final String
STORED_VALUE_CARD_ACTIVATION_FAILED
¶ Deprecated on 2018-11-01. Please use
STORED_VALUE_CARD_ACTIVATED
with a non-zero status code instead. A stored value card has failed to activate.
STORED_VALUE_CARD_BALANCE_RETRIEVAL_FAILED¶
-
public static final String
STORED_VALUE_CARD_BALANCE_RETRIEVAL_FAILED
¶ Deprecated on 2018-11-01. Please use
STORED_VALUE_CARD_BALANCE_RETRIEVED
with a non-zero status code instead. A stored value card balance has not been retrieved.
STORED_VALUE_CARD_BALANCE_RETRIEVED¶
STORED_VALUE_CARD_DEACTIVATED¶
STORED_VALUE_CARD_RELOADED¶
STORED_VALUE_CARD_RELOAD_FAILED¶
-
public static final String
STORED_VALUE_CARD_RELOAD_FAILED
¶ Deprecated on 2018-11-01. Please use
STORED_VALUE_CARD_RELOADED
with a non-zero status code instead. A stored value card has failed to reload.
STORED_VALUE_CARD_UNLOADED¶
STORED_VALUE_CARD_UNLOAD_FAILED¶
-
public static final String
STORED_VALUE_CARD_UNLOAD_FAILED
¶ Deprecated on 2018-11-01. Please use
STORED_VALUE_CARD_UNLOADED
with a non-zero status code instead. A stored value card has failed to unload.
Methods¶
generateTransactionEventResponse¶
-
public TransactionEventResponse
generateTransactionEventResponse
()¶ Generate the TransactionEventResponse associated with this transaction.
getAuthResult¶
-
public AuthorizationResult
getAuthResult
()¶ Get result of stored value authorization. This is provided by the payment application or payment service provider. This may be empty.
getAvailableBalance¶
getCardInformation¶
-
public CardInformation
getCardInformation
()¶ Get card information for non gift cards
getCashbackAmount¶
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¶
getMessage¶
getPayment¶
-
public Payment
getPayment
()¶ Returns the payment object associated with this StoredValueCardEvent
StoredValueCardInformation
.
getPreviousBalance¶
getSessionId¶
getStatus¶
-
public int
getStatus
()¶ Get the status for this particular event. A status of 0 means success, any other status is a failure.
getStoredValueCardInformation¶
-
public StoredValueCardInformation
getStoredValueCardInformation
()¶ A convenient method to retrieve the
StoredValueCardInformation
from the Payment.
getTransaction¶
-
public Transaction
getTransaction
()¶ The transaction associated with this event.