UserInputEvent¶
-
public class
UserInputEvent
¶ Either contains the information requested from the customer, or enables sending a response to collect information from the cashier.
Fields¶
INPUT_MASK_CAPABILITY¶
RECEIVED_TYPE¶
-
public static final String
RECEIVED_TYPE
¶ The type when responding to the
TransactionManager.requestUserInput(String,String,String)
or theTransactionManager.presentUserOptions(String,String[])
methods.
REQUEST_TYPE¶
TYPE¶
Methods¶
generateUserInputEventResponse¶
-
public UserInputEventResponse
generateUserInputEventResponse
()¶ Generates response for UserInputEvent
getDefaultValue¶
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.
getInputSubcommand¶
-
public InputSubcommand
getInputSubcommand
()¶ Return the input subcommand that is being requested
getInputType¶
-
public InputType
getInputType
()¶ If
getType()
isTYPE
, returns the requested input type, else if this is theREQUEST_TYPE
, returns the input type that is being requested.
getInternalData¶
getInvoiceId¶
getMessage¶
getRequestParameters¶
-
public RequestParameters
getRequestParameters
()¶ Returns the current
RequestParameters
if this is of typeREQUEST_TYPE
.
getSessionId¶
getSignature¶
-
public Image
getSignature
()¶ Returns the signature image. When
getType()
isREQUEST_TYPE
, then this will only have a value if the InputSubcommand is SIGNATURE_PROVIDED. WhengetType()
isRECEIVED_TYPE
, this will only have a value if the InputType is SIGNATURE.
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 event type, either
RECEIVED_TYPE
orREQUEST_TYPE
.