Skip to content

Commit 97db418

Browse files
authored
Merge pull request #29 from BraCR10/fix/update-restore-docs
Documents initiator field in restore data
2 parents 7f2bfb6 + 5237ab0 commit 97db418

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/restore_session.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ Mostro will respond with a message containing all non-finalized orders (e.g., st
5353
"dispute_id": "<Dispute Id>",
5454
"order_id": "<Order Id>",
5555
"trade_index": 4,
56-
"status": "initiated"
56+
"status": "initiated",
57+
"initiator": "seller"
5758
}
5859
]
5960
}
@@ -68,7 +69,7 @@ Mostro will respond with a message containing all non-finalized orders (e.g., st
6869

6970
* `restore_data`: Wrapper object that contains the session recovery data.
7071
* `restore_data.orders`: An array of active or ongoing orders with their `order_id`, `trade_index`, and current `status`.
71-
* `restore_data.disputes`: An array of ongoing disputes with `dispute_id`, the associated `order_id`, and `trade_index` and current `status` of the dispute.
72+
* `restore_data.disputes`: An array of ongoing disputes with `dispute_id`, the associated `order_id`, `trade_index`, current `status`, and `initiator` (`"buyer"`, `"seller"`, or `null` if unknown).
7273

7374
## Example Use Case
7475

@@ -95,7 +96,7 @@ When switching to desktop, after restoring the mnemonic, the client sends `resto
9596
{ "order_id": "xyz-999", "trade_index": 4, "status": "dispute" }
9697
],
9798
"disputes": [
98-
{ "dispute_id": "dis-001", "order_id": "xyz-999", "trade_index": 4, "status": "initiated" }
99+
{ "dispute_id": "dis-001", "order_id": "xyz-999", "trade_index": 4, "status": "initiated", "initiator": "seller" }
99100
]
100101
}
101102
}

0 commit comments

Comments
 (0)