diff --git a/src/openapi/products/vouchers-se.yaml b/src/openapi/products/vouchers-se.yaml index 5628f3c..c8423d2 100644 --- a/src/openapi/products/vouchers-se.yaml +++ b/src/openapi/products/vouchers-se.yaml @@ -39,34 +39,43 @@ paths: "untilInclusive": "2024-11-04T00:00:00.000", "voucherStatus": { "voucherStatusId": 1, "name": "New" }, - "products": - [ - { - "productId": 126, - "productName": "HTM-30001", - "productDescription": "Reis met 20% korting op je betaalpas bij HTM.", - "productCategory": + "product": + { + "productId": 263, + "productName": "HTM-80001", + "productDescription": "10 euro korting op Regiovrij maand.", + "productCategory": + { + "productCategoryId": 9, + "isTravelProduct": false, + "name": "Voucher", + }, + "amountInclTax": -1000, + "requiredProducts": + [ { - "productCategoryId": 1, - "isTravelProduct": true, - "name": "Kortingsabonnement", - }, - "tokenTypes": - [{ "tokenTypeId": 1, "name": "EMV" }], - "sellableTouchpointIds": [3, 4], - "amountInclTax": 300, - "imageReference": "https://www.htm.nl/media/leif2leu/htm-logo-mobile.svg", - "productPageUrl": "https://www.htm.nl/nog-onbekende-product-pagina", - "_links": - { - "get_details": + "productId": 126, + "productName": "HTM-30001", + "productDescription": "Reis met 20% korting op je betaalpas bij HTM.", + "_links": { - "href": "https://api.integratielaag.nl/abt/touchpoint/1.0/products/126", - "method": "GET", - } - } - } - ], + "get_details": + { + "href": "https://api.integratielaag.nl/abt/touchpoint/1.0/products/126", + "method": "GET", + }, + }, + }, + ], + "_links": + { + "get_details": + { + "href": "https://api.integratielaag.nl/abt/touchpoint/1.0/products/263", + "method": "GET", + }, + }, + }, "mandatoryCustomerDataItems": [ { @@ -76,9 +85,9 @@ paths: { "mandatoryCustomerDataItemId": 4, "customerDataItem": "emailAddress", - } - ] - } + }, + ], + }, } Voucher for a whole order: summary: Voucher for a whole order @@ -92,9 +101,30 @@ paths: "untilInclusive": "2024-11-04T00:00:00.000", "voucherStatus": { "voucherStatusId": 1, "name": "New" }, - "products": [], - "mandatoryCustomerDataItems": [] - } + "product": + { + "productId": 263, + "productName": "HTM-80002", + "productDescription": "10 euro korting op je gehele winkelmand.", + "productCategory": + { + "productCategoryId": 9, + "isTravelProduct": false, + "name": "Voucher", + }, + "amountInclTax": -1000, + "requiredProducts": [], + "_links": + { + "get_details": + { + "href": "https://api.integratielaag.nl/abt/touchpoint/1.0/products/263", + "method": "GET", + }, + }, + }, + }, + "mandatoryCustomerDataItems": [], } "403": description: Forbidden