Add visa/master payment orders API and related names on loan paid letters.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1253,6 +1253,134 @@ definitions:
|
||||
- branchId
|
||||
- userId
|
||||
type: object
|
||||
visamaster.CreateVisaMasterPaymentOrderDTO:
|
||||
properties:
|
||||
address:
|
||||
type: string
|
||||
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
|
||||
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
|
||||
host: localhost:5005
|
||||
info:
|
||||
contact: {}
|
||||
@@ -4660,7 +4788,7 @@ paths:
|
||||
- auth
|
||||
/users:
|
||||
get:
|
||||
description: Returns paginated users with role user, with optional filters
|
||||
description: Returns paginated users with role user, including roleId
|
||||
parameters:
|
||||
- description: Search by username, first name, or last name
|
||||
in: query
|
||||
@@ -4765,7 +4893,7 @@ paths:
|
||||
tags:
|
||||
- user
|
||||
get:
|
||||
description: Returns a single user with assigned branches
|
||||
description: Returns a single user with assigned branches and roleId
|
||||
parameters:
|
||||
- description: User ID
|
||||
in: path
|
||||
@@ -4839,7 +4967,7 @@ paths:
|
||||
/users/clients:
|
||||
get:
|
||||
description: Returns paginated client users (role user, not assigned to any
|
||||
branch)
|
||||
branch), including roleId
|
||||
parameters:
|
||||
- description: Search by username, first name, or last name
|
||||
in: query
|
||||
@@ -4882,7 +5010,7 @@ paths:
|
||||
/users/staff:
|
||||
get:
|
||||
description: Returns paginated users assigned to branches (from branch_user),
|
||||
including each user's branches.
|
||||
including each user's branches and roleId.
|
||||
parameters:
|
||||
- description: Search by username, first name, or last name
|
||||
in: query
|
||||
@@ -4922,6 +5050,233 @@ paths:
|
||||
summary: List staff users
|
||||
tags:
|
||||
- user
|
||||
/visa-master-payment-orders:
|
||||
get:
|
||||
description: Returns paginated visa/master payment orders with branch and user
|
||||
details
|
||||
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
|
||||
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-payment-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'
|
||||
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-payment-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
|
||||
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-payment-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
|
||||
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-payment-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'
|
||||
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-payment-orders
|
||||
/visa-master-payment-orders/branches:
|
||||
get:
|
||||
description: Returns branches for the selected province for visa/master payment
|
||||
order 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
|
||||
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:
|
||||
- visa-master-payment-orders
|
||||
securityDefinitions:
|
||||
BearerAuth:
|
||||
in: header
|
||||
|
||||
Reference in New Issue
Block a user