From 66cc67c635ffe371df3f15b4a27a94228671c497 Mon Sep 17 00:00:00 2001 From: MelKori Date: Mon, 13 Apr 2020 22:01:22 +0300 Subject: [PATCH] added receiver spec into the wms_items_in schema --- adoc/wms_aaS/json-schema/wms_items_in.json | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/adoc/wms_aaS/json-schema/wms_items_in.json b/adoc/wms_aaS/json-schema/wms_items_in.json index 1dfcbe7..9193e1e 100644 --- a/adoc/wms_aaS/json-schema/wms_items_in.json +++ b/adoc/wms_aaS/json-schema/wms_items_in.json @@ -525,6 +525,42 @@ "sender": { "$ref": "#/definitions/uuid" }, + "recevier_spec": { + "anyOf": [ + { + "type": "null" + }, + { + "type": "object", + "required": [ + "first_name", + "last_name", + "phone" + ], + "properties": { + "first_name": { + "type": "string", + "description": "First name of person | Legal entitity name" + }, + "last_name": { + "type": "string", + "description": "Last name of person | Business unit structure" + }, + "phone": { + "type": "string", + "description": "Receiver phone number", + "pattern": "^[0-9]{12}$" + }, + "reg_id": { + "type": "string", + "description": "State register number for legal entity", + "pattern": "^[^ ]{6,64}$" + } + }, + "additionalProperties": false + } + ] + }, "address_id": { "$ref": "#/definitions/uuid" },