Skip to content

Commit

Permalink
united gateway items
Browse files Browse the repository at this point in the history
  • Loading branch information
EmanueleBVtech committed Dec 10, 2024
1 parent 92bb2e3 commit b16b000
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 139 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,10 +489,20 @@
"type": "string",
"description": "Payment gateway-specific error code from the gateway"
},
"gateway": {
"type": "string",
"pattern": "XPAY|VPOS|NPG|REDIRECT",
"description": "Pgs identifier"
"gateway":{
"type": "object",
"description": "Gateway infos",
"properties": {
"gatewayType": {
"type": "string",
"pattern": "XPAY|VPOS|NPG|REDIRECT",
"description": "Pgs identifier"
},
"gatewayAuthorizationStatus": {
"type": "string",
"description": "Payment gateway authorization status"
}
}
},
"closePaymentResultError": {
"type": "object",
Expand All @@ -509,10 +519,6 @@
"status": {
"$ref": "#/components/schemas/TransactionStatus"
},
"gatewayAuthorizationStatus": {
"type": "string",
"description": "Payment gateway authorization status"
}
},
"required": [
"status",
Expand Down
22 changes: 14 additions & 8 deletions src/domains/ecommerce-app/api/ecommerce-io/v2/_openapi.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -1777,10 +1777,20 @@
"type": "string",
"description": "Payment gateway-specific error code from the gateway"
},
"gateway": {
"type": "string",
"pattern": "XPAY|VPOS|NPG|REDIRECT",
"description": "Pgs identifier"
"gateway":{
"type": "object",
"description": "Gateway infos",
"properties": {
"gatewayType": {
"type": "string",
"pattern": "XPAY|VPOS|NPG|REDIRECT",
"description": "Pgs identifier"
},
"gatewayAuthorizationStatus": {
"type": "string",
"description": "Payment gateway authorization status"
}
}
},
"closePaymentResultError": {
"type": "object",
Expand All @@ -1797,10 +1807,6 @@
"status": {
"$ref": "#/components/schemas/TransactionStatus"
},
"gatewayAuthorizationStatus": {
"type": "string",
"description": "Payment gateway authorization status"
}
},
"required": [
"status",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,20 @@
"type": "string",
"description": "Payment gateway-specific error code from the gateway"
},
"gateway": {
"type": "string",
"pattern": "XPAY|VPOS|NPG|REDIRECT",
"description": "Pgs identifier"
"gateway":{
"type": "object",
"description": "Gateway infos",
"properties": {
"gatewayType": {
"type": "string",
"pattern": "XPAY|VPOS|NPG|REDIRECT",
"description": "Pgs identifier"
},
"gatewayAuthorizationStatus": {
"type": "string",
"description": "Payment gateway authorization status"
}
}
},
"closePaymentResultError": {
"type": "object",
Expand All @@ -374,10 +384,6 @@
"status": {
"$ref": "#/components/schemas/TransactionStatus"
},
"gatewayAuthorizationStatus": {
"type": "string",
"description": "Payment gateway authorization status"
}
},
"required": [
"status",
Expand Down
138 changes: 23 additions & 115 deletions src/domains/ecommerce-app/api/ecommerce-webview/v2/_openapi.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@
"status",
"payments"
]
}, "TransactionInfo": {
},
"TransactionInfo": {
"description": "Transaction data returned when querying for an existing transaction",
"type": "object",
"properties": {
Expand Down Expand Up @@ -328,6 +329,18 @@
"IO"
]
},
"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",
Expand All @@ -345,30 +358,24 @@
"type": "string",
"description": "Payment gateway-specific error code from the gateway"
},
"gateway": {
"type": "string",
"pattern": "XPAY|VPOS|NPG|REDIRECT",
"description": "Pgs identifier"
},
"closePaymentResultError": {
"gateway":{
"type": "object",
"description": "Error details for close payment result",
"description": "Gateway infos",
"properties": {
"statusCode": {
"type": "number"
"gatewayType": {
"type": "string",
"pattern": "XPAY|VPOS|NPG|REDIRECT",
"description": "Pgs identifier"
},
"description": {
"type": "string"
"gatewayAuthorizationStatus": {
"type": "string",
"description": "Payment gateway authorization status"
}
}
},
"status": {
"$ref": "#/components/schemas/TransactionStatus"
},
"gatewayAuthorizationStatus": {
"type": "string",
"description": "Payment gateway authorization status"
}
},
"required": [
"status",
Expand Down Expand Up @@ -408,105 +415,6 @@
"CANCELLATION_EXPIRED"
]
},
"TransactionInfo": {
"description": "Transaction data returned when querying for an existing transaction",
"type": "object",
"properties": {
"transactionId": {
"type": "string"
},
"payments": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PaymentInfo"
},
"minItems": 1,
"maxItems": 1,
"example": [
{
"rptId": "77777777777302012387654312384",
"paymentToken": "paymentToken1",
"reason": "reason1",
"amount": 600,
"transferList": [
{
"paFiscalCode": "77777777777",
"digitalStamp": false,
"transferCategory": "transferCategory1",
"transferAmount": 500
},
{
"paFiscalCode": "11111111111",
"digitalStamp": true,
"transferCategory": "transferCategory2",
"transferAmount": 100
}
]
}
]
},
"status": {
"$ref": "#/components/schemas/TransactionStatus"
},
"feeTotal": {
"$ref": "#/components/schemas/AmountEuroCents"
},
"clientId": {
"description": "transaction client id",
"type": "string",
"enum": [
"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"
},
"gateway": {
"type": "string",
"pattern": "XPAY|VPOS|NPG|REDIRECT",
"description": "Pgs identifier"
},
"closePaymentResultError": {
"type": "object",
"description": "Error details for close payment result",
"properties": {
"statusCode": {
"type": "number"
},
"description": {
"type": "string"
}
}
},
"status": {
"$ref": "#/components/schemas/TransactionStatus"
},
"gatewayAuthorizationStatus": {
"type": "string",
"description": "Payment gateway authorization status"
}
},
"required": [
"status",
"transactionId",
"status",
"payments"
]
},
"Transfer": {
"type": "object",
"description": "The dto that contains information about the creditor entities",
Expand Down

0 comments on commit b16b000

Please sign in to comment.