linkTerminal
abstract fun linkTerminal(terminalId: String? = null, onSuccess: (Terminal) -> Unit, onFailure: (PosLinkSDK.LinkTerminalFailure) -> Unit)
Links to a terminal from the current store with the given terminalId, or shows the terminal selection UI if terminalId is null.
Requires a successful setup call beforehand.
Parameters
terminalId
Optional ID of the terminal to link. If null, the Teya terminal selection UI is shown.
onSuccess
Callback invoked with the linked Terminal on success.
onFailure
Callback invoked with LinkTerminalFailure if the linking fails.