create Token
suspend fun createToken(): Pair<TermsOfServiceObjects.TermsOfServiceTokenResponse?, NetworkingError?>
Creates a short-lived token used to record a customer's Terms of Service acceptance.
Return
A pair of a TermsOfServiceObjects.TermsOfServiceTokenResponse containing the token and any NetworkingError that occurred.
fun createToken(completionHandler: (TermsOfServiceObjects.TermsOfServiceTokenResponse?, NetworkingError?) -> Unit)
Creates a short-lived token used to record a customer's Terms of Service acceptance and delivers the result via callback.
Parameters
completion Handler
Callback invoked with the TermsOfServiceObjects.TermsOfServiceTokenResponse and any NetworkingError.