Skip to main content

QuoteModel

Version: v7.1.0

Stored entity

Partition key pk, sort key sk

Overview

Quote model

Fields

FieldTypeRequiredDefaultDescription
pkstr
skstr
typestr
tenant_idstr
quote_idstr
quote_display_idstr
contact_namestr
contact_idstr
issue_datestr
expiry_datestr
referencestr
sales_personstr
sales_person_idstr
sales_channelstr
notestr
line_amount_tax_typestr
statusstrDRAFT
sub_totalfloat
total_taxfloat
totalfloat
last_sent_atstr
updated_atstr
created_atstr
work_order_idstr
work_order_display_idstr
invoice_idstr
invoice_display_idstr
line_itemsList[LineItem]
total_discountfloat
is_bulk_pricingbool
meta_datadict

Embedded models

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

LineItem — v1.0.0
FieldTypeRequiredDefaultDescription
item_typestr
item_namestr
descriptionstr
unit_pricefloat
tax_typestr
quantityint
accountAccountAccount model
tag_idstr
part_idstr
is_restockedboolFalse
discountfloat
tax_amountfloat
line_amountfloat
line_item_idstr

Change history

  • v1.0.0 · 2025-05-15 · Cian (shared account) · Initial version. (9d75bf4fd)
Account — v3.0.0
FieldTypeRequiredDefaultDescription
account_codestr
account_idstr
account_namestr

Change history

  • v3.0.0 · 2025-05-26 · Cian (shared account) · Field account_code type changed: str → Optional[str] (breaking).; Field account_code became optional. (509648ddf)
  • v2.0.0 · 2025-05-15 · Cian (shared account) · Field account_code type changed: Optional[str] → str (breaking).; Field account_code became required (breaking). (bdb212c0f)
  • v1.0.0 · 2025-05-15 · Cian (shared account) · Initial version. (9d75bf4fd)

APIs / Triggers

TriggerEndpoint / SourceDetailHandler
APIPOST /newquote/src/quote_post.py
StreamDynamoDB streamtable items where type = QUOTEsrc/quote_opensearch_sync.py
StreamDynamoDB streamtable items where type = QUOTEsrc/history/quote_history_process.py
APIGET /newquote/historysrc/history/quote_history_get.py
EventEventBridgeInvoiceCreated, InvoiceDeletedsrc/quote_update_invoice_link.py
EventEventBridgeWorkOrderCreated, WorkOrderDeletedsrc/quote_update_work_order_link.py
APIPOST /newquote/searchsrc/quote_search.py
APIGET /newquote/uploadPDFsrc/quote_upload_pdf_get.py
APIGET /newquote/search/filterssrc/quote_search_filters.py
APIGET /newquote/src/quote_get.py
APIDELETE /newquote/src/quote_delete.py
APIPUT /newquote/changeStatussrc/quote_status_change_put.py
APIPUT /newquote/src/quote_put.py
EventEventBridgeQuoteSelfHealRequestedsrc/quote_self_heal.py

Change history

v7.1.0 · 2026-06-04 · Cian (shared account) · 80012f1d1

Add Quote service parity with history and smoke tests

  • Added optional field meta_data.
v7.0.0 · 2025-11-06 · Olaniyi Ajayi · d7da4dc45

fx

  • Removed field dpc_id (breaking).
  • Removed field dpc_number (breaking).
v6.2.0 · 2025-11-06 · Olaniyi Ajayi · 31dce240f

fx

  • Added optional field dpc_id.
  • Added optional field dpc_number.
  • Field status became optional.
  • Field status default changed: None → 'DRAFT'.
v6.1.0 · 2025-05-26 · Cian (shared account) · 509648ddf

fx

  • Added required field is_bulk_pricing.
v6.0.0 · 2025-05-16 · Olaniyi Ajayi · 7dbe807a6

fx

  • Removed field is_bulk_pricing (breaking).
v5.0.0 · 2025-05-16 · genius-autos-dev · 814aaece1

updated the quote model

  • Added required field is_bulk_pricing.
  • Field line_items type changed: list → List[LineItem] (breaking).
v4.0.0 · 2025-05-15 · Olaniyi Ajayi · 1eea0c4ef

fx migration script

  • Removed field is_bulk_pricing (breaking).
  • Field line_items type changed: List[LineItem] → list (breaking).
v3.0.0 · 2025-05-15 · Cian (shared account) · d2498b9a1

fx

  • Field line_items type changed: list → List[LineItem] (breaking).
v2.0.0 · 2025-04-09 · Cian (shared account) · 4d313d4e9

ok

  • Field created_at type changed: datetime → str (breaking).
  • Field expiry_date type changed: Optional[datetime] → Optional[str] (breaking).
  • Field issue_date type changed: Optional[datetime] → Optional[str] (breaking).
  • Field last_sent_at type changed: Optional[datetime] → Optional[str] (breaking).
  • Field updated_at type changed: datetime → str (breaking).
v1.0.0 · 2025-03-15 · Olaniyi Ajayi · 338416124

fx

  • Initial version.

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

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