From 6518d83c1b4d715b513ac6a340d677993aa648a7 Mon Sep 17 00:00:00 2001 From: "b.boterman@htm.nl" Date: Tue, 25 Mar 2025 16:44:49 +0100 Subject: [PATCH] OVPAY-1564 - Improvements in validation objects, part 5. --- src/openapi/orders/service_engine_orders.yaml | 85 ++++++++++++------- 1 file changed, 54 insertions(+), 31 deletions(-) diff --git a/src/openapi/orders/service_engine_orders.yaml b/src/openapi/orders/service_engine_orders.yaml index 2a25552..b1c46dd 100644 --- a/src/openapi/orders/service_engine_orders.yaml +++ b/src/openapi/orders/service_engine_orders.yaml @@ -829,10 +829,11 @@ paths: "mandateInput": { "mandateInputId": "1d6626cd-b93b-4ea6-85d5-a8e3a24a2725", - "directDebitMandateType": { - "directDebitMandateTypeId": 1, - "name": "import", - }, + "directDebitMandateType": + { + "directDebitMandateTypeId": 1, + "name": "import", + }, "createdOn": "2024-03-22T09:00:00", "bic": "RABONL2U", "iban": "NL44RABO0123456789", @@ -970,12 +971,12 @@ paths: "provider": "Buckaroo", }, "touchPoint": - { - "salesTouchpointId": 3, - "name": "Website (Perplex)", - "isActive": true, - "retailerId": 1001, - }, + { + "salesTouchpointId": 3, + "name": "Website (Perplex)", + "isActive": true, + "retailerId": 1001, + }, "isRefund": false, "htmPaymentReference": "HTM-1234", "pspPaymentReference": "Buckaroo-1234", @@ -993,10 +994,11 @@ paths: "mandateInput": { "mandateInputId": "5397f2d7-eefa-4e82-a086-1e0e3ad38bdb", - "directDebitMandateType": { - "directDebitMandateTypeId": 1, - "name": "import", - }, + "directDebitMandateType": + { + "directDebitMandateTypeId": 1, + "name": "import", + }, "createdOn": "2024-03-22T09:00:00", "bic": "RABONL2U", "iban": "NL44RABO0123456789", @@ -1842,7 +1844,6 @@ paths: ], "orderAccountingStatuses": [], "validationResult": true, - "validationErrors": [], "additionalRemarks": [ { @@ -1850,6 +1851,7 @@ paths: "parameter": "directDebitMandateId", }, ], + "validationErrors": [], }, ], "payments": [], @@ -2118,7 +2120,6 @@ paths: ], "orderAccountingStatuses": [], "validationResult": true, - "validationErrors": [], "additionalRemarks": [ { @@ -2126,6 +2127,7 @@ paths: "parameter": "directDebitMandateId", }, ], + "validationErrors": [], }, { "orderLineId": "2cb04b38-e9a8-465a-a273-261c55a21b71", @@ -2164,8 +2166,8 @@ paths: ], "orderAccountingStatuses": [], "validationResult": true, - "validationErrors": [], "additionalRemarks": [], + "validationErrors": [], }, ], "payments": [], @@ -2351,7 +2353,6 @@ paths: ], "orderAccountingStatuses": [], "validationResult": true, - "validationErrors": [], "additionalRemarks": [ { @@ -2359,6 +2360,7 @@ paths: "parameter": "directDebitMandateId", }, ], + "validationErrors": [], }, ], "payments": [], @@ -2642,8 +2644,8 @@ paths: ], "orderAccountingStatuses": [], "validationResult": true, - "validationErrors": [], "additionalRemarks": [], + "validationErrors": [], }, { "orderLineId": "2cb04b38-e9a8-465a-a273-261c55a21b71", @@ -2683,8 +2685,8 @@ paths: ], "orderAccountingStatuses": [], "validationResult": true, - "validationErrors": [], "additionalRemarks": [], + "validationErrors": [], }, ], "payments": @@ -2909,8 +2911,8 @@ paths: ], "orderAccountingStatuses": [], "validationResult": true, - "validationErrors": [], "additionalRemarks": [], + "validationErrors": [], }, ], "payments": @@ -3039,7 +3041,7 @@ paths: [ { "orderLineId": "cccada2c-d5ea-48ab-b4be-f590e16b5468", - "externalOrderLineId": null, + "externalOrderLineId": "0211f11b-270e-43f2-8ecc-3fe85773a0a2", "productId": 1, "productName": "HTM Maandkorting 20%", "productCode": "HTM-MND-20", @@ -3056,7 +3058,7 @@ paths: ], "createdOn": "2024-03-22T09:00:00", "validFrom": "2024-03-22T09:00:00", - "validUntil": null, + "validUntil": "2024-03-22T09:00:00", "orderLineStatus": { "orderLineStatusId": 1, "name": "pending" }, "customerTokens": @@ -3086,10 +3088,31 @@ paths: }, }, ], - "orderAccountingStatuses": [], - "validationResult": true, - "validationErrors": [], - "additionalRemarks": [], + "orderAccountingStatuses": + [ + { + "orderAccountingStatusId": "f1d0e1a7-a3cf-4876-b8f2-073add10667f", + "accountingStatus": + { "accountingStatusId": 1, "name": "open" }, + "createdOn": "2024-03-22T09:00:00", + "description": "Order is aangemaakt", + }, + ], + "validationResult": false, + "additionalRemarks": + [ + { + "code": "MANDATE_REQUIRED", + "parameter": "directDebitMandateId", + }, + ], + "validationErrors": + [ + { + "detail": "Startdate of this product should be at most 60 days in the future.", + "pointer": "#/0/startDate", + }, + ], }, ], "payments": @@ -3347,8 +3370,8 @@ paths: ], "orderAccountingStatuses": [], "validationResult": true, - "validationErrors": [], "additionalRemarks": [], + "validationErrors": [], }, ], "payments": [], @@ -3528,8 +3551,8 @@ paths: ], "orderAccountingStatuses": [], "validationResult": true, - "validationErrors": [], "additionalRemarks": [], + "validationErrors": [], }, ], "payments": [], @@ -3713,7 +3736,6 @@ paths: ], "orderAccountingStatuses": [], "validationResult": false, - "validationErrors": [], "additionalRemarks": [ { @@ -3721,6 +3743,7 @@ paths: "parameter": "directDebitMandateId", }, ], + "validationErrors": [], }, ], "payments": [], @@ -3886,7 +3909,6 @@ paths: ], "orderAccountingStatuses": [], "validationResult": false, - "validationErrors": [], "additionalRemarks": [ { @@ -3894,6 +3916,7 @@ paths: "parameter": "directDebitMandateId", }, ], + "validationErrors": [], }, ], "payments": [],