swagger
This commit is contained in:
1 parent
205aaafc63
commit
d6a1053003
3 files changed
+335
-9
No files matched your search
+125
-3
@@ -7255,7 +7255,7 @@ const docTemplate = `{
|
|||||||
"get": {
|
"get": {
|
||||||
"description": "GBÜS redirects the browser here after payment; the real outcome is verified server-to-server before anything is finalized",
|
"description": "GBÜS redirects the browser here after payment; the real outcome is verified server-to-server before anything is finalized",
|
||||||
"produces": [
|
"produces": [
|
||||||
"text/html"
|
"application/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"visa-master-payment-orders"
|
"visa-master-payment-orders"
|
||||||
@@ -7272,9 +7272,9 @@ const docTemplate = `{
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "html",
|
"description": "OK",
|
||||||
"schema": {
|
"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": {
|
"definitions": {
|
||||||
@@ -10107,6 +10159,17 @@ const docTemplate = `{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"visamasterpay.CallbackResultDTO": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"data": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"paid": {
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"visamasterpay.PayOrderDTO": {
|
"visamasterpay.PayOrderDTO": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@@ -10167,6 +10230,65 @@ const docTemplate = `{
|
|||||||
"type": "string"
|
"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": {
|
"securityDefinitions": {
|
||||||
|
|||||||
+125
-3
@@ -7249,7 +7249,7 @@
|
|||||||
"get": {
|
"get": {
|
||||||
"description": "GBÜS redirects the browser here after payment; the real outcome is verified server-to-server before anything is finalized",
|
"description": "GBÜS redirects the browser here after payment; the real outcome is verified server-to-server before anything is finalized",
|
||||||
"produces": [
|
"produces": [
|
||||||
"text/html"
|
"application/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"visa-master-payment-orders"
|
"visa-master-payment-orders"
|
||||||
@@ -7266,9 +7266,9 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "html",
|
"description": "OK",
|
||||||
"schema": {
|
"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": {
|
"definitions": {
|
||||||
@@ -10101,6 +10153,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"visamasterpay.CallbackResultDTO": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"data": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"paid": {
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"visamasterpay.PayOrderDTO": {
|
"visamasterpay.PayOrderDTO": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@@ -10161,6 +10224,65 @@
|
|||||||
"type": "string"
|
"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": {
|
"securityDefinitions": {
|
||||||
|
|||||||
+85
-3
@@ -1761,6 +1761,13 @@ definitions:
|
|||||||
- senderPassportNumber
|
- senderPassportNumber
|
||||||
- senderPassportSerie
|
- senderPassportSerie
|
||||||
type: object
|
type: object
|
||||||
|
visamasterpay.CallbackResultDTO:
|
||||||
|
properties:
|
||||||
|
data:
|
||||||
|
type: string
|
||||||
|
paid:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
visamasterpay.PayOrderDTO:
|
visamasterpay.PayOrderDTO:
|
||||||
properties:
|
properties:
|
||||||
amountTmt:
|
amountTmt:
|
||||||
@@ -1801,6 +1808,45 @@ definitions:
|
|||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
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
|
host: localhost:5005
|
||||||
info:
|
info:
|
||||||
contact: {}
|
contact: {}
|
||||||
@@ -6648,6 +6694,42 @@ paths:
|
|||||||
summary: Quote a visa/master/sber payment
|
summary: Quote a visa/master/sber payment
|
||||||
tags:
|
tags:
|
||||||
- visa-master-payment-orders
|
- 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:
|
/visa-master-payment-orders/callback:
|
||||||
get:
|
get:
|
||||||
description: GBÜS redirects the browser here after payment; the real outcome
|
description: GBÜS redirects the browser here after payment; the real outcome
|
||||||
@@ -6659,12 +6741,12 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
type: integer
|
type: integer
|
||||||
produces:
|
produces:
|
||||||
- text/html
|
- application/json
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: html
|
description: OK
|
||||||
schema:
|
schema:
|
||||||
type: string
|
$ref: '#/definitions/visamasterpay.CallbackResultDTO'
|
||||||
summary: GBÜS payment callback
|
summary: GBÜS payment callback
|
||||||
tags:
|
tags:
|
||||||
- visa-master-payment-orders
|
- visa-master-payment-orders
|
||||||
|
|||||||
Reference in new issue
Block a user