update
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.
Return
A pair of a TermsOfServiceObjects.TermsOfServiceTokenResponse and any NetworkingError that occurred.
Parameters
request
The acceptance details including the token and optional metadata.
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.
Parameters
request
The acceptance details including the token and optional metadata.
completion Handler
Callback invoked with the TermsOfServiceObjects.TermsOfServiceTokenResponse and any NetworkingError.