diff --git a/src/openapi/orders/orders-crud.yaml b/src/openapi/orders/orders-crud.yaml index 8534ece..3e2ab07 100644 --- a/src/openapi/orders/orders-crud.yaml +++ b/src/openapi/orders/orders-crud.yaml @@ -162,6 +162,26 @@ paths: "description": "Betaling in behandeling", }, ], + "order_OrderVouchers": [ + { + "order_OrderVoucherId": "399bd3b3-9721-4f09-a936-d64637de1621", + "issuedVoucher":{ + "issuedVoucherId": "a0996218-bc5e-4826-9020-cda98a32838d", + "voucherCode": "Voucher1234", + "productId": 31 + }, + "orderLineId": null + }, + { + "order_OrderVoucherId": "f6c7ac42-1811-4e4d-82af-53e18fe16110", + "issuedVoucher":{ + "issuedVoucherId": "54668baf-4905-4e9a-af02-09c170f295ed", + "voucherCode": "Voucher124", + "productId": 35 + }, + "orderLineId": "7a7a9d1a-3fc8-4058-a28b-082860aaa311" + } + ], "orderLines": [ { @@ -346,16 +366,18 @@ paths: "order_OrderStatus": [ { - "orderStatusId": 4, - "createdOn": "2024-03-22T09:00:00", - "description": "Order succesvol betaald", - }, - { - "orderStatusId": 3, + "orderStatusId": 1, "createdOn": "2024-03-22T08:55:00", - "description": "Betaling in behandeling", + "description": "Concept order", }, ], + "order_OrderVouchers": + [ + { + "issuedVoucherId": "e81b2197-a6c2-45b6-9560-8ce8442e8604", + "orderLineId": "97824d2e-5189-456d-b6da-4cca511a7685" + }, + ], "orderLines": [ { @@ -404,57 +426,6 @@ paths: ], }, ], - "payments": - [ - { - "createdOn": "2024-03-22T09:00:00", - "amountDebit": 121, - "paymentMethodId": 1, - "touchPointId": 1, - "isRefund": false, - "htmPaymentReference": "HTM-1234", - "pspPaymentReference": "Buckaroo-1234", - "paymentStatuses": - [ - { - "createdOn": "2024-03-22T09:00:00", - "statusCode": "190", - "statusDescription": "Success", - "statusSubCode": "S001", - "statusSubDescription": "PaymentSuccessFul", - }, - ], - "mandateInput": - { - "directDebitMandateTypeId": 1, - "createdOn": "2024-03-22T09:00:00", - "bic": "RABONL2U", - "iban": "NL44RABO0123456789", - "ascription": "J. de Vries", - "place": "Den Haag", - }, - }, - ], - "orderCustomer": - { - "birthname": "Jan", - "surname": "Vries", - "prefix": "de", - "emailAddress": "jandevries@outlook.com", - "dateOfBirth": "1970-01-01", - "orderCustomerAddresses": - [ - { - "addressTypeId": 1, - "street": "Kon. Julianaplein", - "houseNumber": 10, - "houseNumberSuffix": "a", - "postalCode": "2595 AA", - "city": "Den Haag", - "country": "NL", - }, - ], - }, } responses: "201": @@ -526,6 +497,7 @@ paths: "description": "Betaling in behandeling", }, ], + "order_OrderVouchers": null, "orderLines": [ { @@ -766,6 +738,50 @@ paths: { "order_orderVoucherId": "b9cf0096-4211-4be6-ac21-7bc34bc8e066", } + /ordervouchers: + parameters: + - in: query + name: order_OrderVoucherId + schema: + type: string + format: uuid + example: d1dd439b-6072-4b97-89c9-724268865b93 + required: false + description: The id of the orderVoucher you are looking for. + - in: query + name: orderId + schema: + type: string + example: 90c926b9-3178-4757-acca-34cff66b980c + required: false + description: The id of the order + - in: query + name: orderLineId + schema: + type: string + example: 9e3363c8-e776-4675-b108-99b8c2e38eb6 + required: false + description: The id of the orderLine + get: + summary: Find vouchers on the order + description: Find vouchers on the order + tags: + - Order Voucher + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: "#/components/schemas/unavailable" + example: + [ + { + "order_OrderVoucherId": "19ef6882-8eda-43bf-b48e-9b4ff8745a50", + "orderId": "f59e4769-53a0-4156-8991-6f9119ba629f", + "orderLineId": "eeb86071-4f59-405d-b2be-7d7a77044bfa" + } + ] /ordervouchers/{order_ordervoucherId}: parameters: - in: path @@ -815,8 +831,7 @@ paths: schema: $ref: "#/components/schemas/unavailable" example: - { - } + {} /orders/{orderId}/orderlines: parameters: - in: path