Vetspire.Accounts.Client (vetspire v3.0.0)

View Source

A client represents a pet parent or customer in the sytsem.

Before creating a new patient file in the UI, for a new customer, a new client file is required.

Summary

Types

t()

@type t() :: %Vetspire.Accounts.Client{
  __meta__: term(),
  account_credit: term(),
  addresses: term(),
  alerts: term(),
  billing_email: term(),
  billing_email_verified_date: term(),
  billing_group: term(),
  billing_group_id: term(),
  billing_id: term(),
  billing_notes: term(),
  business_name: term(),
  cardconnect_expiry: term(),
  cardconnect_token: term(),
  care_credit_application: term(),
  client_rdvms: term(),
  client_referral_source: term(),
  client_referral_source_id: term(),
  coowners: term(),
  coowns: term(),
  credit_memos: term(),
  custom_fields: term(),
  custom_referral_source: term(),
  date_of_birth: term(),
  decline_billing_email: term(),
  decline_email: term(),
  decline_phone: term(),
  decline_rdvm: term(),
  decline_secondary_email: term(),
  deleted: term(),
  drivers_license_number: term(),
  email: term(),
  email_verified_date: term(),
  exempt_care_credit_quick_screen: term(),
  external_comm_preferences: term(),
  external_id: term(),
  family_name: term(),
  given_name: term(),
  historical_client_referral_source_id: term(),
  historical_id: term(),
  historical_location_id: term(),
  id: term(),
  identification: term(),
  inserted_at: term(),
  is_active: term(),
  is_business: term(),
  is_merged: term(),
  is_new_rdvm_needed: term(),
  last_synced_at: term(),
  merge_identification: term(),
  notes: term(),
  orders: term(),
  org: term(),
  org_id: term(),
  patients: term(),
  payments: term(),
  phone_numbers: term(),
  primary_location: term(),
  primary_location_id: term(),
  private_notes: term(),
  pronouns: term(),
  pronouns_other: term(),
  rdvms: term(),
  secondary_email: term(),
  secondary_email_verified_date: term(),
  sent_billing_email_verification_date: term(),
  sent_email_verification_date: term(),
  sent_secondary_email_verification_date: term(),
  square_card: term(),
  square_card_id: term(),
  square_customer_id: term(),
  stop_reminders: term(),
  stripe_customer_id: term(),
  stripe_info: term(),
  tags: term(),
  tax_exempt: term(),
  title: term(),
  updated_at: term(),
  verified_at: term()
}

Functions

appointment_changeset(client, attrs)

changeset(client, attrs)

client_name_fragment(client_binding)

(macro)

validate_historical_id_length!(historical_id, client_id)

Raises a RuntimeError if historical_id exceeds 255 characters.