SimulatorConfiguration

data class SimulatorConfiguration(update: SimulateReaderUpdate, simulatedCard: SimulatedCard, simulatedTipAmount: Long?)

A configuration object that can be set on the main Terminal class. It's setting will dictate the behavior you see on your next connection to a simulated reader.

Constructors

Link copied to clipboard
fun SimulatorConfiguration(update: SimulateReaderUpdate = UPDATE_AVAILABLE, simulatedCard: SimulatedCard = SimulatedCard(DEFAULT_CARD_NUMBER), simulatedTipAmount: Long? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val simulatedCard: SimulatedCard

The card that should be used for all interactions with a simulated reader.

Link copied to clipboard
val simulatedTipAmount: Long? = null

The simulated fixed tip amount selected by the customer.

Link copied to clipboard
val update: SimulateReaderUpdate

The type of update that should be simulated on the next connection to a simulated reader.