Deal.won
Emitted each time a Deal is won.
Deal.win emits Deal.won when it completes on a Deal.
| Property | Value |
|---|---|
| Emitted by | Deal.win |
| Noun | Deal |
| Wakes | Answer supplier checks |
Payload
Each delivery is an Event record. data holds what Deal.win returns.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | required | Deal.won. |
at | datetime | required | When it happened. |
seq | integer | Its position in the namespace, one more than the Event before; any seq is a cursor into the history. | |
data | json | required | The Thing as the Action left it. |
data.order | Order | required | The placed Order. |
data.deal | Deal | required | The Deal, now won. |
data.deal.status | string | required | One of Open, Qualified, Proposed, Won, or Lost. |
data.deal.value | money | What the Deal is worth if won. | |
data.deal.owner | Worker | The Worker who runs it. | |
data.deal.closesOn | date | The date the buyer expects to decide. | |
data.deal.statusSince | datetime | When it entered its current status, computed from its Events. | |
data.deal.nextStep | text | The next dated step agreed with the buyer. |
Example
{
"$id": "https: //api.sb/ quietcopy.com/ events/ event_1",
"$type": "Event",
"name": "Deal.won",
"at": "2026-10-22T12: 00: 00Z",
"data": {
"order": {
"$id": "https: //api.sb/ quietcopy.com/ orders/ order_1",
"$type": "Order",
"total": {
"amount": 39,
"currency": "USD"
},
"status": "placed"
},
"deal": {
"$id": "https: //api.sb/ quietcopy.com/ deals/ deal_1",
"$type": "Deal",
"status": "Open",
"value": {
"amount": 39,
"currency": "USD"
},
"owner": "worker_1",
"closesOn": "2026-10-22",
"statusSince": "2026-10-22T12: 00: 00Z",
"nextStep": "Example next step"
}
},
"seq": 1
}