Every create, update and delete of a visa/master or sber order is now
recorded in visa_master_order_actions: who did it, finished or failed
(with the exception), and for an update only the columns that changed -
original before, changes after. Marking an order paid when a payment is
finalized is recorded the same way, with no user when the GBÜS callback
did it.
Actions are written in the transaction that changes the order, so one is
on record exactly when its change is; failed ones are written after the
rollback with the values they attempted. The payment finalize records
after its commit instead, so recording never holds up a payment GBÜS has
already taken. Updates that change nothing and creates that fail (no
order to attach to) are not recorded.
GET /visa-master-payment-orders/{id}/actions lists them, newest first;
GET /visa-master-payment-orders/{id}/actions/{actionId} adds original,
changes and exception. Both are staff-only and order-scoped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9255 lines
226 KiB
YAML
9255 lines
226 KiB
YAML
basePath: /api/admin
|
|
definitions:
|
|
appresult.AppError:
|
|
properties:
|
|
code:
|
|
type: string
|
|
message:
|
|
type: string
|
|
status:
|
|
type: boolean
|
|
type: object
|
|
appresult.AppSuccess:
|
|
properties:
|
|
code:
|
|
type: string
|
|
data: {}
|
|
message:
|
|
type: string
|
|
status:
|
|
type: boolean
|
|
type: object
|
|
auth.ForgotPasswordDTO:
|
|
properties:
|
|
name:
|
|
type: string
|
|
required:
|
|
- name
|
|
type: object
|
|
auth.LoginDTO:
|
|
properties:
|
|
name:
|
|
type: string
|
|
password:
|
|
type: string
|
|
phone:
|
|
type: string
|
|
required:
|
|
- password
|
|
type: object
|
|
auth.RefreshTokenDTO:
|
|
properties:
|
|
refreshToken:
|
|
type: string
|
|
required:
|
|
- refreshToken
|
|
type: object
|
|
auth.RegisterDTO:
|
|
properties:
|
|
name:
|
|
type: string
|
|
password:
|
|
minLength: 6
|
|
type: string
|
|
passwordConfirm:
|
|
type: string
|
|
phone:
|
|
type: string
|
|
username:
|
|
minLength: 3
|
|
type: string
|
|
required:
|
|
- name
|
|
- password
|
|
- passwordConfirm
|
|
- phone
|
|
- username
|
|
type: object
|
|
auth.ResetPasswordDTO:
|
|
properties:
|
|
code:
|
|
type: string
|
|
name:
|
|
type: string
|
|
password:
|
|
minLength: 6
|
|
type: string
|
|
passwordConfirm:
|
|
type: string
|
|
required:
|
|
- code
|
|
- name
|
|
- password
|
|
- passwordConfirm
|
|
type: object
|
|
auth.UpdateProfileDTO:
|
|
properties:
|
|
avatar:
|
|
type: string
|
|
firstName:
|
|
type: string
|
|
lastName:
|
|
type: string
|
|
name:
|
|
type: string
|
|
phone:
|
|
type: string
|
|
required:
|
|
- name
|
|
type: object
|
|
auth.VerifyDTO:
|
|
properties:
|
|
code:
|
|
type: string
|
|
phone:
|
|
type: string
|
|
required:
|
|
- code
|
|
- phone
|
|
type: object
|
|
branches.CreateBranchDTO:
|
|
properties:
|
|
active:
|
|
type: boolean
|
|
address:
|
|
$ref: '#/definitions/shared.LocalizedText'
|
|
billingPassword:
|
|
type: string
|
|
billingSberPassword:
|
|
type: string
|
|
billingSberUsername:
|
|
type: string
|
|
billingSwiftPassword:
|
|
type: string
|
|
billingSwiftUsername:
|
|
type: string
|
|
billingUsername:
|
|
type: string
|
|
billingVisaMasterPassword:
|
|
type: string
|
|
billingVisaMasterUsername:
|
|
type: string
|
|
name:
|
|
$ref: '#/definitions/shared.LocalizedText'
|
|
phoneNumbers:
|
|
type: string
|
|
provinceId:
|
|
type: integer
|
|
region:
|
|
type: string
|
|
uniqueCode:
|
|
type: string
|
|
required:
|
|
- address
|
|
- name
|
|
- region
|
|
- uniqueCode
|
|
type: object
|
|
branches.UpdateBranchDTO:
|
|
properties:
|
|
active:
|
|
type: boolean
|
|
address:
|
|
$ref: '#/definitions/shared.LocalizedText'
|
|
billingPassword:
|
|
type: string
|
|
billingSberPassword:
|
|
type: string
|
|
billingSberUsername:
|
|
type: string
|
|
billingSwiftPassword:
|
|
type: string
|
|
billingSwiftUsername:
|
|
type: string
|
|
billingUsername:
|
|
type: string
|
|
billingVisaMasterPassword:
|
|
type: string
|
|
billingVisaMasterUsername:
|
|
type: string
|
|
name:
|
|
$ref: '#/definitions/shared.LocalizedText'
|
|
phoneNumbers:
|
|
type: string
|
|
provinceId:
|
|
type: integer
|
|
region:
|
|
type: string
|
|
required:
|
|
- address
|
|
- name
|
|
- region
|
|
type: object
|
|
cardbalance.CreateCardBalanceDTO:
|
|
properties:
|
|
balanceAmount:
|
|
type: number
|
|
balanceCurrency:
|
|
type: string
|
|
branchId:
|
|
type: integer
|
|
cardNumber:
|
|
type: string
|
|
checkedAt:
|
|
format: date-time
|
|
type: string
|
|
createdBy:
|
|
type: integer
|
|
expiryMonth:
|
|
type: integer
|
|
expiryYear:
|
|
type: integer
|
|
passportNumber:
|
|
type: string
|
|
status:
|
|
type: string
|
|
required:
|
|
- cardNumber
|
|
- expiryMonth
|
|
- expiryYear
|
|
- passportNumber
|
|
type: object
|
|
cardbalance.UpdateCardBalanceDTO:
|
|
properties:
|
|
balanceAmount:
|
|
type: number
|
|
balanceCurrency:
|
|
type: string
|
|
branchId:
|
|
type: integer
|
|
cardNumber:
|
|
type: string
|
|
checkedAt:
|
|
format: date-time
|
|
type: string
|
|
createdBy:
|
|
type: integer
|
|
expiryMonth:
|
|
type: integer
|
|
expiryYear:
|
|
type: integer
|
|
passportNumber:
|
|
type: string
|
|
status:
|
|
type: string
|
|
required:
|
|
- cardNumber
|
|
- expiryMonth
|
|
- expiryYear
|
|
- passportNumber
|
|
type: object
|
|
cardorder.CreateCardOrderDTO:
|
|
properties:
|
|
bornAt:
|
|
format: date
|
|
type: string
|
|
bornPlace:
|
|
type: string
|
|
branchId:
|
|
type: integer
|
|
cardStateId:
|
|
type: integer
|
|
cardTypeId:
|
|
type: integer
|
|
citizenship:
|
|
type: string
|
|
customerName:
|
|
type: string
|
|
customerPatronicName:
|
|
type: string
|
|
customerSurname:
|
|
type: string
|
|
jobLocation:
|
|
type: string
|
|
notes:
|
|
type: string
|
|
oldSurname:
|
|
type: string
|
|
paid:
|
|
type: boolean
|
|
passportAddress:
|
|
type: string
|
|
passportFour:
|
|
type: string
|
|
passportGivenAt:
|
|
format: date
|
|
type: string
|
|
passportGivenBy:
|
|
type: string
|
|
passportId:
|
|
type: string
|
|
passportOne:
|
|
type: string
|
|
passportSerie:
|
|
type: string
|
|
passportThree:
|
|
type: string
|
|
passportTwo:
|
|
type: string
|
|
phone:
|
|
type: string
|
|
phoneAdditional:
|
|
type: string
|
|
realAddress:
|
|
type: string
|
|
region:
|
|
type: string
|
|
status:
|
|
type: string
|
|
uniqueId:
|
|
type: string
|
|
userId:
|
|
type: integer
|
|
required:
|
|
- bornPlace
|
|
- branchId
|
|
- cardStateId
|
|
- cardTypeId
|
|
- citizenship
|
|
- customerName
|
|
- customerSurname
|
|
- passportFour
|
|
- passportGivenBy
|
|
- passportId
|
|
- passportOne
|
|
- passportSerie
|
|
- passportThree
|
|
- passportTwo
|
|
- region
|
|
type: object
|
|
cardorder.UpdateCardOrderDTO:
|
|
properties:
|
|
bornAt:
|
|
format: date
|
|
type: string
|
|
bornPlace:
|
|
type: string
|
|
branchId:
|
|
type: integer
|
|
cardStateId:
|
|
type: integer
|
|
cardTypeId:
|
|
type: integer
|
|
citizenship:
|
|
type: string
|
|
customerName:
|
|
type: string
|
|
customerPatronicName:
|
|
type: string
|
|
customerSurname:
|
|
type: string
|
|
jobLocation:
|
|
type: string
|
|
notes:
|
|
type: string
|
|
oldSurname:
|
|
type: string
|
|
paid:
|
|
type: boolean
|
|
passportAddress:
|
|
type: string
|
|
passportFour:
|
|
type: string
|
|
passportGivenAt:
|
|
format: date
|
|
type: string
|
|
passportGivenBy:
|
|
type: string
|
|
passportId:
|
|
type: string
|
|
passportOne:
|
|
type: string
|
|
passportSerie:
|
|
type: string
|
|
passportThree:
|
|
type: string
|
|
passportTwo:
|
|
type: string
|
|
phone:
|
|
type: string
|
|
phoneAdditional:
|
|
type: string
|
|
realAddress:
|
|
type: string
|
|
region:
|
|
type: string
|
|
status:
|
|
type: string
|
|
uniqueId:
|
|
type: string
|
|
userId:
|
|
type: integer
|
|
required:
|
|
- bornPlace
|
|
- branchId
|
|
- cardStateId
|
|
- cardTypeId
|
|
- citizenship
|
|
- customerName
|
|
- customerSurname
|
|
- passportFour
|
|
- passportGivenBy
|
|
- passportId
|
|
- passportOne
|
|
- passportSerie
|
|
- passportThree
|
|
- passportTwo
|
|
- region
|
|
type: object
|
|
cardpinorders.CreateCardPinOrderDTO:
|
|
properties:
|
|
bornAt:
|
|
format: date
|
|
type: string
|
|
branchId:
|
|
type: integer
|
|
cardNumber:
|
|
type: string
|
|
cardTypeId:
|
|
type: integer
|
|
customerName:
|
|
type: string
|
|
customerPatronicName:
|
|
type: string
|
|
customerSurname:
|
|
type: string
|
|
notes:
|
|
type: string
|
|
passportFour:
|
|
type: string
|
|
passportId:
|
|
type: string
|
|
passportOne:
|
|
type: string
|
|
passportSerie:
|
|
type: string
|
|
passportThree:
|
|
type: string
|
|
passportTwo:
|
|
type: string
|
|
phone:
|
|
type: string
|
|
region:
|
|
type: string
|
|
status:
|
|
type: string
|
|
uniqueId:
|
|
type: string
|
|
userId:
|
|
type: integer
|
|
required:
|
|
- branchId
|
|
- cardTypeId
|
|
- customerName
|
|
- customerSurname
|
|
- passportFour
|
|
- passportId
|
|
- passportOne
|
|
- passportSerie
|
|
- passportThree
|
|
- passportTwo
|
|
- region
|
|
type: object
|
|
cardpinorders.UpdateCardPinOrderDTO:
|
|
properties:
|
|
bornAt:
|
|
format: date
|
|
type: string
|
|
branchId:
|
|
type: integer
|
|
cardNumber:
|
|
type: string
|
|
cardTypeId:
|
|
type: integer
|
|
customerName:
|
|
type: string
|
|
customerPatronicName:
|
|
type: string
|
|
customerSurname:
|
|
type: string
|
|
notes:
|
|
type: string
|
|
passportFour:
|
|
type: string
|
|
passportId:
|
|
type: string
|
|
passportOne:
|
|
type: string
|
|
passportSerie:
|
|
type: string
|
|
passportThree:
|
|
type: string
|
|
passportTwo:
|
|
type: string
|
|
phone:
|
|
type: string
|
|
region:
|
|
type: string
|
|
status:
|
|
type: string
|
|
uniqueId:
|
|
type: string
|
|
userId:
|
|
type: integer
|
|
required:
|
|
- branchId
|
|
- cardTypeId
|
|
- customerName
|
|
- customerSurname
|
|
- passportFour
|
|
- passportId
|
|
- passportOne
|
|
- passportSerie
|
|
- passportThree
|
|
- passportTwo
|
|
- region
|
|
type: object
|
|
cardrekwizit.CreateCardRekwizitOrderDTO:
|
|
properties:
|
|
bornAt:
|
|
format: date
|
|
type: string
|
|
branchId:
|
|
type: integer
|
|
cardMonth:
|
|
type: string
|
|
cardNumber:
|
|
type: string
|
|
cardTypeId:
|
|
type: integer
|
|
cardYear:
|
|
type: string
|
|
customerName:
|
|
type: string
|
|
customerPatronicName:
|
|
type: string
|
|
customerSurname:
|
|
type: string
|
|
notes:
|
|
type: string
|
|
passportFour:
|
|
type: string
|
|
passportId:
|
|
type: string
|
|
passportOne:
|
|
type: string
|
|
passportSerie:
|
|
type: string
|
|
passportThree:
|
|
type: string
|
|
passportTwo:
|
|
type: string
|
|
phone:
|
|
type: string
|
|
region:
|
|
type: string
|
|
status:
|
|
type: string
|
|
uniqueId:
|
|
type: string
|
|
userId:
|
|
type: integer
|
|
required:
|
|
- bornAt
|
|
- branchId
|
|
- cardMonth
|
|
- cardNumber
|
|
- cardTypeId
|
|
- cardYear
|
|
- customerName
|
|
- customerSurname
|
|
- passportFour
|
|
- passportId
|
|
- passportOne
|
|
- passportSerie
|
|
- passportThree
|
|
- passportTwo
|
|
- phone
|
|
- region
|
|
type: object
|
|
cardrekwizit.UpdateCardRekwizitOrderDTO:
|
|
properties:
|
|
bornAt:
|
|
format: date
|
|
type: string
|
|
branchId:
|
|
type: integer
|
|
cardMonth:
|
|
type: string
|
|
cardNumber:
|
|
type: string
|
|
cardTypeId:
|
|
type: integer
|
|
cardYear:
|
|
type: string
|
|
customerName:
|
|
type: string
|
|
customerPatronicName:
|
|
type: string
|
|
customerSurname:
|
|
type: string
|
|
notes:
|
|
type: string
|
|
passportFour:
|
|
type: string
|
|
passportId:
|
|
type: string
|
|
passportOne:
|
|
type: string
|
|
passportSerie:
|
|
type: string
|
|
passportThree:
|
|
type: string
|
|
passportTwo:
|
|
type: string
|
|
phone:
|
|
type: string
|
|
region:
|
|
type: string
|
|
status:
|
|
type: string
|
|
uniqueId:
|
|
type: string
|
|
userId:
|
|
type: integer
|
|
required:
|
|
- bornAt
|
|
- branchId
|
|
- cardMonth
|
|
- cardNumber
|
|
- cardTypeId
|
|
- cardYear
|
|
- customerName
|
|
- customerSurname
|
|
- passportFour
|
|
- passportId
|
|
- passportOne
|
|
- passportSerie
|
|
- passportThree
|
|
- passportTwo
|
|
- phone
|
|
- region
|
|
type: object
|
|
cards.CreateCardDTO:
|
|
properties:
|
|
month:
|
|
type: string
|
|
name:
|
|
type: string
|
|
number:
|
|
type: string
|
|
type:
|
|
type: string
|
|
userId:
|
|
type: integer
|
|
year:
|
|
type: string
|
|
required:
|
|
- month
|
|
- name
|
|
- number
|
|
type: object
|
|
cards.UpdateCardDTO:
|
|
properties:
|
|
month:
|
|
type: string
|
|
name:
|
|
type: string
|
|
number:
|
|
type: string
|
|
type:
|
|
type: string
|
|
userId:
|
|
type: integer
|
|
year:
|
|
type: string
|
|
required:
|
|
- month
|
|
- name
|
|
- number
|
|
type: object
|
|
currency.CreateCurrencyDTO:
|
|
properties:
|
|
currencyFrom:
|
|
type: string
|
|
currencyTo:
|
|
type: string
|
|
value:
|
|
type: number
|
|
required:
|
|
- currencyFrom
|
|
- currencyTo
|
|
- value
|
|
type: object
|
|
currency.CurrencyDTO:
|
|
properties:
|
|
createdAt:
|
|
type: string
|
|
createdBy:
|
|
$ref: '#/definitions/currency.UserInfo'
|
|
currencyFrom:
|
|
type: string
|
|
currencyTo:
|
|
type: string
|
|
id:
|
|
type: integer
|
|
updatedAt:
|
|
type: string
|
|
updatedBy:
|
|
$ref: '#/definitions/currency.UserInfo'
|
|
value:
|
|
type: number
|
|
type: object
|
|
currency.ListCurrencyDTO:
|
|
properties:
|
|
count:
|
|
type: integer
|
|
currencies:
|
|
items:
|
|
$ref: '#/definitions/currency.CurrencyDTO'
|
|
type: array
|
|
type: object
|
|
currency.UpdateCurrencyDTO:
|
|
properties:
|
|
currencyFrom:
|
|
type: string
|
|
currencyTo:
|
|
type: string
|
|
value:
|
|
type: number
|
|
required:
|
|
- currencyFrom
|
|
- currencyTo
|
|
- value
|
|
type: object
|
|
currency.UserInfo:
|
|
properties:
|
|
email:
|
|
type: string
|
|
id:
|
|
type: integer
|
|
name:
|
|
type: string
|
|
phone:
|
|
type: string
|
|
username:
|
|
type: string
|
|
type: object
|
|
loanorders.CreateLoanOrderDTO:
|
|
properties:
|
|
bornAt:
|
|
format: date
|
|
type: string
|
|
bornPlace:
|
|
type: string
|
|
branchId:
|
|
type: integer
|
|
cardMonth:
|
|
type: string
|
|
cardName:
|
|
type: string
|
|
cardNumber:
|
|
type: string
|
|
cardYear:
|
|
type: string
|
|
customerName:
|
|
type: string
|
|
customerPatronicName:
|
|
type: string
|
|
customerSurname:
|
|
type: string
|
|
education:
|
|
type: string
|
|
email:
|
|
type: string
|
|
guarantor2CardMonth:
|
|
type: string
|
|
guarantor2CardName:
|
|
type: string
|
|
guarantor2CardNumber:
|
|
type: string
|
|
guarantor2CardYear:
|
|
type: string
|
|
guarantor2Name:
|
|
type: string
|
|
guarantor2Note:
|
|
type: string
|
|
guarantor2PassportId:
|
|
type: string
|
|
guarantor2PassportSerie:
|
|
type: string
|
|
guarantor2PatronicName:
|
|
type: string
|
|
guarantor2Surname:
|
|
type: string
|
|
guarantorCardMonth:
|
|
type: string
|
|
guarantorCardName:
|
|
type: string
|
|
guarantorCardNumber:
|
|
type: string
|
|
guarantorCardYear:
|
|
type: string
|
|
guarantorName:
|
|
type: string
|
|
guarantorNote:
|
|
type: string
|
|
guarantorPassportId:
|
|
type: string
|
|
guarantorPassportSerie:
|
|
type: string
|
|
guarantorPatronicName:
|
|
type: string
|
|
guarantorSurname:
|
|
type: string
|
|
loanAmount:
|
|
type: string
|
|
loanCardMonth:
|
|
type: string
|
|
loanCardName:
|
|
type: string
|
|
loanCardNumber:
|
|
type: string
|
|
loanCardYear:
|
|
type: string
|
|
loanOrderRequiredDocId:
|
|
type: integer
|
|
loanType:
|
|
type: integer
|
|
marriageStatus:
|
|
type: string
|
|
notes:
|
|
type: string
|
|
passportAddress:
|
|
type: string
|
|
passportFour:
|
|
type: string
|
|
passportGivenAt:
|
|
format: date
|
|
type: string
|
|
passportGivenBy:
|
|
type: string
|
|
passportId:
|
|
type: string
|
|
passportOne:
|
|
type: string
|
|
passportSerie:
|
|
type: string
|
|
passportThree:
|
|
type: string
|
|
passportTwo:
|
|
type: string
|
|
phone:
|
|
type: string
|
|
phoneAdditional:
|
|
type: string
|
|
phoneHome:
|
|
type: string
|
|
realAddress:
|
|
type: string
|
|
region:
|
|
type: string
|
|
satisfiable:
|
|
type: string
|
|
source:
|
|
type: string
|
|
status:
|
|
type: string
|
|
userId:
|
|
type: integer
|
|
workCompany:
|
|
type: string
|
|
workCompanyAccountantNumber:
|
|
type: string
|
|
workPosition:
|
|
type: string
|
|
workProvinceId:
|
|
type: integer
|
|
workRegion:
|
|
type: string
|
|
workSalary:
|
|
type: string
|
|
workStartedAt:
|
|
format: date
|
|
type: string
|
|
required:
|
|
- bornAt
|
|
- bornPlace
|
|
- branchId
|
|
- customerName
|
|
- customerSurname
|
|
- education
|
|
- loanType
|
|
- marriageStatus
|
|
- passportAddress
|
|
- passportFour
|
|
- passportGivenAt
|
|
- passportGivenBy
|
|
- passportId
|
|
- passportOne
|
|
- passportSerie
|
|
- passportThree
|
|
- passportTwo
|
|
- phone
|
|
- realAddress
|
|
- region
|
|
type: object
|
|
loanorders.UpdateLoanOrderDTO:
|
|
properties:
|
|
bornAt:
|
|
format: date
|
|
type: string
|
|
bornPlace:
|
|
type: string
|
|
branchId:
|
|
type: integer
|
|
cardMonth:
|
|
type: string
|
|
cardName:
|
|
type: string
|
|
cardNumber:
|
|
type: string
|
|
cardYear:
|
|
type: string
|
|
customerName:
|
|
type: string
|
|
customerPatronicName:
|
|
type: string
|
|
customerSurname:
|
|
type: string
|
|
education:
|
|
type: string
|
|
email:
|
|
type: string
|
|
guarantor2CardMonth:
|
|
type: string
|
|
guarantor2CardName:
|
|
type: string
|
|
guarantor2CardNumber:
|
|
type: string
|
|
guarantor2CardYear:
|
|
type: string
|
|
guarantor2Name:
|
|
type: string
|
|
guarantor2Note:
|
|
type: string
|
|
guarantor2PassportId:
|
|
type: string
|
|
guarantor2PassportSerie:
|
|
type: string
|
|
guarantor2PatronicName:
|
|
type: string
|
|
guarantor2Surname:
|
|
type: string
|
|
guarantorCardMonth:
|
|
type: string
|
|
guarantorCardName:
|
|
type: string
|
|
guarantorCardNumber:
|
|
type: string
|
|
guarantorCardYear:
|
|
type: string
|
|
guarantorName:
|
|
type: string
|
|
guarantorNote:
|
|
type: string
|
|
guarantorPassportId:
|
|
type: string
|
|
guarantorPassportSerie:
|
|
type: string
|
|
guarantorPatronicName:
|
|
type: string
|
|
guarantorSurname:
|
|
type: string
|
|
loanAmount:
|
|
type: string
|
|
loanCardMonth:
|
|
type: string
|
|
loanCardName:
|
|
type: string
|
|
loanCardNumber:
|
|
type: string
|
|
loanCardYear:
|
|
type: string
|
|
loanOrderRequiredDocId:
|
|
type: integer
|
|
loanType:
|
|
type: integer
|
|
marriageStatus:
|
|
type: string
|
|
notes:
|
|
type: string
|
|
passportAddress:
|
|
type: string
|
|
passportFour:
|
|
type: string
|
|
passportGivenAt:
|
|
format: date
|
|
type: string
|
|
passportGivenBy:
|
|
type: string
|
|
passportId:
|
|
type: string
|
|
passportOne:
|
|
type: string
|
|
passportSerie:
|
|
type: string
|
|
passportThree:
|
|
type: string
|
|
passportTwo:
|
|
type: string
|
|
phone:
|
|
type: string
|
|
phoneAdditional:
|
|
type: string
|
|
phoneHome:
|
|
type: string
|
|
realAddress:
|
|
type: string
|
|
region:
|
|
type: string
|
|
satisfiable:
|
|
type: string
|
|
source:
|
|
type: string
|
|
status:
|
|
type: string
|
|
userId:
|
|
type: integer
|
|
workCompany:
|
|
type: string
|
|
workCompanyAccountantNumber:
|
|
type: string
|
|
workPosition:
|
|
type: string
|
|
workProvinceId:
|
|
type: integer
|
|
workRegion:
|
|
type: string
|
|
workSalary:
|
|
type: string
|
|
workStartedAt:
|
|
format: date
|
|
type: string
|
|
required:
|
|
- bornAt
|
|
- bornPlace
|
|
- branchId
|
|
- customerName
|
|
- customerSurname
|
|
- education
|
|
- loanType
|
|
- marriageStatus
|
|
- passportAddress
|
|
- passportFour
|
|
- passportGivenAt
|
|
- passportGivenBy
|
|
- passportId
|
|
- passportOne
|
|
- passportSerie
|
|
- passportThree
|
|
- passportTwo
|
|
- phone
|
|
- realAddress
|
|
- region
|
|
type: object
|
|
loanpaidletter.CreateLoanPaidLetterDTO:
|
|
properties:
|
|
bornAt:
|
|
type: string
|
|
branchId:
|
|
type: integer
|
|
customerName:
|
|
type: string
|
|
customerPatronicName:
|
|
type: string
|
|
customerSurname:
|
|
type: string
|
|
loanAmount:
|
|
type: string
|
|
loanContractDate:
|
|
type: string
|
|
loanContractNumber:
|
|
type: string
|
|
loanFile:
|
|
type: string
|
|
loanReason:
|
|
type: string
|
|
notes:
|
|
type: string
|
|
passportId:
|
|
type: string
|
|
passportSerie:
|
|
type: string
|
|
phone:
|
|
type: string
|
|
region:
|
|
type: string
|
|
status:
|
|
type: string
|
|
uniqueId:
|
|
type: string
|
|
userId:
|
|
type: integer
|
|
required:
|
|
- branchId
|
|
- customerName
|
|
- customerSurname
|
|
- passportId
|
|
- passportSerie
|
|
- phone
|
|
- region
|
|
type: object
|
|
loanpaidletter.UpdateLoanPaidLetterDTO:
|
|
properties:
|
|
bornAt:
|
|
type: string
|
|
branchId:
|
|
type: integer
|
|
customerName:
|
|
type: string
|
|
customerPatronicName:
|
|
type: string
|
|
customerSurname:
|
|
type: string
|
|
loanAmount:
|
|
type: string
|
|
loanContractDate:
|
|
type: string
|
|
loanContractNumber:
|
|
type: string
|
|
loanFile:
|
|
type: string
|
|
loanReason:
|
|
type: string
|
|
notes:
|
|
type: string
|
|
passportId:
|
|
type: string
|
|
passportSerie:
|
|
type: string
|
|
phone:
|
|
type: string
|
|
region:
|
|
type: string
|
|
status:
|
|
type: string
|
|
uniqueId:
|
|
type: string
|
|
userId:
|
|
type: integer
|
|
required:
|
|
- branchId
|
|
- customerName
|
|
- customerSurname
|
|
- passportId
|
|
- passportSerie
|
|
- phone
|
|
- region
|
|
type: object
|
|
loansdocument.CreateLoanDocumentDTO:
|
|
properties:
|
|
active:
|
|
type: boolean
|
|
name:
|
|
type: string
|
|
value:
|
|
type: string
|
|
required:
|
|
- name
|
|
- value
|
|
type: object
|
|
loansdocument.UpdateLoanDocumentActiveDTO:
|
|
properties:
|
|
active:
|
|
type: boolean
|
|
type: object
|
|
loansdocument.UpdateLoanDocumentDTO:
|
|
properties:
|
|
active:
|
|
type: boolean
|
|
name:
|
|
type: string
|
|
value:
|
|
type: string
|
|
required:
|
|
- name
|
|
- value
|
|
type: object
|
|
loansrepayment.CreateLoanRepaymentDTO:
|
|
properties:
|
|
accountNumber:
|
|
type: string
|
|
passportId:
|
|
type: string
|
|
passportSerie:
|
|
type: string
|
|
userId:
|
|
type: integer
|
|
required:
|
|
- accountNumber
|
|
- passportId
|
|
- passportSerie
|
|
- userId
|
|
type: object
|
|
loansrepayment.UpdateLoanRepaymentDTO:
|
|
properties:
|
|
accountNumber:
|
|
type: string
|
|
passportId:
|
|
type: string
|
|
passportSerie:
|
|
type: string
|
|
userId:
|
|
type: integer
|
|
required:
|
|
- accountNumber
|
|
- passportId
|
|
- passportSerie
|
|
- userId
|
|
type: object
|
|
loantype.CreateLoanTypeDTO:
|
|
properties:
|
|
active:
|
|
type: boolean
|
|
content:
|
|
$ref: '#/definitions/loantype.LocalizedTitle'
|
|
loanTerm:
|
|
type: string
|
|
tax:
|
|
type: number
|
|
title:
|
|
$ref: '#/definitions/loantype.LocalizedTitle'
|
|
required:
|
|
- content
|
|
- loanTerm
|
|
- tax
|
|
- title
|
|
type: object
|
|
loantype.LocalizedTitle:
|
|
properties:
|
|
en:
|
|
type: string
|
|
ru:
|
|
type: string
|
|
tm:
|
|
type: string
|
|
type: object
|
|
loantype.UpdateLoanTypeDTO:
|
|
properties:
|
|
active:
|
|
type: boolean
|
|
content:
|
|
$ref: '#/definitions/loantype.LocalizedTitle'
|
|
loanTerm:
|
|
type: string
|
|
tax:
|
|
type: number
|
|
title:
|
|
$ref: '#/definitions/loantype.LocalizedTitle'
|
|
required:
|
|
- content
|
|
- loanTerm
|
|
- tax
|
|
- title
|
|
type: object
|
|
paymentcard.CreatePaymentCardDTO:
|
|
properties:
|
|
active:
|
|
type: boolean
|
|
notes:
|
|
type: string
|
|
price:
|
|
type: string
|
|
title:
|
|
$ref: '#/definitions/shared.LocalizedText'
|
|
required:
|
|
- price
|
|
- title
|
|
type: object
|
|
paymentcard.UpdatePaymentCardActiveDTO:
|
|
properties:
|
|
active:
|
|
type: boolean
|
|
type: object
|
|
paymentcard.UpdatePaymentCardDTO:
|
|
properties:
|
|
active:
|
|
type: boolean
|
|
notes:
|
|
type: string
|
|
price:
|
|
type: string
|
|
title:
|
|
$ref: '#/definitions/shared.LocalizedText'
|
|
required:
|
|
- price
|
|
- title
|
|
type: object
|
|
paymenthistory.ListPaymentHistoryDTO:
|
|
properties:
|
|
count:
|
|
type: integer
|
|
items:
|
|
items:
|
|
$ref: '#/definitions/paymenthistory.PaymentHistoryItemDTO'
|
|
type: array
|
|
type: object
|
|
paymenthistory.PaymentGatewayDTO:
|
|
properties:
|
|
amountTmt:
|
|
type: number
|
|
amountUsd:
|
|
type: number
|
|
cardholderName:
|
|
type: string
|
|
createdAt:
|
|
type: string
|
|
gatewayResponse:
|
|
type: object
|
|
gatewayStatus:
|
|
type: string
|
|
id:
|
|
type: integer
|
|
maskedPan:
|
|
type: string
|
|
orderId:
|
|
type: integer
|
|
orderNumber:
|
|
type: string
|
|
paid:
|
|
type: boolean
|
|
paymentMonth:
|
|
type: integer
|
|
paymentYear:
|
|
type: integer
|
|
type: object
|
|
paymenthistory.PaymentHistoryDetailDTO:
|
|
properties:
|
|
amountMinor:
|
|
description: AmountMinor is the amount registered with GBÜS, in tetri.
|
|
type: integer
|
|
amountTmt:
|
|
type: number
|
|
amountUsd:
|
|
description: |-
|
|
AmountUsd is amount_tmt converted back at the attempt's own
|
|
exchange_rate_usd - the USD figure the payout was quoted in.
|
|
type: number
|
|
apiClient:
|
|
description: |-
|
|
ApiClient is the branch's GBÜS merchant username for this order type
|
|
(visa/master or sber), ApiClientName the branch setting it comes from
|
|
(billing_visa_master_username or billing_sber_username), and
|
|
Description the text sent with register.do - all as visamasterpay's
|
|
Pay picks them.
|
|
type: string
|
|
apiClientName:
|
|
type: string
|
|
bankFeeTmt:
|
|
type: number
|
|
branchId:
|
|
type: integer
|
|
branchName:
|
|
$ref: '#/definitions/shared.LocalizedText'
|
|
callbackAt:
|
|
type: string
|
|
callbackStatus:
|
|
description: |-
|
|
CallbackStatus is CallbackReceived once GBÜS's redirect reached the
|
|
callback for this attempt, at CallbackAt (its first time); both are
|
|
unset if it never did (e.g. finalized by a /status check instead).
|
|
type: string
|
|
cardholderName:
|
|
description: |-
|
|
CardholderName/MaskedPan come from GBÜS's getOrderStatusExtended
|
|
cardAuthInfo, so they're only known once an attempt has been
|
|
finalized by the callback/status check (unset while pending, and for
|
|
attempts that never reached the card form).
|
|
type: string
|
|
createdAt:
|
|
type: string
|
|
createdById:
|
|
type: integer
|
|
createdByName:
|
|
type: string
|
|
description:
|
|
type: string
|
|
exchangeRateRub:
|
|
type: number
|
|
exchangeRateUsd:
|
|
type: number
|
|
formUrl:
|
|
description: |-
|
|
FormUrl is GBÜS's hosted payment page and SuccessUrl the returnUrl it
|
|
was registered with - set for every attempt register.do accepted,
|
|
finalized ones included (unset if registration failed).
|
|
type: string
|
|
gatewayReference:
|
|
type: string
|
|
gatewayResponse:
|
|
type: object
|
|
gatewayStatus:
|
|
type: string
|
|
gbusFeeTmt:
|
|
type: number
|
|
id:
|
|
type: integer
|
|
maskedPan:
|
|
type: string
|
|
orderId:
|
|
type: integer
|
|
orderNumber:
|
|
type: string
|
|
orderUniqueId:
|
|
type: string
|
|
paid:
|
|
type: boolean
|
|
passportName:
|
|
type: string
|
|
passportSurname:
|
|
type: string
|
|
paymentPeriod:
|
|
type: string
|
|
successUrl:
|
|
type: string
|
|
totalAmountTmt:
|
|
type: number
|
|
tvebFeeTmt:
|
|
type: number
|
|
tvebFeeUsd:
|
|
type: number
|
|
type:
|
|
type: string
|
|
updatedAt:
|
|
type: string
|
|
userId:
|
|
type: integer
|
|
type: object
|
|
paymenthistory.PaymentHistoryItemDTO:
|
|
properties:
|
|
amountMinor:
|
|
description: AmountMinor is the amount registered with GBÜS, in tetri.
|
|
type: integer
|
|
amountTmt:
|
|
type: number
|
|
amountUsd:
|
|
description: |-
|
|
AmountUsd is amount_tmt converted back at the attempt's own
|
|
exchange_rate_usd - the USD figure the payout was quoted in.
|
|
type: number
|
|
apiClient:
|
|
description: |-
|
|
ApiClient is the branch's GBÜS merchant username for this order type
|
|
(visa/master or sber), ApiClientName the branch setting it comes from
|
|
(billing_visa_master_username or billing_sber_username), and
|
|
Description the text sent with register.do - all as visamasterpay's
|
|
Pay picks them.
|
|
type: string
|
|
apiClientName:
|
|
type: string
|
|
bankFeeTmt:
|
|
type: number
|
|
branchId:
|
|
type: integer
|
|
branchName:
|
|
$ref: '#/definitions/shared.LocalizedText'
|
|
callbackAt:
|
|
type: string
|
|
callbackStatus:
|
|
description: |-
|
|
CallbackStatus is CallbackReceived once GBÜS's redirect reached the
|
|
callback for this attempt, at CallbackAt (its first time); both are
|
|
unset if it never did (e.g. finalized by a /status check instead).
|
|
type: string
|
|
cardholderName:
|
|
description: |-
|
|
CardholderName/MaskedPan come from GBÜS's getOrderStatusExtended
|
|
cardAuthInfo, so they're only known once an attempt has been
|
|
finalized by the callback/status check (unset while pending, and for
|
|
attempts that never reached the card form).
|
|
type: string
|
|
createdAt:
|
|
type: string
|
|
createdById:
|
|
type: integer
|
|
createdByName:
|
|
type: string
|
|
description:
|
|
type: string
|
|
exchangeRateRub:
|
|
type: number
|
|
exchangeRateUsd:
|
|
type: number
|
|
formUrl:
|
|
description: |-
|
|
FormUrl is GBÜS's hosted payment page and SuccessUrl the returnUrl it
|
|
was registered with - set for every attempt register.do accepted,
|
|
finalized ones included (unset if registration failed).
|
|
type: string
|
|
gatewayReference:
|
|
type: string
|
|
gatewayStatus:
|
|
type: string
|
|
gbusFeeTmt:
|
|
type: number
|
|
id:
|
|
type: integer
|
|
maskedPan:
|
|
type: string
|
|
orderId:
|
|
type: integer
|
|
orderNumber:
|
|
type: string
|
|
orderUniqueId:
|
|
type: string
|
|
paid:
|
|
type: boolean
|
|
passportName:
|
|
type: string
|
|
passportSurname:
|
|
type: string
|
|
paymentPeriod:
|
|
type: string
|
|
successUrl:
|
|
type: string
|
|
totalAmountTmt:
|
|
type: number
|
|
tvebFeeTmt:
|
|
type: number
|
|
tvebFeeUsd:
|
|
type: number
|
|
type:
|
|
type: string
|
|
updatedAt:
|
|
type: string
|
|
userId:
|
|
type: integer
|
|
type: object
|
|
paymenthistory.PaymentLogDTO:
|
|
properties:
|
|
createdAt:
|
|
type: string
|
|
createdById:
|
|
type: integer
|
|
createdByName:
|
|
type: string
|
|
detail:
|
|
type: object
|
|
id:
|
|
type: integer
|
|
orderId:
|
|
type: integer
|
|
step:
|
|
type: string
|
|
type: object
|
|
paymentsettings.PaymentSettingsDTO:
|
|
properties:
|
|
bankFeeTmt:
|
|
type: number
|
|
gbusFeeTmt:
|
|
type: number
|
|
maxAmountUsd:
|
|
type: number
|
|
sberBankFeeTmt:
|
|
type: number
|
|
tvebFeeUsd:
|
|
type: number
|
|
updatedAt:
|
|
type: string
|
|
type: object
|
|
paymentsettings.UpdatePaymentSettingsDTO:
|
|
properties:
|
|
bankFeeTmt:
|
|
type: number
|
|
gbusFeeTmt:
|
|
type: number
|
|
maxAmountUsd:
|
|
type: number
|
|
sberBankFeeTmt:
|
|
type: number
|
|
tvebFeeUsd:
|
|
type: number
|
|
required:
|
|
- bankFeeTmt
|
|
- gbusFeeTmt
|
|
- maxAmountUsd
|
|
- sberBankFeeTmt
|
|
- tvebFeeUsd
|
|
type: object
|
|
paymenttexts.ListPaymentTextDTO:
|
|
properties:
|
|
count:
|
|
type: integer
|
|
items:
|
|
items:
|
|
$ref: '#/definitions/paymenttexts.PaymentTextDTO'
|
|
type: array
|
|
type: object
|
|
paymenttexts.PaymentTextDTO:
|
|
properties:
|
|
code:
|
|
type: string
|
|
id:
|
|
type: integer
|
|
isActive:
|
|
type: boolean
|
|
name:
|
|
type: string
|
|
text:
|
|
$ref: '#/definitions/shared.LocalizedText'
|
|
updatedAt:
|
|
type: string
|
|
updatedById:
|
|
type: integer
|
|
updatedByName:
|
|
type: string
|
|
type: object
|
|
paymenttexts.UpdatePaymentTextDTO:
|
|
properties:
|
|
isActive:
|
|
type: boolean
|
|
name:
|
|
type: string
|
|
text:
|
|
$ref: '#/definitions/shared.LocalizedText'
|
|
required:
|
|
- isActive
|
|
- name
|
|
type: object
|
|
perm.Code:
|
|
enum:
|
|
- dashboard
|
|
- cards
|
|
- loans
|
|
- users
|
|
- roles
|
|
- branches
|
|
- provinces
|
|
- currencies
|
|
- payment-settings
|
|
- backups
|
|
- activity-logs
|
|
type: string
|
|
x-enum-varnames:
|
|
- Dashboard
|
|
- Cards
|
|
- Loans
|
|
- Users
|
|
- Roles
|
|
- Branches
|
|
- Provinces
|
|
- Currencies
|
|
- PaymentSettings
|
|
- Backups
|
|
- ActivityLogs
|
|
province.CreateProvinceDTO:
|
|
properties:
|
|
active:
|
|
type: boolean
|
|
name:
|
|
$ref: '#/definitions/province.LocalizedName'
|
|
region:
|
|
$ref: '#/definitions/province.LocalizedName'
|
|
required:
|
|
- name
|
|
- region
|
|
type: object
|
|
province.LocalizedName:
|
|
properties:
|
|
en:
|
|
type: string
|
|
ru:
|
|
type: string
|
|
tm:
|
|
type: string
|
|
type: object
|
|
province.UpdateProvinceDTO:
|
|
properties:
|
|
active:
|
|
type: boolean
|
|
name:
|
|
$ref: '#/definitions/province.LocalizedName'
|
|
region:
|
|
$ref: '#/definitions/province.LocalizedName'
|
|
required:
|
|
- name
|
|
- region
|
|
type: object
|
|
rbac.Scope:
|
|
enum:
|
|
- own
|
|
- branch
|
|
- all
|
|
type: string
|
|
x-enum-comments:
|
|
ScopeAll: every branch
|
|
ScopeBranch: records of the caller's branch_user branches
|
|
ScopeOwn: only records the caller owns (clients)
|
|
x-enum-descriptions:
|
|
- only records the caller owns (clients)
|
|
- records of the caller's branch_user branches
|
|
- every branch
|
|
x-enum-varnames:
|
|
- ScopeOwn
|
|
- ScopeBranch
|
|
- ScopeAll
|
|
reasonscard.CreateReasonCardDTO:
|
|
properties:
|
|
active:
|
|
type: boolean
|
|
notes:
|
|
type: string
|
|
price:
|
|
type: string
|
|
title:
|
|
$ref: '#/definitions/shared.LocalizedText'
|
|
required:
|
|
- price
|
|
- title
|
|
type: object
|
|
reasonscard.UpdateReasonCardDTO:
|
|
properties:
|
|
active:
|
|
type: boolean
|
|
notes:
|
|
type: string
|
|
price:
|
|
type: string
|
|
title:
|
|
$ref: '#/definitions/shared.LocalizedText'
|
|
required:
|
|
- price
|
|
- title
|
|
type: object
|
|
role.CreateRoleDTO:
|
|
properties:
|
|
code:
|
|
maxLength: 64
|
|
type: string
|
|
name:
|
|
type: string
|
|
permissions:
|
|
items:
|
|
$ref: '#/definitions/perm.Code'
|
|
type: array
|
|
scope:
|
|
allOf:
|
|
- $ref: '#/definitions/rbac.Scope'
|
|
enum:
|
|
- own
|
|
- branch
|
|
- all
|
|
required:
|
|
- code
|
|
- name
|
|
- permissions
|
|
- scope
|
|
type: object
|
|
role.UpdateRoleDTO:
|
|
properties:
|
|
name:
|
|
type: string
|
|
permissions:
|
|
items:
|
|
$ref: '#/definitions/perm.Code'
|
|
type: array
|
|
scope:
|
|
allOf:
|
|
- $ref: '#/definitions/rbac.Scope'
|
|
enum:
|
|
- own
|
|
- branch
|
|
- all
|
|
required:
|
|
- name
|
|
- permissions
|
|
- scope
|
|
type: object
|
|
shared.LocalizedText:
|
|
properties:
|
|
en:
|
|
type: string
|
|
ru:
|
|
type: string
|
|
tm:
|
|
type: string
|
|
type: object
|
|
sysstats.CPU:
|
|
properties:
|
|
cores:
|
|
type: integer
|
|
loadAvg:
|
|
items:
|
|
type: number
|
|
type: array
|
|
usagePercent:
|
|
type: number
|
|
type: object
|
|
sysstats.Disk:
|
|
properties:
|
|
freeBytes:
|
|
type: integer
|
|
path:
|
|
type: string
|
|
totalBytes:
|
|
type: integer
|
|
usagePercent:
|
|
type: number
|
|
usedBytes:
|
|
type: integer
|
|
type: object
|
|
sysstats.Memory:
|
|
properties:
|
|
availableBytes:
|
|
type: integer
|
|
limitBytes:
|
|
description: LimitBytes is the container (cgroup) memory limit, nil when unlimited.
|
|
type: integer
|
|
swapTotalBytes:
|
|
type: integer
|
|
swapUsedBytes:
|
|
type: integer
|
|
totalBytes:
|
|
type: integer
|
|
usagePercent:
|
|
type: number
|
|
usedBytes:
|
|
type: integer
|
|
type: object
|
|
sysstats.Process:
|
|
properties:
|
|
goroutines:
|
|
type: integer
|
|
heapAllocBytes:
|
|
type: integer
|
|
numGc:
|
|
type: integer
|
|
sysBytes:
|
|
type: integer
|
|
uptimeSeconds:
|
|
type: integer
|
|
type: object
|
|
sysstats.Stats:
|
|
properties:
|
|
arch:
|
|
type: string
|
|
collectedAt:
|
|
type: string
|
|
cpu:
|
|
$ref: '#/definitions/sysstats.CPU'
|
|
disks:
|
|
items:
|
|
$ref: '#/definitions/sysstats.Disk'
|
|
type: array
|
|
goVersion:
|
|
type: string
|
|
hostUptimeSeconds:
|
|
type: integer
|
|
hostname:
|
|
type: string
|
|
memory:
|
|
$ref: '#/definitions/sysstats.Memory'
|
|
os:
|
|
type: string
|
|
process:
|
|
$ref: '#/definitions/sysstats.Process'
|
|
type: object
|
|
user.CreateUserDTO:
|
|
properties:
|
|
active:
|
|
type: boolean
|
|
avatar:
|
|
type: string
|
|
email:
|
|
type: string
|
|
firstName:
|
|
type: string
|
|
lastName:
|
|
type: string
|
|
name:
|
|
type: string
|
|
password:
|
|
type: string
|
|
phone:
|
|
type: string
|
|
role:
|
|
description: Role is a role code; RoleId wins when both are sent. Neither
|
|
→ "user".
|
|
type: string
|
|
roleId:
|
|
type: integer
|
|
username:
|
|
type: string
|
|
required:
|
|
- email
|
|
- name
|
|
- password
|
|
- username
|
|
type: object
|
|
user.SetUserRoleDTO:
|
|
properties:
|
|
roleId:
|
|
type: integer
|
|
required:
|
|
- roleId
|
|
type: object
|
|
user.UpdateUserDTO:
|
|
properties:
|
|
active:
|
|
type: boolean
|
|
avatar:
|
|
type: string
|
|
email:
|
|
type: string
|
|
firstName:
|
|
type: string
|
|
lastName:
|
|
type: string
|
|
name:
|
|
type: string
|
|
phone:
|
|
type: string
|
|
role:
|
|
description: |-
|
|
Role is a role code; RoleId wins when both are sent. Neither keeps
|
|
the user's current role.
|
|
type: string
|
|
roleId:
|
|
type: integer
|
|
username:
|
|
type: string
|
|
required:
|
|
- email
|
|
- name
|
|
- username
|
|
type: object
|
|
userbranch.CreateUserBranchDTO:
|
|
properties:
|
|
branchId:
|
|
type: integer
|
|
userId:
|
|
type: integer
|
|
required:
|
|
- branchId
|
|
- userId
|
|
type: object
|
|
visamaster.CreateVisaMasterPaymentOrderDTO:
|
|
properties:
|
|
address:
|
|
type: string
|
|
amountUsd:
|
|
type: number
|
|
branchId:
|
|
type: integer
|
|
documents:
|
|
type: object
|
|
email:
|
|
type: string
|
|
notes:
|
|
type: string
|
|
paid:
|
|
type: boolean
|
|
passportName:
|
|
type: string
|
|
passportSurname:
|
|
type: string
|
|
paymentReciever:
|
|
items:
|
|
type: object
|
|
type: array
|
|
phone:
|
|
type: string
|
|
recieverDepositAccount:
|
|
type: string
|
|
recieverFullName:
|
|
type: string
|
|
recieverPassportNumber:
|
|
type: string
|
|
recieverPassportSerie:
|
|
type: string
|
|
region:
|
|
type: string
|
|
senderDatas:
|
|
type: object
|
|
senderDepositAccount:
|
|
type: string
|
|
senderFullName:
|
|
type: string
|
|
senderPassportNumber:
|
|
type: string
|
|
senderPassportSerie:
|
|
type: string
|
|
status:
|
|
type: string
|
|
type:
|
|
type: string
|
|
uniqueId:
|
|
type: string
|
|
userId:
|
|
type: integer
|
|
required:
|
|
- address
|
|
- branchId
|
|
- passportName
|
|
- passportSurname
|
|
- phone
|
|
- region
|
|
- senderDepositAccount
|
|
- senderFullName
|
|
- senderPassportNumber
|
|
- senderPassportSerie
|
|
type: object
|
|
visamaster.UpdateVisaMasterPaymentOrderDTO:
|
|
properties:
|
|
address:
|
|
type: string
|
|
amountUsd:
|
|
type: number
|
|
branchId:
|
|
type: integer
|
|
documents:
|
|
type: object
|
|
email:
|
|
type: string
|
|
notes:
|
|
type: string
|
|
paid:
|
|
type: boolean
|
|
passportName:
|
|
type: string
|
|
passportSurname:
|
|
type: string
|
|
paymentReciever:
|
|
items:
|
|
type: object
|
|
type: array
|
|
phone:
|
|
type: string
|
|
recieverDepositAccount:
|
|
type: string
|
|
recieverFullName:
|
|
type: string
|
|
recieverPassportNumber:
|
|
type: string
|
|
recieverPassportSerie:
|
|
type: string
|
|
region:
|
|
type: string
|
|
senderDatas:
|
|
type: object
|
|
senderDepositAccount:
|
|
type: string
|
|
senderFullName:
|
|
type: string
|
|
senderPassportNumber:
|
|
type: string
|
|
senderPassportSerie:
|
|
type: string
|
|
status:
|
|
type: string
|
|
type:
|
|
type: string
|
|
uniqueId:
|
|
type: string
|
|
userId:
|
|
type: integer
|
|
required:
|
|
- address
|
|
- branchId
|
|
- passportName
|
|
- passportSurname
|
|
- phone
|
|
- region
|
|
- senderDepositAccount
|
|
- senderFullName
|
|
- senderPassportNumber
|
|
- senderPassportSerie
|
|
type: object
|
|
visamasteractions.ListOrderActionDTO:
|
|
properties:
|
|
actions:
|
|
items:
|
|
$ref: '#/definitions/visamasteractions.OrderActionDTO'
|
|
type: array
|
|
count:
|
|
type: integer
|
|
type: object
|
|
visamasteractions.OrderActionDTO:
|
|
properties:
|
|
createdAt:
|
|
type: string
|
|
createdById:
|
|
type: integer
|
|
createdByName:
|
|
type: string
|
|
id:
|
|
type: integer
|
|
name:
|
|
type: string
|
|
nameLabel:
|
|
$ref: '#/definitions/shared.LocalizedText'
|
|
orderId:
|
|
type: integer
|
|
status:
|
|
type: string
|
|
target:
|
|
$ref: '#/definitions/visamasteractions.OrderActionTargetDTO'
|
|
type: object
|
|
visamasteractions.OrderActionDetailDTO:
|
|
properties:
|
|
changes:
|
|
type: object
|
|
createdAt:
|
|
type: string
|
|
createdById:
|
|
type: integer
|
|
createdByName:
|
|
type: string
|
|
exception:
|
|
type: string
|
|
id:
|
|
type: integer
|
|
name:
|
|
type: string
|
|
nameLabel:
|
|
$ref: '#/definitions/shared.LocalizedText'
|
|
orderId:
|
|
type: integer
|
|
original:
|
|
type: object
|
|
status:
|
|
type: string
|
|
target:
|
|
$ref: '#/definitions/visamasteractions.OrderActionTargetDTO'
|
|
type: object
|
|
visamasteractions.OrderActionTargetDTO:
|
|
properties:
|
|
id:
|
|
type: integer
|
|
label:
|
|
$ref: '#/definitions/shared.LocalizedText'
|
|
type:
|
|
type: string
|
|
uniqueId:
|
|
type: string
|
|
type: object
|
|
visamasterpay.CallbackResultDTO:
|
|
properties:
|
|
data:
|
|
type: string
|
|
paid:
|
|
type: boolean
|
|
type: object
|
|
visamasterpay.PayOrderDTO:
|
|
properties:
|
|
amountTmt:
|
|
type: number
|
|
paymentPeriod:
|
|
format: date
|
|
type: string
|
|
type: object
|
|
visamasterpay.PaymentInitResultDTO:
|
|
properties:
|
|
formUrl:
|
|
type: string
|
|
orderId:
|
|
type: integer
|
|
orderNumber:
|
|
type: string
|
|
paymentId:
|
|
type: integer
|
|
successUrl:
|
|
type: string
|
|
type: object
|
|
visamasterpay.PaymentQuoteDTO:
|
|
properties:
|
|
bankFeeTmt:
|
|
type: number
|
|
exchangeRateRub:
|
|
type: number
|
|
exchangeRateUsd:
|
|
type: number
|
|
gbusFeeTmt:
|
|
type: number
|
|
maxAmountTmt:
|
|
type: number
|
|
payableToday:
|
|
type: boolean
|
|
tvebFeeTmt:
|
|
type: number
|
|
tvebFeeUsd:
|
|
type: number
|
|
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
|
|
gatewayResponse:
|
|
type: object
|
|
gatewayStatus:
|
|
type: string
|
|
gbusFeeTmt:
|
|
type: number
|
|
id:
|
|
type: integer
|
|
orderId:
|
|
type: integer
|
|
orderNumber:
|
|
type: string
|
|
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: {}
|
|
description: 'Online payment system admin API. Localized fields ({en, ru, tm} objects)
|
|
come back as a plain string in the language of the `lang` query parameter: tm,
|
|
ru or en (default tm), falling back to tm, ru, en when that translation is empty.
|
|
lang=all returns the full {en, ru, tm} objects (for edit forms); any other value
|
|
is 400.'
|
|
title: Service APIs
|
|
version: "1.0"
|
|
paths:
|
|
/activity-logs:
|
|
get:
|
|
description: Returns a paginated audit trail of user actions (create/update/delete).
|
|
Each log includes the actor's username and role code.
|
|
parameters:
|
|
- description: Filter by user ID
|
|
in: query
|
|
name: user_id
|
|
type: integer
|
|
- description: Filter by module (e.g. cards, branch-users)
|
|
in: query
|
|
name: module
|
|
type: string
|
|
- description: Filter by action (create, update, delete)
|
|
in: query
|
|
name: action
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List activity logs
|
|
tags:
|
|
- activity-logs
|
|
/activity-logs/{id}:
|
|
get:
|
|
description: Returns a single activity log entry
|
|
parameters:
|
|
- description: Activity log ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get activity log by ID
|
|
tags:
|
|
- activity-logs
|
|
/backups:
|
|
get:
|
|
description: Returns paginated SQL backup files
|
|
parameters:
|
|
- description: Filter by file name
|
|
in: query
|
|
name: search
|
|
type: string
|
|
- description: Filter by status (pending, completed, failed)
|
|
in: query
|
|
name: status
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List backups
|
|
tags:
|
|
- backups
|
|
post:
|
|
description: Runs pg_dump and stores the resulting .sql file
|
|
parameters:
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create SQL backup
|
|
tags:
|
|
- backups
|
|
/backups/{id}:
|
|
delete:
|
|
description: Deletes a backup record and its SQL file
|
|
parameters:
|
|
- description: Backup ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Delete backup
|
|
tags:
|
|
- backups
|
|
get:
|
|
description: Returns a single backup record
|
|
parameters:
|
|
- description: Backup ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get backup by ID
|
|
tags:
|
|
- backups
|
|
/backups/{id}/download:
|
|
get:
|
|
description: Downloads the .sql dump for a completed backup
|
|
parameters:
|
|
- description: Backup ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/sql
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
type: file
|
|
"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: Download backup SQL file
|
|
tags:
|
|
- backups
|
|
/branch-users:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: 'Assigns a user to a branch. Users and branches are many-to-many:
|
|
a user keeps their other branch assignments, and re-assigning the same pair
|
|
is a no-op.'
|
|
parameters:
|
|
- description: Branch-user payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/userbranch.CreateUserBranchDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Assign user to branch
|
|
tags:
|
|
- branch-users
|
|
/branch-users/{id}:
|
|
delete:
|
|
description: Deletes a branch-user assignment
|
|
parameters:
|
|
- description: Branch-user ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Remove user from branch
|
|
tags:
|
|
- branch-users
|
|
/branches:
|
|
get:
|
|
description: Returns paginated branches with optional filters
|
|
parameters:
|
|
- description: Filter by province ID
|
|
in: query
|
|
name: province_id
|
|
type: integer
|
|
- description: Filter by province name (en, ru, tm)
|
|
in: query
|
|
name: province_name
|
|
type: string
|
|
- description: Filter by branch name (en, ru, tm)
|
|
in: query
|
|
name: branch_name
|
|
type: string
|
|
- description: Filter by unique code
|
|
in: query
|
|
name: unique_code
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List branches
|
|
tags:
|
|
- branches
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Creates a new branch
|
|
parameters:
|
|
- description: Branch payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/branches.CreateBranchDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create branch
|
|
tags:
|
|
- branches
|
|
/branches/{id}:
|
|
delete:
|
|
description: Deletes a branch
|
|
parameters:
|
|
- description: Branch ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Delete branch
|
|
tags:
|
|
- branches
|
|
get:
|
|
description: Returns a single branch
|
|
parameters:
|
|
- description: Branch ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get branch by ID
|
|
tags:
|
|
- branches
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates an existing branch
|
|
parameters:
|
|
- description: Branch ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Branch payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/branches.UpdateBranchDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Update branch
|
|
tags:
|
|
- branches
|
|
/branches/etraps:
|
|
get:
|
|
description: Returns provinces (etraps) for the selected region; pick id as
|
|
provinceId
|
|
parameters:
|
|
- description: Region name (en, ru or tm)
|
|
in: query
|
|
name: region
|
|
required: true
|
|
type: string
|
|
- default: true
|
|
description: Only active etraps
|
|
in: query
|
|
name: active
|
|
type: boolean
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List etraps by region for branch create
|
|
tags:
|
|
- branches
|
|
/branches/regions:
|
|
get:
|
|
description: Returns distinct regions from provinces (use before selecting etrap/provinceId)
|
|
parameters:
|
|
- default: true
|
|
description: Only active provinces
|
|
in: query
|
|
name: active
|
|
type: boolean
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List regions for branch create
|
|
tags:
|
|
- branches
|
|
/card-balances:
|
|
get:
|
|
description: Returns paginated card balance checks with optional filters
|
|
parameters:
|
|
- description: Filter by status
|
|
in: query
|
|
name: status
|
|
type: string
|
|
- description: Filter by passport number
|
|
in: query
|
|
name: passport_number
|
|
type: string
|
|
- description: Filter by creator user ID
|
|
in: query
|
|
name: created_by
|
|
type: integer
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List card balances
|
|
tags:
|
|
- card-balances
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Creates a new card balance check record
|
|
parameters:
|
|
- description: Card balance payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/cardbalance.CreateCardBalanceDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create card balance
|
|
tags:
|
|
- card-balances
|
|
/card-balances/{id}:
|
|
delete:
|
|
description: Soft-deletes a card balance check record
|
|
parameters:
|
|
- description: Card balance ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Delete card balance
|
|
tags:
|
|
- card-balances
|
|
get:
|
|
description: Returns a single card balance check
|
|
parameters:
|
|
- description: Card balance ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get card balance by ID
|
|
tags:
|
|
- card-balances
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates an existing card balance check record
|
|
parameters:
|
|
- description: Card balance ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Card balance payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/cardbalance.UpdateCardBalanceDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Update card balance
|
|
tags:
|
|
- card-balances
|
|
/card-orders:
|
|
get:
|
|
description: Returns paginated card orders with optional filters
|
|
parameters:
|
|
- description: Filter by status
|
|
in: query
|
|
name: status
|
|
type: string
|
|
- description: Filter by branch ID
|
|
in: query
|
|
name: branch_id
|
|
type: integer
|
|
- description: Filter by user ID
|
|
in: query
|
|
name: user_id
|
|
type: integer
|
|
- description: Filter by card state ID
|
|
in: query
|
|
name: card_state_id
|
|
type: integer
|
|
- description: Filter by card type ID
|
|
in: query
|
|
name: card_type_id
|
|
type: integer
|
|
- description: Filter by region
|
|
in: query
|
|
name: region
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List card orders
|
|
tags:
|
|
- card-orders
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Creates a new card order
|
|
parameters:
|
|
- description: Card order payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/cardorder.CreateCardOrderDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create card order
|
|
tags:
|
|
- card-orders
|
|
/card-orders/{id}:
|
|
delete:
|
|
description: Deletes a card order
|
|
parameters:
|
|
- description: Card order ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Delete card order
|
|
tags:
|
|
- card-orders
|
|
get:
|
|
description: Returns a single card order
|
|
parameters:
|
|
- description: Card order ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get card order by ID
|
|
tags:
|
|
- card-orders
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates an existing card order
|
|
parameters:
|
|
- description: Card order ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Card order payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/cardorder.UpdateCardOrderDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Update card order
|
|
tags:
|
|
- card-orders
|
|
/card-pin-orders:
|
|
get:
|
|
description: Returns paginated card pin orders with optional filters
|
|
parameters:
|
|
- description: Filter by status
|
|
in: query
|
|
name: status
|
|
type: string
|
|
- description: Filter by branch ID
|
|
in: query
|
|
name: branch_id
|
|
type: integer
|
|
- description: Filter by user ID
|
|
in: query
|
|
name: user_id
|
|
type: integer
|
|
- description: Filter by card type ID
|
|
in: query
|
|
name: card_type_id
|
|
type: integer
|
|
- description: Filter by region
|
|
in: query
|
|
name: region
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List card pin orders
|
|
tags:
|
|
- card-pin-orders
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Creates a new card pin order
|
|
parameters:
|
|
- description: Card pin order payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/cardpinorders.CreateCardPinOrderDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create card pin order
|
|
tags:
|
|
- card-pin-orders
|
|
/card-pin-orders/{id}:
|
|
delete:
|
|
description: Deletes a card pin order
|
|
parameters:
|
|
- description: Card pin order ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Delete card pin order
|
|
tags:
|
|
- card-pin-orders
|
|
get:
|
|
description: Returns a single card pin order
|
|
parameters:
|
|
- description: Card pin order ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get card pin order by ID
|
|
tags:
|
|
- card-pin-orders
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates an existing card pin order
|
|
parameters:
|
|
- description: Card pin order ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Card pin order payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/cardpinorders.UpdateCardPinOrderDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Update card pin order
|
|
tags:
|
|
- card-pin-orders
|
|
/card-rekwizit-orders:
|
|
get:
|
|
description: Returns paginated card rekwizit (card details) orders with optional
|
|
filters
|
|
parameters:
|
|
- description: Filter by status
|
|
in: query
|
|
name: status
|
|
type: string
|
|
- description: Filter by branch ID
|
|
in: query
|
|
name: branch_id
|
|
type: integer
|
|
- description: Filter by user ID
|
|
in: query
|
|
name: user_id
|
|
type: integer
|
|
- description: Filter by card type ID
|
|
in: query
|
|
name: card_type_id
|
|
type: integer
|
|
- description: Filter by region
|
|
in: query
|
|
name: region
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List card rekwizit orders
|
|
tags:
|
|
- card-rekwizit-orders
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Creates a new card rekwizit (card details) order
|
|
parameters:
|
|
- description: Card rekwizit order payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/cardrekwizit.CreateCardRekwizitOrderDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create card rekwizit order
|
|
tags:
|
|
- card-rekwizit-orders
|
|
/card-rekwizit-orders/{id}:
|
|
delete:
|
|
description: Deletes a card rekwizit order
|
|
parameters:
|
|
- description: Card rekwizit order ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Delete card rekwizit order
|
|
tags:
|
|
- card-rekwizit-orders
|
|
get:
|
|
description: Returns a single card rekwizit order
|
|
parameters:
|
|
- description: Card rekwizit order ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get card rekwizit order by ID
|
|
tags:
|
|
- card-rekwizit-orders
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates an existing card rekwizit order
|
|
parameters:
|
|
- description: Card rekwizit order ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Card rekwizit order payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/cardrekwizit.UpdateCardRekwizitOrderDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Update card rekwizit order
|
|
tags:
|
|
- card-rekwizit-orders
|
|
/cards:
|
|
get:
|
|
description: Returns paginated cards with optional filters
|
|
parameters:
|
|
- description: Filter by user ID
|
|
in: query
|
|
name: user_id
|
|
type: integer
|
|
- description: Filter by card type
|
|
in: query
|
|
name: type
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List cards
|
|
tags:
|
|
- cards
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Creates a new card
|
|
parameters:
|
|
- description: Card payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/cards.CreateCardDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create card
|
|
tags:
|
|
- cards
|
|
/cards/{id}:
|
|
delete:
|
|
description: Deletes a card
|
|
parameters:
|
|
- description: Card ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Delete card
|
|
tags:
|
|
- cards
|
|
get:
|
|
description: Returns a single card
|
|
parameters:
|
|
- description: Card ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get card by ID
|
|
tags:
|
|
- cards
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates an existing card
|
|
parameters:
|
|
- description: Card ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Card payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/cards.UpdateCardDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Update card
|
|
tags:
|
|
- cards
|
|
/currencies:
|
|
get:
|
|
description: Returns paginated currency exchange rates
|
|
parameters:
|
|
- description: Filter by currency code
|
|
in: query
|
|
name: search
|
|
type: string
|
|
- description: Filter by source currency
|
|
in: query
|
|
name: currency_from
|
|
type: string
|
|
- description: Filter by target currency
|
|
in: query
|
|
name: currency_to
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/currency.ListCurrencyDTO'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List currency rates
|
|
tags:
|
|
- currencies
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Creates a new currency exchange rate
|
|
parameters:
|
|
- description: Currency rate payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/currency.CreateCurrencyDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/currency.CurrencyDTO'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"409":
|
|
description: Conflict
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create currency rate
|
|
tags:
|
|
- currencies
|
|
/currencies/{id}:
|
|
delete:
|
|
description: Deletes a currency exchange rate
|
|
parameters:
|
|
- description: Currency ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Delete currency rate
|
|
tags:
|
|
- currencies
|
|
get:
|
|
description: Returns a single currency exchange rate
|
|
parameters:
|
|
- description: Currency ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/currency.CurrencyDTO'
|
|
"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: Get currency rate by ID
|
|
tags:
|
|
- currencies
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates an existing currency exchange rate
|
|
parameters:
|
|
- description: Currency ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Currency rate payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/currency.UpdateCurrencyDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/currency.CurrencyDTO'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"404":
|
|
description: Not Found
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"409":
|
|
description: Conflict
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Update currency rate
|
|
tags:
|
|
- currencies
|
|
/dashboard/analytics/backlog:
|
|
get:
|
|
description: Open (unhandled) orders per order type aged under 1 day / 1-3 days
|
|
/ over 3 days, the oldest open order, and the average processing time of orders
|
|
finished in range; plus exact visa/master payout timing from the payment log.
|
|
Order types are limited to the modules the caller can open.
|
|
parameters:
|
|
- default: Jan 1 of current year
|
|
description: Start date YYYY-MM-DD (inclusive)
|
|
in: query
|
|
name: from
|
|
type: string
|
|
- default: today
|
|
description: End date YYYY-MM-DD (inclusive)
|
|
in: query
|
|
name: to
|
|
type: string
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: 'Dashboard analytics: backlog'
|
|
tags:
|
|
- dashboard-analytics
|
|
/dashboard/analytics/branches:
|
|
get:
|
|
description: Per-branch leaderboard (orders per type, open/approved/rejected,
|
|
approval rate, average processing hours) and order counts per region, for
|
|
orders created in range.
|
|
parameters:
|
|
- default: Jan 1 of current year
|
|
description: Start date YYYY-MM-DD (inclusive)
|
|
in: query
|
|
name: from
|
|
type: string
|
|
- default: today
|
|
description: End date YYYY-MM-DD (inclusive)
|
|
in: query
|
|
name: to
|
|
type: string
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: 'Dashboard analytics: branches'
|
|
tags:
|
|
- dashboard-analytics
|
|
/dashboard/analytics/customers:
|
|
get:
|
|
description: Loan applicants in range by age group, education, marriage status
|
|
and number of guarantors, each with its approval rate. Needs the loans permission.
|
|
parameters:
|
|
- default: Jan 1 of current year
|
|
description: Start date YYYY-MM-DD (inclusive)
|
|
in: query
|
|
name: from
|
|
type: string
|
|
- default: today
|
|
description: End date YYYY-MM-DD (inclusive)
|
|
in: query
|
|
name: to
|
|
type: string
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: 'Dashboard analytics: customers'
|
|
tags:
|
|
- dashboard-analytics
|
|
/dashboard/analytics/finance:
|
|
get:
|
|
description: Successful visa/master payouts (amount, bank/GBÜS/TVEB fees), gateway
|
|
status breakdown and success rate, monthly payout totals, and the total loan
|
|
amount requested. Payouts need the cards permission, the loan total the loans
|
|
permission.
|
|
parameters:
|
|
- default: Jan 1 of current year
|
|
description: Start date YYYY-MM-DD (inclusive)
|
|
in: query
|
|
name: from
|
|
type: string
|
|
- default: today
|
|
description: End date YYYY-MM-DD (inclusive)
|
|
in: query
|
|
name: to
|
|
type: string
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: 'Dashboard analytics: finance'
|
|
tags:
|
|
- dashboard-analytics
|
|
/dashboard/analytics/products:
|
|
get:
|
|
description: Loan orders by source (web/mobile) and loan type, card orders by
|
|
card type, and paid vs unpaid card orders, for orders created in range.
|
|
parameters:
|
|
- default: Jan 1 of current year
|
|
description: Start date YYYY-MM-DD (inclusive)
|
|
in: query
|
|
name: from
|
|
type: string
|
|
- default: today
|
|
description: End date YYYY-MM-DD (inclusive)
|
|
in: query
|
|
name: to
|
|
type: string
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: 'Dashboard analytics: products'
|
|
tags:
|
|
- dashboard-analytics
|
|
/dashboard/analytics/system:
|
|
get:
|
|
description: Registration funnel (all-scope callers with the users permission),
|
|
operator activity and error rate per module (activity-logs permission), order
|
|
peak hours heatmap in Ashgabat time, and card balance check stats (cards permission).
|
|
Widgets the caller cannot see are null or empty.
|
|
parameters:
|
|
- default: Jan 1 of current year
|
|
description: Start date YYYY-MM-DD (inclusive)
|
|
in: query
|
|
name: from
|
|
type: string
|
|
- default: today
|
|
description: End date YYYY-MM-DD (inclusive)
|
|
in: query
|
|
name: to
|
|
type: string
|
|
- default: 10
|
|
description: Number of operators to return
|
|
in: query
|
|
name: operator_limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: 'Dashboard analytics: system'
|
|
tags:
|
|
- dashboard-analytics
|
|
/dashboard/overview:
|
|
get:
|
|
description: Returns the KPI cards, loan/card trend, loan status breakdown,
|
|
weekly order counts, and recent activity feed for the admin dashboard
|
|
parameters:
|
|
- description: Year for the monthly trend chart
|
|
in: query
|
|
name: year
|
|
type: integer
|
|
- default: 10
|
|
description: Number of recent activity items to return
|
|
in: query
|
|
name: recent_limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Dashboard overview
|
|
tags:
|
|
- dashboard
|
|
/dashboard/server-stats:
|
|
get:
|
|
description: Returns host CPU, RAM and disk usage plus the API process's own
|
|
memory and uptime. CPU usage is sampled over ~250ms; host fields are null
|
|
when the OS cannot report them.
|
|
parameters:
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
allOf:
|
|
- $ref: '#/definitions/appresult.AppSuccess'
|
|
- properties:
|
|
data:
|
|
$ref: '#/definitions/sysstats.Stats'
|
|
type: object
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Server statistics
|
|
tags:
|
|
- dashboard
|
|
/file:
|
|
post:
|
|
consumes:
|
|
- multipart/form-data
|
|
description: file upload
|
|
parameters:
|
|
- description: this is a test file
|
|
in: formData
|
|
name: file
|
|
required: true
|
|
type: file
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
tags:
|
|
- file-upload
|
|
/file/{file_name}:
|
|
get:
|
|
description: download file by object name (public; not under /api/admin)
|
|
parameters:
|
|
- description: object name
|
|
in: path
|
|
name: file_name
|
|
required: true
|
|
type: string
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/octet-stream
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
type: file
|
|
"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'
|
|
tags:
|
|
- file-upload
|
|
/file/{id}:
|
|
delete:
|
|
description: remove file
|
|
parameters:
|
|
- description: object name
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: string
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
tags:
|
|
- file-upload
|
|
/forgot-password:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Finds the user by name and sends an SMS verification code
|
|
parameters:
|
|
- description: Forgot password payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/auth.ForgotPasswordDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"404":
|
|
description: Not Found
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
summary: Forgot password
|
|
tags:
|
|
- auth
|
|
/forgot-password/verify:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Confirms the SMS code and sets a new password
|
|
parameters:
|
|
- description: Reset password payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/auth.ResetPasswordDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"404":
|
|
description: Not Found
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
summary: Reset password
|
|
tags:
|
|
- auth
|
|
/loan-orders:
|
|
get:
|
|
description: Returns paginated loan orders created from the web with optional
|
|
filters
|
|
parameters:
|
|
- description: Filter by status
|
|
in: query
|
|
name: status
|
|
type: string
|
|
- description: Filter by branch ID
|
|
in: query
|
|
name: branch_id
|
|
type: integer
|
|
- description: Filter by user ID
|
|
in: query
|
|
name: user_id
|
|
type: integer
|
|
- description: Filter by region
|
|
in: query
|
|
name: region
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List loan orders
|
|
tags:
|
|
- loan-orders
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Creates a new loan order
|
|
parameters:
|
|
- description: Loan order payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/loanorders.CreateLoanOrderDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create loan order
|
|
tags:
|
|
- loan-orders
|
|
/loan-orders/{id}:
|
|
delete:
|
|
description: Deletes a loan order
|
|
parameters:
|
|
- description: Loan order ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Delete loan order
|
|
tags:
|
|
- loan-orders
|
|
get:
|
|
description: Returns a single loan order
|
|
parameters:
|
|
- description: Loan order ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get loan order by ID
|
|
tags:
|
|
- loan-orders
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates an existing loan order
|
|
parameters:
|
|
- description: Loan order ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Loan order payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/loanorders.UpdateLoanOrderDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Update loan order
|
|
tags:
|
|
- loan-orders
|
|
/loan-orders/mobile:
|
|
get:
|
|
description: Returns paginated loan orders created from the mobile app
|
|
parameters:
|
|
- description: Filter by status
|
|
in: query
|
|
name: status
|
|
type: string
|
|
- description: Filter by branch ID
|
|
in: query
|
|
name: branch_id
|
|
type: integer
|
|
- description: Filter by user ID
|
|
in: query
|
|
name: user_id
|
|
type: integer
|
|
- description: Filter by region
|
|
in: query
|
|
name: region
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List mobile loan orders
|
|
tags:
|
|
- loan-orders
|
|
/loan-paid-off-letters:
|
|
get:
|
|
description: Returns paginated loan paid off letters with optional filters
|
|
parameters:
|
|
- description: Filter by passport ID
|
|
in: query
|
|
name: passport_id
|
|
type: string
|
|
- description: Filter by customer name
|
|
in: query
|
|
name: name
|
|
type: string
|
|
- description: Filter by status
|
|
in: query
|
|
name: status
|
|
type: string
|
|
- description: Filter by branch ID
|
|
in: query
|
|
name: branch_id
|
|
type: integer
|
|
- description: Filter by region
|
|
in: query
|
|
name: region
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List loan paid off letters
|
|
tags:
|
|
- loan-paid-off-letters
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Creates a new loan paid off letter
|
|
parameters:
|
|
- description: Loan paid off letter payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/loanpaidletter.CreateLoanPaidLetterDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create loan paid off letter
|
|
tags:
|
|
- loan-paid-off-letters
|
|
/loan-paid-off-letters/{id}:
|
|
delete:
|
|
description: Deletes a loan paid off letter
|
|
parameters:
|
|
- description: Loan paid off letter ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Delete loan paid off letter
|
|
tags:
|
|
- loan-paid-off-letters
|
|
get:
|
|
description: Returns a single loan paid off letter
|
|
parameters:
|
|
- description: Loan paid off letter ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get loan paid off letter by ID
|
|
tags:
|
|
- loan-paid-off-letters
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates an existing loan paid off letter
|
|
parameters:
|
|
- description: Loan paid off letter ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Loan paid off letter payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/loanpaidletter.UpdateLoanPaidLetterDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Update loan paid off letter
|
|
tags:
|
|
- loan-paid-off-letters
|
|
/loan-paid-off-letters/branches:
|
|
get:
|
|
description: Returns branches for the selected province (etrap) id for loan
|
|
paid-off letter forms
|
|
parameters:
|
|
- description: Province ID
|
|
in: query
|
|
name: province_id
|
|
required: true
|
|
type: integer
|
|
- default: true
|
|
description: Only active branches
|
|
in: query
|
|
name: active
|
|
type: boolean
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List branches by province
|
|
tags:
|
|
- loan-paid-off-letters
|
|
/loan-types:
|
|
get:
|
|
description: Returns paginated loan types with optional filters
|
|
parameters:
|
|
- description: Filter by title (en, ru, tm)
|
|
in: query
|
|
name: loan_type_name
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List loan types
|
|
tags:
|
|
- loan-type
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Creates a new loan type
|
|
parameters:
|
|
- description: Loan type payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/loantype.CreateLoanTypeDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create loan type
|
|
tags:
|
|
- loan-type
|
|
/loan-types/{id}:
|
|
delete:
|
|
description: Deletes a loan type
|
|
parameters:
|
|
- description: Loan type ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Delete loan type
|
|
tags:
|
|
- loan-type
|
|
get:
|
|
description: Returns a single loan type
|
|
parameters:
|
|
- description: Loan type ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get loan type by ID
|
|
tags:
|
|
- loan-type
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates an existing loan type
|
|
parameters:
|
|
- description: Loan type ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Loan type payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/loantype.UpdateLoanTypeDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Update loan type
|
|
tags:
|
|
- loan-type
|
|
/loans-documents:
|
|
get:
|
|
description: Returns paginated loan documents with optional filters
|
|
parameters:
|
|
- description: Filter by name
|
|
in: query
|
|
name: document_name
|
|
type: string
|
|
- description: Filter by active
|
|
in: query
|
|
name: active
|
|
type: boolean
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List loan documents
|
|
tags:
|
|
- loan-document
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Creates a new loan document
|
|
parameters:
|
|
- description: Loan document payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/loansdocument.CreateLoanDocumentDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create loan document
|
|
tags:
|
|
- loan-document
|
|
/loans-documents/{id}:
|
|
delete:
|
|
description: Deletes a loan document
|
|
parameters:
|
|
- description: Loan document ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Delete loan document
|
|
tags:
|
|
- loan-document
|
|
get:
|
|
description: Returns a single loan document
|
|
parameters:
|
|
- description: Loan document ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get loan document by ID
|
|
tags:
|
|
- loan-document
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates an existing loan document
|
|
parameters:
|
|
- description: Loan document ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Loan document payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/loansdocument.UpdateLoanDocumentDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Update loan document
|
|
tags:
|
|
- loan-document
|
|
/loans-documents/{id}/active:
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Enables or disables a loan document
|
|
parameters:
|
|
- description: Loan document ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Active payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/loansdocument.UpdateLoanDocumentActiveDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Update loan document active
|
|
tags:
|
|
- loan-document
|
|
/loans-repayment:
|
|
get:
|
|
description: Returns paginated loan repayments with optional filters
|
|
parameters:
|
|
- description: Filter by passport ID
|
|
in: query
|
|
name: passport_id
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List loan repayments
|
|
tags:
|
|
- loans-repayment
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Creates a new loan repayment record
|
|
parameters:
|
|
- description: Loan repayment payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/loansrepayment.CreateLoanRepaymentDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create loan repayment
|
|
tags:
|
|
- loans-repayment
|
|
/loans-repayment/{id}:
|
|
delete:
|
|
description: Deletes a loan repayment record
|
|
parameters:
|
|
- description: Loan repayment ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Delete loan repayment
|
|
tags:
|
|
- loans-repayment
|
|
get:
|
|
description: Returns a single loan repayment
|
|
parameters:
|
|
- description: Loan repayment ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get loan repayment by ID
|
|
tags:
|
|
- loans-repayment
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates an existing loan repayment record
|
|
parameters:
|
|
- description: Loan repayment ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Loan repayment payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/loansrepayment.UpdateLoanRepaymentDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Update loan repayment
|
|
tags:
|
|
- loans-repayment
|
|
/login:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Authenticates a user by name or phone, and password
|
|
parameters:
|
|
- description: Login payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/auth.LoginDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
summary: Login
|
|
tags:
|
|
- auth
|
|
/payment-cards:
|
|
get:
|
|
description: Returns paginated payment cards with optional filters
|
|
parameters:
|
|
- description: Filter by card title (en, ru, tm)
|
|
in: query
|
|
name: card_name
|
|
type: string
|
|
- description: Filter by active
|
|
in: query
|
|
name: active
|
|
type: boolean
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List payment cards
|
|
tags:
|
|
- payment-card
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Creates a new payment card
|
|
parameters:
|
|
- description: Payment card payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/paymentcard.CreatePaymentCardDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create payment card
|
|
tags:
|
|
- payment-card
|
|
/payment-cards/{id}:
|
|
delete:
|
|
description: Deletes a payment card
|
|
parameters:
|
|
- description: Payment card ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Delete payment card
|
|
tags:
|
|
- payment-card
|
|
get:
|
|
description: Returns a single payment card
|
|
parameters:
|
|
- description: Payment card ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get payment card by ID
|
|
tags:
|
|
- payment-card
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates an existing payment card
|
|
parameters:
|
|
- description: Payment card ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Payment card payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/paymentcard.UpdatePaymentCardDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Update payment card
|
|
tags:
|
|
- payment-card
|
|
/payment-cards/{id}/active:
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Enables or disables a payment card
|
|
parameters:
|
|
- description: Payment card ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Active payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/paymentcard.UpdatePaymentCardActiveDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Update payment card active
|
|
tags:
|
|
- payment-card
|
|
/payment-history:
|
|
get:
|
|
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: Sargyt ID-si boýunça süzmek
|
|
in: query
|
|
name: order_id
|
|
type: integer
|
|
- description: Şahamça ID-si boýunça süzmek
|
|
in: query
|
|
name: branch_id
|
|
type: integer
|
|
- description: Sargyt eýesiniň (müşderiniň) ulanyjy ID-si boýunça süzmek
|
|
in: query
|
|
name: user_id
|
|
type: integer
|
|
- description: GBÜS statusy boýunça süzmek (pending, success, failed)
|
|
in: query
|
|
name: status
|
|
type: string
|
|
- 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: Tertiplenýän sütün
|
|
enum:
|
|
- id
|
|
- created_at
|
|
- status
|
|
- amount
|
|
in: query
|
|
name: sort
|
|
type: string
|
|
- default: desc
|
|
description: Tertip ugry
|
|
enum:
|
|
- asc
|
|
- desc
|
|
in: query
|
|
name: order
|
|
type: string
|
|
- default: 1
|
|
description: Sahypa belgisi
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Bir sahypadaky ýazgy sany
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Lokallaşdyrylan meýdanlaryň dili; all - doly {en, ru, tm} obýektleri
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/paymenthistory.ListPaymentHistoryDTO'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Tölegleriň taryhy
|
|
tags:
|
|
- payment-history
|
|
/payment-history/{id}:
|
|
get:
|
|
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: Sargyt ID-si
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Lokallaşdyrylan meýdanlaryň dili; all - doly {en, ru, tm} obýektleri
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
items:
|
|
$ref: '#/definitions/paymenthistory.PaymentHistoryItemDTO'
|
|
type: array
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"403":
|
|
description: Forbidden
|
|
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: Sargydyň tölegleri
|
|
tags:
|
|
- payment-history
|
|
/payment-history/{id}/gateway:
|
|
get:
|
|
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: Sargyt ID-si
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Lokallaşdyrylan meýdanlaryň dili; all - doly {en, ru, tm} obýektleri
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
items:
|
|
$ref: '#/definitions/paymenthistory.PaymentGatewayDTO'
|
|
type: array
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"403":
|
|
description: Forbidden
|
|
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: Sargydyň tölegleri GBÜS jogaplary bilen
|
|
tags:
|
|
- payment-history
|
|
/payment-history/{id}/logs:
|
|
get:
|
|
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: Sargyt ID-si
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Lokallaşdyrylan meýdanlaryň dili; all - doly {en, ru, tm} obýektleri
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
items:
|
|
$ref: '#/definitions/paymenthistory.PaymentLogDTO'
|
|
type: array
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"403":
|
|
description: Forbidden
|
|
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: Sargydyň töleg loglary
|
|
tags:
|
|
- payment-history
|
|
/payment-history/payments/{id}:
|
|
get:
|
|
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: Töleg ID-si
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Lokallaşdyrylan meýdanlaryň dili; all - doly {en, ru, tm} obýektleri
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/paymenthistory.PaymentHistoryDetailDTO'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"403":
|
|
description: Forbidden
|
|
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: Bir tölegiň jikme-jikligi
|
|
tags:
|
|
- payment-history
|
|
/payment-settings:
|
|
get:
|
|
description: Returns the admin-configurable bank and GBÜS commission fees used
|
|
on loan payments
|
|
parameters:
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/paymentsettings.PaymentSettingsDTO'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Get payment settings
|
|
tags:
|
|
- payment-settings
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates the bank and GBÜS commission fees used on loan payments
|
|
parameters:
|
|
- description: Payment settings payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/paymentsettings.UpdatePaymentSettingsDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/paymentsettings.PaymentSettingsDTO'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Update payment settings
|
|
tags:
|
|
- payment-settings
|
|
/payment-texts:
|
|
get:
|
|
description: Returns the admin-editable, localized texts (warnings, hints) shown
|
|
to clients on visa/master/sber payout screens. Clients only get active ones,
|
|
with empty languages filled with a default text.
|
|
parameters:
|
|
- description: Filter by code, name or text
|
|
in: query
|
|
name: search
|
|
type: string
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/paymenttexts.ListPaymentTextDTO'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List payment texts
|
|
tags:
|
|
- payment-texts
|
|
/payment-texts/{code}:
|
|
delete:
|
|
description: Super admin only. Deletes a payment text by code; clients then
|
|
get the built-in default text for known codes.
|
|
parameters:
|
|
- description: Text code
|
|
in: path
|
|
name: code
|
|
required: true
|
|
type: string
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"403":
|
|
description: Forbidden
|
|
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: Delete a payment text
|
|
tags:
|
|
- payment-texts
|
|
get:
|
|
description: Returns one payment text by its fixed code (e.g. payment_warning_text,
|
|
sber_payment_warning). For clients, empty languages are filled with a default
|
|
text, a deleted known code returns its default, and inactive texts are 404.
|
|
parameters:
|
|
- description: Text code
|
|
in: path
|
|
name: code
|
|
required: true
|
|
type: string
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/paymenttexts.PaymentTextDTO'
|
|
"404":
|
|
description: Not Found
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Get a payment text by code
|
|
tags:
|
|
- payment-texts
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates the name, localized text and active flag of an existing
|
|
payment text. The code itself cannot be changed.
|
|
parameters:
|
|
- description: Text code
|
|
in: path
|
|
name: code
|
|
required: true
|
|
type: string
|
|
- description: Payment text payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/paymenttexts.UpdatePaymentTextDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/paymenttexts.PaymentTextDTO'
|
|
"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: Update a payment text
|
|
tags:
|
|
- payment-texts
|
|
/permissions:
|
|
get:
|
|
description: 'Returns the permission catalog: one code per module, in display
|
|
order. Holding a code grants read and write in that module; the role''s scope
|
|
decides which records.'
|
|
parameters:
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List permissions
|
|
tags:
|
|
- permission
|
|
/profile:
|
|
get:
|
|
description: Returns the authenticated user's profile with role, branches, and
|
|
permissions grouped by saha (module)
|
|
parameters:
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"404":
|
|
description: Not Found
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Get profile
|
|
tags:
|
|
- auth
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates the authenticated user's profile
|
|
parameters:
|
|
- description: Profile payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/auth.UpdateProfileDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"404":
|
|
description: Not Found
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Update profile
|
|
tags:
|
|
- auth
|
|
/provinces:
|
|
get:
|
|
description: Returns paginated provinces with optional filters
|
|
parameters:
|
|
- description: Filter by province name (en, ru, tm)
|
|
in: query
|
|
name: name
|
|
type: string
|
|
- description: Filter by region (en, ru, tm)
|
|
in: query
|
|
name: region
|
|
type: string
|
|
- description: Filter by active status
|
|
in: query
|
|
name: active
|
|
type: boolean
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List provinces
|
|
tags:
|
|
- province
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Creates a new province
|
|
parameters:
|
|
- description: Province payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/province.CreateProvinceDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create province
|
|
tags:
|
|
- province
|
|
/provinces/{id}:
|
|
delete:
|
|
description: Deletes a province
|
|
parameters:
|
|
- description: Province ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Delete province
|
|
tags:
|
|
- province
|
|
get:
|
|
description: Returns a single province
|
|
parameters:
|
|
- description: Province ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get province by ID
|
|
tags:
|
|
- province
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates an existing province
|
|
parameters:
|
|
- description: Province ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Province payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/province.UpdateProvinceDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Update province
|
|
tags:
|
|
- province
|
|
/reasons-cards:
|
|
get:
|
|
description: Returns paginated reason cards with optional filters
|
|
parameters:
|
|
- description: Filter by title (en, ru, tm)
|
|
in: query
|
|
name: reason_name
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List reason cards
|
|
tags:
|
|
- reason-card
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Creates a new reason card
|
|
parameters:
|
|
- description: Reason card payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/reasonscard.CreateReasonCardDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create reason card
|
|
tags:
|
|
- reason-card
|
|
/reasons-cards/{id}:
|
|
delete:
|
|
description: Deletes a reason card
|
|
parameters:
|
|
- description: Reason card ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Delete reason card
|
|
tags:
|
|
- reason-card
|
|
get:
|
|
description: Returns a single reason card
|
|
parameters:
|
|
- description: Reason card ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get reason card by ID
|
|
tags:
|
|
- reason-card
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates an existing reason card
|
|
parameters:
|
|
- description: Reason card ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Reason card payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/reasonscard.UpdateReasonCardDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Update reason card
|
|
tags:
|
|
- reason-card
|
|
/register:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Starts registration and sends an SMS verification code. Replace
|
|
sms.LogSender with your SMS client.
|
|
parameters:
|
|
- description: Registration payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/auth.RegisterDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"409":
|
|
description: Conflict
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
summary: Register
|
|
tags:
|
|
- auth
|
|
/register/verify:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Confirms the SMS code and creates the user account
|
|
parameters:
|
|
- description: Verification payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/auth.VerifyDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"409":
|
|
description: Conflict
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
summary: Verify phone
|
|
tags:
|
|
- auth
|
|
/roles:
|
|
get:
|
|
description: Returns paginated roles with optional filters
|
|
parameters:
|
|
- description: Filter by name or code
|
|
in: query
|
|
name: role_name
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List roles
|
|
tags:
|
|
- role
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Creates a role with a scope (own, branch, all) and its permission
|
|
codes. The caller cannot create a role wider than their own scope or holding
|
|
permissions they lack.
|
|
parameters:
|
|
- description: Role payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/role.CreateRoleDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"403":
|
|
description: Forbidden
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"409":
|
|
description: Conflict
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create role
|
|
tags:
|
|
- role
|
|
/roles/{id}:
|
|
delete:
|
|
description: Deletes a role. System roles and roles still assigned to users
|
|
cannot be deleted.
|
|
parameters:
|
|
- description: Role ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"403":
|
|
description: Forbidden
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"404":
|
|
description: Not Found
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"409":
|
|
description: Conflict
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Delete role
|
|
tags:
|
|
- role
|
|
get:
|
|
description: Returns a single role
|
|
parameters:
|
|
- description: Role ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get role by ID
|
|
tags:
|
|
- role
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Replaces the role's name, scope and whole permission set. System
|
|
roles keep their scope; the caller must be able to grant the role both before
|
|
and after the change.
|
|
parameters:
|
|
- description: Role ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Role payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/role.UpdateRoleDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"403":
|
|
description: Forbidden
|
|
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: Update role
|
|
tags:
|
|
- role
|
|
/token:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Issues a new access and refresh token pair
|
|
parameters:
|
|
- description: Refresh token payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/auth.RefreshTokenDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
summary: Refresh tokens
|
|
tags:
|
|
- auth
|
|
/users:
|
|
get:
|
|
description: Returns paginated users, including roleId. All-scope callers see
|
|
users of every role; branch-scope callers see role=user only, scoped to their
|
|
branches.
|
|
parameters:
|
|
- description: Search by username, first name, or last name
|
|
in: query
|
|
name: search
|
|
type: string
|
|
- description: Alias for search
|
|
in: query
|
|
name: username
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List users
|
|
tags:
|
|
- user
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: 'Creates a new user. The role (roleId or role code, default "user")
|
|
must be one the caller could grant: no wider scope, no permission the caller
|
|
lacks, superadmin only from a superadmin.'
|
|
parameters:
|
|
- description: User payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/user.CreateUserDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"403":
|
|
description: Forbidden
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create user
|
|
tags:
|
|
- user
|
|
/users/{id}:
|
|
delete:
|
|
description: Deletes a user. Callers cannot delete themselves, a user whose
|
|
role they could not grant, or the last superadmin.
|
|
parameters:
|
|
- description: User ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"403":
|
|
description: Forbidden
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"404":
|
|
description: Not Found
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"409":
|
|
description: Conflict
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Delete user
|
|
tags:
|
|
- user
|
|
get:
|
|
description: Returns a single user with assigned branches, roleId, and effective
|
|
permissions
|
|
parameters:
|
|
- description: User ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get user by ID
|
|
tags:
|
|
- user
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates an existing user. Sending roleId or role changes the role
|
|
(same rules as create); sending neither keeps it. Callers cannot manage a
|
|
user whose role they could not grant, nor change their own role.
|
|
parameters:
|
|
- description: User ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: User payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/user.UpdateUserDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"403":
|
|
description: Forbidden
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"404":
|
|
description: Not Found
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"409":
|
|
description: Conflict
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Update user
|
|
tags:
|
|
- user
|
|
/users/{id}/role:
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Gives the user exactly one role. Same rules as create/update.
|
|
parameters:
|
|
- description: User ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Role
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/user.SetUserRoleDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"403":
|
|
description: Forbidden
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"404":
|
|
description: Not Found
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"409":
|
|
description: Conflict
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Set user role
|
|
tags:
|
|
- user
|
|
/users/clients:
|
|
get:
|
|
description: Returns paginated client users (role user, not assigned to any
|
|
branch), including roleId
|
|
parameters:
|
|
- description: Search by username, first name, or last name
|
|
in: query
|
|
name: search
|
|
type: string
|
|
- description: Alias for search
|
|
in: query
|
|
name: username
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List client users
|
|
tags:
|
|
- user
|
|
/users/staff:
|
|
get:
|
|
description: Returns paginated users assigned to branches (from branch_user),
|
|
including each user's branches and roleId.
|
|
parameters:
|
|
- description: Search by username, first name, or last name
|
|
in: query
|
|
name: search
|
|
type: string
|
|
- description: Alias for search
|
|
in: query
|
|
name: username
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List staff users
|
|
tags:
|
|
- user
|
|
/visa-master-payment-orders:
|
|
get:
|
|
description: Returns paginated visa/master payment orders; sber orders are excluded
|
|
(see /visa-master-payment-orders/sber)
|
|
parameters:
|
|
- description: Filter by passport name or surname
|
|
in: query
|
|
name: name
|
|
type: string
|
|
- description: Filter by order type (e.g. student), case-insensitive
|
|
in: query
|
|
name: type
|
|
type: string
|
|
- description: Filter by status
|
|
in: query
|
|
name: status
|
|
type: string
|
|
- description: Filter by branch ID
|
|
in: query
|
|
name: branch_id
|
|
type: integer
|
|
- description: Filter by user ID
|
|
in: query
|
|
name: user_id
|
|
type: integer
|
|
- description: Filter by region
|
|
in: query
|
|
name: region
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List visa/master payment orders
|
|
tags:
|
|
- visa-master-orders
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Creates a new visa/master payment order
|
|
parameters:
|
|
- description: Visa/master payment order payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/visamaster.CreateVisaMasterPaymentOrderDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: Create visa/master payment order
|
|
tags:
|
|
- visa-master-orders
|
|
/visa-master-payment-orders/{id}:
|
|
delete:
|
|
description: Deletes a visa/master payment order
|
|
parameters:
|
|
- description: Visa/master payment order ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Delete visa/master payment order
|
|
tags:
|
|
- visa-master-orders
|
|
get:
|
|
description: Returns a single visa/master payment order with branch and user
|
|
details
|
|
parameters:
|
|
- description: Visa/master payment order ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Get visa/master payment order by ID
|
|
tags:
|
|
- visa-master-orders
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: Updates an existing visa/master payment order
|
|
parameters:
|
|
- description: Visa/master payment order ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Visa/master payment order payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/visamaster.UpdateVisaMasterPaymentOrderDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"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: Update visa/master payment order
|
|
tags:
|
|
- visa-master-orders
|
|
/visa-master-payment-orders/{id}/actions:
|
|
get:
|
|
description: 'Bir Visa/Master ýa-da Sber sargydynyň ähli amallaryny gaýtarýar:
|
|
goşmak, üýtgetmek, pozmak (name/nameLabel), kim tarapyndan (createdByName),
|
|
haýsy sargyt (target: uniqueId we label, mysal üçin "Sber töleg (talyplar
|
|
üçin)"), statusy (finished ýa-da failed) we senesi. Tertip: iň täzesi birinji.
|
|
Bellik: näme üýtgändigi (original/changes) we ýalňyşlyk (exception) /visa-master-payment-orders/{id}/actions/{actionId}
|
|
salgysynda; töleg tamamlananda sargydyň status/paid üýtgemegi hem şu ýere
|
|
ýazylýar, GBÜS callback-dan gelse createdById null.'
|
|
parameters:
|
|
- description: Sargyt ID-si
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: 1
|
|
description: Sahypa belgisi
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Bir sahypadaky ýazgy sany
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Lokallaşdyrylan meýdanlaryň dili; all - doly {en, ru, tm} obýektleri
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/visamasteractions.ListOrderActionDTO'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"403":
|
|
description: Forbidden
|
|
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: Sargydyň amallary (Ammallar)
|
|
tags:
|
|
- visa-master-order-actions
|
|
/visa-master-payment-orders/{id}/actions/{actionId}:
|
|
get:
|
|
description: 'Sargydyň bir amalyny näme üýtgändigi bilen gaýtarýar: original
|
|
- üýtgän meýdanlaryň öňki bahalary (Asyl), changes - täze bahalary (Üýtgeşmeler),
|
|
exception - şowsuz amalyň ýalňyşlygy. Tertip: ýeke ýazgy. Bellik: goşmakda
|
|
original null we changes ähli meýdanlar, pozmakda original ähli meýdanlar
|
|
we changes null; şowsuz amalda changes synanyşylan bahalar.'
|
|
parameters:
|
|
- description: Sargyt ID-si
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Amalyň ID-si
|
|
in: path
|
|
name: actionId
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Lokallaşdyrylan meýdanlaryň dili; all - doly {en, ru, tm} obýektleri
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/visamasteractions.OrderActionDetailDTO'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"403":
|
|
description: Forbidden
|
|
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: Sargydyň bir amaly
|
|
tags:
|
|
- visa-master-order-actions
|
|
/visa-master-payment-orders/{id}/pay:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
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.
|
|
parameters:
|
|
- description: Visa/master payment order ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Payment payload
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/visamasterpay.PayOrderDTO'
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/visamasterpay.PaymentInitResultDTO'
|
|
"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: Start a visa/master/sber payout
|
|
tags:
|
|
- visa-master-payment
|
|
/visa-master-payment-orders/{id}/quote:
|
|
get:
|
|
description: Returns the current rate, configured fees, and max payable amount
|
|
for an order's payout
|
|
parameters:
|
|
- description: Visa/master payment order ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/visamasterpay.PaymentQuoteDTO'
|
|
"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: Quote a visa/master/sber payment
|
|
tags:
|
|
- 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
|
|
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. gatewayResponse is GBÜS's last stored response
|
|
for the attempt (null if GBÜS never answered). Safe to call repeatedly.
|
|
parameters:
|
|
- description: Visa/master payment order ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
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
|
|
/visa-master-payment-orders/callback:
|
|
get:
|
|
description: GBÜS redirects the browser here after payment; the real outcome
|
|
is verified server-to-server before anything is finalized
|
|
parameters:
|
|
- description: Payment attempt ID
|
|
in: query
|
|
name: paymentId
|
|
required: true
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/visamasterpay.CallbackResultDTO'
|
|
summary: GBÜS payment callback
|
|
tags:
|
|
- visa-master-payment
|
|
/visa-master-payment-orders/sber:
|
|
get:
|
|
description: Returns paginated payment orders of type sber
|
|
parameters:
|
|
- description: Filter by passport name or surname
|
|
in: query
|
|
name: name
|
|
type: string
|
|
- description: Filter by status
|
|
in: query
|
|
name: status
|
|
type: string
|
|
- description: Filter by branch ID
|
|
in: query
|
|
name: branch_id
|
|
type: integer
|
|
- description: Filter by user ID
|
|
in: query
|
|
name: user_id
|
|
type: integer
|
|
- description: Filter by region
|
|
in: query
|
|
name: region
|
|
type: string
|
|
- default: 1
|
|
description: Page number
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- default: 10
|
|
description: Items per page
|
|
in: query
|
|
name: limit
|
|
type: integer
|
|
- default: tm
|
|
description: Language of localized fields; all returns the full {en, ru, tm}
|
|
objects
|
|
enum:
|
|
- tm
|
|
- ru
|
|
- en
|
|
- all
|
|
in: query
|
|
name: lang
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppSuccess'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/appresult.AppError'
|
|
security:
|
|
- BearerAuth: []
|
|
summary: List sber payment orders
|
|
tags:
|
|
- 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: 'Visa/Master we Sber sargytlarynyň amallary (Ammallar): kim, haçan,
|
|
näme goşdy, üýtgetdi ýa-da pozdy. Ulanylyş tertibi: 1) GET /visa-master-payment-orders/{id}/actions
|
|
- sargydyň amallary; 2) GET /visa-master-payment-orders/{id}/actions/{actionId}
|
|
- bir amalyň öňki we täze bahalary'
|
|
name: visa-master-order-actions
|
|
- 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
|