From fc8596f0f3c965dd5673c2cbdc1377661015470c Mon Sep 17 00:00:00 2001 From: Mirjam Herald Date: Mon, 26 May 2025 12:15:44 +0200 Subject: [PATCH 1/3] delete token and 1 PAD object per token --- src/openapi/orders/orders-crud.yaml | 34 ++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/src/openapi/orders/orders-crud.yaml b/src/openapi/orders/orders-crud.yaml index 6d162d2..5f3530e 100644 --- a/src/openapi/orders/orders-crud.yaml +++ b/src/openapi/orders/orders-crud.yaml @@ -1367,6 +1367,14 @@ paths: $ref: "#/components/schemas/unavailable" example: { "customerTokenId": "0aedb483-2477-4720-aee6-7abcd016843b" } + delete: + summary: P1. Delete a customer token. + description: Delete a customer token. + tags: + - Order Line + responses: + "200": + description: OK /customertokens/{customerTokenId}/personalaccountdata: parameters: - in: path @@ -1420,6 +1428,17 @@ paths: "challengeTypeId": 1, "oneTimePassword": "H5Iiz3JTaQeIV8p", } + exisiting PersonalAccountData: + summary: PersonalAccountData already exists for customerToken + description: PersonalAccountData already exists for customerToken + value: + { + "name": "Jan de Vries", + "birthdate": "01-01-1970", + "photo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAWJLR0Q+SWQA4wAAAAd0SU1FB+YCBAwmK58TFQgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDItMDRUMTI6Mzg6NDMrMDA6MDBAjYOrAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTAyLTA0VDEyOjM4OjQzKzAwOjAwMdA7FwAAAFd6VFh0UmF3IHByb2ZpbGUgdHlwZSBpcHRjAAB4nOPyDAhxVigoyk/LzEnlUgADIwsuYwsTIxNLkxQDEyBEgDTDZAMjs1Qgy9jUyMTMxBzEB8uASKBKLgDqFxF08kI1lQAAAYdpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0n77u/JyBpZD0nVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkJz8+DQo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIj48cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPjxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSJ1dWlkOmZhZjViZGQ1LWJhM2QtMTFkYS1hZDMxLWQzM2Q3NTE4MmYxYiIgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPjx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+PC9yZGY6RGVzY3JpcHRpb24+PC9yZGY6UkRGPjwveDp4bXBtZXRhPg0KPD94cGFja2V0IGVuZD0ndyc/PiyUmAsAAAANSURBVBhXY3grk/YfAAXYAm/HQierAAAAAElFTkSuQmCC" , + "challengeTypeId": 1, + "oneTimePassword": "H5Iiz3JTaQeIV8p", + } responses: "201": description: OK @@ -1428,7 +1447,20 @@ paths: schema: $ref: "#/components/schemas/unavailable" example: - { "personalAccountDataId": "0aedb483-2477-4720-aee6-7abcd016843b" } + { "personalAccountDataId": "0aedb483-2477-4720-aee6-7abcd016843b" } + "405": + description: Method not allowed + content: + application/json: + schema: + $ref: "#/components/schemas/unavailable" + examples: + exisiting PersonalAccountData: + summary: PersonalAccountData already exists for customerToken + description: PersonalAccountData already exists for customerToken + value: + "Resource already exist" + /personalaccountdata: get: summary: P5. Find personal account data. -- 2.45.2 From 43bca1a87de113acab2ddb52ef9a0d77fc71bee2 Mon Sep 17 00:00:00 2001 From: Mirjam Herald Date: Mon, 26 May 2025 14:16:15 +0200 Subject: [PATCH 2/3] error message post PAD --- src/openapi/orders/orders-crud.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/openapi/orders/orders-crud.yaml b/src/openapi/orders/orders-crud.yaml index 5f3530e..76b6380 100644 --- a/src/openapi/orders/orders-crud.yaml +++ b/src/openapi/orders/orders-crud.yaml @@ -1458,9 +1458,13 @@ paths: exisiting PersonalAccountData: summary: PersonalAccountData already exists for customerToken description: PersonalAccountData already exists for customerToken - value: - "Resource already exist" - + value: + { + "code": "405", + "type": "string", + "message": "Method not allowed", + "description": "PersonalAccountData resource already exists for customerToken with customerTokenId:510194ef-0038-45ef-94c7-262df93ef1d7" + } /personalaccountdata: get: summary: P5. Find personal account data. -- 2.45.2 From b39637a4ece94cec51e51fd455cedc65d17c2157 Mon Sep 17 00:00:00 2001 From: Mirjam Herald Date: Mon, 26 May 2025 14:23:35 +0200 Subject: [PATCH 3/3] typos --- src/openapi/orders/orders-crud.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openapi/orders/orders-crud.yaml b/src/openapi/orders/orders-crud.yaml index 76b6380..182502d 100644 --- a/src/openapi/orders/orders-crud.yaml +++ b/src/openapi/orders/orders-crud.yaml @@ -1428,7 +1428,7 @@ paths: "challengeTypeId": 1, "oneTimePassword": "H5Iiz3JTaQeIV8p", } - exisiting PersonalAccountData: + existing PersonalAccountData: summary: PersonalAccountData already exists for customerToken description: PersonalAccountData already exists for customerToken value: @@ -1455,7 +1455,7 @@ paths: schema: $ref: "#/components/schemas/unavailable" examples: - exisiting PersonalAccountData: + existing PersonalAccountData: summary: PersonalAccountData already exists for customerToken description: PersonalAccountData already exists for customerToken value: -- 2.45.2