getTerminals

abstract fun getTerminals(onFailure: (PosLinkSDK.GetTerminalsFailure) -> Unit, onSuccess: (List<Terminal>) -> Unit, forceRefresh: Boolean)

Retrieves the list of terminals associated with the currently linked store.

Parameters

onFailure

Callback invoked when the request fails with GetTerminalsFailure.

onSuccess

Callback invoked with the list of Terminals for the linked store.

forceRefresh

If true, bypasses the cache and fetches terminals from the network.