Pre Transaction Request
class PreTransactionRequest @JvmOverloads constructor(actions: Set<PreTransactionAction> = java.util.Set.of(), val transactionId: String = java.util.UUID.randomUUID().toString())
What to collect ahead of the actual payment amount being known, passed to Terminal.startPreTransaction/Terminal.startPreTransactionAsync.
Create one with PreTransactionRequest.builder().requestLoyaltyData().build() or the constructor. Persist transactionId before starting the wait so it can be recovered after a restart.
Constructors
Link copied to clipboard
constructor(actions: Set<PreTransactionAction> = java.util.Set.of(), transactionId: String = java.util.UUID.randomUUID().toString())
Types
Link copied to clipboard
class Builder
Fluent builder for PreTransactionRequest - equivalent to calling the constructor directly.
Properties
Link copied to clipboard
Immutable snapshot of the data requested for collection.
Link copied to clipboard
Correlates this pre-transaction with the terminal service, analogous to TransactionRequest.transactionId. Optional - defaults to a random UUID if never set.