swagger
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled

This commit is contained in:
2026-09-22 17:03:23 +05:00
parent 205aaafc63
commit d6a1053003
3 changed files with 335 additions and 9 deletions

View File

@@ -7249,7 +7249,7 @@
"get": {
"description": "GBÜS redirects the browser here after payment; the real outcome is verified server-to-server before anything is finalized",
"produces": [
"text/html"
"application/json"
],
"tags": [
"visa-master-payment-orders"
@@ -7266,9 +7266,9 @@
],
"responses": {
"200": {
"description": "html",
"description": "OK",
"schema": {
"type": "string"
"$ref": "#/definitions/visamasterpay.CallbackResultDTO"
}
}
}
@@ -7553,6 +7553,58 @@
}
}
}
},
"/visa-master-payment-orders/{id}/status": {
"get": {
"security": [
{
"BearerAuth": []
}
],
"description": "For when the frontend can't rely on GBÜS's redirect having reached the callback (e.g. the user closed the hosted payment page first) - re-verifies the latest attempt with GBÜS server-to-server, the same way the callback does, and finalizes it if needed. Safe to call repeatedly.",
"produces": [
"application/json"
],
"tags": [
"visa-master-payment-orders"
],
"summary": "Re-check a visa/master/sber order's latest payment attempt",
"parameters": [
{
"type": "integer",
"description": "Visa/master payment order ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/visamasterpay.PaymentResultDTO"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/appresult.AppError"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/appresult.AppError"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/appresult.AppError"
}
}
}
}
}
},
"definitions": {
@@ -10101,6 +10153,17 @@
}
}
},
"visamasterpay.CallbackResultDTO": {
"type": "object",
"properties": {
"data": {
"type": "string"
},
"paid": {
"type": "boolean"
}
}
},
"visamasterpay.PayOrderDTO": {
"type": "object",
"properties": {
@@ -10161,6 +10224,65 @@
"type": "string"
}
}
},
"visamasterpay.PaymentResultDTO": {
"type": "object",
"properties": {
"amountTmt": {
"type": "number"
},
"amountUsd": {
"type": "number"
},
"bankFeeTmt": {
"type": "number"
},
"createdAt": {
"type": "string"
},
"exchangeRateRub": {
"type": "number"
},
"exchangeRateUsd": {
"type": "number"
},
"gatewayReference": {
"type": "string"
},
"gatewayStatus": {
"type": "string"
},
"gbusFeeTmt": {
"type": "number"
},
"id": {
"type": "integer"
},
"orderId": {
"type": "integer"
},
"paid": {
"type": "boolean"
},
"paymentPeriod": {
"type": "string"
},
"totalAmountTmt": {
"type": "number"
},
"tvebFeeTmt": {
"type": "number"
},
"tvebFeeUsd": {
"type": "number"
},
"type": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
}
}
},
"securityDefinitions": {