backend phase 11

This commit is contained in:
hamid
2026-07-09 02:13:30 +03:30
parent 23605591eb
commit 465f75c29e
78 changed files with 9555 additions and 27 deletions
+892 -1
View File
@@ -7,7 +7,7 @@
},
"servers": [
{
"url": "https://localhost:5002"
"url": "http://localhost"
}
],
"paths": {
@@ -805,6 +805,95 @@
]
}
},
"/api/v1/admin_clawbacks/{id}/write_off": {
"post": {
"tags": [
"AdminClawbacks"
],
"operationId": "AdminClawbacks_WriteOff",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
},
"x-position": 1
}
],
"requestBody": {
"x-name": "body",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WriteOffClawbackBody"
}
}
},
"required": true,
"x-position": 2
},
"responses": {
"400": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResultOfDictionaryOfStringAndListOfString"
}
}
}
},
"401": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResult"
}
}
}
},
"403": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResult"
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResult"
}
}
}
},
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResultOfBoolean"
}
}
}
}
},
"security": [
{
"Bearer": []
}
]
}
},
"/api/v1/admin_evv/list": {
"get": {
"tags": [
@@ -1729,6 +1818,264 @@
]
}
},
"/api/v1/admin_invoices": {
"post": {
"tags": [
"AdminInvoices"
],
"operationId": "AdminInvoices_Issue",
"requestBody": {
"x-name": "command",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IssueInvoiceCommand"
}
}
},
"required": true,
"x-position": 1
},
"responses": {
"400": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResultOfDictionaryOfStringAndListOfString"
}
}
}
},
"401": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResult"
}
}
}
},
"403": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResult"
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResult"
}
}
}
},
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResultOfInvoiceDto"
}
}
}
}
},
"security": [
{
"Bearer": []
}
]
}
},
"/api/v1/admin_refunds": {
"post": {
"tags": [
"AdminRefunds"
],
"summary": "Creates a AdminRefund",
"operationId": "AdminRefunds_Create",
"requestBody": {
"x-name": "command",
"description": "A AdminRefund representation",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateRefundCommand"
}
}
},
"required": true,
"x-position": 1
},
"responses": {
"400": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResultOfDictionaryOfStringAndListOfString"
}
}
}
},
"401": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResult"
}
}
}
},
"403": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResult"
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResult"
}
}
}
},
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResultOfCreateRefundResult"
}
}
}
}
},
"security": [
{
"Bearer": []
}
]
},
"get": {
"tags": [
"AdminRefunds"
],
"operationId": "AdminRefunds_List",
"parameters": [
{
"name": "BookingId",
"in": "query",
"schema": {
"type": "integer",
"format": "int64",
"nullable": true
},
"x-position": 1
},
{
"name": "Status",
"in": "query",
"schema": {
"type": "string",
"nullable": true
},
"x-position": 2
},
{
"name": "Page",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
},
"x-position": 3
},
{
"name": "PageSize",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
},
"x-position": 4
}
],
"responses": {
"400": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResultOfDictionaryOfStringAndListOfString"
}
}
}
},
"401": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResult"
}
}
}
},
"403": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResult"
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResult"
}
}
}
},
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResultOfPagedResultOfRefundListItemDto"
}
}
}
}
},
"security": [
{
"Bearer": []
}
]
}
},
"/api/v1/admin_search/rebuild_index": {
"post": {
"tags": [
@@ -5627,6 +5974,85 @@
]
}
},
"/api/v1/invoices/{bookingId}": {
"get": {
"tags": [
"Invoices"
],
"summary": "Retrieves a Invoice by unique id",
"operationId": "Invoices_Get",
"parameters": [
{
"name": "bookingId",
"in": "path",
"required": true,
"description": "A unique id for the Invoice",
"schema": {
"type": "integer",
"format": "int64"
},
"x-position": 1
}
],
"responses": {
"400": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResultOfDictionaryOfStringAndListOfString"
}
}
}
},
"401": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResult"
}
}
}
},
"403": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResult"
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResult"
}
}
}
},
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResultOfInvoiceDto"
}
}
}
}
},
"security": [
{
"Bearer": []
}
]
}
},
"/api/v1/me": {
"get": {
"tags": [
@@ -8770,6 +9196,83 @@
]
}
},
"/api/v1/refunds/{id}/status": {
"get": {
"tags": [
"Refunds"
],
"operationId": "Refunds_Status",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
},
"x-position": 1
}
],
"responses": {
"400": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResultOfDictionaryOfStringAndListOfString"
}
}
}
},
"401": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResult"
}
}
}
},
"403": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResult"
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResult"
}
}
}
},
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResultOfRefundStatusDto"
}
}
}
}
},
"security": [
{
"Bearer": []
}
]
}
},
"/api/v1/search/nurses": {
"get": {
"tags": [
@@ -9824,6 +10327,33 @@
}
}
},
"ApiResultOfBoolean": {
"allOf": [
{
"$ref": "#/components/schemas/ApiResult"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"data": {
"type": "boolean"
}
}
}
]
},
"WriteOffClawbackBody": {
"type": "object",
"description": "The write-off body (the id comes from the route).",
"additionalProperties": false,
"properties": {
"reason": {
"type": "string",
"nullable": true
}
}
},
"ApiResultOfPagedResultOfAdminEvvItemDto": {
"allOf": [
{
@@ -10248,6 +10778,314 @@
}
}
},
"ApiResultOfInvoiceDto": {
"allOf": [
{
"$ref": "#/components/schemas/ApiResult"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"data": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/InvoiceDto"
}
]
}
}
}
]
},
"InvoiceDto": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"bookingId": {
"type": "integer",
"format": "int64"
},
"invoiceNumber": {
"type": "string"
},
"issuingEntityType": {
"type": "string"
},
"grossIrr": {
"type": "string"
},
"platformCommissionIrr": {
"type": "string"
},
"bnplCommissionIrr": {
"type": "string",
"nullable": true
},
"vatRate": {
"type": "number",
"format": "decimal"
},
"vatIrr": {
"type": "string"
},
"moadianReferenceNumber": {
"type": "string",
"nullable": true
},
"moadianStatus": {
"type": "string",
"nullable": true
},
"pdfUrl": {
"type": "string",
"nullable": true
},
"issuedAt": {
"type": "string",
"format": "date-time"
}
}
},
"IssueInvoiceCommand": {
"type": "object",
"additionalProperties": false,
"properties": {
"bookingId": {
"type": "integer",
"format": "int64"
}
}
},
"ApiResultOfCreateRefundResult": {
"allOf": [
{
"$ref": "#/components/schemas/ApiResult"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"data": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/CreateRefundResult"
}
]
}
}
}
]
},
"CreateRefundResult": {
"type": "object",
"additionalProperties": false,
"properties": {
"refundId": {
"type": "integer",
"format": "int64"
},
"bookingId": {
"type": "integer",
"format": "int64"
},
"status": {
"type": "string"
},
"refundChannel": {
"type": "string"
},
"amount": {
"type": "string"
},
"platformFeeRefundedIrr": {
"type": "string"
},
"nursePayoutRefundedIrr": {
"type": "string"
},
"expectedCustomerRefundEta": {
"type": "string",
"format": "date",
"nullable": true
},
"clawbackId": {
"type": "integer",
"format": "int64",
"nullable": true
}
}
},
"CreateRefundCommand": {
"type": "object",
"additionalProperties": false,
"properties": {
"bookingId": {
"type": "integer",
"format": "int64"
},
"ticketId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"refundPercentage": {
"type": "number",
"format": "decimal",
"nullable": true
},
"platformFeeRefundedIrr": {
"type": "integer",
"format": "int64",
"nullable": true
},
"nursePayoutRefundedIrr": {
"type": "integer",
"format": "int64",
"nullable": true
},
"reasonCategory": {
"type": "string",
"nullable": true
},
"reasonNotes": {
"type": "string",
"nullable": true
},
"adminNotes": {
"type": "string",
"nullable": true
},
"manualBankReference": {
"type": "string",
"nullable": true
}
}
},
"ApiResultOfPagedResultOfRefundListItemDto": {
"allOf": [
{
"$ref": "#/components/schemas/ApiResult"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"data": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/PagedResultOfRefundListItemDto"
}
]
}
}
}
]
},
"PagedResultOfRefundListItemDto": {
"type": "object",
"additionalProperties": false,
"properties": {
"items": {
"type": "array",
"nullable": true,
"items": {
"$ref": "#/components/schemas/RefundListItemDto"
}
},
"total": {
"type": "integer",
"format": "int32"
},
"page": {
"type": "integer",
"format": "int32"
},
"pageSize": {
"type": "integer",
"format": "int32"
}
}
},
"RefundListItemDto": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"bookingId": {
"type": "integer",
"format": "int64"
},
"paymentTransactionId": {
"type": "integer",
"format": "int64"
},
"amount": {
"type": "string"
},
"platformFeeRefundedIrr": {
"type": "string"
},
"nursePayoutRefundedIrr": {
"type": "string"
},
"refundChannel": {
"type": "string"
},
"status": {
"type": "string"
},
"refundPercentage": {
"type": "number",
"format": "decimal"
},
"reasonCategory": {
"type": "string",
"nullable": true
},
"cancellationPolicyCode": {
"type": "string",
"nullable": true
},
"refundPercentageApplied": {
"type": "number",
"format": "decimal",
"nullable": true
},
"expectedCustomerRefundEta": {
"type": "string",
"format": "date",
"nullable": true
},
"gatewayRefundReference": {
"type": "string",
"nullable": true
},
"externalRevertReference": {
"type": "string",
"nullable": true
},
"processedAt": {
"type": "string",
"format": "date-time",
"nullable": true
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
},
"ApiResultOfSearchIndexRebuildResult": {
"allOf": [
{
@@ -14008,6 +14846,59 @@
}
}
},
"ApiResultOfRefundStatusDto": {
"allOf": [
{
"$ref": "#/components/schemas/ApiResult"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"data": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/RefundStatusDto"
}
]
}
}
}
]
},
"RefundStatusDto": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"bookingId": {
"type": "integer",
"format": "int64"
},
"status": {
"type": "string"
},
"refundChannel": {
"type": "string"
},
"amount": {
"type": "string"
},
"expectedCustomerRefundEta": {
"type": "string",
"format": "date",
"nullable": true
},
"reference": {
"type": "string",
"nullable": true
}
}
},
"ApiResultOfPagedResultOfNurseSearchResultDto": {
"allOf": [
{