From b4f2d378a267ce2cc8827660f80681a65e0ae1ae Mon Sep 17 00:00:00 2001 From: "b.boterman@htm.nl" Date: Wed, 3 Dec 2025 10:50:20 +0100 Subject: [PATCH] OVPAY-1499 - Updated inline order validation entities. --- src/openapi/orders/service_engine_orders.yaml | 172 +++++++++++------- 1 file changed, 103 insertions(+), 69 deletions(-) diff --git a/src/openapi/orders/service_engine_orders.yaml b/src/openapi/orders/service_engine_orders.yaml index adaebe9..bce3f4c 100644 --- a/src/openapi/orders/service_engine_orders.yaml +++ b/src/openapi/orders/service_engine_orders.yaml @@ -426,18 +426,21 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "invalid", - "additionalRemarks": + "validations": [ { "code": "MANDATE_REQUIRED", + "detail": "A valid mandate is required before purchasing this product.", + "path": null, "parameter": "directDebitMandateId", + "type": "REMARK", }, - ], - "validationErrors": - [ { + "code": "STARTDATE_TOO_FAR_IN_FUTURE", "detail": "Startdate of this product should be at most 60 days in the future.", - "pointer": "#/0/startDate", + "path": "$.orders[?(@.orderId=='1e441d7d-50d6-4006-aca7-5e87e2f218df')].orderLines[?(@.orderLineId=='cccada2c-d5ea-48ab-b4be-f590e16b5468')].validFrom", + "parameter": null, + "type": "ERROR", }, ], }, @@ -688,18 +691,21 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "invalid", - "additionalRemarks": + "validations": [ { "code": "MANDATE_REQUIRED", + "detail": "A valid mandate is required before purchasing this product.", + "path": null, "parameter": "directDebitMandateId", + "type": "REMARK", }, - ], - "validationErrors": - [ { + "code": "STARTDATE_TOO_FAR_IN_FUTURE", "detail": "Startdate of this product should be at most 60 days in the future.", - "pointer": "#/0/startDate", + "path": "$.orders[?(@.orderId=='1e441d7d-50d6-4006-aca7-5e87e2f218df')].orderLines[?(@.orderLineId=='cccada2c-d5ea-48ab-b4be-f590e16b5468')].validFrom", + "parameter": null, + "type": "ERROR", }, ], }, @@ -926,18 +932,21 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "invalid", - "additionalRemarks": + "validations": [ { "code": "MANDATE_REQUIRED", + "detail": "A valid mandate is required before purchasing this product.", + "path": null, "parameter": "directDebitMandateId", + "type": "REMARK", }, - ], - "validationErrors": - [ { + "code": "STARTDATE_TOO_FAR_IN_FUTURE", "detail": "Startdate of this product should be at most 60 days in the future.", - "pointer": "#/0/startDate", + "path": "$.orders[?(@.orderId=='1e441d7d-50d6-4006-aca7-5e87e2f218df')].orderLines[?(@.orderLineId=='cccada2c-d5ea-48ab-b4be-f590e16b5468')].validFrom", + "parameter": null, + "type": "ERROR", }, ], }, @@ -1118,18 +1127,21 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "invalid", - "additionalRemarks": + "validations": [ { "code": "MANDATE_REQUIRED", + "detail": "A valid mandate is required before purchasing this product.", + "path": null, "parameter": "directDebitMandateId", + "type": "REMARK", }, - ], - "validationErrors": - [ { + "code": "STARTDATE_TOO_FAR_IN_FUTURE", "detail": "Startdate of this product should be at most 60 days in the future.", - "pointer": "#/0/startDate", + "path": "$.orders[?(@.orderId=='1e441d7d-50d6-4006-aca7-5e87e2f218df')].orderLines[?(@.orderLineId=='cccada2c-d5ea-48ab-b4be-f590e16b5468')].validFrom", + "parameter": null, + "type": "ERROR", }, ], }, @@ -1248,8 +1260,7 @@ paths: }, ], "validationResult": null, - "additionalRemarks": [], - "validationErrors": [], + "validations": [], }, ], "payments": @@ -1528,18 +1539,21 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "invalid", - "additionalRemarks": + "validations": [ { "code": "MANDATE_REQUIRED", + "detail": "A valid mandate is required before purchasing this product.", + "path": null, "parameter": "directDebitMandateId", + "type": "REMARK", }, - ], - "validationErrors": - [ { + "code": "STARTDATE_TOO_FAR_IN_FUTURE", "detail": "Startdate of this product should be at most 60 days in the future.", - "pointer": "#/0/startDate", + "path": "$.orders[?(@.orderId=='1e441d7d-50d6-4006-aca7-5e87e2f218df')].orderLines[?(@.orderLineId=='cccada2c-d5ea-48ab-b4be-f590e16b5468')].validFrom", + "parameter": null, + "type": "ERROR", }, ], }, @@ -1834,14 +1848,16 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "preliminary", - "additionalRemarks": + "validations": [ { "code": "PRODUCT_CHOICE_REQUIRED", - "parameter": "orderline.productId", + "detail": "The chosen product is not a leaf node product. Please choose one of its child products.", + "path": "$.orders[?(@.orderId=='1e441d7d-50d6-4006-aca7-5e87e2f218df')].orderLines[?(@.orderLineId=='cccada2c-d5ea-48ab-b4be-f590e16b5468')].productId", + "parameter": null, + "type": "REMARK", }, ], - "validationErrors": [], }, ], "payments": [], @@ -2008,22 +2024,30 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "preliminary", - "additionalRemarks": + "validations": [ { "code": "PERSONALACCOUNTDATA_BIRTHDATE_REQUIRED", - "parameter": "personalaccountdata.birthdate", + "detail": "Personal account data birthdate is required for this product.", + "path": "$.orders[?(@.orderId=='1e441d7d-50d6-4006-aca7-5e87e2f218df')].orderLines[?(@.orderLineId=='cccada2c-d5ea-48ab-b4be-f590e16b5468')].customerTokens[0].personalAccountData.birthdate", + "parameter": null, + "type": "REMARK", }, { "code": "TOKEN_REQUIRED", + "detail": "A valid customer token is required before purchasing this product.", + "path": null, "parameter": "customerToken", + "type": "REMARK", }, { "code": "VALIDFROM_REQUIRED", - "parameter": "orderline.validFrom", + "detail": "A valid 'valid from' date is required for this product.", + "path": "$.orders[?(@.orderId=='1e441d7d-50d6-4006-aca7-5e87e2f218df')].orderLines[?(@.orderLineId=='cccada2c-d5ea-48ab-b4be-f590e16b5468')].validFrom", + "parameter": null, + "type": "REMARK", }, ], - "validationErrors": [], }, ], "payments": [], @@ -2176,18 +2200,23 @@ paths: "customerTokens": [], "orderAccountingStatuses": [], "validationResult": "preliminary", - "additionalRemarks": + "validations": [ { "code": "MANDATE_REQUIRED", + "detail": "A valid mandate is required before purchasing this product.", + "path": null, "parameter": "directDebitMandateId", + "type": "REMARK", }, { "code": "CUSTOMERTOKEN_REQUIRED", + "detail": "A valid customer token is required before purchasing this product.", + "path": null, "parameter": "customerTokenId", + "type": "REMARK", }, ], - "validationErrors": [], }, ], "payments": [], @@ -2506,14 +2535,16 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "preliminary", - "additionalRemarks": + "validations": [ { "code": "PERSONALACCOUNTDATA_BIRTHDATE_REQUIRED", - "parameter": "personalaccountdata.birthdate", + "detail": "Personal account data birthdate is required for this product.", + "path": "$.orders[?(@.orderId=='1e441d7d-50d6-4006-aca7-5e87e2f218df')].orderLines[?(@.orderLineId=='cccada2c-d5ea-48ab-b4be-f590e16b5468')].customerTokens[0].personalAccountData.birthdate", + "parameter": null, + "type": "REMARK", }, ], - "validationErrors": [], }, ], "payments": [], @@ -2721,8 +2752,7 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "valid", - "additionalRemarks": [], - "validationErrors": [], + "validations": [], }, ], "payments": [], @@ -2810,14 +2840,16 @@ paths: "customerTokens": [], "orderAccountingStatuses": [], "validationResult": "preliminary", - "additionalRemarks": + "validations": [ { "code": "CUSTOMERTOKEN_REQUIRED", + "detail": "A valid customer token is required before purchasing this product.", + "path": null, "parameter": "customerTokenId", + "type": "REMARK", }, ], - "validationErrors": [], }, ], "payments": [], @@ -3037,8 +3069,7 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "valid", - "additionalRemarks": [], - "validationErrors": [], + "validations": [], }, ], "payments": [], @@ -3251,12 +3282,14 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "invalid", - "additionalRemarks": [], - "validationErrors": + "validations": [ { + "code": "PERSONAL_ACCOUNT_DATA_AGE_PROFILE_MISMATCH", "detail": "Product is for gboAgeProfile 19-65, given gboAgeProfile is 12-19", - "pointer": "#/customerTokens/878ad7c1-cd8f-4bcf-a983-1bd8c6e6975e/personalAccountData/birthdate", + "path": "$.orders[?(@.orderId=='1e441d7d-50d6-4006-aca7-5e87e2f218df')].orderLines[?(@.orderLineId=='cccada2c-d5ea-48ab-b4be-f590e16b5468')].customerTokens[?(@.customerTokenId=='878ad7c1-cd8f-4bcf-a983-1bd8c6e6975e')].ovPayToken.personalAccountData.birthdate", + "parameter": null, + "type": "ERROR", }, ], }, @@ -3436,8 +3469,7 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "valid", - "additionalRemarks": [], - "validationErrors": [], + "validations": [], }, ], "payments": [], @@ -3596,8 +3628,7 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "valid", - "additionalRemarks": [], - "validationErrors": [], + "validations": [], }, { "orderLineId": "2cb04b38-e9a8-465a-a273-261c55a21b71", @@ -3645,8 +3676,7 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "valid", - "additionalRemarks": [], - "validationErrors": [], + "validations": [], }, ], "payments": @@ -3883,8 +3913,7 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "valid", - "additionalRemarks": [], - "validationErrors": [], + "validations": [], }, ], "payments": @@ -4080,18 +4109,21 @@ paths: }, ], "validationResult": "invalid", - "additionalRemarks": + "validations": [ { "code": "MANDATE_REQUIRED", + "detail": "A valid mandate is required before purchasing this product.", + "path": null, "parameter": "directDebitMandateId", + "type": "REMARK", }, - ], - "validationErrors": - [ { + "code": "STARTDATE_TOO_FAR_IN_FUTURE", "detail": "Startdate of this product should be at most 60 days in the future.", - "pointer": "#/0/startDate", + "path": "$.orders[?(@.orderId=='1e441d7d-50d6-4006-aca7-5e87e2f218df')].orderLines[?(@.orderLineId=='cccada2c-d5ea-48ab-b4be-f590e16b5468')].validFrom", + "parameter": null, + "type": "ERROR", }, ], }, @@ -4415,8 +4447,7 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "valid", - "additionalRemarks": [], - "validationErrors": [], + "validations": [], }, ], "payments": [], @@ -4662,8 +4693,7 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "valid", - "additionalRemarks": [], - "validationErrors": [], + "validations": [], }, ], "payments": [], @@ -4911,14 +4941,16 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "preliminary", - "additionalRemarks": + "validations": [ { "code": "MANDATE_REQUIRED", + "detail": "Direct debit mandate is required for this order.", + "path": null, "parameter": "directDebitMandateId", + "type": "REMARK", }, ], - "validationErrors": [], }, ], "payments": [], @@ -5166,14 +5198,16 @@ paths: ], "orderAccountingStatuses": [], "validationResult": "preliminary", - "additionalRemarks": + "validations": [ { "code": "MANDATE_REQUIRED", + "detail": "A valid mandate is required before purchasing this product.", + "path": null, "parameter": "directDebitMandateId", + "type": "REMARK", }, ], - "validationErrors": [], }, ], "payments": [],