From bfaa1ddcb1eff012b4fc02044b44efe0587d59a7 Mon Sep 17 00:00:00 2001 From: Mirjam Herald Date: Tue, 16 Dec 2025 14:52:23 +0100 Subject: [PATCH] fixed comments --- src/openapi/orders/orders-crud.yaml | 34 +++++++++-------------------- 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/src/openapi/orders/orders-crud.yaml b/src/openapi/orders/orders-crud.yaml index 8000525..1258704 100644 --- a/src/openapi/orders/orders-crud.yaml +++ b/src/openapi/orders/orders-crud.yaml @@ -60,6 +60,7 @@ paths: name: deviceId schema: type: string + format: uuid example: "7a28bd54-7ca9-499a-a722-d15ab858ab99" required: false description: The id of the device used to place the order. @@ -176,18 +177,7 @@ paths: "issuedVoucher":{ "issuedVoucherId": "a0996218-bc5e-4826-9020-cda98a32838d", "voucherCode": "Voucher1234", - "voucherStatusInstances": - [ - { - "voucherStatus": - { - "voucherStatusId": 2, - "name": "issued" - }, - "createdOn": "2025-11-22T13:00:00" - } - ], - "productId": 31, + "purchasedProductId": 31, "fromInclusive": "2025-03-22T08:55:00", "untillInclusive": "2026-03-22T08:55:00" }, @@ -198,18 +188,7 @@ paths: "issuedVoucher":{ "issuedVoucherId": "54668baf-4905-4e9a-af02-09c170f295ed", "voucherCode": "Voucher124", - "voucherStatusInstances": - [ - { - "voucherStatus": - { - "voucherStatusId": 2, - "name": "issued" - }, - "createdOn": "2025-11-22T13:00:00" - } - ], - "productId": 35, + "purchasedProductId": 35, "fromInclusive": "2025-03-22T08:55:00", "untillInclusive": "2026-03-22T08:55:00" }, @@ -815,6 +794,13 @@ paths: [ { "orderVoucherId": "19ef6882-8eda-43bf-b48e-9b4ff8745a50", + "issuedVoucher":{ + "issuedVoucherId": "54668baf-4905-4e9a-af02-09c170f295ed", + "voucherCode": "Voucher124", + "purchasedProductId": 35, + "fromInclusive": "2025-03-22T08:55:00", + "untillInclusive": "2026-03-22T08:55:00" + }, "orderId": "f59e4769-53a0-4156-8991-6f9119ba629f", "orderLineId": "eeb86071-4f59-405d-b2be-7d7a77044bfa" }