From e5a4954834283723a003da64b69758dc71c4574c Mon Sep 17 00:00:00 2001 From: EmanueleBVtech Date: Tue, 10 Dec 2024 15:35:28 +0100 Subject: [PATCH] update --- .../ecommerce-checkout/v2/_openapi.json.tpl | 66 ++++++++++--------- .../api/ecommerce-io/v2/_openapi.json.tpl | 66 ++++++++++--------- .../v2/_openapi.json.tpl | 66 ++++++++++--------- .../ecommerce-webview/v2/_openapi.json.tpl | 60 +++++++++-------- 4 files changed, 141 insertions(+), 117 deletions(-) diff --git a/src/domains/ecommerce-app/api/ecommerce-checkout/v2/_openapi.json.tpl b/src/domains/ecommerce-app/api/ecommerce-checkout/v2/_openapi.json.tpl index 33a918845..8b7240df2 100644 --- a/src/domains/ecommerce-app/api/ecommerce-checkout/v2/_openapi.json.tpl +++ b/src/domains/ecommerce-app/api/ecommerce-checkout/v2/_openapi.json.tpl @@ -472,28 +472,38 @@ "IO" ] }, - "sendPaymentResultOutcome": { - "description": "The outcome of sendPaymentResult api (OK, KO, NOT_RECEIVED)", - "type": "string", - "enum": [ - "OK", - "KO", - "NOT_RECEIVED" - ] - }, - "authorizationCode": { - "type": "string", - "description": "Payment gateway-specific authorization code related to the transaction" - }, - "errorCode": { - "type": "string", - "description": "Payment gateway-specific error code from the gateway" + "nodeInfo":{ + "type": "object", + "description": "Gateway infos", + "properties": { + "closePaymentResultError": { + "type": "object", + "description": "Error details for close payment result", + "properties": { + "statusCode": { + "type": "number" + }, + "description": { + "type": "string" + } + } + }, + "sendPaymentResultOutcome": { + "description": "The outcome of sendPaymentResult api (OK, KO, NOT_RECEIVED)", + "type": "string", + "enum": [ + "OK", + "KO", + "NOT_RECEIVED" + ] + }, + } }, - "gateway":{ + "gatewayInfo":{ "type": "object", "description": "Gateway infos", "properties": { - "gatewayType": { + "gateway": { "type": "string", "pattern": "XPAY|VPOS|NPG|REDIRECT", "description": "Pgs identifier" @@ -501,19 +511,15 @@ "gatewayAuthorizationStatus": { "type": "string", "description": "Payment gateway authorization status" - } - } - }, - "closePaymentResultError": { - "type": "object", - "description": "Error details for close payment result", - "properties": { - "statusCode": { - "type": "number" }, - "description": { - "type": "string" - } + "authorizationCode": { + "type": "string", + "description": "Payment gateway-specific authorization code related to the transaction" + }, + "errorCode": { + "type": "string", + "description": "Payment gateway-specific error code from the gateway" + }, } }, }, diff --git a/src/domains/ecommerce-app/api/ecommerce-io/v2/_openapi.json.tpl b/src/domains/ecommerce-app/api/ecommerce-io/v2/_openapi.json.tpl index 85baa112a..438ffedbf 100644 --- a/src/domains/ecommerce-app/api/ecommerce-io/v2/_openapi.json.tpl +++ b/src/domains/ecommerce-app/api/ecommerce-io/v2/_openapi.json.tpl @@ -1760,28 +1760,38 @@ "IO" ] }, - "sendPaymentResultOutcome": { - "description": "The outcome of sendPaymentResult api (OK, KO, NOT_RECEIVED)", - "type": "string", - "enum": [ - "OK", - "KO", - "NOT_RECEIVED" - ] - }, - "authorizationCode": { - "type": "string", - "description": "Payment gateway-specific authorization code related to the transaction" - }, - "errorCode": { - "type": "string", - "description": "Payment gateway-specific error code from the gateway" + "nodeInfo":{ + "type": "object", + "description": "Gateway infos", + "properties": { + "closePaymentResultError": { + "type": "object", + "description": "Error details for close payment result", + "properties": { + "statusCode": { + "type": "number" + }, + "description": { + "type": "string" + } + } + }, + "sendPaymentResultOutcome": { + "description": "The outcome of sendPaymentResult api (OK, KO, NOT_RECEIVED)", + "type": "string", + "enum": [ + "OK", + "KO", + "NOT_RECEIVED" + ] + }, + } }, - "gateway":{ + "gatewayInfo":{ "type": "object", "description": "Gateway infos", "properties": { - "gatewayType": { + "gateway": { "type": "string", "pattern": "XPAY|VPOS|NPG|REDIRECT", "description": "Pgs identifier" @@ -1789,19 +1799,15 @@ "gatewayAuthorizationStatus": { "type": "string", "description": "Payment gateway authorization status" - } - } - }, - "closePaymentResultError": { - "type": "object", - "description": "Error details for close payment result", - "properties": { - "statusCode": { - "type": "number" }, - "description": { - "type": "string" - } + "authorizationCode": { + "type": "string", + "description": "Payment gateway-specific authorization code related to the transaction" + }, + "errorCode": { + "type": "string", + "description": "Payment gateway-specific error code from the gateway" + }, } }, }, diff --git a/src/domains/ecommerce-app/api/ecommerce-transactions-service/v2/_openapi.json.tpl b/src/domains/ecommerce-app/api/ecommerce-transactions-service/v2/_openapi.json.tpl index b1c492cc6..3c1dcce81 100644 --- a/src/domains/ecommerce-app/api/ecommerce-transactions-service/v2/_openapi.json.tpl +++ b/src/domains/ecommerce-app/api/ecommerce-transactions-service/v2/_openapi.json.tpl @@ -337,28 +337,38 @@ "IO" ] }, - "sendPaymentResultOutcome": { - "description": "The outcome of sendPaymentResult api (OK, KO, NOT_RECEIVED)", - "type": "string", - "enum": [ - "OK", - "KO", - "NOT_RECEIVED" - ] - }, - "authorizationCode": { - "type": "string", - "description": "Payment gateway-specific authorization code related to the transaction" - }, - "errorCode": { - "type": "string", - "description": "Payment gateway-specific error code from the gateway" + "nodeInfo":{ + "type": "object", + "description": "Gateway infos", + "properties": { + "closePaymentResultError": { + "type": "object", + "description": "Error details for close payment result", + "properties": { + "statusCode": { + "type": "number" + }, + "description": { + "type": "string" + } + } + }, + "sendPaymentResultOutcome": { + "description": "The outcome of sendPaymentResult api (OK, KO, NOT_RECEIVED)", + "type": "string", + "enum": [ + "OK", + "KO", + "NOT_RECEIVED" + ] + }, + } }, - "gateway":{ + "gatewayInfo":{ "type": "object", "description": "Gateway infos", "properties": { - "gatewayType": { + "gateway": { "type": "string", "pattern": "XPAY|VPOS|NPG|REDIRECT", "description": "Pgs identifier" @@ -366,19 +376,15 @@ "gatewayAuthorizationStatus": { "type": "string", "description": "Payment gateway authorization status" - } - } - }, - "closePaymentResultError": { - "type": "object", - "description": "Error details for close payment result", - "properties": { - "statusCode": { - "type": "number" }, - "description": { - "type": "string" - } + "authorizationCode": { + "type": "string", + "description": "Payment gateway-specific authorization code related to the transaction" + }, + "errorCode": { + "type": "string", + "description": "Payment gateway-specific error code from the gateway" + }, } }, }, diff --git a/src/domains/ecommerce-app/api/ecommerce-webview/v2/_openapi.json.tpl b/src/domains/ecommerce-app/api/ecommerce-webview/v2/_openapi.json.tpl index 22e1b11ee..cf6d74c3c 100644 --- a/src/domains/ecommerce-app/api/ecommerce-webview/v2/_openapi.json.tpl +++ b/src/domains/ecommerce-app/api/ecommerce-webview/v2/_openapi.json.tpl @@ -329,40 +329,38 @@ "IO" ] }, - "closePaymentResultError": { + "nodeInfo":{ "type": "object", - "description": "Error details for close payment result", + "description": "Gateway infos", "properties": { - "statusCode": { - "type": "number" + "closePaymentResultError": { + "type": "object", + "description": "Error details for close payment result", + "properties": { + "statusCode": { + "type": "number" + }, + "description": { + "type": "string" + } + } + }, + "sendPaymentResultOutcome": { + "description": "The outcome of sendPaymentResult api (OK, KO, NOT_RECEIVED)", + "type": "string", + "enum": [ + "OK", + "KO", + "NOT_RECEIVED" + ] }, - "description": { - "type": "string" - } } }, - "sendPaymentResultOutcome": { - "description": "The outcome of sendPaymentResult api (OK, KO, NOT_RECEIVED)", - "type": "string", - "enum": [ - "OK", - "KO", - "NOT_RECEIVED" - ] - }, - "authorizationCode": { - "type": "string", - "description": "Payment gateway-specific authorization code related to the transaction" - }, - "errorCode": { - "type": "string", - "description": "Payment gateway-specific error code from the gateway" - }, - "gateway":{ + "gatewayInfo":{ "type": "object", "description": "Gateway infos", "properties": { - "gatewayType": { + "gateway": { "type": "string", "pattern": "XPAY|VPOS|NPG|REDIRECT", "description": "Pgs identifier" @@ -370,7 +368,15 @@ "gatewayAuthorizationStatus": { "type": "string", "description": "Payment gateway authorization status" - } + }, + "authorizationCode": { + "type": "string", + "description": "Payment gateway-specific authorization code related to the transaction" + }, + "errorCode": { + "type": "string", + "description": "Payment gateway-specific error code from the gateway" + }, } }, },