Skip to main content

TradeMePostModel

Version: v4.0.0

Stored entity

Partition key pk, sort key sk

Overview​

Trade me post model

Fields​

FieldTypeRequiredDefaultDescription
pkstr✅——
skstr✅——
created_atstr✅——
updated_atstr✅——
typestr✅——
auto_relistbool❌False—
item_display_idstr✅——
tenant_idstr✅——
item_idstr✅——
product_typestr✅——
statusstr✅——
urlstr✅——
end_datestr✅——
categorystr✅——
titlestr✅——
formatFormat (Auction, BuyItNow)✅—Format enum for TradeMe listing types
start_pricefloat❌——
sub_titlestr❌——
durationstr❌——
duration_idint❌——
promotionstr❌——
promotion_idint❌——
pick_upstr❌——
pick_up_idint❌——
authenticated_members_onlybool❌——
is_classifiedbool❌——
send_payment_instructionsbool❌——
descriptionList[str]❌——
shipping_optionsList[ShippingOptionModel]❌——
payment_methodsList[PaymentMethodModel]❌——
is_brand_newbool❌——
photosList[dict]❌——
trade_me_idstr❌——
buy_now_pricefloat❌——
reserve_pricefloat❌——
quantityint❌1—

Embedded models​

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

ShippingOptionModel — v2.0.0
FieldTypeRequiredDefaultDescription
typeint✅——
pricefloat❌——
methodstr❌——

Change history

  • v2.0.0 · 2025-05-17 · Cian (shared account) · Field price type changed: Optional[Decimal] → Optional[float] (breaking). (8cff53025)
  • v1.0.0 · 2025-03-20 · Cian (shared account) · Initial version. (89d748025)
PaymentMethodModel — v1.0.0
FieldTypeRequiredDefaultDescription
labelstr✅——
valueint✅——

Change history

  • v1.0.0 · 2025-03-20 · Cian (shared account) · Initial version. (89d748025)

APIs / Triggers​

TriggerEndpoint / SourceDetailHandler
APIPOST /newtradeMe/—src/trade_me_post.py
StreamDynamoDB streamtable items where type = TRADE_MEsrc/trade_me_opensearch_sync.py
APIGET /newtradeMe/category/detail—src/tradeMe_category_detail_get.py
APIGET /newtradeMe/category—src/tradeMe_category_get.py
EventEventBridgePartSoldFromInvoice, PartSoldFromWorkOrder, PartStockAdjusted, PartDeleted, PartMarkedAsMissing, VehicleCrushed, VehicleDeletedsrc/trade_me_handle_remove.py
EventEventBridgeTradeMeSelfHealRequestedsrc/trade_me_self_heal.py

Change history​

v4.0.0 · 2025-09-25 · Olaniyi Ajayi · ab4817724

fx

  • Field format became required (breaking).
  • Field format default 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_price type changed: Optional[Decimal] → Optional[float] (breaking).
  • Field reserve_price type changed: Optional[Decimal] → Optional[float] (breaking).
  • Field start_price type changed: Optional[Decimal] → Optional[float] (breaking).
v2.1.0 · 2025-03-23 · Cian (shared account) · c4c7868f1

fixes

  • Field auto_relist became optional.
  • Field auto_relist default changed: None → False.
v2.0.0 · 2025-03-20 · Cian (shared account) · 89d748025

post

  • Field auto_relist became required (breaking).
  • Field auto_relist default changed: False → None.
  • Field payment_methods type changed: Optional[List[int]] → Optional[List[PaymentMethodModel]] (breaking).
  • Field shipping_options type changed: Optional[List[dict]] → Optional[List[ShippingOptionModel]] (breaking).
v1.1.0 · 2025-03-20 · Olaniyi Ajayi · 6a76b1492

fx

  • Field auto_relist became optional.
  • Field auto_relist default 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.

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