card balance on homepage

This commit is contained in:
2025-07-08 17:00:17 +05:00
parent 7f49211680
commit 23ca758917
4 changed files with 335 additions and 13 deletions

View File

@@ -724,6 +724,209 @@
}
}
},
"/card-balance-quick-check": {
"get": {
"operationId": "cardBalance.quickCheck",
"summary": "Quick card balance check",
"tags": [
"Sargytlar - Kart - Kart galyndylary"
],
"parameters": [
{
"name": "passport_serie",
"in": "query",
"schema": {
"type": "string",
"enum": [
"I-AS",
"I-MR",
"II-MR",
"I-AH",
"II-AH",
"I-LB",
"II-LB",
"I-BN",
"II-BN",
"I-DZ",
"II-DZ"
]
},
"example": "I-AS"
},
{
"name": "passport_id",
"in": "query",
"schema": {
"type": "number"
},
"example": 379514
},
{
"name": "card_number",
"in": "query",
"schema": {
"type": "string"
},
"example": "9934612100000243"
},
{
"name": "card_month",
"in": "query",
"schema": {
"type": "string",
"enum": [
"01",
"02",
"03",
"04",
"05",
"06",
"07",
"08",
"09",
"10",
"11",
"12"
]
},
"example": "12"
},
{
"name": "card_year",
"in": "query",
"schema": {
"type": "string",
"enum": [
"2024",
"2025",
"2026",
"2027",
"2028",
"2029",
"2030",
"2031",
"2032",
"2033",
"2034",
"2035",
"2036",
"2037",
"2038",
"2039",
"2040",
"2041",
"2042",
"2043",
"2044",
"2045",
"2046",
"2047",
"2048",
"2049",
"2050",
"2051",
"2052",
"2053",
"2054",
"2055",
"2056",
"2057",
"2058",
"2059",
"2060",
"2061",
"2062",
"2063",
"2064",
"2065",
"2066",
"2067",
"2068",
"2069",
"2070",
"2071",
"2072",
"2073",
"2074",
"2075",
"2076",
"2077",
"2078",
"2079",
"2080",
"2081",
"2082",
"2083",
"2084",
"2085",
"2086",
"2087",
"2088",
"2089",
"2090"
]
},
"example": "2049"
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"type": "object",
"properties": {
"status": {
"type": "boolean"
},
"data": {
"type": "object"
}
},
"required": [
"status",
"data"
]
},
{
"type": "object",
"properties": {
"status": {
"type": "boolean"
},
"message": {
"type": "string"
},
"url": {
"type": "string",
"enum": [
""
]
}
},
"required": [
"status",
"message",
"url"
]
}
]
}
}
}
},
"401": {
"$ref": "#/components/responses/AuthenticationException"
},
"422": {
"$ref": "#/components/responses/ValidationException"
}
}
}
},
"/card-balances": {
"get": {
"operationId": "cardBalance.index",
@@ -6795,6 +6998,9 @@
},
"card_year": {
"type": "string"
},
"card_name": {
"type": "string"
}
},
"required": [
@@ -6804,7 +7010,8 @@
"passport_id",
"card_number",
"card_month",
"card_year"
"card_year",
"card_name"
],
"title": "ProfileResponse"
},
@@ -6947,6 +7154,11 @@
"2090"
],
"example": "2049"
},
"card_name": {
"type": "string",
"example": "Nurmuhammet Allanov",
"maxLength": 255
}
},
"required": [