update Customer
suspend fun updateCustomer(customerId: String, request: CustomersRequests.UpdateCustomerRequest): Pair<FrameObjects.Customer?, NetworkingError?>
Updates an existing customer record.
Return
A pair containing the updated FrameObjects.Customer on success, or a NetworkingError on failure.
Parameters
customer Id
The unique identifier of the customer to update.
request
The updated customer details to apply.
fun updateCustomer(customerId: String, request: CustomersRequests.UpdateCustomerRequest, completionHandler: (FrameObjects.Customer?, NetworkingError?) -> Unit)
Updates an existing customer record and delivers the result to a callback.
Parameters
customer Id
The unique identifier of the customer to update.
request
The updated customer details to apply.
completion Handler
Invoked with the updated FrameObjects.Customer on success, or a NetworkingError on failure.