TradeMePostModel
Version: v4.0.0
Stored entity
Partition key pk, sort key sk
Overview
Trade me post model
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
pk | str | ✅ | — | — |
sk | str | ✅ | — | — |
created_at | str | ✅ | — | — |
updated_at | str | ✅ | — | — |
type | str | ✅ | — | — |
auto_relist | bool | ❌ | False | — |
item_display_id | str | ✅ | — | — |
tenant_id | str | ✅ | — | — |
item_id | str | ✅ | — | — |
product_type | str | ✅ | — | — |
status | str | ✅ | — | — |
url | str | ✅ | — | — |
end_date | str | ✅ | — | — |
category | str | ✅ | — | — |
title | str | ✅ | — | — |
format | Format (Auction, BuyItNow) | ✅ | — | Format enum for TradeMe listing types |
start_price | float | ❌ | — | — |
sub_title | str | ❌ | — | — |
duration | str | ❌ | — | — |
duration_id | int | ❌ | — | — |
promotion | str | ❌ | — | — |
promotion_id | int | ❌ | — | — |
pick_up | str | ❌ | — | — |
pick_up_id | int | ❌ | — | — |
authenticated_members_only | bool | ❌ | — | — |
is_classified | bool | ❌ | — | — |
send_payment_instructions | bool | ❌ | — | — |
description | List[str] | ❌ | — | — |
shipping_options | List[ShippingOptionModel] | ❌ | — | — |
payment_methods | List[PaymentMethodModel] | ❌ | — | — |
is_brand_new | bool | ❌ | — | — |
photos | List[dict] | ❌ | — | — |
trade_me_id | str | ❌ | — | — |
buy_now_price | float | ❌ | — | — |
reserve_price | float | ❌ | — | — |
quantity | int | ❌ | 1 | — |
Embedded models
Models embedded in the fields above — shown inline; they have no separate page.
ShippingOptionModel — v2.0.0
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | int | ✅ | — | — |
price | float | ❌ | — | — |
method | str | ❌ | — | — |
Change history
v2.0.0· 2025-05-17 · Cian (shared account) · Fieldpricetype changed: Optional[Decimal] → Optional[float] (breaking). (8cff53025)v1.0.0· 2025-03-20 · Cian (shared account) · Initial version. (89d748025)
PaymentMethodModel — v1.0.0
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
label | str | ✅ | — | — |
value | int | ✅ | — | — |
Change history
v1.0.0· 2025-03-20 · Cian (shared account) · Initial version. (89d748025)
APIs / Triggers
| Trigger | Endpoint / Source | Detail | Handler |
|---|---|---|---|
| API | POST /newtradeMe/ | — | src/trade_me_post.py |
| Stream | DynamoDB stream | table items where type = TRADE_ME | src/trade_me_opensearch_sync.py |
| API | GET /newtradeMe/category/detail | — | src/tradeMe_category_detail_get.py |
| API | GET /newtradeMe/category | — | src/tradeMe_category_get.py |
| Event | EventBridge | PartSoldFromInvoice, PartSoldFromWorkOrder, PartStockAdjusted, PartDeleted, PartMarkedAsMissing, VehicleCrushed, VehicleDeleted | src/trade_me_handle_remove.py |
| Event | EventBridge | TradeMeSelfHealRequested | src/trade_me_self_heal.py |
Change history
v4.0.0 · 2025-09-25 · Olaniyi Ajayi · ab4817724
fx
- Field
formatbecame required (breaking). - Field
formatdefault changed: Format.AUCTION → None.
v3.2.0 · 2025-09-24 · Olaniyi Ajayi · 1ac720aac
init
- Added optional field
format. - Added optional field
quantity.
v3.1.0 · 2025-05-25 · Cian (shared account) · 00df8fd7d
fx
- Added required field
tenant_id.
v3.0.0 · 2025-05-17 · Cian (shared account) · 8cff53025
fx
- Field
buy_now_pricetype changed: Optional[Decimal] → Optional[float] (breaking). - Field
reserve_pricetype changed: Optional[Decimal] → Optional[float] (breaking). - Field
start_pricetype changed: Optional[Decimal] → Optional[float] (breaking).
v2.1.0 · 2025-03-23 · Cian (shared account) · c4c7868f1
fixes
- Field
auto_relistbecame optional. - Field
auto_relistdefault changed: None → False.
v2.0.0 · 2025-03-20 · Cian (shared account) · 89d748025
post
- Field
auto_relistbecame required (breaking). - Field
auto_relistdefault changed: False → None. - Field
payment_methodstype changed: Optional[List[int]] → Optional[List[PaymentMethodModel]] (breaking). - Field
shipping_optionstype changed: Optional[List[dict]] → Optional[List[ShippingOptionModel]] (breaking).
v1.1.0 · 2025-03-20 · Olaniyi Ajayi · 6a76b1492
fx
- Field
auto_relistbecame optional. - Field
auto_relistdefault changed: None → False.
v1.0.0 · 2025-03-15 · Olaniyi Ajayi · 338416124
fx
- Initial version.
Generated from
dismantly-backend/Microservices/TradeMe/dependencies/models.py. Do not edit by hand.