cancelContact method
Cancels a contact with a specified contact ID.
May throw InvalidParameterException. May throw DependencyException. May throw ResourceNotFoundException.
Parameter contactId
:
UUID of a contact.
Implementation
Future<ContactIdResponse> cancelContact({
required String contactId,
}) async {
ArgumentError.checkNotNull(contactId, 'contactId');
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/contact/${Uri.encodeComponent(contactId)}',
exceptionFnMap: _exceptionFns,
);
return ContactIdResponse.fromJson(response);
}