Skip to content

Commit

Permalink
[MODORDERS-989] - Added new dtos
Browse files Browse the repository at this point in the history
  • Loading branch information
Khamidulla Abdulkhakimov authored and Khamidulla Abdulkhakimov committed Jan 18, 2024
1 parent 4aab2ae commit f29e008
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mod-orders/examples/patch_piece_request.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pieces": ["c6a7f2d7-8c11-4f7e-9a86-1b4a6f21de3c", "e2b1d88b-3c4d-4c1d-b71f-8d2d9c5f68a1"],
"receivingStatus": "Claim sent",
"claimingInterval": 7,
"internalNote": "This piece requires further inspection.",
"externalNote": "Please be aware of the inspection delay for the specified pieces."
}
45 changes: 45 additions & 0 deletions mod-orders/schemas/patch_piece_request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Patch piece request",
"type": "object",
"properties": {
"pieces": {
"description": "An array of piece record IDs",
"type": "array",
"items": {
"description": "UUID of an piece record",
"$ref": "../../common/schemas/uuid.json"
},
"uniqueItems": true
},
"receivingStatus": {
"description": "The status to be applied to the specified pieces",
"type": "string",
"enum": [
"Received",
"Expected",
"Late",
"Claim delayed",
"Claim sent",
"Unreceivable"
]
},
"claimingInterval": {
"description": "Time interval (in days) for processing claims related to this piece",
"type": ["integer", "null"]
},
"internalNote": {
"description": "Internal note for Send Claim action",
"type": ["string", "null"]
},
"externalNote": {
"description": "External note for Send Claim action to share with Vendor",
"type": ["string", "null"]
}
},
"additionalProperties": false,
"required": [
"pieces",
"receivingStatus"
]
}

0 comments on commit f29e008

Please sign in to comment.