Terms Of Service API
object TermsOfServiceAPI
Provides suspend and callback-based operations for managing Terms of Service acceptance.
Functions
Link copied to clipboard
suspend fun createToken(): Pair<TermsOfServiceObjects.TermsOfServiceTokenResponse?, NetworkingError?>
Creates a short-lived token used to record a customer's Terms of Service acceptance.
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.
Link copied to clipboard
suspend fun update(request: TermsOfServiceRequests.UpdateRequest): Pair<TermsOfServiceObjects.TermsOfServiceTokenResponse?, NetworkingError?>
Records a customer's acceptance of the Terms of Service using a previously created token.
fun update(request: TermsOfServiceRequests.UpdateRequest, completionHandler: (TermsOfServiceObjects.TermsOfServiceTokenResponse?, NetworkingError?) -> Unit)
Records a customer's acceptance of the Terms of Service using a previously created token and delivers the result via callback.