Skip to content

Commit 13a094d

Browse files
authored
Merge pull request #31 from mostronator/fix/restore-session-order-id-field
docs: fix restore-session order field name from id to order_id
2 parents 761c816 + 4bc3f27 commit 13a094d

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/restore_session.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ Mostro will respond with a message containing all non-finalized orders (e.g., st
3333
"restore_data": {
3434
"orders": [
3535
{
36-
"id": "<Order Id>",
36+
"order_id": "<Order Id>",
3737
"trade_index": 1,
3838
"status": "pending"
3939
},
4040
{
41-
"id": "<Order Id>",
41+
"order_id": "<Order Id>",
4242
"trade_index": 2,
4343
"status": "active"
4444
},
4545
{
46-
"id": "<Order Id>",
46+
"order_id": "<Order Id>",
4747
"trade_index": 3,
4848
"status": "fiat-sent"
4949
}
@@ -67,7 +67,7 @@ Mostro will respond with a message containing all non-finalized orders (e.g., st
6767
### Fields
6868

6969
* `restore_data`: Wrapper object that contains the session recovery data.
70-
* `restore_data.orders`: An array of active or ongoing orders with their `id`, `trade_index`, and current `status`.
70+
* `restore_data.orders`: An array of active or ongoing orders with their `order_id`, `trade_index`, and current `status`.
7171
* `restore_data.disputes`: An array of ongoing disputes with `dispute_id`, the associated `order_id`, and `trade_index` and current `status` of the dispute.
7272

7373
## Example Use Case
@@ -89,10 +89,10 @@ When switching to desktop, after restoring the mnemonic, the client sends `resto
8989
"payload": {
9090
"restore_data": {
9191
"orders": [
92-
{ "id": "abc-123", "trade_index": 1, "status": "pending" },
93-
{ "id": "def-456", "trade_index": 2, "status": "pending" },
94-
{ "id": "ghi-789", "trade_index": 3, "status": "active" },
95-
{ "id": "xyz-999", "trade_index": 4, "status": "dispute" }
92+
{ "order_id": "abc-123", "trade_index": 1, "status": "pending" },
93+
{ "order_id": "def-456", "trade_index": 2, "status": "pending" },
94+
{ "order_id": "ghi-789", "trade_index": 3, "status": "active" },
95+
{ "order_id": "xyz-999", "trade_index": 4, "status": "dispute" }
9696
],
9797
"disputes": [
9898
{ "dispute_id": "dis-001", "order_id": "xyz-999", "trade_index": 4, "status": "initiated" }

0 commit comments

Comments
 (0)