ContactPost
Version: v12.1.0
Supporting model
A request/response or nested model — not a stored DynamoDB entity.
Overview
ContactPost Model
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
contact_name | str | ✅ | — | — |
contact_email | str | ❌ | — | — |
contact_phone | str | ❌ | — | — |
is_business_contact | bool | ❌ | False | — |
is_capricorn_member | bool | ❌ | False | — |
is_on_hold | bool | ❌ | False | — |
account_number | str | ❌ | — | — |
is_hidden | bool | ❌ | False | — |
payment_type | PaymentType (ACCOUNT, CASH, CAPRICORN) | ❌ | — | PaymentType |
primary_people | List[PrimaryPerson] | ✅ | — | — |
delivery_address | Address | ✅ | — | Address Model |
same_as_delivery_address | bool | ❌ | False | — |
billing_address | Address | ✅ | — | Address Model |
note | str | ❌ | — | — |
credit_limit | float | ❌ | — | — |
block_new_invoice_if_credit_exceeded | bool | ❌ | False | — |
line_item_tax_type | LineItemTaxType (EXCLUSIVE, INCLUSIVE, NO_TAX) | ❌ | — | LineItemTaxType |
sales_account | Account | ❌ | — | Account |
default_due_date | str | ❌ | — | — |
contact_type | ContactType (CUSTOMER, SUPPLIER, BOTH) | ❌ | — | ContactType |
APIs / Triggers
| Trigger | Endpoint / Source | Detail | Handler |
|---|---|---|---|
| API | POST /newcontact/ | — | src/contact_post.py |
Change history
v12.1.0 · 2026-02-27 · Cian (shared account) · 90a6b50d2
init
- Added optional field
is_hidden.
v12.0.0 · 2025-10-19 · Cian (shared account) · 4d42b898a
fx
- Removed field
enable_work_order_notification(breaking). - Removed field
notification_channel(breaking).
v11.1.0 · 2025-10-15 · Olaniyi Ajayi · c67147264
fx
- Added optional field
enable_work_order_notification. - Added optional field
notification_channel.
v11.0.0 · 2025-07-21 · Cian (shared account) · 1ed229dca
fx
- Field
payment_typetype changed: PaymentType → Optional[PaymentType] (breaking). - Field
payment_typebecame optional.
v10.0.0 · 2025-07-12 · Cian (shared account) · d0f07daf2
donefx
- 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
sales_account. - Field
is_business_contacttype changed: bool → Optional[bool] (breaking). - Field
is_business_contactbecame optional. - Field
is_business_contactdefault changed: None → False. - Field
is_capricorn_membertype changed: bool → Optional[bool] (breaking). - Field
is_capricorn_memberbecame optional. - Field
is_capricorn_memberdefault changed: None → False. - Field
is_on_holdtype changed: bool → Optional[bool] (breaking). - Field
is_on_holdbecame optional. - Field
is_on_holddefault changed: None → False. - Field
payment_typetype changed: Optional[str] → PaymentType (breaking). - Field
payment_typebecame required (breaking). - Field
payment_typeenum valueACCOUNTadded. - Field
payment_typeenum valueCAPRICORNadded. - Field
payment_typeenum valueCASHadded. - Field
same_as_delivery_addresstype changed: bool → Optional[bool] (breaking). - Field
same_as_delivery_addressbecame optional. - Field
same_as_delivery_addressdefault changed: None → False.
v9.0.0 · 2025-07-08 · Cian (shared account) · ad0e24e1b
fxfx
- Removed field
block_new_invoice_if_credit_exceeded(breaking). - Removed field
contact_type(breaking). - Removed field
credit_limit(breaking). - Removed field
default_due_date(breaking). - Removed field
line_item_tax_type(breaking). - Removed field
note(breaking). - Removed field
sales_account(breaking). - Field
is_business_contacttype changed: Optional[bool] → bool (breaking). - Field
is_business_contactbecame required (breaking). - Field
is_business_contactdefault changed: False → None. - Field
is_capricorn_membertype changed: Optional[bool] → bool (breaking). - Field
is_capricorn_memberbecame required (breaking). - Field
is_capricorn_memberdefault changed: False → None. - Field
is_on_holdtype changed: Optional[bool] → bool (breaking). - Field
is_on_holdbecame required (breaking). - Field
is_on_holddefault changed: False → None. - Field
payment_typetype changed: PaymentType → Optional[str] (breaking). - Field
payment_typebecame optional. - Field
payment_typeenum valueACCOUNTremoved (breaking). - Field
payment_typeenum valueCAPRICORNremoved (breaking). - Field
payment_typeenum valueCASHremoved (breaking). - Field
same_as_delivery_addresstype changed: Optional[bool] → bool (breaking). - Field
same_as_delivery_addressbecame required (breaking). - Field
same_as_delivery_addressdefault changed: False → None.
v8.0.0 · 2025-07-07 · Olaniyi Ajayi · 485ac0313
migration script
- Removed field
default_due_date_id(breaking). - Field
contact_typetype changed: str → Optional[ContactType] (breaking). - Field
contact_typebecame optional. - Field
contact_typeenum valueBOTHadded. - Field
contact_typeenum valueCUSTOMERadded. - Field
contact_typeenum valueSUPPLIERadded. - Field
line_item_tax_typetype changed: Optional[str] → Optional[LineItemTaxType] (breaking). - Field
line_item_tax_typeenum valueEXCLUSIVEadded. - Field
line_item_tax_typeenum valueINCLUSIVEadded. - Field
line_item_tax_typeenum valueNO_TAXadded. - Field
payment_typeenum valueAccountremoved (breaking). - Field
payment_typeenum valueCapricornremoved (breaking). - Field
payment_typeenum valueCashremoved (breaking). - Field
payment_typeenum valueACCOUNTadded. - Field
payment_typeenum valueCAPRICORNadded. - Field
payment_typeenum valueCASHadded.
v7.0.0 · 2025-07-07 · Olaniyi Ajayi · 3570a8d26
contact APIs
- Added optional field
default_due_date_id. - Field
contact_typetype changed: Optional[ContactType] → str (breaking). - Field
contact_typebecame required (breaking). - Field
contact_typeenum valueBOTHremoved (breaking). - Field
contact_typeenum valueCUSTOMERremoved (breaking). - Field
contact_typeenum valueSUPPLIERremoved (breaking). - Field
line_item_tax_typetype changed: Optional[LineItemTaxType] → Optional[str] (breaking). - Field
line_item_tax_typeenum valueEXCLUSIVEremoved (breaking). - Field
line_item_tax_typeenum valueINCLUSIVEremoved (breaking). - Field
line_item_tax_typeenum valueNO_TAXremoved (breaking). - Field
payment_typeenum valueACCOUNTremoved (breaking). - Field
payment_typeenum valueCAPRICORNremoved (breaking). - Field
payment_typeenum valueCASHremoved (breaking). - Field
payment_typeenum valueAccountadded. - Field
payment_typeenum valueCapricornadded. - Field
payment_typeenum valueCashadded.
v6.0.0 · 2025-07-07 · Cian (shared account) · cd0b858e6
fx
- Field
default_due_datetype changed: Optional[DefaultDueDate] → Optional[str] (breaking). - Field
default_due_dateenum value20TH_OF_THE_FOLLOWING_MONTHremoved (breaking). - Field
default_due_dateenum value20TH_OF_THIS_MONTHremoved (breaking). - Field
default_due_dateenum valueCASH_ON_DELIVERYremoved (breaking).
v5.0.0 · 2025-07-06 · Cian (shared account) · 204ee02d7
fx
- Field
contact_typetype changed: Optional[str] → Optional[ContactType] (breaking). - Field
contact_typeenum valueBOTHadded. - Field
contact_typeenum valueCUSTOMERadded. - Field
contact_typeenum valueSUPPLIERadded. - Field
default_due_datetype changed: Optional[str] → Optional[DefaultDueDate] (breaking). - Field
default_due_dateenum value20TH_OF_THE_FOLLOWING_MONTHadded. - Field
default_due_dateenum value20TH_OF_THIS_MONTHadded. - Field
default_due_dateenum valueCASH_ON_DELIVERYadded. - Field
line_item_tax_typetype changed: Optional[str] → Optional[LineItemTaxType] (breaking). - Field
line_item_tax_typeenum valueEXCLUSIVEadded. - Field
line_item_tax_typeenum valueINCLUSIVEadded. - Field
line_item_tax_typeenum valueNO_TAXadded.
v4.0.0 · 2025-07-06 · Cian (shared account) · 3f283f85c
fx
- Field
account_numbertype changed: PaymentType → Optional[str] (breaking). - Field
account_numberbecame optional. - Field
account_numberenum valueACCOUNTremoved (breaking). - Field
account_numberenum valueCAPRICORNremoved (breaking). - Field
account_numberenum valueCASHremoved (breaking). - Field
contact_typetype changed: str → Optional[str] (breaking). - Field
contact_typebecame optional. - Field
payment_typetype changed: Optional[str] → PaymentType (breaking). - Field
payment_typebecame required (breaking). - Field
payment_typeenum valueACCOUNTadded. - Field
payment_typeenum valueCAPRICORNadded. - Field
payment_typeenum valueCASHadded.
v3.1.0 · 2025-07-06 · Cian (shared account) · 2c1a6f059
fx
- Added optional field
block_new_invoice_if_credit_exceeded.
v3.0.0 · 2025-07-06 · Cian (shared account) · 4ec8e08f5
fx
- Removed field
default_due_date_id(breaking). - Field
account_numbertype changed: PaymentTpe → PaymentType (breaking). - Field
account_numberenum valueaccountremoved (breaking). - Field
account_numberenum valuecapricornremoved (breaking). - Field
account_numberenum valuecashremoved (breaking). - Field
account_numberenum valueACCOUNTadded. - Field
account_numberenum valueCAPRICORNadded. - Field
account_numberenum valueCASHadded.
v2.0.0 · 2025-07-05 · Olaniyi Ajayi · 8910dd4d0
init
- Added required field
contact_type. - Added optional field
credit_limit. - Added optional field
default_due_date. - Added optional field
default_due_date_id. - Added optional field
line_item_tax_type. - Added optional field
note. - Added optional field
sales_account. - Field
account_numbertype changed: Optional[str] → PaymentTpe (breaking). - Field
account_numberbecame required (breaking). - Field
account_numberenum valueaccountadded. - Field
account_numberenum valuecapricornadded. - Field
account_numberenum valuecashadded. - Field
is_business_contacttype changed: bool → Optional[bool] (breaking). - Field
is_business_contactbecame optional. - Field
is_business_contactdefault changed: None → False. - Field
is_capricorn_membertype changed: bool → Optional[bool] (breaking). - Field
is_capricorn_memberbecame optional. - Field
is_capricorn_memberdefault changed: None → False. - Field
is_on_holdtype changed: bool → Optional[bool] (breaking). - Field
is_on_holdbecame optional. - Field
is_on_holddefault changed: None → False. - Field
same_as_delivery_addresstype changed: bool → Optional[bool] (breaking). - Field
same_as_delivery_addressbecame optional. - Field
same_as_delivery_addressdefault changed: None → False.
v1.0.0 · 2025-03-16 · Cian (shared account) · 0c2952ef4
init
- Initial version.
Generated from
dismantly-backend/Microservices/Contact/dependencies/models.py. Do not edit by hand.