updateAccountBasicInformation method
Future<void>
updateAccountBasicInformation(
- ClientAccountUpdateBasicInformationContext clientAccountUpdateBasicInformationContext, {
- required void onSuccess(),
- required void onError(
- SyneriseError error
This function updates an anonymous client account using the provided object.
Args: clientAccountUpdateBasicInformatioContext (ClientAccountUpdateBasicInformationContext): It is an object of type ClientAccountUpdateBasicInformationContext that contains the information needed to update a client's account. This object may include fields such as the client's name, phone number, address, and any other relevant information that needs to be updated.
Implementation
Future<void> updateAccountBasicInformation(
ClientAccountUpdateBasicInformationContext clientAccountUpdateBasicInformationContext,
{required void Function() onSuccess,
required void Function(SyneriseError error) onError}) async {
SyneriseResult<void> result =
await _methods.updateAccountBasicInformation(clientAccountUpdateBasicInformationContext);
result.onSuccess((result) {
onSuccess();
}).onError((error) {
onError(error);
});
}