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

@@ -1761,6 +1761,13 @@ definitions:
- senderPassportNumber
- senderPassportSerie
type: object
visamasterpay.CallbackResultDTO:
properties:
data:
type: string
paid:
type: boolean
type: object
visamasterpay.PayOrderDTO:
properties:
amountTmt:
@@ -1801,6 +1808,45 @@ definitions:
type:
type: string
type: object
visamasterpay.PaymentResultDTO:
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
type: object
host: localhost:5005
info:
contact: {}
@@ -6648,6 +6694,42 @@ paths:
summary: Quote a visa/master/sber payment
tags:
- visa-master-payment-orders
/visa-master-payment-orders/{id}/status:
get:
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.
parameters:
- description: Visa/master payment order ID
in: path
name: id
required: true
type: integer
produces:
- application/json
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'
security:
- BearerAuth: []
summary: Re-check a visa/master/sber order's latest payment attempt
tags:
- visa-master-payment-orders
/visa-master-payment-orders/callback:
get:
description: GBÜS redirects the browser here after payment; the real outcome
@@ -6659,12 +6741,12 @@ paths:
required: true
type: integer
produces:
- text/html
- application/json
responses:
"200":
description: html
description: OK
schema:
type: string
$ref: '#/definitions/visamasterpay.CallbackResultDTO'
summary: GBÜS payment callback
tags:
- visa-master-payment-orders