From 2c88fac23859df176e4c7c775ca4bad4fab0dca6 Mon Sep 17 00:00:00 2001 From: Mirjam Herald Date: Mon, 26 Jan 2026 13:09:44 +0100 Subject: [PATCH] added voucher example product instance --- src/openapi/customers/SE-customers.yaml | 51 ++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 5 deletions(-) diff --git a/src/openapi/customers/SE-customers.yaml b/src/openapi/customers/SE-customers.yaml index ed030ef..b16dea2 100644 --- a/src/openapi/customers/SE-customers.yaml +++ b/src/openapi/customers/SE-customers.yaml @@ -3449,14 +3449,14 @@ paths: $ref: "#/components/schemas/ProductInstancesResponse" examples: getEmptyProductInstances: - summary: No product-instances found f + summary: No product-instances found value: productInstances: { "ovpayProducten":[], "barcodeTickets": [], "vouchers":[] } - getSingleBarcodeProductInstanceForDevie: + getSingleBarcodeProductInstanceForDevice: summary: One BarcodeTicket product-instance value: { @@ -3501,7 +3501,7 @@ paths: "vouchers":[] } } - getSingleOvpayProductInstanceForSpecificOvPayToke: + getSingleOvpayProductInstanceForSpecificOvPayToken: summary: One Ovpay product-instance value: { @@ -3620,7 +3620,48 @@ paths: "vouchers":[] } } - /customers/productinstances/{productInstanceId}: + getSingleVoucherProductInstanceForCustomer: + summary: One voucher product-instance + value: + { + "productInstances":{ + "ovpayProducten":[], + "barcodeTickets":[], + "vouchers":[ + { + "productInstanceId": "07a55d42-ea42-4f5c-896a-b340ab084309", + "productId": 81, + "name": "HTM ooivaarspas voucher ", + "productCategory": + { + "productCategoryId": 6, + "name": "Voucher", + }, + "voucherCode": "HTM45253", + "fromInclusive": "2026-01-01T00:00:00", + "untillInclusive": "2026-12-31T23:59:99", + "voucherStatus": { + "voucherStatusId": 2, + "name": "issued" + }, + "mandatoryCustomerDataItems": + [ + { + "mandatoryCustomerDataItemId": 8, + "customerDataItem": "padBirthDate", + }, + { + "mandatoryCustomerDataItemId": 4, + "customerDataItem": "emailAddress", + }, + ] + } + + ] + } + } + + /productinstances/{productInstanceId}: parameters: - name: X-HTM-JWT-AUTH-HEADER in: header @@ -3656,7 +3697,7 @@ paths: description: |- Update the status of the give productInstance. tags: - - Product instances + - ProductInstances requestBody: content: application/json: