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:
@@ -6589,31 +6589,33 @@ paths:
|
||||
- payment-card
|
||||
/payment-history:
|
||||
get:
|
||||
description: Returns a paginated, branch-scoped audit trail of visa/master/sber
|
||||
payout attempts (paid, failed, or pending), across orders
|
||||
description: 'Ähli sargytlaryň Visa/Master we Sber töleg synanyşyklaryny (tölenen,
|
||||
şowsuz, garaşylýan) sahypalap gaýtarýar. Tertip: sort/order boýunça (adaty
|
||||
ýagdaýda iň täzesi birinji). Bellik: diňe ulanyjynyň öz şahamçasynyň tölegleri
|
||||
görünýär.'
|
||||
parameters:
|
||||
- description: Filter by order ID
|
||||
- description: Sargyt ID-si boýunça süzmek
|
||||
in: query
|
||||
name: order_id
|
||||
type: integer
|
||||
- description: Filter by branch ID
|
||||
- description: Şahamça ID-si boýunça süzmek
|
||||
in: query
|
||||
name: branch_id
|
||||
type: integer
|
||||
- description: Filter by order owner (client) user ID
|
||||
- description: Sargyt eýesiniň (müşderiniň) ulanyjy ID-si boýunça süzmek
|
||||
in: query
|
||||
name: user_id
|
||||
type: integer
|
||||
- description: Filter by gateway status (pending, success, failed)
|
||||
- description: GBÜS statusy boýunça süzmek (pending, success, failed)
|
||||
in: query
|
||||
name: status
|
||||
type: string
|
||||
- description: Filter by passport name/surname or order unique ID
|
||||
- description: Pasport ady/familiýasy ýa-da sargydyň unique ID-si boýunça gözlemek
|
||||
in: query
|
||||
name: search
|
||||
type: string
|
||||
- default: id
|
||||
description: Sort column
|
||||
description: Tertiplenýän sütün
|
||||
enum:
|
||||
- id
|
||||
- created_at
|
||||
@@ -6623,7 +6625,7 @@ paths:
|
||||
name: sort
|
||||
type: string
|
||||
- default: desc
|
||||
description: Sort direction
|
||||
description: Tertip ugry
|
||||
enum:
|
||||
- asc
|
||||
- desc
|
||||
@@ -6631,18 +6633,17 @@ paths:
|
||||
name: order
|
||||
type: string
|
||||
- default: 1
|
||||
description: Page number
|
||||
description: Sahypa belgisi
|
||||
in: query
|
||||
name: page
|
||||
type: integer
|
||||
- default: 10
|
||||
description: Items per page
|
||||
description: Bir sahypadaky ýazgy sany
|
||||
in: query
|
||||
name: limit
|
||||
type: integer
|
||||
- default: tm
|
||||
description: Language of localized fields; all returns the full {en, ru, tm}
|
||||
objects
|
||||
description: Lokallaşdyrylan meýdanlaryň dili; all - doly {en, ru, tm} obýektleri
|
||||
enum:
|
||||
- tm
|
||||
- ru
|
||||
@@ -6668,26 +6669,25 @@ paths:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: List payment history
|
||||
summary: Tölegleriň taryhy
|
||||
tags:
|
||||
- payment-history
|
||||
/payment-history/{id}:
|
||||
get:
|
||||
description: Returns every visa/master/sber payout attempt of one order, newest
|
||||
first - one row per payment with whether it was paid (paid/gatewayStatus),
|
||||
the card it was paid from (cardholderName/maskedPan, once GBÜS reports them),
|
||||
its time (createdAt) and period (paymentPeriod). The raw GBÜS response of
|
||||
a row is at /payment-history/payments/{id}, of every row at once at /payment-history/{id}/gateway;
|
||||
the step-by-step logs are at /payment-history/{id}/logs.
|
||||
description: 'Bir sargydyň ähli Visa/Master we Sber töleg synanyşyklaryny gaýtarýar:
|
||||
her töleg üçin bir setir - tölendimi (paid/gatewayStatus), haýsy kartdan tölendi
|
||||
(cardholderName/maskedPan), wagty (createdAt) we döwri (paymentPeriod). Tertip:
|
||||
iň täzesi birinji. Bellik: bir tölegiň GBÜS jogaby /payment-history/payments/{id},
|
||||
ähli tölegleriňki /payment-history/{id}/gateway, ädimme-ädim loglar /payment-history/{id}/logs
|
||||
salgysynda.'
|
||||
parameters:
|
||||
- description: Order ID
|
||||
- description: Sargyt ID-si
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- default: tm
|
||||
description: Language of localized fields; all returns the full {en, ru, tm}
|
||||
objects
|
||||
description: Lokallaşdyrylan meýdanlaryň dili; all - doly {en, ru, tm} obýektleri
|
||||
enum:
|
||||
- tm
|
||||
- ru
|
||||
@@ -6723,26 +6723,25 @@ paths:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: List an order's payments
|
||||
summary: Sargydyň tölegleri
|
||||
tags:
|
||||
- payment-history
|
||||
/payment-history/{id}/gateway:
|
||||
get:
|
||||
description: Returns every payment of one order, newest first, the way the per-order
|
||||
payment table shows them - paid or not, the card it was paid from (cardholderName/maskedPan,
|
||||
null until GBÜS reports them), its time (createdAt), payment year/month, amounts
|
||||
and reference (orderNumber) - each together with the last GBÜS (HALKBANK)
|
||||
response stored for it (gatewayResponse, null if GBÜS never answered). Backs
|
||||
the table's storage icon.
|
||||
description: 'Bir sargydyň ähli tölegini her biriniň GBÜS (HALKBANK) soňky jogaby
|
||||
(gatewayResponse) bilen gaýtarýar: tölendimi, haýsy kartdan tölendi (cardholderName/maskedPan),
|
||||
wagty (createdAt), töleg ýyly/aýy, mukdarlary we belgisi (orderNumber). Tertip:
|
||||
iň täzesi birinji. Bellik: GBÜS kart maglumatyny habar berýänçä cardholderName/maskedPan
|
||||
null, GBÜS asla jogap bermedik bolsa gatewayResponse null; tablisadaky ammar
|
||||
nyşany şu endpoint-den işleýär.'
|
||||
parameters:
|
||||
- description: Order ID
|
||||
- description: Sargyt ID-si
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- default: tm
|
||||
description: Language of localized fields; all returns the full {en, ru, tm}
|
||||
objects
|
||||
description: Lokallaşdyrylan meýdanlaryň dili; all - doly {en, ru, tm} obýektleri
|
||||
enum:
|
||||
- tm
|
||||
- ru
|
||||
@@ -6778,23 +6777,22 @@ paths:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: List an order's payments with their HALKBANK responses
|
||||
summary: Sargydyň tölegleri GBÜS jogaplary bilen
|
||||
tags:
|
||||
- payment-history
|
||||
/payment-history/{id}/logs:
|
||||
get:
|
||||
description: Returns the full step-by-step audit trail (visa_master_payment_logs)
|
||||
recorded while processing an order's payout, newest first - evidence of what
|
||||
actually happened, independent of the summary rows returned by /payment-history/{id}
|
||||
description: 'Sargydyň tölegi işlenende ýazylan ähli ädimleri (visa_master_payment_logs)
|
||||
gaýtarýar. Tertip: iň täzesi birinji. Bellik: /payment-history/{id} setirlerinden
|
||||
garaşsyz, hakykatda näme bolandygynyň subutnamasy.'
|
||||
parameters:
|
||||
- description: Order ID
|
||||
- description: Sargyt ID-si
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- default: tm
|
||||
description: Language of localized fields; all returns the full {en, ru, tm}
|
||||
objects
|
||||
description: Lokallaşdyrylan meýdanlaryň dili; all - doly {en, ru, tm} obýektleri
|
||||
enum:
|
||||
- tm
|
||||
- ru
|
||||
@@ -6830,23 +6828,22 @@ paths:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Get payment logs for an order
|
||||
summary: Sargydyň töleg loglary
|
||||
tags:
|
||||
- payment-history
|
||||
/payment-history/payments/{id}:
|
||||
get:
|
||||
description: Returns one visa/master/sber payout attempt by its payment ID,
|
||||
with the raw GBÜS response - the detail view behind a payment-history list
|
||||
row
|
||||
description: 'Töleg ID-si boýunça bir Visa/Master ýa-da Sber töleg synanyşygyny
|
||||
GBÜS-iň soňky jogaby (gatewayResponse) bilen gaýtarýar. Tertip: ýeke ýazgy.
|
||||
Bellik: taryh sanawyndaky bir setiriň jikme-jik görnüşi.'
|
||||
parameters:
|
||||
- description: Payment ID
|
||||
- description: Töleg ID-si
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- default: tm
|
||||
description: Language of localized fields; all returns the full {en, ru, tm}
|
||||
objects
|
||||
description: Lokallaşdyrylan meýdanlaryň dili; all - doly {en, ru, tm} obýektleri
|
||||
enum:
|
||||
- tm
|
||||
- ru
|
||||
@@ -6880,26 +6877,25 @@ paths:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Get a single payment attempt
|
||||
summary: Bir tölegiň jikme-jikligi
|
||||
tags:
|
||||
- payment-history
|
||||
/payment-history/payments/{id}/gateway:
|
||||
get:
|
||||
description: Returns every payment of one order, newest first, the way the per-order
|
||||
payment table shows them - paid or not, the card it was paid from (cardholderName/maskedPan,
|
||||
null until GBÜS reports them), its time (createdAt), payment year/month, amounts
|
||||
and reference (orderNumber) - each together with the last GBÜS (HALKBANK)
|
||||
response stored for it (gatewayResponse, null if GBÜS never answered). Backs
|
||||
the table's storage icon.
|
||||
description: 'Bir sargydyň ähli tölegini her biriniň GBÜS (HALKBANK) soňky jogaby
|
||||
(gatewayResponse) bilen gaýtarýar: tölendimi, haýsy kartdan tölendi (cardholderName/maskedPan),
|
||||
wagty (createdAt), töleg ýyly/aýy, mukdarlary we belgisi (orderNumber). Tertip:
|
||||
iň täzesi birinji. Bellik: GBÜS kart maglumatyny habar berýänçä cardholderName/maskedPan
|
||||
null, GBÜS asla jogap bermedik bolsa gatewayResponse null; tablisadaky ammar
|
||||
nyşany şu endpoint-den işleýär.'
|
||||
parameters:
|
||||
- description: Order ID
|
||||
- description: Sargyt ID-si
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- default: tm
|
||||
description: Language of localized fields; all returns the full {en, ru, tm}
|
||||
objects
|
||||
description: Lokallaşdyrylan meýdanlaryň dili; all - doly {en, ru, tm} obýektleri
|
||||
enum:
|
||||
- tm
|
||||
- ru
|
||||
@@ -6935,7 +6931,7 @@ paths:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: List an order's payments with their HALKBANK responses
|
||||
summary: Sargydyň tölegleri GBÜS jogaplary bilen
|
||||
tags:
|
||||
- payment-history
|
||||
/payment-settings:
|
||||
@@ -8644,7 +8640,7 @@ paths:
|
||||
- BearerAuth: []
|
||||
summary: List visa/master payment orders
|
||||
tags:
|
||||
- visa-master-payment-orders
|
||||
- visa-master-orders
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
@@ -8686,7 +8682,7 @@ paths:
|
||||
- BearerAuth: []
|
||||
summary: Create visa/master payment order
|
||||
tags:
|
||||
- visa-master-payment-orders
|
||||
- visa-master-orders
|
||||
/visa-master-payment-orders/{id}:
|
||||
delete:
|
||||
description: Deletes a visa/master payment order
|
||||
@@ -8730,7 +8726,7 @@ paths:
|
||||
- BearerAuth: []
|
||||
summary: Delete visa/master payment order
|
||||
tags:
|
||||
- visa-master-payment-orders
|
||||
- visa-master-orders
|
||||
get:
|
||||
description: Returns a single visa/master payment order with branch and user
|
||||
details
|
||||
@@ -8774,7 +8770,7 @@ paths:
|
||||
- BearerAuth: []
|
||||
summary: Get visa/master payment order by ID
|
||||
tags:
|
||||
- visa-master-payment-orders
|
||||
- visa-master-orders
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
@@ -8825,7 +8821,7 @@ paths:
|
||||
- BearerAuth: []
|
||||
summary: Update visa/master payment order
|
||||
tags:
|
||||
- visa-master-payment-orders
|
||||
- visa-master-orders
|
||||
/visa-master-payment-orders/{id}/pay:
|
||||
post:
|
||||
consumes:
|
||||
@@ -8879,7 +8875,7 @@ paths:
|
||||
- BearerAuth: []
|
||||
summary: Start a visa/master/sber payout
|
||||
tags:
|
||||
- visa-master-payment-orders
|
||||
- visa-master-payment
|
||||
/visa-master-payment-orders/{id}/quote:
|
||||
get:
|
||||
description: Returns the current rate, configured fees, and max payable amount
|
||||
@@ -8924,7 +8920,7 @@ paths:
|
||||
- BearerAuth: []
|
||||
summary: Quote a visa/master/sber payment
|
||||
tags:
|
||||
- visa-master-payment-orders
|
||||
- visa-master-payment
|
||||
/visa-master-payment-orders/{id}/status:
|
||||
get:
|
||||
description: For when the frontend can't rely on GBÜS's redirect having reached
|
||||
@@ -8971,7 +8967,7 @@ paths:
|
||||
- BearerAuth: []
|
||||
summary: Re-check a visa/master/sber order's latest payment attempt
|
||||
tags:
|
||||
- visa-master-payment-orders
|
||||
- visa-master-payment
|
||||
/visa-master-payment-orders/callback:
|
||||
get:
|
||||
description: GBÜS redirects the browser here after payment; the real outcome
|
||||
@@ -9002,7 +8998,7 @@ paths:
|
||||
$ref: '#/definitions/visamasterpay.CallbackResultDTO'
|
||||
summary: GBÜS payment callback
|
||||
tags:
|
||||
- visa-master-payment-orders
|
||||
- visa-master-payment
|
||||
/visa-master-payment-orders/sber:
|
||||
get:
|
||||
description: Returns paginated payment orders of type sber
|
||||
@@ -9067,10 +9063,51 @@ paths:
|
||||
- BearerAuth: []
|
||||
summary: List sber payment orders
|
||||
tags:
|
||||
- visa-master-payment-orders
|
||||
- visa-master-orders
|
||||
schemes:
|
||||
- http
|
||||
securityDefinitions:
|
||||
BearerAuth:
|
||||
in: header
|
||||
name: Authorization
|
||||
type: apiKey
|
||||
swagger: "2.0"
|
||||
tags:
|
||||
- description: Authentication
|
||||
name: auth
|
||||
- description: Provinces
|
||||
name: province
|
||||
- description: Branches
|
||||
name: branches
|
||||
- description: Payment cards
|
||||
name: payment-card
|
||||
- description: Reason cards
|
||||
name: reason-card
|
||||
- description: Loan types
|
||||
name: loan-type
|
||||
- description: Loan required documents
|
||||
name: loan-document
|
||||
- description: Loan repayments
|
||||
name: loans-repayment
|
||||
- description: Card orders
|
||||
name: card-orders
|
||||
- description: Card rekwizit (card details) orders
|
||||
name: card-rekwizit-orders
|
||||
- description: User activity audit trail
|
||||
name: activity-logs
|
||||
- description: 'Visa/Master and Sber student-transfer orders: list, view, create,
|
||||
edit, delete'
|
||||
name: visa-master-orders
|
||||
- description: 'Paying a Visa/Master or Sber order through GBÜS (HALKBANK): quote,
|
||||
pay, status re-check, bank callback'
|
||||
name: visa-master-payment
|
||||
- description: 'Visa/Master we Sber töleg synanyşyklarynyň taryhy. Ulanylyş tertibi:
|
||||
1) GET /payment-history - ähli tölegler; 2) GET /payment-history/{id} - bir sargydyň
|
||||
tölegleri; 3) GET /payment-history/payments/{id} - bir tölegiň jikme-jikligi;
|
||||
4) GET /payment-history/{id}/gateway - sargydyň tölegleri GBÜS jogaplary bilen;
|
||||
5) GET /payment-history/{id}/logs - sargydyň ädimme-ädim töleg loglary'
|
||||
name: payment-history
|
||||
- description: Database SQL backups
|
||||
name: backups
|
||||
- description: Currency exchange rates
|
||||
name: currencies
|
||||
|
||||
Reference in New Issue
Block a user