From 315f38b943b6d91340bfadd213002e5844c224a4 Mon Sep 17 00:00:00 2001 From: Roman_Barannyk Date: Thu, 18 Jan 2024 13:44:51 +0200 Subject: [PATCH] MODTLR-5 add itemId to schema, make some fields required --- src/main/java/org/folio/domain/entity/EcsTlrEntity.java | 1 + .../resources/db/changelog/changes/initial_schema.xml | 1 + src/main/resources/swagger.api/schemas/EcsTlr.yaml | 9 +++++++++ 3 files changed, 11 insertions(+) diff --git a/src/main/java/org/folio/domain/entity/EcsTlrEntity.java b/src/main/java/org/folio/domain/entity/EcsTlrEntity.java index 992dbed0..77984b48 100644 --- a/src/main/java/org/folio/domain/entity/EcsTlrEntity.java +++ b/src/main/java/org/folio/domain/entity/EcsTlrEntity.java @@ -29,4 +29,5 @@ public class EcsTlrEntity { private String patronComments; private String fulfillmentPreference; private UUID pickupServicePointId; + private UUID itemId; } diff --git a/src/main/resources/db/changelog/changes/initial_schema.xml b/src/main/resources/db/changelog/changes/initial_schema.xml index 8a659f43..b8aa6165 100644 --- a/src/main/resources/db/changelog/changes/initial_schema.xml +++ b/src/main/resources/db/changelog/changes/initial_schema.xml @@ -21,6 +21,7 @@ + diff --git a/src/main/resources/swagger.api/schemas/EcsTlr.yaml b/src/main/resources/swagger.api/schemas/EcsTlr.yaml index c6023137..5ac35312 100644 --- a/src/main/resources/swagger.api/schemas/EcsTlr.yaml +++ b/src/main/resources/swagger.api/schemas/EcsTlr.yaml @@ -33,3 +33,12 @@ EcsTlr: pickupServicePointId: description: "The ID of the Service Point where this request can be picked up" $ref: "uuid.yaml" + itemId: + description: "ID of the item being requested" + $ref: "uuid.yaml" + required: + - instanceId + - requesterId + - requestType + - requestLevel + - fulfillmentPreference