AccountLinkingClient

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
@get:JvmName(name = "countryCode")
@set:JvmName(name = "countryCode")
var countryCode: String
Link copied to clipboard
@get:JvmName(name = "dateCutoff")
@set:JvmName(name = "dateCutoff")
var dateCutoff: Date?
Link copied to clipboard
@get:JvmName(name = "dayCutoff")
@set:JvmName(name = "dayCutoff")
var dayCutoff: Int
Link copied to clipboard
@get:JvmName(name = "latestOrdersOnly")
@set:JvmName(name = "latestOrdersOnly")
var latestOrdersOnly: Boolean
Link copied to clipboard
@get:JvmName(name = "webProxy")
@set:JvmName(name = "webProxy")
var webProxy: WebProxy?

Functions

Link copied to clipboard
fun accounts(): Task<List<Account>?>
Link copied to clipboard
open override fun close()
Link copied to clipboard
fun link(account: Account): Task<Boolean>
fun link(vararg accounts: Account): Task<Boolean>
Link copied to clipboard
fun orders(retailerId: Int, success: (retailerId: Int, results: ScanResults?, remaining: Int, uuid: String) -> Unit, failure: (retailerId: Int, throwable: AccountLinkingException) -> Unit = { id, t -> LogcatManager.event().debug { "orders failed for retailer $id, message $t" } }, preview: (view: View?) -> Unit? = { LogcatManager.event().debug { "orders preview web view ${ it?.hashCode() ?: "(only available in developer preview)" }" } })
Link copied to clipboard
fun resetHistory(): Task<Boolean>
fun resetHistory(retailerId: Int): Task<Boolean>
Link copied to clipboard
fun unlink(): Task<Boolean>
fun unlink(account: Account): Task<Boolean>
Link copied to clipboard
fun verify(retailerId: Int, success: (verified: Boolean, uuid: String) -> Unit, failure: (throwable: AccountLinkingException) -> Unit, preview: (view: View?) -> Unit? = { LogcatManager.event().debug { "verify preview web view ${ it?.hashCode() ?: "(only available in developer preview)" }" } })