From b8bf553a8e3e3353401075dffca7b1278e8e20cc Mon Sep 17 00:00:00 2001 From: "b.boterman@htm.nl" Date: Fri, 2 Aug 2024 11:04:37 +0200 Subject: [PATCH] OVPAY-416 - Bugfixes on GET contracts. --- src/openapi/contracts/contracts-crud.yaml | 66 ++++++++++++++--------- 1 file changed, 42 insertions(+), 24 deletions(-) diff --git a/src/openapi/contracts/contracts-crud.yaml b/src/openapi/contracts/contracts-crud.yaml index 8c848ae..79a3c1a 100644 --- a/src/openapi/contracts/contracts-crud.yaml +++ b/src/openapi/contracts/contracts-crud.yaml @@ -162,7 +162,7 @@ paths: schema: type: integer required: false - description: Number of invoices to include in response body. + description: Number of invoices to include in response body (per contract). responses: "200": description: OK @@ -189,16 +189,25 @@ paths: "billingDay": 15, "highestInvoiceTerm": 1, "xSpit": "1c345237-4d84-47f0-93c2-7b94338e3355", - "highestContractInvoice": - { - "contractInvoiceId": "8699d72a-cf4d-4e6b-9e9c-549d837ca51f", - "externalReference": "WEFACT-123456", - "term": 1, - "created": "2024-07-02 15:01:00.000", - "updated": "2024-07-02 15:01:00.000", - "state": "invoice_created", - "data": "{json}", - }, + "contractInvoices": + [ + { + "contractInvoiceId": "8699d72a-cf4d-4e6b-9e9c-549d837ca51f", + "externalReference": "F2024-0001", + "term": 1, + "created": "2024-07-02 15:01:00.000", + "updated": "2024-07-02 15:01:00.000", + "state": "invoice_created", + }, + { + "contractInvoiceId": "1c345237-4d84-47f0-93c2-7b94338e3355", + "externalReference": "F2024-0002", + "term": 1, + "created": "2024-07-02 15:01:00.000", + "updated": "2024-07-02 15:01:00.000", + "state": "invoice_created", + }, + ], }, { "contractId": "f07253e6-c364-474c-a342-a10a4a7cf305", @@ -215,16 +224,25 @@ paths: "billingDay": 15, "highestInvoiceTerm": 1, "xSpit": "1c345237-4d84-47f0-93c2-7b94338e3355", - "highestContractInvoice": - { - "contractInvoiceId": "e2462347-6749-4841-b42a-cf8de19ec727", - "externalReference": "WEFACT-123457", - "term": 1, - "created": "2024-07-02 15:01:00.000", - "updated": "2024-07-02 15:01:00.000", - "state": "invoice_created", - "data": "{json}", - }, + "contractInvoices": + [ + { + "contractInvoiceId": "8699d72a-cf4d-4e6b-9e9c-549d837ca51f", + "externalReference": "F2024-0003", + "term": 1, + "created": "2024-07-02 15:01:00.000", + "updated": "2024-07-02 15:01:00.000", + "state": "invoice_created", + }, + { + "contractInvoiceId": "1c345237-4d84-47f0-93c2-7b94338e3355", + "externalReference": "F2024-0004", + "term": 1, + "created": "2024-07-02 15:01:00.000", + "updated": "2024-07-02 15:01:00.000", + "state": "invoice_created", + }, + ], }, ], } @@ -314,7 +332,7 @@ paths: [ { "contractInvoiceId": "8699d72a-cf4d-4e6b-9e9c-549d837ca51f", - "externalReference": "WEFACT-123456", + "externalReference": "F2024-0001", "term": 1, "created": "2024-07-02 15:01:00.000", "updated": "2024-07-02 15:01:00.000", @@ -472,7 +490,7 @@ paths: { "contractInvoice": { - "externalReference": "WEFACT-123456", + "externalReference": "F2024-0001", "term": 1, "created": "2024-07-02 15:01:00.000", "updated": "2024-07-02 15:01:00.000", @@ -772,7 +790,7 @@ components: example: 8699d72a-cf4d-4e6b-9e9c-549d837ca51f externalReference: type: string - example: WEFACT-123456 + example: F2024-0001 term: type: integer example: 1