From 20fa16f82fdac9e24213647398e561a0865cb737 Mon Sep 17 00:00:00 2001 From: Alessio Cialini Date: Fri, 5 Jan 2024 12:58:21 +0100 Subject: [PATCH] [PRDP-289] feat: Updated openapi.json --- openapi/openapi.json | 253 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 253 insertions(+) diff --git a/openapi/openapi.json b/openapi/openapi.json index 43afe56b..091c8aac 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -886,6 +886,241 @@ } ] }, + "/cart/{cart-id}/recover-failed": { + "post": { + "tags": [ + "API-recoverFailedCart" + ], + "summary": "Recover a cart in FAILED or INSERTED status", + "operationId": "RecoverFailedCart", + "parameters": [ + { + "in": "path", + "name": "cart-id", + "description": "Cart id.", + "schema": { + "type": "string" + }, + "required": true + } + ], + "requestBody": { + "content": { + "application/json": {} + }, + "required": false + }, + "responses": { + "200": { + "description": "Successful Calls.", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + }, + "content": { + "text/plain": { + "schema": { + "type": "string", + "example": "Receipt with eventId 76abb1f1-c9f9-4ead-9e66-12fec4d51042 recovered" + } + } + } + }, + "400": { + "description": "Bad request.", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" + } + } + } + }, + "404": { + "description": "Receipt or BizEvent not found", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" + } + } + } + }, + "500": { + "description": "Error processing the request", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" + } + } + } + }, + "default": { + "description": "Unexpected error.", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + } + } + }, + "security": [ + { + "ApiKey": [] + } + ] + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } + } + ] + }, + "/carts/recover-failed": { + "post": { + "tags": [ + "API-recoverCartFailed" + ], + "summary": "Recover a group of cart in FAILED, or INSERTED status", + "operationId": "RecoverFailedCartMassive", + "parameters": [ + { + "in": "query", + "name": "status", + "schema": { + "type": "string" + }, + "required": true + } + ], + "requestBody": { + "content": { + "application/json": {} + }, + "required": false + }, + "responses": { + "200": { + "description": "Successful Calls.", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + }, + "content": { + "text/plain": { + "schema": { + "type": "string", + "example": "Recovered 10 carts" + } + } + } + }, + "400": { + "description": "Bad request", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" + } + } + } + }, + "500": { + "description": "Error processing the request", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" + } + } + } + }, + "default": { + "description": "Unexpected error.", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + } + } + }, + "security": [ + { + "ApiKey": [] + } + ] + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } + } + ] + }, "/receipts/{event-id}/recover-failed": { "post": { "tags": [ @@ -902,6 +1137,15 @@ "type": "string" }, "required": true + }, + { + "in": "query", + "name": "isCart", + "description": "Boolean to determine if the id refers to a cart", + "schema": { + "type": "string" + }, + "required": false } ], "requestBody": { @@ -1372,6 +1616,15 @@ "type": "string" }, "required": true + }, + { + "in": "query", + "name": "isCart", + "description": "Boolean to determine if the id refers to a cart", + "schema": { + "type": "string" + }, + "required": false } ], "requestBody": {