Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #80 from onoga/master
Browse files Browse the repository at this point in the history
added parcel code to event_parcel
  • Loading branch information
source-c authored May 13, 2021
2 parents 2ce2e4e + 6d62d67 commit 95a22e4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
15 changes: 13 additions & 2 deletions edi/json-schema/event_parcel.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@
"$ref": "#/definitions/uuid",
"description": "Parcel identificator"
},
"code": {
"type": "string",
"description": "Parcel code"
},
"order_id": {
"type": "string",
"description": "Parcel code (i.e. order ID)"
"description": "Returned (cancelled) parcel code (i.e. order ID)"
},
"reason": {
"type": "string",
Expand Down Expand Up @@ -110,7 +114,10 @@
"id": {
"$ref": "#/definitions/uuid"
},

"code": {
"type": "string",
"description": "Parcel code"
},
"state": {
"type": "string",
"description": "New state identifier"
Expand Down Expand Up @@ -191,6 +198,10 @@
"id": {
"$ref": "#/definitions/uuid"
},
"code": {
"type": "string",
"description": "Parcel code"
},
"starts_from": {
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
Expand Down
1 change: 1 addition & 0 deletions tests/edi/json-schema/event_parcel.change_state.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"timestamp": "2020-03-23T17:07:33.438Z",
"msgtype": "ChangeState",
"id": "dec33351-53a8-4c68-a840-aed5aca308a4",
"code": "ABCDEFGHIJKLMNOP",
"state": "PO0100",
"pentity": "fd6b34c5-a331-cbbf-cade-ea4bd225fdb0",
"weight": 343,
Expand Down
1 change: 1 addition & 0 deletions tests/edi/json-schema/event_parcel.order_cacel.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"timestamp": "2020-03-23T17:07:33.438Z",
"msgtype": "OrderCancel",
"id": "3d9cddc1-f71d-0d6a-6343-010ccfc800a6",
"code": "ABCDEFGHIJKLMNOP",
"order_id": "ABCDEFGHIJKLMNOP",
"reason": "size",
"items": ["some", "items"],
Expand Down
1 change: 1 addition & 0 deletions tests/edi/json-schema/event_parcel.ttl_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"timestamp": "2020-03-23T17:07:33.438Z",
"msgtype": "TTLInfo",
"id": "3d9cddc1-f71d-0d6a-6343-010ccfc800a6",
"code": "ABCDEFGHIJKLMNOP",
"starts_from": "2021-04-09",
"ttl_days": 100,
"origin": "aac099d5-f520-4c00-95ab-cc445bec8920",
Expand Down

0 comments on commit 95a22e4

Please sign in to comment.