LineItemCreate
Version: v2.0.0
Supporting model
A request/response or nested model — not a stored DynamoDB entity.
Overview
LineItemCreate
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
line_item_id | str | ❌ | — | — |
part_id | str | ❌ | — | — |
tag_id | str | ❌ | — | — |
stock_id | str | ❌ | — | — |
vehicle_id | str | ❌ | — | — |
part_type | str | ❌ | — | — |
part_type_id | str | ❌ | — | — |
department | str | ✅ | — | — |
department_id | str | ✅ | — | — |
description | str | ✅ | — | — |
quantity | int | ❌ | — | — |
unit_price | float | ❌ | — | — |
location | str | ❌ | — | — |
location_id | str | ❌ | — | — |
status | StatusEnum (DRAFT, TODO, IN_PROGRESS, BLOCKED, COMPLETED, CANCELLED) | ❌ | DRAFT | Status |
users | List[User] | ❌ | — | — |
note | str | ❌ | — | — |
item_type | ItemTypeEnum (PART, OTHER) | ✅ | — | ItemType |
Embedded models
Models embedded in the fields above — shown inline; they have no separate page.
User — v2.0.0
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
user | str | ✅ | — | — |
user_id | str | ✅ | — | — |
department | str | ✅ | — | — |
department_id | str | ✅ | — | — |
Change history
v2.0.0· 2025-07-12 · Cian (shared account) · Removed fieldstage(breaking).; Removed fieldstage_id(breaking).; Added required fielddepartment.; Added required fielddepartment_id. (3713e7962)v1.0.0· 2025-07-11 · Cian (shared account) · Initial version. (abd0d451a)
APIs / Triggers
| Trigger | Endpoint / Source | Detail | Handler |
|---|---|---|---|
| API | PUT /newworkOrder/lineItemReplace | — | src/work_order_replace_line_item.py |
Change history
v2.0.0 · 2025-07-12 · Cian (shared account) · 3713e7962
fx
- Removed field
stage(breaking). - Removed field
stage_id(breaking). - Added required field
department. - Added required field
department_id.
v1.0.0 · 2025-07-11 · Cian (shared account) · abd0d451a
fx
- Initial version.
Generated from
dismantly-backend/Microservices/WorkOrder/dependencies/models.py. Do not edit by hand.