swagger
This commit is contained in:
128
docs/docs.go
128
docs/docs.go
@@ -7255,7 +7255,7 @@ const docTemplate = `{
|
||||
"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"
|
||||
@@ -7272,9 +7272,9 @@ const docTemplate = `{
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "html",
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
"$ref": "#/definitions/visamasterpay.CallbackResultDTO"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7559,6 +7559,58 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/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": {
|
||||
@@ -10107,6 +10159,17 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"visamasterpay.CallbackResultDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"type": "string"
|
||||
},
|
||||
"paid": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"visamasterpay.PayOrderDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -10167,6 +10230,65 @@ const docTemplate = `{
|
||||
"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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user