swagger: split the Visa/Master tag and document payment-history in Turkmen
visa-master-payment-orders mixed order CRUD with the GBÜS payment flow; they are now visa-master-orders and visa-master-payment. payment-history summaries, descriptions and params are in Turkmen with one shape (what it returns, Tertip, Bellik), and its tag description lists the endpoints in the order they are used. @securityDefinitions.apikey moves to the end of the general info block: swag read every line after it as its attributes, so @schemes and all @tag.* declarations were silently dropped from the spec. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -40,7 +40,7 @@ func (h *handler) Register(router *gin.RouterGroup) {
|
||||
// quote godoc
|
||||
// @Summary Quote a visa/master/sber payment
|
||||
// @Description Returns the current rate, configured fees, and max payable amount for an order's payout
|
||||
// @Tags visa-master-payment-orders
|
||||
// @Tags visa-master-payment
|
||||
// @Produce json
|
||||
// @Security BearerAuth
|
||||
// @Param id path int true "Visa/master payment order ID"
|
||||
@@ -72,7 +72,7 @@ func (h *handler) quote(c *gin.Context) {
|
||||
// pay godoc
|
||||
// @Summary Start a visa/master/sber payout
|
||||
// @Description Registers the payment with GBÜS and returns the hosted-payment-page URL to complete it on. The final outcome is only known once GBÜS redirects back to the callback, which verifies and finalizes it.
|
||||
// @Tags visa-master-payment-orders
|
||||
// @Tags visa-master-payment
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Security BearerAuth
|
||||
@@ -115,7 +115,7 @@ func (h *handler) pay(c *gin.Context) {
|
||||
// status godoc
|
||||
// @Summary Re-check a visa/master/sber order's latest payment attempt
|
||||
// @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.
|
||||
// @Tags visa-master-payment-orders
|
||||
// @Tags visa-master-payment
|
||||
// @Produce json
|
||||
// @Security BearerAuth
|
||||
// @Param id path int true "Visa/master payment order ID"
|
||||
@@ -152,7 +152,7 @@ func (h *handler) status(c *gin.Context) {
|
||||
// callback godoc
|
||||
// @Summary GBÜS payment callback
|
||||
// @Description GBÜS redirects the browser here after payment; the real outcome is verified server-to-server before anything is finalized
|
||||
// @Tags visa-master-payment-orders
|
||||
// @Tags visa-master-payment
|
||||
// @Produce json
|
||||
// @Param paymentId query int true "Payment attempt ID"
|
||||
// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm)
|
||||
|
||||
Reference in New Issue
Block a user