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:
2026-08-20 15:24:59 +05:00
parent d7cdd53597
commit 7225dc0399
18 changed files with 2613 additions and 26 deletions

View File

@@ -5322,7 +5322,7 @@ const docTemplate = `{
"BearerAuth": []
}
],
"description": "Returns paginated users with role user, with optional filters",
"description": "Returns paginated users with role user, including roleId",
"produces": [
"application/json"
],
@@ -5436,7 +5436,7 @@ const docTemplate = `{
"BearerAuth": []
}
],
"description": "Returns paginated client users (role user, not assigned to any branch)",
"description": "Returns paginated client users (role user, not assigned to any branch), including roleId",
"produces": [
"application/json"
],
@@ -5501,7 +5501,7 @@ const docTemplate = `{
"BearerAuth": []
}
],
"description": "Returns paginated users assigned to branches (from branch_user), including each user's branches.",
"description": "Returns paginated users assigned to branches (from branch_user), including each user's branches and roleId.",
"produces": [
"application/json"
],
@@ -5566,7 +5566,7 @@ const docTemplate = `{
"BearerAuth": []
}
],
"description": "Returns a single user with assigned branches",
"description": "Returns a single user with assigned branches and roleId",
"produces": [
"application/json"
],
@@ -5722,6 +5722,355 @@ const docTemplate = `{
}
}
}
},
"/visa-master-payment-orders": {
"get": {
"security": [
{
"BearerAuth": []
}
],
"description": "Returns paginated visa/master payment orders with branch and user details",
"produces": [
"application/json"
],
"tags": [
"visa-master-payment-orders"
],
"summary": "List visa/master payment orders",
"parameters": [
{
"type": "string",
"description": "Filter by passport name or surname",
"name": "name",
"in": "query"
},
{
"type": "string",
"description": "Filter by status",
"name": "status",
"in": "query"
},
{
"type": "integer",
"description": "Filter by branch ID",
"name": "branch_id",
"in": "query"
},
{
"type": "integer",
"description": "Filter by user ID",
"name": "user_id",
"in": "query"
},
{
"type": "string",
"description": "Filter by region",
"name": "region",
"in": "query"
},
{
"type": "integer",
"default": 1,
"description": "Page number",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 10,
"description": "Items per page",
"name": "limit",
"in": "query"
}
],
"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"
}
}
}
},
"post": {
"security": [
{
"BearerAuth": []
}
],
"description": "Creates a new visa/master payment order",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"visa-master-payment-orders"
],
"summary": "Create visa/master payment order",
"parameters": [
{
"description": "Visa/master payment order payload",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/visamaster.CreateVisaMasterPaymentOrderDTO"
}
}
],
"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"
}
}
}
}
},
"/visa-master-payment-orders/branches": {
"get": {
"security": [
{
"BearerAuth": []
}
],
"description": "Returns branches for the selected province for visa/master payment order forms",
"produces": [
"application/json"
],
"tags": [
"visa-master-payment-orders"
],
"summary": "List branches by province",
"parameters": [
{
"type": "integer",
"description": "Province ID",
"name": "province_id",
"in": "query",
"required": true
},
{
"type": "boolean",
"default": true,
"description": "Only active branches",
"name": "active",
"in": "query"
}
],
"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"
}
}
}
}
},
"/visa-master-payment-orders/{id}": {
"get": {
"security": [
{
"BearerAuth": []
}
],
"description": "Returns a single visa/master payment order with branch and user details",
"produces": [
"application/json"
],
"tags": [
"visa-master-payment-orders"
],
"summary": "Get visa/master payment order by ID",
"parameters": [
{
"type": "integer",
"description": "Visa/master payment order ID",
"name": "id",
"in": "path",
"required": true
}
],
"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"
}
}
}
},
"put": {
"security": [
{
"BearerAuth": []
}
],
"description": "Updates an existing visa/master payment order",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"visa-master-payment-orders"
],
"summary": "Update visa/master payment order",
"parameters": [
{
"type": "integer",
"description": "Visa/master payment order ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "Visa/master payment order payload",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/visamaster.UpdateVisaMasterPaymentOrderDTO"
}
}
],
"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"
}
}
}
},
"delete": {
"security": [
{
"BearerAuth": []
}
],
"description": "Deletes a visa/master payment order",
"produces": [
"application/json"
],
"tags": [
"visa-master-payment-orders"
],
"summary": "Delete visa/master payment order",
"parameters": [
{
"type": "integer",
"description": "Visa/master payment order ID",
"name": "id",
"in": "path",
"required": true
}
],
"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"
}
}
}
}
}
},
"definitions": {
@@ -7550,6 +7899,190 @@ const docTemplate = `{
"type": "integer"
}
}
},
"visamaster.CreateVisaMasterPaymentOrderDTO": {
"type": "object",
"required": [
"address",
"branchId",
"passportName",
"passportSurname",
"phone",
"region",
"senderDepositAccount",
"senderFullName",
"senderPassportNumber",
"senderPassportSerie"
],
"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": {
"type": "array",
"items": {
"type": "object"
}
},
"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"
}
}
},
"visamaster.UpdateVisaMasterPaymentOrderDTO": {
"type": "object",
"required": [
"address",
"branchId",
"passportName",
"passportSurname",
"phone",
"region",
"senderDepositAccount",
"senderFullName",
"senderPassportNumber",
"senderPassportSerie"
],
"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": {
"type": "array",
"items": {
"type": "object"
}
},
"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"
}
}
}
},
"securityDefinitions": {

View File

@@ -5316,7 +5316,7 @@
"BearerAuth": []
}
],
"description": "Returns paginated users with role user, with optional filters",
"description": "Returns paginated users with role user, including roleId",
"produces": [
"application/json"
],
@@ -5430,7 +5430,7 @@
"BearerAuth": []
}
],
"description": "Returns paginated client users (role user, not assigned to any branch)",
"description": "Returns paginated client users (role user, not assigned to any branch), including roleId",
"produces": [
"application/json"
],
@@ -5495,7 +5495,7 @@
"BearerAuth": []
}
],
"description": "Returns paginated users assigned to branches (from branch_user), including each user's branches.",
"description": "Returns paginated users assigned to branches (from branch_user), including each user's branches and roleId.",
"produces": [
"application/json"
],
@@ -5560,7 +5560,7 @@
"BearerAuth": []
}
],
"description": "Returns a single user with assigned branches",
"description": "Returns a single user with assigned branches and roleId",
"produces": [
"application/json"
],
@@ -5716,6 +5716,355 @@
}
}
}
},
"/visa-master-payment-orders": {
"get": {
"security": [
{
"BearerAuth": []
}
],
"description": "Returns paginated visa/master payment orders with branch and user details",
"produces": [
"application/json"
],
"tags": [
"visa-master-payment-orders"
],
"summary": "List visa/master payment orders",
"parameters": [
{
"type": "string",
"description": "Filter by passport name or surname",
"name": "name",
"in": "query"
},
{
"type": "string",
"description": "Filter by status",
"name": "status",
"in": "query"
},
{
"type": "integer",
"description": "Filter by branch ID",
"name": "branch_id",
"in": "query"
},
{
"type": "integer",
"description": "Filter by user ID",
"name": "user_id",
"in": "query"
},
{
"type": "string",
"description": "Filter by region",
"name": "region",
"in": "query"
},
{
"type": "integer",
"default": 1,
"description": "Page number",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 10,
"description": "Items per page",
"name": "limit",
"in": "query"
}
],
"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"
}
}
}
},
"post": {
"security": [
{
"BearerAuth": []
}
],
"description": "Creates a new visa/master payment order",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"visa-master-payment-orders"
],
"summary": "Create visa/master payment order",
"parameters": [
{
"description": "Visa/master payment order payload",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/visamaster.CreateVisaMasterPaymentOrderDTO"
}
}
],
"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"
}
}
}
}
},
"/visa-master-payment-orders/branches": {
"get": {
"security": [
{
"BearerAuth": []
}
],
"description": "Returns branches for the selected province for visa/master payment order forms",
"produces": [
"application/json"
],
"tags": [
"visa-master-payment-orders"
],
"summary": "List branches by province",
"parameters": [
{
"type": "integer",
"description": "Province ID",
"name": "province_id",
"in": "query",
"required": true
},
{
"type": "boolean",
"default": true,
"description": "Only active branches",
"name": "active",
"in": "query"
}
],
"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"
}
}
}
}
},
"/visa-master-payment-orders/{id}": {
"get": {
"security": [
{
"BearerAuth": []
}
],
"description": "Returns a single visa/master payment order with branch and user details",
"produces": [
"application/json"
],
"tags": [
"visa-master-payment-orders"
],
"summary": "Get visa/master payment order by ID",
"parameters": [
{
"type": "integer",
"description": "Visa/master payment order ID",
"name": "id",
"in": "path",
"required": true
}
],
"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"
}
}
}
},
"put": {
"security": [
{
"BearerAuth": []
}
],
"description": "Updates an existing visa/master payment order",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"visa-master-payment-orders"
],
"summary": "Update visa/master payment order",
"parameters": [
{
"type": "integer",
"description": "Visa/master payment order ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "Visa/master payment order payload",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/visamaster.UpdateVisaMasterPaymentOrderDTO"
}
}
],
"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"
}
}
}
},
"delete": {
"security": [
{
"BearerAuth": []
}
],
"description": "Deletes a visa/master payment order",
"produces": [
"application/json"
],
"tags": [
"visa-master-payment-orders"
],
"summary": "Delete visa/master payment order",
"parameters": [
{
"type": "integer",
"description": "Visa/master payment order ID",
"name": "id",
"in": "path",
"required": true
}
],
"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"
}
}
}
}
}
},
"definitions": {
@@ -7544,6 +7893,190 @@
"type": "integer"
}
}
},
"visamaster.CreateVisaMasterPaymentOrderDTO": {
"type": "object",
"required": [
"address",
"branchId",
"passportName",
"passportSurname",
"phone",
"region",
"senderDepositAccount",
"senderFullName",
"senderPassportNumber",
"senderPassportSerie"
],
"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": {
"type": "array",
"items": {
"type": "object"
}
},
"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"
}
}
},
"visamaster.UpdateVisaMasterPaymentOrderDTO": {
"type": "object",
"required": [
"address",
"branchId",
"passportName",
"passportSurname",
"phone",
"region",
"senderDepositAccount",
"senderFullName",
"senderPassportNumber",
"senderPassportSerie"
],
"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": {
"type": "array",
"items": {
"type": "object"
}
},
"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"
}
}
}
},
"securityDefinitions": {

View File

@@ -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