Change Status Undo Hire

對應 legacy API:

/quote_bids/change_status/undo_hire/{quote_bid_id}.json

快速結論

  • 用途:consumer 取消 hired 狀態。
  • actor:consumer。
  • new API:目前未搬。

Legacy 規則

成功條件:

  • actor 是 consumer
  • quote_bids.quote_status_id = Hired

成功 side effect:

  • quote_bids.quote_status_id = InProgress
  • quote_bids.hired_on = null
  • quote_bids.requestor_last_read_on = now
  • 寫 UndoHireVendor activity
  • quote_service_hired_lists 移除 hired bid
  • 更新 quote_requests.is_requestor_readed = 1

失敗:

  • 非 consumer 或 quote status 不是 Hired 時,回 error=1

建議處理

  • 應和 hired count / hired list 一起驗。
  • 需確認 new ChangeStatusHiredHelper 現有 counter 行為,再設計 undo 對稱邏輯。