From d2162df0a0d02b8b9d8523d31cbe38ad6cab6863 Mon Sep 17 00:00:00 2001 From: "b.boterman@htm.nl" Date: Fri, 6 Sep 2024 10:23:20 +0200 Subject: [PATCH] OVPAY-810 - Added DHIL calls. --- src/openapi/contracts/contracts-crud.yaml | 72 +++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/src/openapi/contracts/contracts-crud.yaml b/src/openapi/contracts/contracts-crud.yaml index 7723ded..fbd0e25 100644 --- a/src/openapi/contracts/contracts-crud.yaml +++ b/src/openapi/contracts/contracts-crud.yaml @@ -543,6 +543,43 @@ paths: example: d1dd439b-6072-4b97-89c9-724268865b93 required: true description: The contractId of the Contract, formatted as UUID. + get: + summary: Get invoices of a single contract. + description: Get invoices of a single contract. + deprecated: true + tags: + - ContractInvoice + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: "#/components/schemas/ContractInvoice" + example: + { + "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_sent", + "data": "{json}", + }, + { + "contractInvoiceId": "dadff658-4ff5-4eb8-b516-492f1f6c6245", + "externalReference": "F2024-0002", + "term": 2, + "created": "2024-08-02 15:01:00.000", + "updated": "2024-08-02 15:01:00.000", + "state": "invoice_created", + "data": "{json}", + }, + ], + } post: summary: Add an invoice to an existing contract. description: Add an invoice to an existing contract. @@ -713,6 +750,41 @@ paths: example: d1dd439b-6072-4b97-89c9-724268865b93 required: true description: The contractId of the Contract, formatted as UUID. + get: + summary: Get all actions of a single contract. + description: Get all actions of a single contract. + deprecated: true + tags: + - ContractAction + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: "#/components/schemas/Contract" + example: + { + "contractActions": + [ + { + "contractActionId": "67687851-59dd-4bbc-aa74-0f7abd26c883", + "actionType": { "actionTypeId": 1, "name": "create" }, + "user": "subid123456", + "timestamp": "2024-07-02 15:01:00.000", + "details": "Contract created", + "correlationId": "976e7a4c-bf24-43d2-b444-55817556e7ee", + }, + { + "contractActionId": "ea9ad287-9cd3-4e76-bcb9-d71db551cf55", + "actionType": { "actionTypeId": 2, "name": "change" }, + "user": "subid123456", + "timestamp": "2024-07-03 15:01:00.000", + "details": "Contract changed", + "correlationId": "e2462347-6749-4841-b42a-cf8de19ec727", + }, + ], + } post: summary: Add a new action to an existing contract. description: Add a new action to an existing contract.