Skip to main content

Contact

Version: v2.0.0

Stored entity

Partition key pk, sort key sk • discriminator type = "CONTACT"

Overview​

Contact Model

Fields​

FieldTypeRequiredDefaultDescription
pkstr✅——
skstr✅——
contact_idstr✅——
tenant_idstr✅——
contact_namestr✅——
contact_emailstr❌——
contact_phonestr❌——
contact_statusstr✅——
is_business_contactbool❌False—
is_capricorn_memberbool❌False—
is_on_holdbool❌False—
on_hold_atstr❌——
is_hiddenbool✅——
typestr❌CONTACT—
account_numberstr❌——
payment_typePaymentType (ACCOUNT, CASH, CAPRICORN)❌—PaymentType
primary_peopleList[PrimaryPerson]✅——
delivery_addressAddress✅—Address Model
same_as_delivery_addressbool✅——
billing_addressAddress✅—Address Model
notestr❌——
credit_limitfloat❌——
block_new_invoice_if_credit_exceededbool❌False—
line_item_tax_typeLineItemTaxType (EXCLUSIVE, INCLUSIVE, NO_TAX)❌—LineItemTaxType
sales_accountSalesAccount❌—Account
default_due_datestr❌——
contact_typeContactType (CUSTOMER, SUPPLIER, BOTH)❌—ContactType
created_atstr✅——
updated_atstr✅——

Embedded models​

Models embedded in the fields above — shown inline; they have no separate page.

PrimaryPerson — v2.0.0
FieldTypeRequiredDefaultDescription
primary_person_idstr✅——
primary_person_first_namestr❌——
primary_person_last_namestr❌——
primary_person_emailstr❌——
positionPosition (SALES, ACCOUNTS, MANAGER)❌—Position
include_in_emailsbool❌False—

Change history

  • v2.0.0 · 2025-07-17 · Cian (shared account) · Added optional field position.; Field include_in_emails type changed: bool → Optional[bool] (breaking).; Field include_in_emails became optional.; Field include_in_emails default changed: None → False. (532bbaa1e)
  • v1.0.0 · 2025-06-26 · Cian (shared account) · Initial version. (5fb8ae8ad)
SalesAccount — v1.0.0
FieldTypeRequiredDefaultDescription
account_idstr✅——
account_namestr✅——

Change history

  • v1.0.0 · 2025-07-17 · Cian (shared account) · Initial version. (532bbaa1e)

APIs / Triggers​

TriggerEndpoint / SourceDetailHandler
APIPOST /newworkOrder/pinnacle—src/pinnacle/work_order_handle_create.py

Change history​

v2.0.0 · 2025-07-17 · Cian (shared account) · 532bbaa1e

fx

  • Added optional field block_new_invoice_if_credit_exceeded.
  • Added optional field contact_type.
  • Added optional field credit_limit.
  • Added optional field default_due_date.
  • Added optional field line_item_tax_type.
  • Added optional field note.
  • Added optional field on_hold_at.
  • Added optional field sales_account.
  • Added required field updated_at.
  • Field is_business_contact type changed: bool → Optional[bool] (breaking).
  • Field is_business_contact became optional.
  • Field is_business_contact default changed: None → False.
  • Field is_capricorn_member type changed: bool → Optional[bool] (breaking).
  • Field is_capricorn_member became optional.
  • Field is_capricorn_member default changed: None → False.
  • Field is_on_hold type changed: bool → Optional[bool] (breaking).
  • Field is_on_hold became optional.
  • Field is_on_hold default changed: None → False.
  • Field payment_type type changed: Optional[str] → Optional[PaymentType] (breaking).
  • Field payment_type enum value ACCOUNT added.
  • Field payment_type enum value CAPRICORN added.
  • Field payment_type enum value CASH added.
  • Field primary_people type changed: list[PrimaryPerson] → List[PrimaryPerson] (breaking).
  • Field type became optional.
  • Field type default changed: None → 'CONTACT'.
v1.0.0 · 2025-06-26 · Cian (shared account) · 5fb8ae8ad

work order create

  • Initial version.

Generated from dismantly-backend/Microservices/WorkOrder/dependencies/models.py. Do not edit by hand.

Models last synced: 2026-06-23 13:21 UTC