From bd67e51713bd4ff214b4f71b96bd32a0652b74de Mon Sep 17 00:00:00 2001 From: "b.boterman@htm.nl" Date: Wed, 12 Mar 2025 16:29:46 +0100 Subject: [PATCH] OVPAY-1637 - Moved "ovPayTokenId" to HATEOAS links. --- src/openapi/contracts/contracts-se.yaml | 29 +++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/src/openapi/contracts/contracts-se.yaml b/src/openapi/contracts/contracts-se.yaml index 8761d12..1e6b668 100644 --- a/src/openapi/contracts/contracts-se.yaml +++ b/src/openapi/contracts/contracts-se.yaml @@ -4,7 +4,7 @@ info: version: "1.0" description: Service Engine APIs for ABT Contracts v2. These are NOT the CRUD APIs to the data hub. servers: - - url: https://api.integratielaag.nl/v1 + - url: https://api.integratielaag.nl/abt/touchpoint/1.0 paths: /customers/contracts: parameters: @@ -44,7 +44,14 @@ paths: "billingDay": 15, "highestInvoiceTerm": 1, "created": "2024-08-01 15:01:00.000", - "ovPayTokenId": 1337, + "_links": + { + "get_token": + { + "href": "https://api.integratielaag.nl/abt/touchpoint/1.0/customers/tokens/1337", + "method": "GET", + }, + }, }, { "contractId": "f07253e6-c364-474c-a342-a10a4a7cf305", @@ -60,7 +67,14 @@ paths: "billingDay": 15, "highestInvoiceTerm": 1, "created": "2024-08-01 15:01:00.000", - "ovPayTokenId": 1338, + "_links": + { + "get_token": + { + "href": "https://api.integratielaag.nl/abt/touchpoint/1.0/customers/tokens/1338", + "method": "GET", + }, + }, }, ] /customers/contracts/{contractId}: @@ -128,7 +142,6 @@ paths: "termDuration": "P0Y1M0D", "billingDay": 15, "highestInvoiceTerm": 1, - "ovPayTokenId": 1337, "contractVersions": [ { @@ -183,6 +196,14 @@ paths: "isCredit": false, }, ], + "_links": + { + "get_token": + { + "href": "https://api.integratielaag.nl/abt/touchpoint/1.0/customers/tokens/1337", + "method": "GET", + }, + }, } /customers/contracts/{contractId}/invoices: parameters: