contact_writer
module wittgenstein_crm_client.write.contact_writer
Classes
-
ContactWriter — Validates contact fields and writes them to the CRM.
wittgenstein_crm_client.write.contact_writer.ContactWriter
class ContactWriter(crm_client)
Validates contact fields and writes them to the CRM.
Methods
-
validate_contact — Enforces mandatory field validations.
-
create_contact — Validate and create a contact record in the CRM.
wittgenstein_crm_client.write.contact_writer.ContactWriter.validate_contact
method ContactWriter.validate_contact(contact: ContactRecord) → None
Enforces mandatory field validations.
Raises
-
ValueError
wittgenstein_crm_client.write.contact_writer.ContactWriter.create_contact
async method ContactWriter.create_contact(self, contact: ContactRecord) → str
Validate and create a contact record in the CRM.