PreTransactionRequest

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.

Link copied to clipboard
object Companion

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.

Functions

Link copied to clipboard

Whether action is one of actions to collect during this pre-transaction wait.

Link copied to clipboard
open override fun toString(): String