Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: check withdraw cond api #682

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 141 additions & 14 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,56 @@ const docTemplate = `{
}
}
},
"/banks": {
"get": {
"description": "Get all bank by given filter params",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Metadata"
],
"summary": "Get all banks",
"operationId": "getBanksList",
"parameters": [
{
"type": "string",
"description": "Bank ID",
"name": "id",
"in": "query"
},
{
"type": "string",
"description": "Bin",
"name": "bin",
"in": "query"
},
{
"type": "string",
"description": "Swift SwiftCode",
"name": "swiftCode",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ListBankResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/brainery-logs": {
"post": {
"security": [
Expand Down Expand Up @@ -1769,34 +1819,31 @@ const docTemplate = `{
"BearerAuth": []
}
],
"description": "Check salary advance by discord id",
"description": "Check withdraw condition by discord id",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Employee"
"Withdraw"
],
"summary": "Check salary advance by discord id",
"operationId": "checkSalaryAdvance",
"summary": "Check withdraw condition by discord id",
"operationId": "checkWithdrawCondition",
"parameters": [
{
"description": "Check Salary Advance Request",
"name": "checkSalaryAdvanceRequest",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/SalaryAdvanceRequest"
}
"type": "string",
"description": "DiscordID",
"name": "discordID",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/CheckSalaryAdvanceResponse"
"$ref": "#/definitions/CheckWithdrawConditionResponse"
}
},
"400": {
Expand Down Expand Up @@ -7064,6 +7111,32 @@ const docTemplate = `{
}
}
},
"Bank": {
"type": "object",
"properties": {
"bin": {
"type": "string"
},
"code": {
"type": "string"
},
"id": {
"type": "string"
},
"logo": {
"type": "string"
},
"name": {
"type": "string"
},
"shortName": {
"type": "string"
},
"swiftCode": {
"type": "string"
}
}
},
"BankAccount": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -7439,6 +7512,28 @@ const docTemplate = `{
}
}
},
"CheckWithdrawCondition": {
"type": "object",
"properties": {
"icyAmount": {
"type": "number"
},
"icyVNDRate": {
"type": "number"
},
"vndAmount": {
"type": "number"
}
}
},
"CheckWithdrawConditionResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/CheckWithdrawCondition"
}
}
},
"CitiesResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -8352,7 +8447,11 @@ const docTemplate = `{
},
"status": {
"description": "working info",
"type": "string"
"allOf": [
{
"$ref": "#/definitions/WorkingStatus"
}
]
},
"teamEmail": {
"type": "string"
Expand Down Expand Up @@ -9378,6 +9477,17 @@ const docTemplate = `{
}
}
},
"ListBankResponse": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/Bank"
}
}
}
},
"ListFeedbackResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -12317,7 +12427,7 @@ const docTemplate = `{
"type": "object",
"properties": {
"employeeStatus": {
"type": "string"
"$ref": "#/definitions/WorkingStatus"
}
}
},
Expand Down Expand Up @@ -12786,6 +12896,23 @@ const docTemplate = `{
"WorkUnitTypeLearning"
]
},
"WorkingStatus": {
"type": "string",
"enum": [
"on-boarding",
"left",
"probation",
"full-time",
"contractor"
],
"x-enum-varnames": [
"WorkingStatusOnBoarding",
"WorkingStatusLeft",
"WorkingStatusProbation",
"WorkingStatusFullTime",
"WorkingStatusContractor"
]
},
"github_com_dwarvesf_fortress-api_pkg_model.SortOrder": {
"type": "string",
"enum": [
Expand Down
Loading