QuoteModel
Version: v7.1.0
Stored entity
Partition key pk, sort key sk
Overview
Quote model
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
pk | str | ✅ | — | — |
sk | str | ✅ | — | — |
type | str | ✅ | — | — |
tenant_id | str | ✅ | — | — |
quote_id | str | ✅ | — | — |
quote_display_id | str | ✅ | — | — |
contact_name | str | ✅ | — | — |
contact_id | str | ✅ | — | — |
issue_date | str | ❌ | — | — |
expiry_date | str | ❌ | — | — |
reference | str | ❌ | — | — |
sales_person | str | ❌ | — | — |
sales_person_id | str | ❌ | — | — |
sales_channel | str | ❌ | — | — |
note | str | ❌ | — | — |
line_amount_tax_type | str | ✅ | — | — |
status | str | ❌ | DRAFT | — |
sub_total | float | ✅ | — | — |
total_tax | float | ✅ | — | — |
total | float | ✅ | — | — |
last_sent_at | str | ❌ | — | — |
updated_at | str | ✅ | — | — |
created_at | str | ✅ | — | — |
work_order_id | str | ❌ | — | — |
work_order_display_id | str | ❌ | — | — |
invoice_id | str | ❌ | — | — |
invoice_display_id | str | ❌ | — | — |
line_items | List[LineItem] | ✅ | — | — |
total_discount | float | ✅ | — | — |
is_bulk_pricing | bool | ✅ | — | — |
meta_data | dict | ❌ | — | — |
Embedded models
Models embedded in the fields above — shown inline; they have no separate page.
LineItem — v1.0.0
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
item_type | str | ✅ | — | — |
item_name | str | ✅ | — | — |
description | str | ✅ | — | — |
unit_price | float | ❌ | — | — |
tax_type | str | ❌ | — | — |
quantity | int | ❌ | — | — |
account | Account | ❌ | — | Account model |
tag_id | str | ❌ | — | — |
part_id | str | ❌ | — | — |
is_restocked | bool | ❌ | False | — |
discount | float | ❌ | — | — |
tax_amount | float | ❌ | — | — |
line_amount | float | ❌ | — | — |
line_item_id | str | ✅ | — | — |
Change history
v1.0.0· 2025-05-15 · Cian (shared account) · Initial version. (9d75bf4fd)
Account — v3.0.0
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
account_code | str | ❌ | — | — |
account_id | str | ✅ | — | — |
account_name | str | ✅ | — | — |
Change history
v3.0.0· 2025-05-26 · Cian (shared account) · Fieldaccount_codetype changed: str → Optional[str] (breaking).; Fieldaccount_codebecame optional. (509648ddf)v2.0.0· 2025-05-15 · Cian (shared account) · Fieldaccount_codetype changed: Optional[str] → str (breaking).; Fieldaccount_codebecame required (breaking). (bdb212c0f)v1.0.0· 2025-05-15 · Cian (shared account) · Initial version. (9d75bf4fd)
APIs / Triggers
| Trigger | Endpoint / Source | Detail | Handler |
|---|---|---|---|
| API | POST /newquote/ | — | src/quote_post.py |
| Stream | DynamoDB stream | table items where type = QUOTE | src/quote_opensearch_sync.py |
| Stream | DynamoDB stream | table items where type = QUOTE | src/history/quote_history_process.py |
| API | GET /newquote/history | — | src/history/quote_history_get.py |
| Event | EventBridge | InvoiceCreated, InvoiceDeleted | src/quote_update_invoice_link.py |
| Event | EventBridge | WorkOrderCreated, WorkOrderDeleted | src/quote_update_work_order_link.py |
| API | POST /newquote/search | — | src/quote_search.py |
| API | GET /newquote/uploadPDF | — | src/quote_upload_pdf_get.py |
| API | GET /newquote/search/filters | — | src/quote_search_filters.py |
| API | GET /newquote/ | — | src/quote_get.py |
| API | DELETE /newquote/ | — | src/quote_delete.py |
| API | PUT /newquote/changeStatus | — | src/quote_status_change_put.py |
| API | PUT /newquote/ | — | src/quote_put.py |
| Event | EventBridge | QuoteSelfHealRequested | src/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
statusbecame optional. - Field
statusdefault 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_itemstype 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_itemstype changed: List[LineItem] → list (breaking).
v3.0.0 · 2025-05-15 · Cian (shared account) · d2498b9a1
fx
- Field
line_itemstype changed: list → List[LineItem] (breaking).
v2.0.0 · 2025-04-09 · Cian (shared account) · 4d313d4e9
ok
- Field
created_attype changed: datetime → str (breaking). - Field
expiry_datetype changed: Optional[datetime] → Optional[str] (breaking). - Field
issue_datetype changed: Optional[datetime] → Optional[str] (breaking). - Field
last_sent_attype changed: Optional[datetime] → Optional[str] (breaking). - Field
updated_attype 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.