SimulatorConfiguration

data class SimulatorConfiguration(val simulatedCard: SimulatedCard = SimulatedCard(DEFAULT_CARD_NUMBER), val simulatedTipAmount: Long? = null, val offlineEnabled: Boolean = false, val simulatedCollectInputsResult: SimulatedCollectInputsResult = SimulatedCollectInputsResult.SimulatedCollectInputsResultSucceeded())

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
constructor(simulatedCard: SimulatedCard = SimulatedCard(DEFAULT_CARD_NUMBER), simulatedTipAmount: Long? = null, offlineEnabled: Boolean = false, simulatedCollectInputsResult: SimulatedCollectInputsResult = SimulatedCollectInputsResult.SimulatedCollectInputsResultSucceeded())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val offlineEnabled: Boolean

Whether offline operation is enabled for the simulated reader.

Link copied to clipboard

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

Link copied to clipboard

How the reader should behave in response to a collectInputs request

Link copied to clipboard

The simulated fixed tip amount selected by the customer.