{ "x-generator": "NSwag v14.7.1.0 (NJsonSchema v11.6.1.0 (Newtonsoft.Json v13.0.0.0))", "openapi": "3.0.0", "info": { "title": "Pos.Api", "version": "v1" }, "servers": [ { "url": "http://localhost:5117" } ], "paths": { "/whatsapp/status": { "get": { "tags": [ "Whatsapp" ], "operationId": "WhatsappStatus", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ServicesWhatsappWResponseOfSessionStatus" } } } }, "401": { "description": "Unauthorized" } } } }, "/whatsapp/qr": { "get": { "tags": [ "Whatsapp" ], "operationId": "WhatsappQrCode", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ServicesWhatsappWResponseOfQrResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/whatsapp/logout": { "post": { "tags": [ "Whatsapp" ], "operationId": "WhatsappLogout", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ServicesWhatsappWResponseOfSessionLogout" } } } }, "401": { "description": "Unauthorized" } } } }, "/whatsapp/connect": { "post": { "tags": [ "Whatsapp" ], "operationId": "WhatsappConnect", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ServicesWhatsappWResponseOfSessionConnectResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/user/validate": { "post": { "tags": [ "User" ], "operationId": "UserValidate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserValidateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserValidateResponse" } } } } } } }, "/user/typeList": { "get": { "tags": [ "User" ], "operationId": "UserUsersType", "parameters": [ { "name": "isFrontLine", "in": "query", "required": true, "schema": { "type": "boolean" } }, { "name": "isBackOffice", "in": "query", "required": true, "schema": { "type": "boolean" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserUserResponse" } } } } }, "401": { "description": "Unauthorized" } } } }, "/user/list": { "get": { "tags": [ "User" ], "operationId": "UserUsers", "parameters": [ { "name": "sorts", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "filters", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommonModelsPaginatedListOfUserResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/user/unassigned": { "get": { "tags": [ "User" ], "operationId": "UserUnassignedUsers", "parameters": [ { "name": "sorts", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "filters", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommonModelsPaginatedListOfUserResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/user/tasks": { "get": { "tags": [ "User" ], "operationId": "UserTasks", "parameters": [ { "name": "sorts", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "filters", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommonModelsPaginatedListOfResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/user/role/{userId}/{role}": { "delete": { "tags": [ "User" ], "operationId": "UserRemoveUserOutletRole", "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "role", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/user/outlet/{userId}": { "delete": { "tags": [ "User" ], "operationId": "UserRemoveUserOutlet", "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/user/pin/login": { "post": { "tags": [ "User" ], "operationId": "UserPinLogin", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserPinLoginRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserPinLoginResponse" } } } } } } }, "/user/pin": { "get": { "tags": [ "User" ], "operationId": "UserPinGet", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserPinGetResponse" } } } }, "401": { "description": "Unauthorized" } } }, "post": { "tags": [ "User" ], "operationId": "UserPinCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserPinCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } } }, "/user/linkAccount": { "post": { "tags": [ "User" ], "operationId": "UserLinkAccount", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserLinkAccountRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserLinkAccountResponse" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/user/getStatus": { "get": { "tags": [ "User" ], "operationId": "UserGetStatus", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserGetStatusResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/user/getRoles": { "get": { "tags": [ "User" ], "operationId": "UserGetRoles", "parameters": [ { "name": "userId", "in": "query", "required": true, "schema": { "type": "string" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "string" } } } } }, "401": { "description": "Unauthorized" } } } }, "/user/counter": { "get": { "tags": [ "User" ], "operationId": "UserGetCounterUsers", "parameters": [ { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserGetCounterUsersResponse" } } } } } } } }, "/role/createRole": { "post": { "tags": [ "Role" ], "operationId": "UserCreateRole", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserCreateRoleRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } } }, "/user/assignOutlet": { "post": { "tags": [ "User" ], "operationId": "UserAssignOutlet", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserAssignOutletRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesUserOutlet" } } } }, "401": { "description": "Unauthorized" } } } }, "/user/applyOutlet": { "post": { "tags": [ "User" ], "operationId": "UserApplyOutlet", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserApplyOutletRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } } }, "/user/role": { "post": { "tags": [ "User" ], "operationId": "UserAddUserOutletRole", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserAddUserOutletRoleRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/unit": { "get": { "tags": [ "Unit" ], "operationId": "UnitsGetAll", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesUnit" } } } } }, "401": { "description": "Unauthorized" } } } }, "/test": { "get": { "tags": [ "Test" ], "operationId": "Test", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "401": { "description": "Unauthorized" } } } }, "/test/print": { "get": { "tags": [ "Test" ], "operationId": "TestPrinterTest", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "401": { "description": "Unauthorized" } } } }, "/test/stock": { "get": { "tags": [ "Test" ], "operationId": "TestStockTest", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TestResult" } } } }, "401": { "description": "Unauthorized" } } } }, "/test/token": { "get": { "tags": [ "Test" ], "operationId": "TestTokenTest", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TestTokenResult" } } } } } } }, "/test/total": { "get": { "tags": [ "Test" ], "operationId": "TestTotalTest", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BillTableTotal" } } } }, "401": { "description": "Unauthorized" } } } }, "/order/updateTableOrder": { "post": { "tags": [ "Order" ], "operationId": "TableOrderUpdateTableOrder", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderUpdateTableOrderRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderUpdateTableOrderResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/order/updateOrderItem": { "post": { "tags": [ "Order" ], "operationId": "TableOrderUpdateOrderItem", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderUpdateOrderItemRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderUpdateOrderItemResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/order/updateOrderGroup": { "post": { "tags": [ "Order" ], "operationId": "TableOrderUpdateGroupOrder", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderUpdateGroupOrderRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderUpdateGroupOrderResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/order/sendKitchen": { "post": { "tags": [ "Order" ], "operationId": "TableOrderSendToKitchen", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderSendToKitchenRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderSendToKitchenResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/order/removeItem": { "post": { "tags": [ "Order" ], "operationId": "TableOrderRemoveItem", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderRemoveItemRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderRemoveItemResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/frontOffice/getOrders": { "get": { "tags": [ "Frontoffice" ], "operationId": "TableOrderOfficeTableBasedFront", "parameters": [ { "name": "roleIds", "in": "query", "schema": { "type": "string", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderOfficeTableBasedFrontResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/backOffice/getOrders": { "get": { "tags": [ "Backoffice" ], "operationId": "TableOrderOfficeTableBasedBack", "parameters": [ { "name": "roleIds", "in": "query", "schema": { "type": "string", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderOfficeTableBasedBackResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/orderGroup/getOrders": { "get": { "tags": [ "Ordergroup" ], "operationId": "TableOrderOfficeOrderBasedBack", "parameters": [ { "name": "divisionIds", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "complete", "in": "query", "required": true, "schema": { "type": "boolean" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderOfficeOrderBasedBackResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/order/getBill": { "get": { "tags": [ "Order" ], "operationId": "TableOrderGetBill", "parameters": [ { "name": "tableBookingId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderGetBillResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/order/getBasket": { "get": { "tags": [ "Order" ], "operationId": "TableOrderGetBasket", "parameters": [ { "name": "tableBookingId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderGetBasketResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/order/copyItem": { "post": { "tags": [ "Order" ], "operationId": "TableOrderCopyItem", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderCopyItemRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderCopyItemResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/order/clearBasket": { "delete": { "tags": [ "Order" ], "operationId": "TableOrderClearBasket", "requestBody": { "x-name": "Request", "description": "", "content": { "*/*": { "schema": { "$ref": "#/components/schemas/TableOrderClearBasketRequest" } }, "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderClearBasketRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesOrderItem" } } } }, "401": { "description": "Unauthorized" } } } }, "/order/addItems": { "post": { "tags": [ "Order" ], "operationId": "TableOrderAddItems", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableOrderAddItemsRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesOrderItem" } } } }, "401": { "description": "Unauthorized" } } } }, "/tableBooking/transfer": { "post": { "tags": [ "Tablebooking" ], "operationId": "TableBookingTransfer", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableBookingTransferRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/tableBooking/history/salesPeriod/{salesPeriodId}": { "get": { "tags": [ "Tablebooking" ], "operationId": "TableBookingPeriodHistory", "parameters": [ { "name": "salesPeriodId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "tableBookingId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "sorts", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "filters", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommonModelsPaginatedListOfResponse2" } } } }, "401": { "description": "Unauthorized" } } } }, "/tableBooking/payment": { "post": { "tags": [ "Tablebooking" ], "operationId": "TableBookingPaymentEdit", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableBookingPaymentEditRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesCashUpUserItem" } } } }, "401": { "description": "Unauthorized" } } } }, "/tableBooking/myHistory/{userId}": { "get": { "tags": [ "Tablebooking" ], "operationId": "TableBookingHistoryUser", "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "cashUpUserId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "tableBookingId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "sorts", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "filters", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommonModelsPaginatedListOfResponse2" } } } }, "401": { "description": "Unauthorized" } } } }, "/tableBooking/history/all": { "get": { "tags": [ "Tablebooking" ], "operationId": "TableBookingHistoryAll", "parameters": [ { "name": "tableBookingId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "startDate", "in": "query", "schema": { "type": "string", "format": "date-time", "nullable": true } }, { "name": "endDate", "in": "query", "schema": { "type": "string", "format": "date-time", "nullable": true } }, { "name": "sorts", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "filters", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommonModelsPaginatedListOfResponse2" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/tableBooking/myHistory": { "get": { "tags": [ "Tablebooking" ], "operationId": "TableBookingHistory", "parameters": [ { "name": "tableBookingId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "sorts", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "filters", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommonModelsPaginatedListOfResponse2" } } } }, "401": { "description": "Unauthorized" } } } }, "/tableBooking/{id}": { "get": { "tags": [ "Tablebooking" ], "operationId": "TableBookingGet", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableBookingGetResponse" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/tableBooking": { "post": { "tags": [ "Tablebooking" ], "operationId": "TableBookingCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableBookingCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesTableBooking" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/tableBooking/close": { "post": { "tags": [ "Tablebooking" ], "operationId": "TableBookingClose", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableBookingCloseRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesTableBooking" } } } }, "401": { "description": "Unauthorized" } } } }, "/table/{tableId}": { "put": { "tags": [ "Table" ], "operationId": "TableUpdate", "parameters": [ { "name": "tableId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesTable" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/table/booked": { "get": { "tags": [ "Table" ], "operationId": "TableGetBooked", "parameters": [ { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "myBooking", "in": "query", "required": true, "schema": { "type": "boolean" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TableGetBookedResponse" } } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/table/available": { "get": { "tags": [ "Table" ], "operationId": "TableGetAvailable", "parameters": [ { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TableGetAvailableResponse" } } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/table/{id}": { "delete": { "tags": [ "Table" ], "operationId": "TableDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/table": { "post": { "tags": [ "Table" ], "operationId": "TableCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesTable" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/supplier": { "put": { "tags": [ "Supplier" ], "operationId": "SupplierUpdate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SupplierUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } }, "get": { "tags": [ "Supplier" ], "operationId": "SupplierGetAll", "parameters": [ { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/DTOSupplierDTO" } } } } }, "401": { "description": "Unauthorized" } } }, "post": { "tags": [ "Supplier" ], "operationId": "SupplierCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SupplierCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesSupplier" } } } }, "401": { "description": "Unauthorized" } } } }, "/supplier/{id}": { "delete": { "tags": [ "Supplier" ], "operationId": "SupplierDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/stockCategory/{id}": { "put": { "tags": [ "Stockcategory" ], "operationId": "StockCategoryUpdate", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockCategoryUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesStockCategory" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/stockCategory": { "get": { "tags": [ "Stockcategory" ], "operationId": "StockCategoryGetAll", "parameters": [ { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "parentOnly", "in": "query", "required": true, "schema": { "type": "boolean" } }, { "name": "parentId", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesStockCategory" } } } } }, "401": { "description": "Unauthorized" } } }, "post": { "tags": [ "Stockcategory" ], "operationId": "StockCategoryCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockCategoryCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesStockCategory" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/stock": { "put": { "tags": [ "Stock" ], "operationId": "StockUpdate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } }, "get": { "tags": [ "Stock" ], "operationId": "StockGetAll", "parameters": [ { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "sorts", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "filters", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommonModelsPaginatedListOfResponse4" } } } }, "401": { "description": "Unauthorized" } } }, "post": { "tags": [ "Stock" ], "operationId": "StockCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesStockOrder" } } } }, "401": { "description": "Unauthorized" } } } }, "/stock/orderItem/bulk": { "put": { "tags": [ "Stock" ], "operationId": "StockOrderItemUpdateBulk", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockOrderItemUpdateBulkRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/stock/orderItem": { "put": { "tags": [ "Stock" ], "operationId": "StockOrderItemUpdate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockOrderItemUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesStockOrderItem" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "post": { "tags": [ "Stock" ], "operationId": "StockOrderItemCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockOrderItemCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesStockOrder" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/stock/orderItem/status": { "get": { "tags": [ "Stock" ], "operationId": "StockOrderItemStatus", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/DTOStockOrderItemStatusDTO" } } } } }, "401": { "description": "Unauthorized" } } } }, "/stock/orderItem/lastPrice": { "get": { "tags": [ "Stock" ], "operationId": "StockOrderItemLastPrice", "parameters": [ { "name": "stockId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "stockOrderId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockOrderItemLastPriceResponse" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/stock/orderItem/{stockId}/{stockOrderId}": { "delete": { "tags": [ "Stock" ], "operationId": "StockOrderItemDelete", "parameters": [ { "name": "stockId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "stockOrderId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/stock/order": { "put": { "tags": [ "Stock" ], "operationId": "StockOrderUpdate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockOrderUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesStockOrder" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } }, "get": { "tags": [ "Stock" ], "operationId": "StockOrderGetAll", "parameters": [ { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "sorts", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "filters", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommonModelsPaginatedListOfStockOrderResponseDTO" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "post": { "tags": [ "Stock" ], "operationId": "StockOrderCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockOrderCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesStockOrder" } } } }, "401": { "description": "Unauthorized" } } } }, "/stock/order/{id}": { "get": { "tags": [ "Stock" ], "operationId": "StockOrderGet", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DTOStockOrderDTO" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "delete": { "tags": [ "Stock" ], "operationId": "StockOrderDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/stock/order/cancel": { "put": { "tags": [ "Stock" ], "operationId": "StockOrderCancel", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockOrderCancelRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/stock/link": { "put": { "tags": [ "Stock" ], "operationId": "StockLinkUpdate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockLinkUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } }, "post": { "tags": [ "Stock" ], "operationId": "StockLinkAdd", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockLinkAddRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/stock/link/all": { "get": { "tags": [ "Stock" ], "operationId": "StockLinkGetAll", "parameters": [ { "name": "id", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "linkType", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/StockLinkGetAllResponse" } } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/stock/link/{stockId}": { "get": { "tags": [ "Stock" ], "operationId": "StockLinkGet", "parameters": [ { "name": "stockId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/StockLinkGetResponse" } } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/stock/link/{id}/{stockId}/{linkType}": { "delete": { "tags": [ "Stock" ], "operationId": "StockLinkDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "stockId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "linkType", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/stock/items/stockTake": { "put": { "tags": [ "Stock" ], "operationId": "StockItemsUpdateStockTake", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockItemsUpdateStockTakeRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/stock/items": { "put": { "tags": [ "Stock" ], "operationId": "StockItemsUpdate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockItemsUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "get": { "tags": [ "Stock" ], "operationId": "StockItemsGetAll", "parameters": [ { "name": "id", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/StockItemsGetAllResponse" } } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/stock/items/{stockId}/{divisionId}": { "get": { "tags": [ "Stock" ], "operationId": "StockItemsGet", "parameters": [ { "name": "stockId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "divisionId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockItemsGetResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/stock/division/list": { "get": { "tags": [ "Stock" ], "operationId": "StockGetAllDivision", "parameters": [ { "name": "divisionId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "sorts", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "filters", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommonModelsPaginatedListOfResponse3" } } } }, "401": { "description": "Unauthorized" } } } }, "/stock/division": { "get": { "tags": [ "Stock" ], "operationId": "StockDivisionGetAll", "parameters": [ { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesDivision" } } } } }, "401": { "description": "Unauthorized" } } } }, "/stock/{id}": { "delete": { "tags": [ "Stock" ], "operationId": "StockDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/stock/category/{outletId}": { "get": { "tags": [ "Stock" ], "operationId": "StockCategory", "parameters": [ { "name": "outletId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/StockCategoryResponse" } } } } }, "401": { "description": "Unauthorized" } } } }, "/stock/allocate": { "put": { "tags": [ "Stock" ], "operationId": "StockAllocateUpdate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockAllocateUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } }, "get": { "tags": [ "Stock" ], "operationId": "StockAllocateGetAll", "parameters": [ { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "sorts", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "filters", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommonModelsPaginatedListOfStockAllocateDTOBasic" } } } }, "401": { "description": "Unauthorized" } } }, "post": { "tags": [ "Stock" ], "operationId": "StockAllocateCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockAllocateCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesStockOrder" } } } }, "401": { "description": "Unauthorized" } } } }, "/stock/allocate/item": { "put": { "tags": [ "Stock" ], "operationId": "StockAllocateItemUpdate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockAllocateItemUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesStockAllocateItem" } } } }, "401": { "description": "Unauthorized" } } }, "post": { "tags": [ "Stock" ], "operationId": "StockAllocateItemCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockAllocateItemCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesStockOrder" } } } }, "401": { "description": "Unauthorized" } } } }, "/stock/allocate/item/{id}": { "delete": { "tags": [ "Stock" ], "operationId": "StockAllocateItemDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/stock/allocate/item/cancel": { "put": { "tags": [ "Stock" ], "operationId": "StockAllocateItemCancel", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockAllocateItemCancelRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesStockAllocateItem" } } } }, "401": { "description": "Unauthorized" } } } }, "/stock/allocate/item/action": { "put": { "tags": [ "Stock" ], "operationId": "StockAllocateItemAction", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockAllocateItemActionRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesStockAllocateItem" } } } }, "401": { "description": "Unauthorized" } } } }, "/stock/allocate/{id}": { "get": { "tags": [ "Stock" ], "operationId": "StockAllocateGet", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DTOStockAllocateDTO" } } } }, "401": { "description": "Unauthorized" } } } }, "/stats/salesPeriod": { "get": { "tags": [ "Stats" ], "operationId": "StatsTopSalesPeriod", "parameters": [ { "name": "top", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/StatsTopSalesPeriodResponse" } } } } }, "401": { "description": "Unauthorized" } } } }, "/stats/paymentTypes": { "get": { "tags": [ "Stats" ], "operationId": "StatsPaymentTypes", "parameters": [ { "name": "salesPeriodId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "top", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/StatsPaymentTypesResponse" } } } } }, "401": { "description": "Unauthorized" } } } }, "/stats/cashUp": { "get": { "tags": [ "Stats" ], "operationId": "StatsCashUp", "parameters": [ { "name": "salesPeriodId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/StatsCashUpResponse" } } } } }, "401": { "description": "Unauthorized" } } } }, "/section/{sectionId}": { "put": { "tags": [ "Section" ], "operationId": "SectionUpdate", "parameters": [ { "name": "sectionId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SectionUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesSection" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } }, "get": { "tags": [ "Section" ], "operationId": "SectionGet", "parameters": [ { "name": "sectionId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesSection" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/section/tables": { "get": { "tags": [ "Section" ], "operationId": "SectionTableGetAll", "parameters": [ { "name": "sectionId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesTable" } } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/section": { "get": { "tags": [ "Section" ], "operationId": "SectionList", "parameters": [ { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesSection" } } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } }, "post": { "tags": [ "Section" ], "operationId": "SectionCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SectionCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesSection" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/section/{id}": { "delete": { "tags": [ "Section" ], "operationId": "SectionDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/salesPeriod/{outletId}": { "get": { "tags": [ "Salesperiod" ], "operationId": "SalesPeriodGet", "parameters": [ { "name": "outletId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesSalesPeriod" } } } }, "401": { "description": "Unauthorized" } } } }, "/salesperiod/createCashup": { "get": { "tags": [ "Salesperiod" ], "operationId": "SalesPeriodCreateCashUp", "parameters": [ { "name": "cashUpTotal", "in": "query", "required": true, "schema": { "type": "number", "format": "decimal" } }, { "name": "tableCount", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "cashUpBalance", "in": "query", "required": true, "schema": { "type": "number", "format": "decimal" } }, { "name": "cashUpTotalPayments", "in": "query", "required": true, "schema": { "type": "number", "format": "decimal" } }, { "name": "salesPeriodId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "userId", "in": "query", "required": true, "schema": { "type": "string" } }, { "name": "signOffUserId", "in": "query", "required": true, "schema": { "type": "string" } }, { "name": "signOffDate", "in": "query", "schema": { "type": "string", "format": "date-time", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesCashUp" } } } }, "401": { "description": "Unauthorized" } } } }, "/salesPeriod": { "post": { "tags": [ "Salesperiod" ], "operationId": "SalesPeriodCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SalesPeriodCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesSalesPeriod" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/salesPeriod/close": { "post": { "tags": [ "Salesperiod" ], "operationId": "SalesPeriodClose", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SalesPeriodCloseRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesSalesPeriod" } } } }, "401": { "description": "Unauthorized" } } } }, "/salesperiod/cashup": { "get": { "tags": [ "Salesperiod" ], "operationId": "SalesPeriodCashUp", "parameters": [ { "name": "salesPeriodId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "userId", "in": "query", "required": true, "schema": { "type": "string" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SalesPeriodCashUpCashUp" } } } }, "401": { "description": "Unauthorized" } } } }, "/role/{id}": { "put": { "tags": [ "Role" ], "operationId": "RoleUpdate", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RoleUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesRole" } } } }, "401": { "description": "Unauthorized" } } }, "delete": { "tags": [ "Role" ], "operationId": "RoleDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesRole" } } } }, "401": { "description": "Unauthorized" } } } }, "/role/type/{outletId}": { "get": { "tags": [ "Role" ], "operationId": "RoleTypeGetAll", "parameters": [ { "name": "outletId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesRoleType" } } } } }, "401": { "description": "Unauthorized" } } } }, "/role/{outletId}": { "get": { "tags": [ "Role" ], "operationId": "RoleGetAll", "parameters": [ { "name": "outletId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesRole" } } } } }, "401": { "description": "Unauthorized" } } } }, "/role/division/{divisionid}": { "get": { "tags": [ "Role" ], "operationId": "RoleDivisionGetAll", "parameters": [ { "name": "divisionid", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesRole" } } } } }, "401": { "description": "Unauthorized" } } } }, "/role/division/{roleId}/{divisionId}": { "delete": { "tags": [ "Role" ], "operationId": "RoleDivisionDelete", "parameters": [ { "name": "roleId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "divisionId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } } }, "/role/division": { "post": { "tags": [ "Role" ], "operationId": "RoleDivisionCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RoleDivisionCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesDivision" } } } }, "401": { "description": "Unauthorized" } } } }, "/role": { "post": { "tags": [ "Role" ], "operationId": "RoleCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RoleCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesRole" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/printerservicekey/revoke": { "post": { "tags": [ "Printerservicekey" ], "operationId": "PrintServiceKeyRevoke", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PrintServiceKeyRevokeRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/printerservicekey": { "get": { "tags": [ "Printerservicekey" ], "operationId": "PrintServiceKeyList", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/DTOPrintServiceKeyDTO" } } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "post": { "tags": [ "Printerservicekey" ], "operationId": "PrintServiceKeyCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PrintServiceKeyCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DTOPrintServiceKeyDTO" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/printer/test": { "post": { "tags": [ "Printer" ], "operationId": "PrinterTest", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PrinterTestRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/printer/scan": { "get": { "tags": [ "Printer" ], "operationId": "PrinterScanResults", "parameters": [ { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "deviceId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PrinterScanResultsResults" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } }, "post": { "tags": [ "Printer" ], "operationId": "PrinterScan", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PrinterScanRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/printer/{outletId}": { "get": { "tags": [ "Printer" ], "operationId": "PrinterList", "parameters": [ { "name": "outletId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/DTOPrinterDTO" } } } } }, "401": { "description": "Unauthorized" } } } }, "/printer": { "put": { "tags": [ "Printer" ], "operationId": "PrinterEdit", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PrinterEditRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DTOPrinterDTO" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } }, "post": { "tags": [ "Printer" ], "operationId": "PrinterCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PrinterCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DTOPrinterDTO" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/printer/{id}": { "delete": { "tags": [ "Printer" ], "operationId": "PrinterDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } } }, "/pay/status/{reference}": { "get": { "tags": [ "Pay" ], "operationId": "PayStatus", "parameters": [ { "name": "reference", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommonWrapperResultOfStatusResultDto" } } } }, "401": { "description": "Unauthorized" } } } }, "/pay/config/test": { "post": { "tags": [ "Pay" ], "operationId": "PayPayConfigTestConfig", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayPayConfigTestConfigRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "401": { "description": "Unauthorized" } } } }, "/pay/config/activate": { "post": { "tags": [ "Pay" ], "operationId": "PayPayConfigSetActive", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayPayConfigSetActiveRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/pay/config/{outletId}": { "get": { "tags": [ "Pay" ], "operationId": "PayPayConfigGet", "parameters": [ { "name": "outletId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesHaloConfig" } } } } }, "401": { "description": "Unauthorized" } } } }, "/pay/config/{id}": { "delete": { "tags": [ "Pay" ], "operationId": "PayPayConfigDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } } }, "/pay/config": { "post": { "tags": [ "Pay" ], "operationId": "PayPayConfigCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayPayConfigCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesHaloConfig" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/pay/manual": { "post": { "tags": [ "Pay" ], "operationId": "PayManualPayment", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayManualPaymentRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesPayment" } } } }, "401": { "description": "Unauthorized" } } } }, "/pay/getLink": { "get": { "tags": [ "Pay" ], "operationId": "PayGetLink", "parameters": [ { "name": "amount", "in": "query", "required": true, "schema": { "type": "number", "format": "decimal" } }, { "name": "tableBookingId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommonWrapperResultOfResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/pay/check": { "post": { "tags": [ "Pay" ], "operationId": "PayCheck", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayCheckRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayCheckResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/outlet/{id}": { "put": { "tags": [ "Outlet" ], "operationId": "OutletUpdate", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OutletUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesOutlet" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } }, "get": { "tags": [ "Outlet" ], "operationId": "OutletGet", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesOutlet" } } } }, "401": { "description": "Unauthorized" } } } }, "/outlet": { "get": { "tags": [ "Outlet" ], "operationId": "OutletList", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesOutlet" } } } } }, "401": { "description": "Unauthorized" } } }, "post": { "tags": [ "Outlet" ], "operationId": "OutletCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OutletCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesOutlet" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/outlet/paymentTypes/{id}": { "get": { "tags": [ "Outlet" ], "operationId": "OutletGetPaymentType", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesPaymentType" } } } } }, "401": { "description": "Unauthorized" } } } }, "/outlet/assigned": { "get": { "tags": [ "Outlet" ], "operationId": "OutletGetAllAssigned", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/DTOOutletDTOBasic" } } } } }, "401": { "description": "Unauthorized" } } } }, "/outlet/counter": { "get": { "tags": [ "Outlet" ], "operationId": "OutletCounterGetAll", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesOutletCounter" } } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "post": { "tags": [ "Outlet" ], "operationId": "OutletCounterCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OutletCounterCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "string", "format": "guid" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/outlet/counter/{deviceId}": { "delete": { "tags": [ "Outlet" ], "operationId": "OutletCounterDelete", "parameters": [ { "name": "deviceId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "string", "format": "guid" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/option": { "put": { "tags": [ "Option" ], "operationId": "OptionUpdate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OptionUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } }, "get": { "tags": [ "Option" ], "operationId": "OptionGroup", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/DTOOptionGroupBasicDTO" } } } } }, "401": { "description": "Unauthorized" } } }, "post": { "tags": [ "Option" ], "operationId": "OptionCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OptionCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } } }, "/option/{id}": { "get": { "tags": [ "Option" ], "operationId": "OptionItems", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/DTOOptionDTO" } } } } }, "401": { "description": "Unauthorized" } } }, "delete": { "tags": [ "Option" ], "operationId": "OptionDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/option/group": { "put": { "tags": [ "Option" ], "operationId": "OptionGroupUpdate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OptionGroupUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } }, "post": { "tags": [ "Option" ], "operationId": "OptionGroupCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OptionGroupCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } } }, "/option/group/{id}": { "delete": { "tags": [ "Option" ], "operationId": "OptionGroupDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/notification/user": { "post": { "tags": [ "Notification" ], "operationId": "NotificationUser", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationUserRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "401": { "description": "Unauthorized" } } } }, "/notification/testNew": { "post": { "tags": [ "Notification" ], "operationId": "NotificationTestNew", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationTestNewRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "401": { "description": "Unauthorized" } } } }, "/notification/test": { "post": { "tags": [ "Notification" ], "operationId": "NotificationTest", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationTestRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "401": { "description": "Unauthorized" } } } }, "/notification/sound": { "post": { "tags": [ "Notification" ], "operationId": "NotificationSound", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "401": { "description": "Unauthorized" } } } }, "/notification/addUser": { "post": { "tags": [ "Notification" ], "operationId": "NotificationAddUser", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationAddUserRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "401": { "description": "Unauthorized" } } } }, "/menuItem": { "put": { "tags": [ "Menuitem" ], "operationId": "MenuItemUpdate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MenuItemUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesMenuItem" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "get": { "tags": [ "Menuitem" ], "operationId": "MenuItemGetAll", "parameters": [ { "name": "sorts", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "filters", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommonModelsPaginatedListOfMenuItemAdminDTO" } } } }, "401": { "description": "Unauthorized" } } }, "post": { "tags": [ "Menuitem" ], "operationId": "MenuItemCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MenuItemCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesMenuItem" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/menuItem/{id}": { "delete": { "tags": [ "Menuitem" ], "operationId": "MenuItemDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesMenuSection" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/menu": { "put": { "tags": [ "Menu" ], "operationId": "MenuUpdate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MenuUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesMenu" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } }, "get": { "tags": [ "Menu" ], "operationId": "MenuList", "parameters": [ { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesMenu" } } } } }, "401": { "description": "Unauthorized" } } }, "post": { "tags": [ "Menu" ], "operationId": "MenuCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MenuCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesMenu" } } } }, "401": { "description": "Unauthorized" } } } }, "/menuSection": { "put": { "tags": [ "Menusection" ], "operationId": "MenuSectionsUpdate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MenuSectionsUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesMenuSection" } } } }, "401": { "description": "Unauthorized" } } }, "post": { "tags": [ "Menusection" ], "operationId": "MenuSectionsCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MenuSectionsCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesMenuSection" } } } }, "401": { "description": "Unauthorized" } } } }, "/menuSection/{id}": { "delete": { "tags": [ "Menusection" ], "operationId": "MenuSectionsDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesMenuSection" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/menu/sections": { "get": { "tags": [ "Menu" ], "operationId": "MenuGetSectionsGetMenusSections", "parameters": [ { "name": "menuId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "sectionId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MenuGetSectionsResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/menu/outletMenus": { "get": { "tags": [ "Menu" ], "operationId": "MenuGetOutletMenuGetOutletMenus", "parameters": [ { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesMenu" } } } } }, "401": { "description": "Unauthorized" } } } }, "/menu/items": { "get": { "tags": [ "Menu" ], "operationId": "MenuGetItemsGetMenuItems", "parameters": [ { "name": "menuId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "sectionId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "search", "in": "query", "schema": { "type": "string", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/DTOMenuItemDTOBasic" } } } } }, "401": { "description": "Unauthorized" } } } }, "/menu/item": { "get": { "tags": [ "Menu" ], "operationId": "MenuGetItemGetMenuItems", "parameters": [ { "name": "menuItemId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "divisionId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DTOMenuItemDTO" } } } }, "401": { "description": "Unauthorized" } } } }, "/menu/{menuId}": { "get": { "tags": [ "Menu" ], "operationId": "MenuGet", "parameters": [ { "name": "menuId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesMenu" } } } }, "401": { "description": "Unauthorized" } } } }, "/menu/{id}": { "delete": { "tags": [ "Menu" ], "operationId": "MenuDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/manager/viewOrders": { "get": { "tags": [ "Manager" ], "operationId": "ManagerOrderView", "parameters": [ { "name": "roleIds", "in": "query", "schema": { "type": "string", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ManagerOrderViewResponse" } } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/extra": { "put": { "tags": [ "Extra" ], "operationId": "ExtraUpdate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExtraUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } }, "get": { "tags": [ "Extra" ], "operationId": "ExtraGroup", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/DTOExtraGroupAdminDTO" } } } } }, "401": { "description": "Unauthorized" } } }, "post": { "tags": [ "Extra" ], "operationId": "ExtraCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExtraCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } } }, "/extra/{id}": { "get": { "tags": [ "Extra" ], "operationId": "ExtraItems", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/DTOExtraDTO" } } } } }, "401": { "description": "Unauthorized" } } }, "delete": { "tags": [ "Extra" ], "operationId": "ExtraDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/extraGroup": { "put": { "tags": [ "Extragroup" ], "operationId": "ExtraGroupUpdate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExtraGroupUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } }, "post": { "tags": [ "Extragroup" ], "operationId": "ExtraGroupCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExtraGroupCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } } }, "/extraGroup/{id}": { "delete": { "tags": [ "Extragroup" ], "operationId": "ExtraGroupDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } } }, "/extra/menu": { "get": { "tags": [ "Extra" ], "operationId": "ExtraGetAllMenu", "parameters": [ { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "divisionId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ExtraGetAllMenuSpecialExtrasDTO" } } } } }, "401": { "description": "Unauthorized" } } } }, "/extra/all": { "get": { "tags": [ "Extra" ], "operationId": "ExtraGetAll", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesExtra" } } } } }, "401": { "description": "Unauthorized" } } } }, "/divisionType": { "get": { "tags": [ "Divisiontype" ], "operationId": "DivisionTypeGetAll", "parameters": [ { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesDivisionType" } } } } }, "401": { "description": "Unauthorized" } } }, "put": { "tags": [ "Divisiontype" ], "operationId": "DivisionTypeEdit", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DivisionTypeEditRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } }, "post": { "tags": [ "Divisiontype" ], "operationId": "DivisionTypeCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DivisionTypeCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesDivisionType" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/division/users/{divisionId}": { "get": { "tags": [ "Division" ], "operationId": "DivisionGetUsers", "parameters": [ { "name": "divisionId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "excludeSelf", "in": "query", "schema": { "type": "boolean", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/DivisionGetUsersResponse" } } } } }, "401": { "description": "Unauthorized" } } } }, "/division": { "get": { "tags": [ "Division" ], "operationId": "DivisionGetAll", "parameters": [ { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesDivision" } } } } }, "401": { "description": "Unauthorized" } } }, "put": { "tags": [ "Division" ], "operationId": "DivisionEdit", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DivisionEditRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } }, "post": { "tags": [ "Division" ], "operationId": "DivisionCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DivisionCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesDivision" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/division/{id}": { "delete": { "tags": [ "Division" ], "operationId": "DivisionDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/clock/list": { "get": { "tags": [ "Clock" ], "operationId": "ClockGetAllOutletId", "parameters": [ { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "statusId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesUser" } } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/clock/out": { "post": { "tags": [ "Clock" ], "operationId": "ClockClockOut", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClockClockOutRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } } }, "/clock/in": { "post": { "tags": [ "Clock" ], "operationId": "ClockClockIn", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClockClockInRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } } }, "/cashUp/user/itemType": { "get": { "tags": [ "Cashup" ], "operationId": "CashUpUserItemType", "parameters": [ { "name": "isAuto", "in": "query", "required": true, "schema": { "type": "boolean" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesCashUpUserItemType" } } } } }, "401": { "description": "Unauthorized" } } } }, "/cashUp/user/{outletId}": { "get": { "tags": [ "Cashup" ], "operationId": "CashUpUserGet", "parameters": [ { "name": "outletId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CashUpUserGetResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/cashUp/user/detail/{userId}/{outletId}": { "get": { "tags": [ "Cashup" ], "operationId": "CashUpUserDetail", "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "outletId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "cashUpUserId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CashUpUserDetailResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/cashUp/user/{id}": { "delete": { "tags": [ "Cashup" ], "operationId": "CashUpUserDelete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesCashUpUserItem" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/cashUp/user": { "post": { "tags": [ "Cashup" ], "operationId": "CashUpUserCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CashUpUserCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesCashUpUserItem" } } } }, "401": { "description": "Unauthorized" } } } }, "/cashUp/close": { "post": { "tags": [ "Cashup" ], "operationId": "CashUpUserClose", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CashUpUserCloseRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CashUpUserDetailResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/business/outlets/{outletId}": { "get": { "tags": [ "Business" ], "operationId": "BusinessGetOutlets", "parameters": [ { "name": "outletId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesOutlet" } } } } }, "401": { "description": "Unauthorized" } } } }, "/business": { "get": { "tags": [ "Business" ], "operationId": "BusinessGetAll", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesBusiness" } } } } }, "401": { "description": "Unauthorized" } } }, "put": { "tags": [ "Business" ], "operationId": "BusinessEdit", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BusinessEditRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } }, "delete": { "tags": [ "Business" ], "operationId": "BusinessDelete", "requestBody": { "x-name": "Request", "description": "", "content": { "*/*": { "schema": { "$ref": "#/components/schemas/BusinessDeleteRequest" } }, "application/json": { "schema": { "$ref": "#/components/schemas/BusinessDeleteRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } }, "post": { "tags": [ "Business" ], "operationId": "BusinessCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BusinessCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesBusiness" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/business/{id}": { "get": { "tags": [ "Business" ], "operationId": "BusinessGet", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesBusiness" } } } }, "401": { "description": "Unauthorized" } } } }, "/billCategory/{id}": { "put": { "tags": [ "Billcategory" ], "operationId": "BillCategoryUpdate", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BillCategoryUpdateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesBillCategory" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/BillCategory": { "get": { "tags": [ "Billcategory" ], "operationId": "BillCategoryGetAll", "parameters": [ { "name": "outletId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesBillCategory" } } } } }, "401": { "description": "Unauthorized" } } } }, "/billCategory": { "post": { "tags": [ "Billcategory" ], "operationId": "BillCategoryCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BillCategoryCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesBillCategory" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/bill/whatsapp": { "post": { "tags": [ "Bill" ], "operationId": "BillWhatsappBill", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BillWhatsappBillRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/bill/print": { "post": { "tags": [ "Bill" ], "operationId": "BillPrintBill", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BillPrintBillRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "401": { "description": "Unauthorized" } } } }, "/bill/email": { "post": { "tags": [ "Bill" ], "operationId": "BillEmailBill", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BillEmailBillRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "401": { "description": "Unauthorized" } } } }, "/bill/download/{tableBookingId}": { "get": { "tags": [ "Bill" ], "operationId": "BillDownloadBill", "parameters": [ { "name": "tableBookingId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } } }, "/ai/stream": { "get": { "tags": [ "Ai" ], "operationId": "AIGenerateStream", "parameters": [ { "name": "prompt", "in": "query", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "string" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/ai/menu-description": { "post": { "tags": [ "Ai" ], "operationId": "AIGenerateMenuDescription", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AIGenerateMenuDescriptionRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "string" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/ai/generate": { "post": { "tags": [ "Ai" ], "operationId": "AIGenerate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AIGenerateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "string" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/admin/token": { "post": { "tags": [ "Admin" ], "operationId": "AdminToken", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminTokenRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminTokenResponse" } } } }, "401": { "description": "Unauthorized" } } } }, "/remove": { "post": { "tags": [ "Remove" ], "operationId": "AdjustmentTypeOutletRemove", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdjustmentTypeOutletRemoveRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesAdjustmentTypeOutlet" } } } }, "401": { "description": "Unauthorized" } } } }, "/adjustmentType": { "post": { "tags": [ "Adjustmenttype" ], "operationId": "AdjustmentTypeOutletCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdjustmentTypeOutletCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitiesMenu" } } } }, "401": { "description": "Unauthorized" } } } }, "/adjustment/{outletId}": { "get": { "tags": [ "Adjustment" ], "operationId": "AdjustmentGetAll", "parameters": [ { "name": "outletId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesAdjustmentType" } } } } }, "401": { "description": "Unauthorized" } } } }, "/adjustment": { "post": { "tags": [ "Adjustment" ], "operationId": "AdjustmentCreate", "requestBody": { "x-name": "Request", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdjustmentCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" } } } } }, "components": { "schemas": { "InternalErrorResponse": { "type": "object", "description": "the dto used to send an error response to the client when an unhandled exception occurs on the server", "additionalProperties": false, "required": [ "status", "code", "reason", "note" ], "properties": { "status": { "type": "string", "description": "error status", "default": "Internal Server Error!" }, "code": { "type": "integer", "description": "http status code of the error response", "format": "int32", "default": 500 }, "reason": { "type": "string", "description": "the reason for the error", "default": "Something unexpected has happened" }, "note": { "type": "string", "description": "additional information or instructions", "default": "See application log for stack trace." } } }, "ServicesWhatsappWResponseOfSessionStatus": { "type": "object", "additionalProperties": false, "required": [ "code", "success" ], "properties": { "code": { "type": "integer", "format": "int32" }, "success": { "type": "boolean" }, "data": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/ServicesWhatsappSessionStatus" } ] } } }, "ServicesWhatsappSessionStatus": { "type": "object", "additionalProperties": false, "required": [ "connected", "loggedIn" ], "properties": { "connected": { "type": "boolean" }, "loggedIn": { "type": "boolean" } } }, "ServicesWhatsappWResponseOfQrResponse": { "type": "object", "additionalProperties": false, "required": [ "code", "success" ], "properties": { "code": { "type": "integer", "format": "int32" }, "success": { "type": "boolean" }, "data": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/ServicesWhatsappQrResponse" } ] } } }, "ServicesWhatsappQrResponse": { "type": "object", "additionalProperties": false, "required": [ "qrCode" ], "properties": { "qrCode": { "type": "string" } } }, "ServicesWhatsappWResponseOfSessionLogout": { "type": "object", "additionalProperties": false, "required": [ "code", "success" ], "properties": { "code": { "type": "integer", "format": "int32" }, "success": { "type": "boolean" }, "data": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/ServicesWhatsappSessionLogout" } ] } } }, "ServicesWhatsappSessionLogout": { "type": "object", "additionalProperties": false, "required": [ "details" ], "properties": { "details": { "type": "string" } } }, "ServicesWhatsappWResponseOfSessionConnectResponse": { "type": "object", "additionalProperties": false, "required": [ "code", "success" ], "properties": { "code": { "type": "integer", "format": "int32" }, "success": { "type": "boolean" }, "data": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/ServicesWhatsappSessionConnectResponse" } ] } } }, "ServicesWhatsappSessionConnectResponse": { "type": "object", "additionalProperties": false, "required": [ "details", "events", "jid", "webhook" ], "properties": { "details": { "type": "string" }, "events": { "type": "string" }, "jid": { "type": "string" }, "webhook": { "type": "string" } } }, "UserValidateResponse": { "type": "object", "additionalProperties": false, "required": [ "userId" ], "properties": { "userId": { "type": "string" } } }, "UserValidateRequest": { "type": "object", "additionalProperties": false, "required": [ "userId", "email", "name" ], "properties": { "userId": { "type": "string" }, "email": { "type": "string" }, "image": { "type": "string", "nullable": true }, "name": { "type": "string" } } }, "UserUserResponse": { "type": "object", "additionalProperties": false, "required": [ "isCurrent", "userId", "email", "image", "name", "roles" ], "properties": { "isCurrent": { "type": "boolean" }, "userId": { "type": "string" }, "email": { "type": "string" }, "image": { "type": "string" }, "name": { "type": "string" }, "roles": { "type": "string" } } }, "UserUsersTypeRequest": { "type": "object", "additionalProperties": false }, "CommonModelsPaginatedListOfUserResponse": { "type": "object", "additionalProperties": false, "required": [ "items", "pageNumber", "totalPages", "totalCount", "hasPreviousPage", "hasNextPage" ], "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/UserUserResponse" } }, "pageNumber": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "totalCount": { "type": "integer", "format": "int32" }, "hasPreviousPage": { "type": "boolean" }, "hasNextPage": { "type": "boolean" } } }, "UserUsersRequest": { "allOf": [ { "$ref": "#/components/schemas/CommonModelsQueryModel" }, { "type": "object", "additionalProperties": false } ] }, "CommonModelsQueryModel": { "type": "object", "additionalProperties": false }, "UserUnassignedUsersRequest": { "allOf": [ { "$ref": "#/components/schemas/CommonModelsQueryModel" }, { "type": "object", "additionalProperties": false } ] }, "CommonModelsPaginatedListOfResponse": { "type": "object", "additionalProperties": false, "required": [ "items", "pageNumber", "totalPages", "totalCount", "hasPreviousPage", "hasNextPage" ], "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/UserTasksResponse" } }, "pageNumber": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "totalCount": { "type": "integer", "format": "int32" }, "hasPreviousPage": { "type": "boolean" }, "hasNextPage": { "type": "boolean" } } }, "UserTasksResponse": { "type": "object", "additionalProperties": false, "required": [ "id", "outletId", "outlet", "name", "type", "status", "description", "assignedUserId", "lastModified", "toDivisionId" ], "properties": { "id": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" }, "outlet": { "$ref": "#/components/schemas/DTOOutletDTOBasic" }, "name": { "type": "string" }, "type": { "type": "string" }, "status": { "type": "string" }, "description": { "type": "string" }, "assignedUserId": { "type": "string" }, "assignedUser": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DTOUserDTO" } ] }, "lastModified": { "type": "string", "format": "date-time" }, "toDivisionId": { "type": "integer", "format": "int32" } } }, "DTOOutletDTOBasic": { "type": "object", "additionalProperties": false, "required": [ "id", "name", "vatNumber" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "vatNumber": { "type": "string" }, "address": { "type": "string", "nullable": true }, "company": { "type": "string", "nullable": true }, "registration": { "type": "string", "nullable": true } } }, "DTOUserDTO": { "type": "object", "additionalProperties": false, "required": [ "userId", "email", "image", "name", "isActive" ], "properties": { "userId": { "type": "string" }, "email": { "type": "string" }, "image": { "type": "string" }, "name": { "type": "string" }, "isActive": { "type": "boolean" } } }, "UserTasksRequest": { "allOf": [ { "$ref": "#/components/schemas/CommonModelsQueryModel" }, { "type": "object", "additionalProperties": false } ] }, "UserRemoveUserOutletRoleRequest": { "type": "object", "additionalProperties": false }, "ErrorResponse": { "type": "object", "description": "the dto used to send an error response to the client", "additionalProperties": false, "required": [ "statusCode", "message", "errors" ], "properties": { "statusCode": { "type": "integer", "description": "the http status code sent to the client. default is 400.", "format": "int32", "default": 400 }, "message": { "type": "string", "description": "the message for the error response", "default": "One or more errors occurred!" }, "errors": { "type": "object", "description": "the collection of errors for the current context", "additionalProperties": { "type": "array", "items": { "type": "string" } } } } }, "UserRemoveUserOutletRequest": { "type": "object", "additionalProperties": false }, "UserPinLoginResponse": { "type": "object", "additionalProperties": false, "required": [ "token" ], "properties": { "token": { "type": "string" } } }, "UserPinLoginRequest": { "type": "object", "additionalProperties": false, "required": [ "userId", "outletId", "deviceId", "pin" ], "properties": { "userId": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "deviceId": { "type": "string", "format": "guid" }, "pin": { "type": "string" } } }, "UserPinGetResponse": { "type": "object", "additionalProperties": false, "required": [ "userId", "outletId", "pin", "isEnabled" ], "properties": { "userId": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "pin": { "type": "string" }, "isEnabled": { "type": "boolean" } } }, "UserPinCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "pin", "isEnabled" ], "properties": { "pin": { "type": "string" }, "isEnabled": { "type": "boolean" } } }, "UserLinkAccountResponse": { "type": "object", "additionalProperties": false, "required": [ "isSuccess" ], "properties": { "message": { "type": "string", "nullable": true }, "isSuccess": { "type": "boolean" } } }, "UserLinkAccountRequest": { "type": "object", "additionalProperties": false, "required": [ "otp" ], "properties": { "otp": { "type": "string", "maxLength": 6, "minLength": 6 } } }, "UserGetStatusResponse": { "type": "object", "additionalProperties": false, "required": [ "outletId", "clockedIn", "salesPeriodId", "roles", "divisions", "hasNotification", "statusId", "features" ], "properties": { "outletId": { "type": "integer", "format": "int32" }, "outletName": { "type": "string", "nullable": true }, "clockedIn": { "type": "boolean" }, "salesPeriodId": { "type": "integer", "format": "int32" }, "salesPeriod": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/UserGetStatusSalesPeriodDTO" } ] }, "roles": { "type": "array", "items": { "$ref": "#/components/schemas/UserGetStatusRoleDTO" } }, "divisions": { "type": "array", "items": { "$ref": "#/components/schemas/UserGetStatusDivisionDTO" } }, "hasNotification": { "type": "boolean" }, "statusId": { "type": "integer", "format": "int32" }, "features": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesFeature" } } } }, "UserGetStatusSalesPeriodDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "outletId" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "startDate": { "type": "string", "format": "date-time", "nullable": true }, "endDate": { "type": "string", "format": "date-time", "nullable": true }, "outletId": { "type": "integer", "format": "int32" } } }, "UserGetStatusRoleDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "roleName", "roleType" ], "properties": { "id": { "type": "integer", "format": "int32" }, "roleName": { "type": "string" }, "roleType": { "type": "string" } } }, "UserGetStatusDivisionDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "EntitiesFeature": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "UserGetRolesRequest": { "type": "object", "additionalProperties": false }, "UserGetCounterUsersResponse": { "type": "object", "additionalProperties": false, "required": [ "userId", "name", "image" ], "properties": { "userId": { "type": "string" }, "name": { "type": "string" }, "image": { "type": "string" } } }, "UserGetCounterUsersRequest": { "type": "object", "additionalProperties": false }, "UserCreateRoleRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "description" ], "properties": { "name": { "type": "string" }, "description": { "type": "string" } } }, "EntitiesUserOutlet": { "type": "object", "additionalProperties": false, "required": [ "id", "outletId", "outlet", "userId", "isCurrent" ], "properties": { "id": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" }, "outlet": { "$ref": "#/components/schemas/EntitiesOutlet" }, "userId": { "type": "string" }, "isCurrent": { "type": "boolean" } } }, "EntitiesOutlet": { "type": "object", "additionalProperties": false, "required": [ "id", "name", "displayName", "businessId", "business", "vatNumber" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "displayName": { "type": "string" }, "businessId": { "type": "integer", "format": "int32" }, "business": { "$ref": "#/components/schemas/EntitiesBusiness" }, "sections": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesSection" } }, "vatNumber": { "type": "string" }, "logo": { "type": "string", "nullable": true }, "outletPaymentTypes": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesOutletPaymentType" } }, "address": { "type": "string", "nullable": true }, "company": { "type": "string", "nullable": true }, "registration": { "type": "string", "nullable": true } } }, "EntitiesBusiness": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "outlets": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesOutlet" } } } }, "EntitiesSection": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "id", "name", "outletId", "outlet", "isDeleted" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "outlet": { "$ref": "#/components/schemas/EntitiesOutlet" }, "tables": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesTable" } }, "isDeleted": { "type": "boolean" } } } ] }, "EntitiesTable": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "tableId", "name", "capacity", "position", "sectionId", "section", "customers", "isDeleted" ], "properties": { "tableId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "capacity": { "type": "integer", "format": "int32" }, "position": { "type": "integer", "format": "int32" }, "sectionId": { "type": "integer", "format": "int32" }, "section": { "$ref": "#/components/schemas/EntitiesSection" }, "customers": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesCustomer" } }, "isDeleted": { "type": "boolean" } } } ] }, "EntitiesCustomer": { "type": "object", "additionalProperties": false, "required": [ "customerId", "name", "orders" ], "properties": { "customerId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "orders": { "type": "array", "items": { "$ref": "#/components/schemas/Order" } } } }, "Order": { "type": "integer", "description": "enum used to specify whether to execute global pre/post processors before endpoint level processors", "x-enumNames": [ "Before", "After" ], "enum": [ 0, 1 ] }, "EntitiesAuditableEntity": { "type": "object", "x-abstract": true, "additionalProperties": false, "required": [ "created" ], "properties": { "created": { "type": "string", "format": "date-time" }, "createdBy": { "type": "string", "nullable": true }, "lastModified": { "type": "string", "format": "date-time", "nullable": true }, "lastModifiedBy": { "type": "string", "nullable": true } } }, "EntitiesOutletPaymentType": { "type": "object", "additionalProperties": false, "required": [ "paymentTypeId", "paymentType", "outletId", "outlet", "position" ], "properties": { "paymentTypeId": { "type": "integer", "format": "int32" }, "paymentType": { "$ref": "#/components/schemas/EntitiesPaymentType" }, "outletId": { "type": "integer", "format": "int32" }, "outlet": { "$ref": "#/components/schemas/EntitiesOutlet" }, "position": { "type": "integer", "format": "int32" } } }, "EntitiesPaymentType": { "type": "object", "additionalProperties": false, "required": [ "paymentTypeId", "paymentTypeName", "tipLevyPercentage", "discountPercentage", "canEdit" ], "properties": { "paymentTypeId": { "type": "integer", "format": "int32" }, "paymentTypeName": { "type": "string" }, "tipLevyPercentage": { "type": "number", "format": "decimal" }, "discountPercentage": { "type": "number", "format": "decimal" }, "outletPaymentTypes": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesOutletPaymentType" } }, "canEdit": { "type": "boolean" } } }, "UserAssignOutletRequest": { "type": "object", "additionalProperties": false, "required": [ "outletId" ], "properties": { "outletId": { "type": "integer", "format": "int32" } } }, "UserApplyOutletRequest": { "type": "object", "additionalProperties": false, "required": [ "outletId" ], "properties": { "outletId": { "type": "integer", "format": "int32" } } }, "UserAddUserOutletRoleRequest": { "type": "object", "additionalProperties": false, "required": [ "userId", "roleId" ], "properties": { "userId": { "type": "string" }, "roleId": { "type": "integer", "format": "int32" } } }, "EntitiesUnit": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "TestResult": { "type": "object", "additionalProperties": false, "required": [ "time" ], "properties": { "time": { "type": "string", "format": "duration" } } }, "TestTokenResult": { "type": "object", "additionalProperties": false, "required": [ "token" ], "properties": { "token": { "type": "string" } } }, "BillTableTotal": { "type": "object", "additionalProperties": false, "required": [ "total", "totalPayments", "tipTotal" ], "properties": { "total": { "type": "number", "format": "decimal" }, "totalPayments": { "type": "number", "format": "decimal" }, "tipTotal": { "type": "number", "format": "decimal" } } }, "TableOrderUpdateTableOrderResponse": { "type": "object", "additionalProperties": false, "required": [ "isSuccess" ], "properties": { "isSuccess": { "type": "boolean" } } }, "TableOrderUpdateTableOrderRequest": { "type": "object", "additionalProperties": false, "required": [ "tableBookingId", "orderItemStatusId" ], "properties": { "tableBookingId": { "type": "integer", "format": "int32" }, "orderItemStatusId": { "type": "integer", "format": "int32" } } }, "TableOrderUpdateOrderItemResponse": { "type": "object", "additionalProperties": false, "required": [ "isSuccess", "message" ], "properties": { "isSuccess": { "type": "boolean" }, "message": { "type": "string" } } }, "TableOrderUpdateOrderItemRequest": { "type": "object", "additionalProperties": false, "required": [ "orderItemIds", "orderItemStatusId" ], "properties": { "orderItemIds": { "type": "array", "items": { "type": "integer", "format": "int32" } }, "orderItemStatusId": { "type": "integer", "format": "int32" } } }, "TableOrderUpdateGroupOrderResponse": { "type": "object", "additionalProperties": false, "required": [ "isSuccess" ], "properties": { "isSuccess": { "type": "boolean" } } }, "TableOrderUpdateGroupOrderRequest": { "type": "object", "additionalProperties": false, "required": [ "orderGroupId", "orderItemStatusId" ], "properties": { "orderGroupId": { "type": "integer", "format": "int32" }, "orderItemStatusId": { "type": "integer", "format": "int32" }, "divisionIds": { "type": "string", "nullable": true } } }, "TableOrderSendToKitchenResponse": { "type": "object", "additionalProperties": false, "required": [ "isSuccess", "message" ], "properties": { "isSuccess": { "type": "boolean" }, "message": { "type": "string" } } }, "TableOrderSendToKitchenRequest": { "type": "object", "additionalProperties": false, "required": [ "tableBookingId" ], "properties": { "tableBookingId": { "type": "integer", "format": "int32" } } }, "TableOrderRemoveItemResponse": { "type": "object", "additionalProperties": false, "required": [ "isSuccess" ], "properties": { "isSuccess": { "type": "boolean" } } }, "TableOrderRemoveItemRequest": { "type": "object", "additionalProperties": false, "required": [ "orderItemId" ], "properties": { "orderItemId": { "type": "integer", "format": "int32" } } }, "TableOrderOfficeTableBasedFrontResponse": { "type": "object", "additionalProperties": false, "required": [ "lastRefresh", "pendingTables", "pendingItems" ], "properties": { "tables": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/TableOrderOfficeTableBookingDTO" } }, "lastRefresh": { "type": "string", "format": "date-time" }, "pendingTables": { "type": "integer", "format": "int32" }, "pendingItems": { "type": "integer", "format": "int32" } } }, "TableOrderOfficeTableBookingDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "tableId", "table", "bookingName", "bookingDate", "user", "salesPeriod" ], "properties": { "id": { "type": "integer", "format": "int32" }, "tableId": { "type": "integer", "format": "int32" }, "table": { "$ref": "#/components/schemas/TableOrderOfficeTableDTO" }, "orderItems": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/TableOrderOfficeOrderItemDTO" } }, "bookingName": { "type": "string" }, "bookingDate": { "type": "string", "format": "date-time" }, "closeDate": { "type": "string", "format": "date-time", "nullable": true }, "user": { "$ref": "#/components/schemas/DTOUserDTO" }, "salesPeriod": { "$ref": "#/components/schemas/DTOSalesPeriodDTO" } } }, "TableOrderOfficeTableDTO": { "type": "object", "additionalProperties": false, "required": [ "tableId", "name", "outletId" ], "properties": { "tableId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "section": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/TableOrderOfficeSectionDTO" } ] } } }, "TableOrderOfficeSectionDTO": { "type": "object", "additionalProperties": false, "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "TableOrderOfficeOrderItemDTO": { "type": "object", "additionalProperties": false, "required": [ "orderItemId", "tableBookingId", "menuItem", "divisionId", "orderReceived", "orderUpdated", "orderReceivedFormatted", "orderUpdatedFormatted", "orderItemStatusId", "orderItemStatus" ], "properties": { "orderItemId": { "type": "integer", "format": "int32" }, "tableBookingId": { "type": "integer", "format": "int32" }, "menuItem": { "$ref": "#/components/schemas/TableOrderOfficeMenuItemDTO" }, "divisionId": { "type": "integer", "format": "int32" }, "note": { "type": "string", "nullable": true }, "orderReceived": { "type": "string", "format": "date-time" }, "orderUpdated": { "type": "string", "format": "date-time" }, "orderReceivedFormatted": { "type": "string" }, "orderUpdatedFormatted": { "type": "string" }, "orderItemStatusId": { "type": "integer", "format": "int32" }, "orderItemStatus": { "$ref": "#/components/schemas/TableOrderOfficeOrderItemStatusDTO" }, "orderItemOptions": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/DTOOrderItemOptionDTO" } }, "orderItemExtras": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/DTOOrderItemExtraDTO" } } } }, "TableOrderOfficeMenuItemDTO": { "type": "object", "additionalProperties": false, "required": [ "menuItemId", "name", "description", "price", "position", "divisionId" ], "properties": { "menuItemId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "description": { "type": "string" }, "price": { "type": "number", "format": "decimal" }, "position": { "type": "integer", "format": "int32" }, "divisionId": { "type": "integer", "format": "int32" } } }, "TableOrderOfficeOrderItemStatusDTO": { "type": "object", "additionalProperties": false, "required": [ "orderItemStatusId", "status" ], "properties": { "orderItemStatusId": { "type": "integer", "format": "int32" }, "status": { "type": "string" } } }, "DTOOrderItemOptionDTO": { "type": "object", "additionalProperties": false, "required": [ "orderItemOptionId", "orderItemId", "optionId", "option" ], "properties": { "orderItemOptionId": { "type": "integer", "format": "int32" }, "orderItemId": { "type": "integer", "format": "int32" }, "optionId": { "type": "integer", "format": "int32" }, "option": { "$ref": "#/components/schemas/DTOOptionDTO" } } }, "DTOOptionDTO": { "type": "object", "additionalProperties": false, "required": [ "optionId", "name", "price", "positionId", "optionGroupId", "isAvailable", "optionGroup" ], "properties": { "optionId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "price": { "type": "number", "format": "decimal" }, "positionId": { "type": "integer", "format": "int32" }, "optionGroupId": { "type": "integer", "format": "int32" }, "isAvailable": { "type": "boolean" }, "optionGroup": { "$ref": "#/components/schemas/DTOOptionGroupBasicDTO" } } }, "DTOOptionGroupBasicDTO": { "type": "object", "additionalProperties": false, "required": [ "optionGroupId", "name", "minSelections", "maxSelections" ], "properties": { "optionGroupId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "minSelections": { "type": "integer", "format": "int32" }, "maxSelections": { "type": "integer", "format": "int32" } } }, "DTOOrderItemExtraDTO": { "type": "object", "additionalProperties": false, "required": [ "orderItemExtraId", "orderItemId", "extraId", "extra" ], "properties": { "orderItemExtraId": { "type": "integer", "format": "int32" }, "orderItemId": { "type": "integer", "format": "int32" }, "extraId": { "type": "integer", "format": "int32" }, "extra": { "$ref": "#/components/schemas/DTOExtraDTO" } } }, "DTOExtraDTO": { "type": "object", "additionalProperties": false, "required": [ "extraId", "name", "positionId", "price", "extraGroupId", "isAvailable", "extraGroup" ], "properties": { "extraId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "positionId": { "type": "integer", "format": "int32" }, "price": { "type": "number", "format": "decimal" }, "extraGroupId": { "type": "integer", "format": "int32" }, "isAvailable": { "type": "boolean" }, "extraGroup": { "$ref": "#/components/schemas/DTOExtraGroupBasicDTO" } } }, "DTOExtraGroupBasicDTO": { "type": "object", "additionalProperties": false, "required": [ "extraGroupId", "name" ], "properties": { "extraGroupId": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "DTOSalesPeriodDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "outletId" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "startDate": { "type": "string", "format": "date-time", "nullable": true }, "endDate": { "type": "string", "format": "date-time", "nullable": true }, "outletId": { "type": "integer", "format": "int32" } } }, "TableOrderOfficeTableBasedFrontRequest": { "type": "object", "additionalProperties": false }, "TableOrderOfficeTableBasedBackResponse": { "type": "object", "additionalProperties": false, "required": [ "lastRefresh", "pendingTables", "pendingItems" ], "properties": { "tables": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/TableOrderOfficeTableBookingDTO" } }, "lastRefresh": { "type": "string", "format": "date-time" }, "pendingTables": { "type": "integer", "format": "int32" }, "pendingItems": { "type": "integer", "format": "int32" } } }, "TableOrderOfficeTableBasedBackRequest": { "type": "object", "additionalProperties": false }, "TableOrderOfficeOrderBasedBackResponse": { "type": "object", "additionalProperties": false, "required": [ "lastRefresh", "pendingOrders", "pendingItems" ], "properties": { "orderGroups": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/TableOrderOfficeOrderBasedBackOrderGroupDTO" } }, "lastRefresh": { "type": "string", "format": "date-time" }, "pendingOrders": { "type": "integer", "format": "int32" }, "pendingItems": { "type": "integer", "format": "int32" } } }, "TableOrderOfficeOrderBasedBackOrderGroupDTO": { "type": "object", "additionalProperties": false, "required": [ "orderGroupId", "lastDate", "priority", "tableBookingId" ], "properties": { "orderGroupId": { "type": "integer", "format": "int32" }, "lastDate": { "type": "string", "format": "date-time" }, "priority": { "type": "integer", "format": "int32" }, "tableBooking": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/TableOrderOfficeOrderBasedBackTableBookingDTO" } ] }, "tableBookingId": { "type": "integer", "format": "int32" }, "orderItems": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/TableOrderOfficeOrderBasedBackOrderItemDTO" } } } }, "TableOrderOfficeOrderBasedBackTableBookingDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "tableId", "table", "bookingName", "bookingDate", "user" ], "properties": { "id": { "type": "integer", "format": "int32" }, "tableId": { "type": "integer", "format": "int32" }, "table": { "$ref": "#/components/schemas/TableOrderOfficeOrderBasedBackTableDTO" }, "bookingName": { "type": "string" }, "bookingDate": { "type": "string", "format": "date-time" }, "closeDate": { "type": "string", "format": "date-time", "nullable": true }, "user": { "$ref": "#/components/schemas/DTOUserDTO" } } }, "TableOrderOfficeOrderBasedBackTableDTO": { "type": "object", "additionalProperties": false, "required": [ "tableId", "name", "outletId" ], "properties": { "tableId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "section": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/TableOrderOfficeOrderBasedBackSectionDTO" } ] } } }, "TableOrderOfficeOrderBasedBackSectionDTO": { "type": "object", "additionalProperties": false, "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "TableOrderOfficeOrderBasedBackOrderItemDTO": { "type": "object", "additionalProperties": false, "required": [ "orderItemId", "tableBookingId", "menuItem", "divisionId", "orderReceived", "orderUpdated", "orderReceivedFormatted", "orderUpdatedFormatted", "orderItemStatusId", "orderItemStatus" ], "properties": { "orderItemId": { "type": "integer", "format": "int32" }, "orderGroupId": { "type": "integer", "format": "int32", "nullable": true }, "tableBooking": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/TableOrderOfficeOrderBasedBackTableBookingDTO" } ] }, "tableBookingId": { "type": "integer", "format": "int32" }, "menuItem": { "$ref": "#/components/schemas/TableOrderOfficeOrderBasedBackMenuItemDTO" }, "divisionId": { "type": "integer", "format": "int32" }, "note": { "type": "string", "nullable": true }, "orderReceived": { "type": "string", "format": "date-time" }, "orderUpdated": { "type": "string", "format": "date-time" }, "orderReceivedFormatted": { "type": "string" }, "orderUpdatedFormatted": { "type": "string" }, "orderItemStatusId": { "type": "integer", "format": "int32" }, "orderItemStatus": { "$ref": "#/components/schemas/TableOrderOfficeOrderBasedBackOrderItemStatusDTO" }, "orderItemOptions": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/DTOOrderItemOptionDTO" } }, "orderItemExtras": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/DTOOrderItemExtraDTO" } } } }, "TableOrderOfficeOrderBasedBackMenuItemDTO": { "type": "object", "additionalProperties": false, "required": [ "menuItemId", "name", "description", "price", "position", "divisionId" ], "properties": { "menuItemId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "description": { "type": "string" }, "price": { "type": "number", "format": "decimal" }, "position": { "type": "integer", "format": "int32" }, "divisionId": { "type": "integer", "format": "int32" } } }, "TableOrderOfficeOrderBasedBackOrderItemStatusDTO": { "type": "object", "additionalProperties": false, "required": [ "orderItemStatusId", "status", "priority" ], "properties": { "orderItemStatusId": { "type": "integer", "format": "int32" }, "status": { "type": "string" }, "priority": { "type": "integer", "format": "int32" } } }, "TableOrderOfficeOrderBasedBackRequest": { "type": "object", "additionalProperties": false }, "TableOrderGetBillResponse": { "type": "object", "additionalProperties": false, "required": [ "orderItems", "summaryOrderItems", "billCategories", "total", "totalExVAT", "vat", "paymentsReceived", "balance", "tipAmount", "billDate", "isCashedUp", "isClosed" ], "properties": { "orderItems": { "type": "array", "items": { "$ref": "#/components/schemas/TableOrderGetBillBillOrderItemDTO" } }, "summaryOrderItems": { "type": "array", "items": { "$ref": "#/components/schemas/TableOrderGetBillBillOrderItemDTO" } }, "billCategories": { "type": "array", "items": { "$ref": "#/components/schemas/TableOrderGetBillBillCategoryDTO" } }, "total": { "type": "number", "format": "decimal" }, "totalExVAT": { "type": "number", "format": "decimal" }, "vat": { "type": "number", "format": "decimal" }, "paymentsReceived": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesPayment" } }, "balance": { "type": "number", "format": "decimal" }, "tipAmount": { "type": "number", "format": "decimal" }, "billDate": { "type": "string", "format": "date-time" }, "adjustments": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesAdjustment" } }, "isCashedUp": { "type": "boolean" }, "tableName": { "type": "string", "nullable": true }, "waiter": { "type": "string", "nullable": true }, "isClosed": { "type": "boolean" } } }, "TableOrderGetBillBillOrderItemDTO": { "type": "object", "additionalProperties": false, "required": [ "orderItemId", "tableBookingId", "tableBooking", "menuItemId", "menuItem", "orderReceived", "quantity", "total", "optionsTotal", "extrasTotal" ], "properties": { "orderItemId": { "type": "integer", "format": "int32" }, "tableBookingId": { "type": "integer", "format": "int32" }, "tableBooking": { "$ref": "#/components/schemas/DTOTableBookingDTO" }, "menuItemId": { "type": "integer", "format": "int32" }, "menuItem": { "$ref": "#/components/schemas/TableOrderGetBillBillMenuItemDTO" }, "orderItemOptions": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/DTOOrderItemOptionDTO" } }, "orderItemExtras": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/DTOOrderItemExtraDTO" } }, "orderReceived": { "type": "string", "format": "date-time" }, "quantity": { "type": "integer", "format": "int32" }, "total": { "type": "number", "format": "decimal" }, "optionsTotal": { "type": "number", "format": "decimal" }, "extrasTotal": { "type": "number", "format": "decimal" }, "note": { "type": "string", "nullable": true } } }, "DTOTableBookingDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "tableId", "bookingName", "bookingDate", "userId", "user" ], "properties": { "id": { "type": "integer", "format": "int32" }, "tableId": { "type": "integer", "format": "int32" }, "bookingName": { "type": "string" }, "bookingDate": { "type": "string", "format": "date-time" }, "closeDate": { "type": "string", "format": "date-time", "nullable": true }, "userId": { "type": "string" }, "user": { "$ref": "#/components/schemas/DTOUserDTO" } } }, "TableOrderGetBillBillMenuItemDTO": { "type": "object", "additionalProperties": false, "required": [ "menuItemId", "name", "price", "billCategoryId" ], "properties": { "menuItemId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "price": { "type": "number", "format": "decimal" }, "billCategoryId": { "type": "integer", "format": "int32" }, "billCategory": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/TableOrderGetBillBillCategoryDTO" } ] } } }, "TableOrderGetBillBillCategoryDTO": { "type": "object", "additionalProperties": false, "required": [ "bilLCategoryId", "total" ], "properties": { "bilLCategoryId": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "total": { "type": "number", "format": "decimal" } } }, "EntitiesPayment": { "type": "object", "additionalProperties": false, "required": [ "id", "paymentReference", "tableBookingId", "tableBooking", "amount", "userId", "paymentType", "dateReceived" ], "properties": { "id": { "type": "integer", "format": "int32" }, "paymentReference": { "type": "string" }, "tableBookingId": { "type": "integer", "format": "int32" }, "tableBooking": { "$ref": "#/components/schemas/EntitiesTableBooking" }, "amount": { "type": "number", "format": "decimal" }, "userId": { "type": "string" }, "paymentTypeId": { "type": "integer", "format": "int32", "nullable": true }, "paymentType": { "$ref": "#/components/schemas/EntitiesPaymentType" }, "dateReceived": { "type": "string", "format": "date-time" } } }, "EntitiesTableBooking": { "type": "object", "additionalProperties": false, "required": [ "id", "tableId", "table", "bookingName", "bookingDate", "salesPeriodId", "salesPeriod", "userId", "user" ], "properties": { "id": { "type": "integer", "format": "int32" }, "tableId": { "type": "integer", "format": "int32" }, "table": { "$ref": "#/components/schemas/EntitiesTable" }, "bookingName": { "type": "string" }, "bookingDate": { "type": "string", "format": "date-time" }, "closeDate": { "type": "string", "format": "date-time", "nullable": true }, "salesPeriodId": { "type": "integer", "format": "int32" }, "salesPeriod": { "$ref": "#/components/schemas/EntitiesSalesPeriod" }, "userId": { "type": "string" }, "user": { "$ref": "#/components/schemas/EntitiesUser" }, "orderItems": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesOrderItem" } }, "adjustments": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesAdjustment" } }, "cashUpUserId": { "type": "integer", "format": "int32", "nullable": true }, "total": { "type": "number", "format": "decimal", "nullable": true }, "totalTips": { "type": "number", "format": "decimal", "nullable": true }, "totalPayments": { "type": "number", "format": "decimal", "nullable": true }, "cashUpUser": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/EntitiesCashUpUser" } ] }, "payments": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesPayment" } } } }, "EntitiesSalesPeriod": { "type": "object", "additionalProperties": false, "required": [ "id", "outlet", "outletId" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "startDate": { "type": "string", "format": "date-time", "nullable": true }, "endDate": { "type": "string", "format": "date-time", "nullable": true }, "outlet": { "$ref": "#/components/schemas/EntitiesOutlet" }, "outletId": { "type": "integer", "format": "int32" } } }, "EntitiesUser": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "userId", "email", "image", "name", "isActive" ], "properties": { "userId": { "type": "string" }, "email": { "type": "string" }, "image": { "type": "string" }, "name": { "type": "string" }, "isActive": { "type": "boolean" } } } ] }, "EntitiesOrderItem": { "type": "object", "additionalProperties": false, "required": [ "orderItemId", "tableBookingId", "tableBooking", "menuItemId", "menuItem", "orderReceived", "orderUpdated", "orderItemStatusId", "orderItemStatus" ], "properties": { "orderItemId": { "type": "integer", "format": "int32" }, "orderGroupId": { "type": "integer", "format": "int32", "nullable": true }, "orderGroup": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/EntitiesOrderGroup" } ] }, "tableBookingId": { "type": "integer", "format": "int32" }, "tableBooking": { "$ref": "#/components/schemas/EntitiesTableBooking" }, "menuItemId": { "type": "integer", "format": "int32" }, "menuItem": { "$ref": "#/components/schemas/EntitiesMenuItem" }, "orderReceived": { "type": "string", "format": "date-time" }, "orderUpdated": { "type": "string", "format": "date-time" }, "orderCompleted": { "type": "string", "format": "date-time", "nullable": true }, "orderItemStatusId": { "type": "integer", "format": "int32" }, "orderItemStatus": { "$ref": "#/components/schemas/EntitiesOrderItemStatus" }, "orderItemOptions": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesOrderItemOption" } }, "orderItemExtras": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesOrderItemExtra" } }, "note": { "type": "string", "nullable": true }, "userId": { "type": "string", "nullable": true } } }, "EntitiesOrderGroup": { "type": "object", "additionalProperties": false, "required": [ "orderGroupId" ], "properties": { "orderGroupId": { "type": "integer", "format": "int32" }, "orderItems": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesOrderItem" } } } }, "EntitiesMenuItem": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "menuItemId", "menuSection", "menuSectionId", "name", "description", "price", "searchVector", "position", "divisionId", "division", "isAvailable", "isEnabled", "stockPrice" ], "properties": { "menuItemId": { "type": "integer", "format": "int32" }, "menuSection": { "$ref": "#/components/schemas/EntitiesMenuSection" }, "menuSectionId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "description": { "type": "string" }, "billCategoryId": { "type": "integer", "format": "int32", "nullable": true }, "billCategory": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/EntitiesBillCategory" } ] }, "price": { "type": "number", "format": "decimal" }, "searchVector": { "type": "array", "items": { "$ref": "#/components/schemas/NpgsqlTypesNpgsqlTsVector_Lexeme" } }, "position": { "type": "integer", "format": "int32" }, "tags": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesTag" } }, "divisionId": { "type": "integer", "format": "int32" }, "division": { "$ref": "#/components/schemas/EntitiesDivision" }, "menuItemOptionGroups": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesMenuItemOptionGroup" } }, "menuItemExtraGroups": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesMenuItemExtraGroup" } }, "isAvailable": { "type": "boolean" }, "isEnabled": { "type": "boolean" }, "stockPrice": { "type": "number", "format": "decimal" } } } ] }, "EntitiesMenuSection": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "menuSectionId", "name", "menu", "menuId" ], "properties": { "menuSectionId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "menu": { "$ref": "#/components/schemas/EntitiesMenu" }, "menuId": { "type": "integer", "format": "int32" }, "parent": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/EntitiesMenuSection" } ] }, "parentId": { "type": "integer", "format": "int32", "nullable": true }, "positionId": { "type": "integer", "format": "int32", "nullable": true }, "subMenuSections": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesMenuSection" } }, "menuItems": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesMenuItem" } } } } ] }, "EntitiesMenu": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "id", "name", "outletId", "position", "outlet" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "position": { "type": "integer", "format": "int32" }, "outlet": { "$ref": "#/components/schemas/EntitiesOutlet" }, "menuSections": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesMenuSection" } } } } ] }, "EntitiesBillCategory": { "type": "object", "additionalProperties": false, "required": [ "id", "name", "outletId" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" } } }, "NpgsqlTypesNpgsqlTsVector_Lexeme": { "type": "object", "description": "Represents a lexeme. A lexeme consists of a text string and optional word entry positions.", "additionalProperties": false, "required": [ "text", "count" ], "properties": { "text": { "type": "string", "description": "Gets or sets the text." }, "count": { "type": "integer", "description": "Gets the number of word entry positions.", "format": "int32" } } }, "EntitiesTag": { "type": "object", "additionalProperties": false, "required": [ "tagId", "name" ], "properties": { "tagId": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "EntitiesDivision": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "divisionId", "divisionName", "outletId", "divisionTypeId", "isDeleted" ], "properties": { "divisionId": { "type": "integer", "format": "int32" }, "divisionName": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "divisionTypeId": { "type": "integer", "format": "int32" }, "isDeleted": { "type": "boolean" } } } ] }, "EntitiesMenuItemOptionGroup": { "type": "object", "additionalProperties": false, "required": [ "menuItemId", "optionGroupId", "menuItem", "optionGroup" ], "properties": { "menuItemId": { "type": "integer", "format": "int32" }, "optionGroupId": { "type": "integer", "format": "int32" }, "menuItem": { "$ref": "#/components/schemas/EntitiesMenuItem" }, "optionGroup": { "$ref": "#/components/schemas/EntitiesOptionGroup" } } }, "EntitiesOptionGroup": { "type": "object", "additionalProperties": false, "required": [ "optionGroupId", "name", "minSelections", "maxSelections", "options", "outletId" ], "properties": { "optionGroupId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "minSelections": { "type": "integer", "format": "int32" }, "maxSelections": { "type": "integer", "format": "int32" }, "options": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesOption" } }, "menuItemOptionGroups": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesMenuItemOptionGroup" } }, "outletId": { "type": "integer", "format": "int32" } } }, "EntitiesOption": { "type": "object", "additionalProperties": false, "required": [ "optionId", "name", "price", "positionId", "optionGroupId", "optionGroup", "outletId" ], "properties": { "optionId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "price": { "type": "number", "format": "decimal" }, "positionId": { "type": "integer", "format": "int32" }, "optionGroupId": { "type": "integer", "format": "int32" }, "optionGroup": { "$ref": "#/components/schemas/EntitiesOptionGroup" }, "orderItemOptions": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesOrderItemOption" } }, "outletId": { "type": "integer", "format": "int32" } } }, "EntitiesOrderItemOption": { "type": "object", "additionalProperties": false, "required": [ "orderItemOptionId", "orderItemId", "orderItem", "optionId", "option" ], "properties": { "orderItemOptionId": { "type": "integer", "format": "int32" }, "orderItemId": { "type": "integer", "format": "int32" }, "orderItem": { "$ref": "#/components/schemas/EntitiesOrderItem" }, "optionId": { "type": "integer", "format": "int32" }, "option": { "$ref": "#/components/schemas/EntitiesOption" } } }, "EntitiesMenuItemExtraGroup": { "type": "object", "additionalProperties": false, "required": [ "menuItemId", "extraGroupId", "menuItem", "extraGroup" ], "properties": { "menuItemId": { "type": "integer", "format": "int32" }, "extraGroupId": { "type": "integer", "format": "int32" }, "menuItem": { "$ref": "#/components/schemas/EntitiesMenuItem" }, "extraGroup": { "$ref": "#/components/schemas/EntitiesExtraGroup" } } }, "EntitiesExtraGroup": { "type": "object", "additionalProperties": false, "required": [ "extraGroupId", "name", "extras", "outletId" ], "properties": { "extraGroupId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "extras": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesExtra" } }, "menuItemExtraGroups": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesMenuItemExtraGroup" } }, "outletId": { "type": "integer", "format": "int32" } } }, "EntitiesExtra": { "type": "object", "additionalProperties": false, "required": [ "extraId", "name", "positionId", "price", "extraGroupId", "extraGroup", "outletId" ], "properties": { "extraId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "positionId": { "type": "integer", "format": "int32" }, "price": { "type": "number", "format": "decimal" }, "extraGroupId": { "type": "integer", "format": "int32" }, "extraGroup": { "$ref": "#/components/schemas/EntitiesExtraGroup" }, "orderItemExtras": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesOrderItemExtra" } }, "outletId": { "type": "integer", "format": "int32" } } }, "EntitiesOrderItemExtra": { "type": "object", "additionalProperties": false, "required": [ "orderItemExtraId", "orderItemId", "orderItem", "extraId", "extra" ], "properties": { "orderItemExtraId": { "type": "integer", "format": "int32" }, "orderItemId": { "type": "integer", "format": "int32" }, "orderItem": { "$ref": "#/components/schemas/EntitiesOrderItem" }, "extraId": { "type": "integer", "format": "int32" }, "extra": { "$ref": "#/components/schemas/EntitiesExtra" } } }, "EntitiesOrderItemStatus": { "type": "object", "additionalProperties": false, "required": [ "orderItemStatusId", "status", "assignGroup", "isFrontLine", "isBackOffice", "isComplete", "isCancelled", "isBillable", "isHistory", "isNotify", "priority", "isUpdateStock", "isUpdateStockReverse" ], "properties": { "orderItemStatusId": { "type": "integer", "format": "int32" }, "status": { "type": "string" }, "assignGroup": { "type": "boolean" }, "isFrontLine": { "type": "boolean" }, "isBackOffice": { "type": "boolean" }, "isComplete": { "type": "boolean" }, "isCancelled": { "type": "boolean" }, "isBillable": { "type": "boolean" }, "isHistory": { "type": "boolean" }, "isNotify": { "type": "boolean" }, "priority": { "type": "integer", "format": "int32" }, "isUpdateStock": { "type": "boolean" }, "isUpdateStockReverse": { "type": "boolean" } } }, "EntitiesAdjustment": { "type": "object", "additionalProperties": false, "required": [ "adjustmentId", "adjustmentType", "adjustmentTypeId", "created", "userId", "amount" ], "properties": { "adjustmentId": { "type": "integer", "format": "int32" }, "adjustmentType": { "$ref": "#/components/schemas/EntitiesAdjustmentType" }, "adjustmentTypeId": { "type": "integer", "format": "int32" }, "created": { "type": "string", "format": "date-time" }, "userId": { "type": "string" }, "amount": { "type": "number", "format": "decimal" }, "note": { "type": "string", "nullable": true } } }, "EntitiesAdjustmentType": { "type": "object", "additionalProperties": false, "required": [ "adjustmentTypeId", "name" ], "properties": { "adjustmentTypeId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "description": { "type": "string", "nullable": true } } }, "EntitiesCashUpUser": { "type": "object", "additionalProperties": false, "required": [ "id", "userId", "outletId", "openingBalance", "completerUserId", "cashUpUserItems", "salesPeriodId", "sales", "tips", "payments" ], "properties": { "id": { "type": "integer", "format": "int32" }, "userId": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "openingBalance": { "type": "number", "format": "decimal" }, "closingBalance": { "type": "number", "format": "decimal", "nullable": true }, "completerUserId": { "type": "string" }, "cashUpDate": { "type": "string", "format": "date-time", "nullable": true }, "cashUpUserItems": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesCashUpUserItem" } }, "salesPeriodId": { "type": "integer", "format": "int32" }, "sales": { "type": "number", "format": "decimal" }, "tips": { "type": "number", "format": "decimal" }, "payments": { "type": "number", "format": "decimal" } } }, "EntitiesCashUpUserItem": { "type": "object", "additionalProperties": false, "required": [ "id", "cashUpUserId", "cashUpUser", "userId", "outletId", "cashUpUserItemTypeId", "cashUpUserItemType", "value" ], "properties": { "id": { "type": "integer", "format": "int32" }, "cashUpUserId": { "type": "integer", "format": "int32" }, "cashUpUser": { "$ref": "#/components/schemas/EntitiesCashUpUser" }, "userId": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "cashUpUserItemTypeId": { "type": "integer", "format": "int32" }, "cashUpUserItemType": { "$ref": "#/components/schemas/EntitiesCashUpUserItemType" }, "value": { "type": "number", "format": "decimal" } } }, "EntitiesCashUpUserItemType": { "type": "object", "additionalProperties": false, "required": [ "id", "itemType", "isAuto", "affectsGrossBalance", "position", "cashUpUserItemRule" ], "properties": { "id": { "type": "integer", "format": "int32" }, "itemType": { "type": "string" }, "isAuto": { "type": "boolean" }, "affectsGrossBalance": { "type": "boolean" }, "position": { "type": "integer", "format": "int32" }, "cashUpUserItemRule": { "$ref": "#/components/schemas/CommonEnumsCashUpUserItemRule" }, "paymentTypeId": { "type": "integer", "format": "int32", "nullable": true }, "paymentType": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/EntitiesPaymentType" } ] }, "adjustmentTypeId": { "type": "integer", "format": "int32", "nullable": true }, "adjustmentType": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/EntitiesAdjustmentType" } ] }, "cashupConfigId": { "type": "integer", "format": "int32", "nullable": true }, "cashupConfig": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/EntitiesCashUpConfig" } ] } } }, "CommonEnumsCashUpUserItemRule": { "type": "integer", "description": "", "x-enumNames": [ "None", "PaymentTotal", "PaymentTip", "PaymentLevy", "Adjustment", "Config", "SalesRevenue", "CardPaymentTotal", "CardTips" ], "enum": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ] }, "EntitiesCashUpConfig": { "type": "object", "additionalProperties": false, "required": [ "id", "outletId", "value" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "outletId": { "type": "integer", "format": "int32" }, "value": { "type": "number", "format": "decimal" } } }, "TableOrderGetBillRequest": { "type": "object", "additionalProperties": false }, "TableOrderGetBasketResponse": { "type": "object", "additionalProperties": false, "required": [ "orderItems", "total" ], "properties": { "orderItems": { "type": "array", "items": { "$ref": "#/components/schemas/TableOrderGetBasketBillOrderItemDTO" } }, "total": { "type": "number", "format": "decimal" } } }, "TableOrderGetBasketBillOrderItemDTO": { "type": "object", "additionalProperties": false, "required": [ "orderItemId", "tableBookingId", "tableBooking", "menuItemId", "quantity", "menuItem" ], "properties": { "orderItemId": { "type": "integer", "format": "int32" }, "tableBookingId": { "type": "integer", "format": "int32" }, "tableBooking": { "$ref": "#/components/schemas/DTOTableBookingDTO" }, "menuItemId": { "type": "integer", "format": "int32" }, "quantity": { "type": "integer", "format": "int32" }, "menuItem": { "$ref": "#/components/schemas/TableOrderGetBasketBillMenuItemDTO" }, "orderItemOptions": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/DTOOrderItemOptionDTO" } }, "orderItemExtras": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/DTOOrderItemExtraDTO" } }, "note": { "type": "string", "nullable": true } } }, "TableOrderGetBasketBillMenuItemDTO": { "type": "object", "additionalProperties": false, "required": [ "menuItemId", "name", "price" ], "properties": { "menuItemId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "price": { "type": "number", "format": "decimal" } } }, "TableOrderGetBasketRequest": { "type": "object", "additionalProperties": false }, "TableOrderCopyItemResponse": { "type": "object", "additionalProperties": false, "required": [ "isSuccess" ], "properties": { "isSuccess": { "type": "boolean" } } }, "TableOrderCopyItemRequest": { "type": "object", "additionalProperties": false, "required": [ "orderItemId" ], "properties": { "orderItemId": { "type": "integer", "format": "int32" } } }, "TableOrderClearBasketRequest": { "type": "object", "additionalProperties": false, "required": [ "tableBookingId" ], "properties": { "tableBookingId": { "type": "integer", "format": "int32" } } }, "TableOrderAddItemsRequest": { "type": "object", "additionalProperties": false, "required": [ "orders", "tableBookingId" ], "properties": { "orders": { "type": "array", "items": { "$ref": "#/components/schemas/TableOrderAddItemsOrder" } }, "tableBookingId": { "type": "integer", "format": "int32" } } }, "TableOrderAddItemsOrder": { "type": "object", "additionalProperties": false, "required": [ "menuItemId", "note", "quantity" ], "properties": { "menuItemId": { "type": "integer", "format": "int32" }, "optionIds": { "type": "array", "nullable": true, "items": { "type": "integer", "format": "int32" } }, "extraIds": { "type": "array", "nullable": true, "items": { "type": "integer", "format": "int32" } }, "note": { "type": "string" }, "quantity": { "type": "integer", "format": "int32" } } }, "TableBookingTransferRequest": { "type": "object", "additionalProperties": false, "required": [ "transferUserId", "tableBookingId" ], "properties": { "tableBookingId": { "type": "integer", "format": "int32", "minimum": 0.0, "exclusiveMinimum": true }, "transferUserId": { "type": "string", "minLength": 1, "nullable": false } } }, "CommonModelsPaginatedListOfResponse2": { "type": "object", "additionalProperties": false, "required": [ "items", "pageNumber", "totalPages", "totalCount", "hasPreviousPage", "hasNextPage" ], "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/TableBookingHistoryResponse" } }, "pageNumber": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "totalCount": { "type": "integer", "format": "int32" }, "hasPreviousPage": { "type": "boolean" }, "hasNextPage": { "type": "boolean" } } }, "TableBookingHistoryResponse": { "type": "object", "additionalProperties": false, "required": [ "id", "tableId", "table", "bookingName", "bookingDate", "salesPeriodId", "total", "user" ], "properties": { "id": { "type": "integer", "format": "int32" }, "tableId": { "type": "integer", "format": "int32" }, "table": { "$ref": "#/components/schemas/ManagerOrderViewTableDTO" }, "bookingName": { "type": "string" }, "bookingDate": { "type": "string", "format": "date-time" }, "closeDate": { "type": "string", "format": "date-time", "nullable": true }, "salesPeriodId": { "type": "integer", "format": "int32" }, "total": { "type": "number", "format": "decimal" }, "user": { "$ref": "#/components/schemas/DTOUserDTO" } } }, "ManagerOrderViewTableDTO": { "type": "object", "additionalProperties": false, "required": [ "tableId", "name", "outletId" ], "properties": { "tableId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "section": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/ManagerOrderViewSectionDTO" } ] } } }, "ManagerOrderViewSectionDTO": { "type": "object", "additionalProperties": false, "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "TableBookingPeriodHistoryRequest": { "allOf": [ { "$ref": "#/components/schemas/CommonModelsQueryModel" }, { "type": "object", "additionalProperties": false } ] }, "TableBookingPaymentEditRequest": { "type": "object", "additionalProperties": false, "required": [ "paymentId", "paymentTypeId", "amount" ], "properties": { "paymentId": { "type": "integer", "format": "int32" }, "paymentTypeId": { "type": "integer", "format": "int32" }, "amount": { "type": "number", "format": "decimal" } } }, "TableBookingHistoryUserRequest": { "allOf": [ { "$ref": "#/components/schemas/CommonModelsQueryModel" }, { "type": "object", "additionalProperties": false } ] }, "TableBookingHistoryAllRequest": { "allOf": [ { "$ref": "#/components/schemas/CommonModelsQueryModel" }, { "type": "object", "additionalProperties": false } ] }, "TableBookingHistoryRequest": { "allOf": [ { "$ref": "#/components/schemas/CommonModelsQueryModel" }, { "type": "object", "additionalProperties": false } ] }, "TableBookingGetResponse": { "type": "object", "additionalProperties": false, "required": [ "id", "tableId", "table", "bookingName", "bookingDate", "salesPeriodId", "userId", "user" ], "properties": { "id": { "type": "integer", "format": "int32" }, "tableId": { "type": "integer", "format": "int32" }, "table": { "$ref": "#/components/schemas/ManagerOrderViewTableDTO" }, "bookingName": { "type": "string" }, "bookingDate": { "type": "string", "format": "date-time" }, "closeDate": { "type": "string", "format": "date-time", "nullable": true }, "salesPeriodId": { "type": "integer", "format": "int32" }, "userId": { "type": "string" }, "user": { "$ref": "#/components/schemas/DTOUserDTO" } } }, "TableBookingGetRequest": { "type": "object", "additionalProperties": false }, "TableBookingCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "bookingName", "tableId", "salesPeriodId" ], "properties": { "tableId": { "type": "integer", "format": "int32", "minimum": 0.0, "exclusiveMinimum": true }, "bookingName": { "type": "string", "minLength": 1, "nullable": false }, "salesPeriodId": { "type": "integer", "format": "int32", "minimum": 0.0, "exclusiveMinimum": true } } }, "TableBookingCloseRequest": { "type": "object", "additionalProperties": false, "required": [ "tableBookingId" ], "properties": { "tableBookingId": { "type": "integer", "format": "int32" } } }, "TableUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "sectionId", "capacity", "position" ], "properties": { "name": { "type": "string", "minLength": 1, "nullable": false }, "sectionId": { "type": "integer", "format": "int32" }, "capacity": { "type": "integer", "format": "int32" }, "position": { "type": "integer", "format": "int32" } } }, "TableGetBookedResponse": { "type": "object", "additionalProperties": false, "required": [ "id", "tableId", "bookingName", "bookingDate", "salesPeriodId", "staffId", "table", "user" ], "properties": { "id": { "type": "integer", "format": "int32" }, "tableId": { "type": "integer", "format": "int32" }, "bookingName": { "type": "string" }, "bookingDate": { "type": "string", "format": "date-time" }, "salesPeriodId": { "type": "integer", "format": "int32" }, "staffId": { "type": "integer", "format": "int32" }, "table": { "$ref": "#/components/schemas/TableGetBookedTableDto" }, "user": { "$ref": "#/components/schemas/DTOUserDTO" } } }, "TableGetBookedTableDto": { "type": "object", "additionalProperties": false, "required": [ "tableId", "name", "section" ], "properties": { "tableId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "section": { "$ref": "#/components/schemas/TableGetBookedSectionDto" } } }, "TableGetBookedSectionDto": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "TableGetBookedRequest": { "type": "object", "additionalProperties": false }, "TableGetAvailableResponse": { "type": "object", "additionalProperties": false, "required": [ "tableId", "name", "capacity", "sectionId", "section" ], "properties": { "tableId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "capacity": { "type": "integer", "format": "int32" }, "sectionId": { "type": "integer", "format": "int32" }, "section": { "$ref": "#/components/schemas/TableGetAvailableSectionDto" } } }, "TableGetAvailableSectionDto": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "TableGetAvailableRequest": { "type": "object", "additionalProperties": false }, "TableDeleteRequest": { "type": "object", "additionalProperties": false }, "TableCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "sectionId", "capacity", "position" ], "properties": { "name": { "type": "string", "minLength": 1, "nullable": false }, "sectionId": { "type": "integer", "format": "int32" }, "capacity": { "type": "integer", "format": "int32" }, "position": { "type": "integer", "format": "int32" } } }, "SupplierUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "id", "name", "contactName", "contactNumber", "email" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "contactName": { "type": "string" }, "contactNumber": { "type": "string" }, "email": { "type": "string" } } }, "DTOSupplierDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "outletId", "name", "contactName", "contactNumber", "email" ], "properties": { "id": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "contactName": { "type": "string" }, "contactNumber": { "type": "string" }, "email": { "type": "string" } } }, "SupplierGetAllRequest": { "type": "object", "additionalProperties": false }, "SupplierDeleteRequest": { "type": "object", "additionalProperties": false }, "EntitiesSupplier": { "type": "object", "additionalProperties": false, "required": [ "id", "outletId", "name", "contactName", "contactNumber", "email" ], "properties": { "id": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "contactName": { "type": "string" }, "contactNumber": { "type": "string" }, "email": { "type": "string" } } }, "SupplierCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "outletId", "name", "contactName", "contactNumber", "email" ], "properties": { "outletId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "contactName": { "type": "string" }, "contactNumber": { "type": "string" }, "email": { "type": "string" } } }, "EntitiesStockCategory": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "id", "outletId", "name", "isDeleted" ], "properties": { "id": { "type": "integer", "format": "int32" }, "parentId": { "type": "integer", "format": "int32", "nullable": true }, "outletId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "isDeleted": { "type": "boolean" } } } ] }, "StockCategoryUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "name" ], "properties": { "name": { "type": "string", "minLength": 1, "nullable": false }, "parentId": { "type": "integer", "format": "int32", "nullable": true }, "isDeleted": { "type": "boolean", "nullable": true } } }, "StockCategoryGetAllRequest": { "type": "object", "additionalProperties": false }, "StockCategoryCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "outletId" ], "properties": { "name": { "type": "string", "minLength": 1, "nullable": false }, "parentId": { "type": "integer", "format": "int32", "nullable": true }, "outletId": { "type": "integer", "format": "int32" } } }, "StockUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "id", "name", "unitId", "hasVat", "stockCategoryId" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "unitId": { "type": "integer", "format": "int32" }, "hasVat": { "type": "boolean" }, "stockCategoryId": { "type": "integer", "format": "int32" } } }, "StockOrderItemUpdateBulkRequest": { "type": "object", "additionalProperties": false, "required": [ "stockOrderId", "stockOrderItemStatusId" ], "properties": { "stockOrderId": { "type": "integer", "format": "int32" }, "stockIds": { "type": "array", "nullable": true, "items": { "type": "integer", "format": "int32" } }, "stockOrderItemStatusId": { "type": "integer", "format": "int32" } } }, "EntitiesStockOrderItem": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "stockOrderId", "stockOrder", "stockId", "stock", "orderAmount", "stockOrderItemStatusId", "stockOrderItemStatus", "actual", "price" ], "properties": { "stockOrderId": { "type": "integer", "format": "int32" }, "stockOrder": { "$ref": "#/components/schemas/EntitiesStockOrder" }, "stockId": { "type": "integer", "format": "int32" }, "stock": { "$ref": "#/components/schemas/EntitiesStock" }, "orderAmount": { "type": "number", "format": "decimal" }, "stockOrderItemStatusId": { "type": "integer", "format": "int32" }, "stockOrderItemStatus": { "$ref": "#/components/schemas/EntitiesStockOrderItemStatus" }, "actual": { "type": "number", "format": "decimal" }, "price": { "type": "number", "format": "decimal" } } } ] }, "EntitiesStockOrder": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "id", "outletId", "orderNumber", "stockOrderStatusId", "stockOrderStatus", "divisionId", "division", "orderDate", "supplierId", "supplier" ], "properties": { "id": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" }, "orderNumber": { "type": "string" }, "stockOrderStatusId": { "type": "integer", "format": "int32" }, "stockOrderStatus": { "$ref": "#/components/schemas/EntitiesStockOrderStatus" }, "divisionId": { "type": "integer", "format": "int32" }, "division": { "$ref": "#/components/schemas/EntitiesDivision" }, "orderDate": { "type": "string", "format": "date-time" }, "supplierId": { "type": "integer", "format": "int32" }, "supplier": { "$ref": "#/components/schemas/EntitiesSupplier" }, "stockOrderItems": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesStockOrderItem" } } } } ] }, "EntitiesStockOrderStatus": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } } ] }, "EntitiesStock": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "id", "outletId", "name", "unitId", "unit", "stockCategoryId", "stockCategory", "hasVat" ], "properties": { "id": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "unitId": { "type": "integer", "format": "int32" }, "unit": { "$ref": "#/components/schemas/EntitiesUnit" }, "stockCategoryId": { "type": "integer", "format": "int32" }, "stockCategory": { "$ref": "#/components/schemas/EntitiesStockCategory" }, "stockItems": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesStockItem" } }, "hasVat": { "type": "boolean" } } } ] }, "EntitiesStockItem": { "type": "object", "additionalProperties": false, "required": [ "id", "stockId", "stock", "divisionId", "division", "threshold", "actual", "updated" ], "properties": { "id": { "type": "integer", "format": "int32" }, "stockId": { "type": "integer", "format": "int32" }, "stock": { "$ref": "#/components/schemas/EntitiesStock" }, "divisionId": { "type": "integer", "format": "int32" }, "division": { "$ref": "#/components/schemas/EntitiesDivision" }, "threshold": { "type": "number", "format": "decimal" }, "actual": { "type": "number", "format": "decimal" }, "updated": { "type": "string", "format": "date-time" } } }, "EntitiesStockOrderItemStatus": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } } ] }, "StockOrderItemUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "stockOrderId", "stockId", "orderAmount", "actual", "price", "stockOrderItemStatusId" ], "properties": { "stockOrderId": { "type": "integer", "format": "int32" }, "stockId": { "type": "integer", "format": "int32" }, "orderAmount": { "type": "number", "format": "decimal" }, "actual": { "type": "number", "format": "decimal" }, "price": { "type": "number", "format": "decimal" }, "stockOrderItemStatusId": { "type": "integer", "format": "int32" } } }, "DTOStockOrderItemStatusDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "StockOrderItemLastPriceResponse": { "type": "object", "additionalProperties": false, "required": [ "lastPrice", "totalAmount" ], "properties": { "lastPrice": { "type": "number", "format": "decimal" }, "totalAmount": { "type": "number", "format": "decimal" } } }, "StockOrderItemLastPriceRequest": { "type": "object", "additionalProperties": false }, "StockOrderItemDeleteRequest": { "type": "object", "additionalProperties": false }, "StockOrderItemCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "stockOrderId", "stockId", "orderAmount", "price" ], "properties": { "stockOrderId": { "type": "integer", "format": "int32" }, "stockId": { "type": "integer", "format": "int32" }, "orderAmount": { "type": "number", "format": "decimal" }, "price": { "type": "number", "format": "decimal" } } }, "StockOrderUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "id", "orderNumber", "divisionId", "supplierId" ], "properties": { "id": { "type": "integer", "format": "int32", "minimum": 0.0, "exclusiveMinimum": true }, "orderNumber": { "type": "string" }, "divisionId": { "type": "integer", "format": "int32" }, "supplierId": { "type": "integer", "format": "int32" } } }, "CommonModelsPaginatedListOfStockOrderResponseDTO": { "type": "object", "additionalProperties": false, "required": [ "items", "pageNumber", "totalPages", "totalCount", "hasPreviousPage", "hasNextPage" ], "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/DTOStockOrderResponseDTO" } }, "pageNumber": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "totalCount": { "type": "integer", "format": "int32" }, "hasPreviousPage": { "type": "boolean" }, "hasNextPage": { "type": "boolean" } } }, "DTOStockOrderResponseDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "outletId", "orderNumber", "stockOrderStatusId", "stockOrderStatusName", "divisionId", "divisionName", "orderDate", "created", "supplierId", "supplierName", "total" ], "properties": { "id": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" }, "orderNumber": { "type": "string" }, "stockOrderStatusId": { "type": "integer", "format": "int32" }, "stockOrderStatusName": { "type": "string" }, "divisionId": { "type": "integer", "format": "int32" }, "divisionName": { "type": "string" }, "orderDate": { "type": "string", "format": "date-time" }, "created": { "type": "string", "format": "date-time" }, "supplierId": { "type": "integer", "format": "int32" }, "supplierName": { "type": "string" }, "total": { "type": "number", "format": "decimal" } } }, "StockOrderGetAllRequest": { "allOf": [ { "$ref": "#/components/schemas/CommonModelsQueryModel" }, { "type": "object", "additionalProperties": false } ] }, "DTOStockOrderDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "outletId", "orderNumber", "stockOrderStatusId", "stockOrderStatus", "divisionId", "division", "orderDate", "supplierId", "supplier" ], "properties": { "id": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" }, "orderNumber": { "type": "string" }, "stockOrderStatusId": { "type": "integer", "format": "int32" }, "stockOrderStatus": { "$ref": "#/components/schemas/DTOStockOrderStatusDTO" }, "divisionId": { "type": "integer", "format": "int32" }, "division": { "$ref": "#/components/schemas/ManagerOrderViewDivisionDTO" }, "orderDate": { "type": "string", "format": "date-time" }, "supplierId": { "type": "integer", "format": "int32" }, "supplier": { "$ref": "#/components/schemas/DTOSupplierDTO" }, "stockOrderItems": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/DTOStockOrderItemDTO" } } } }, "DTOStockOrderStatusDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "ManagerOrderViewDivisionDTO": { "type": "object", "additionalProperties": false, "required": [ "divisionId", "divisionName" ], "properties": { "divisionId": { "type": "integer", "format": "int32" }, "divisionName": { "type": "string" } } }, "DTOStockOrderItemDTO": { "type": "object", "additionalProperties": false, "required": [ "stockOrderId", "stockId", "stock", "orderAmount", "stockOrderItemStatusId", "stockOrderItemStatus", "actual", "price", "created" ], "properties": { "stockOrderId": { "type": "integer", "format": "int32" }, "stockId": { "type": "integer", "format": "int32" }, "stock": { "$ref": "#/components/schemas/DTOStockBasicDTO" }, "orderAmount": { "type": "number", "format": "decimal" }, "stockOrderItemStatusId": { "type": "integer", "format": "int32" }, "stockOrderItemStatus": { "$ref": "#/components/schemas/DTOStockOrderItemStatusDTO" }, "actual": { "type": "number", "format": "decimal" }, "price": { "type": "number", "format": "decimal" }, "created": { "type": "string", "format": "date-time" }, "lastModified": { "type": "string", "format": "date-time", "nullable": true } } }, "DTOStockBasicDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "outletId", "name", "unitId", "unit", "stockCategoryId", "totalActual" ], "properties": { "id": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "unitId": { "type": "integer", "format": "int32" }, "unit": { "$ref": "#/components/schemas/DTOUnitDTO" }, "stockCategoryId": { "type": "integer", "format": "int32" }, "totalActual": { "type": "number", "format": "decimal" } } }, "DTOUnitDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "StockOrderGetRequest": { "type": "object", "additionalProperties": false }, "StockOrderDeleteRequest": { "type": "object", "additionalProperties": false }, "StockOrderCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "outletId", "orderNumber", "divisionId", "supplierId" ], "properties": { "outletId": { "type": "integer", "format": "int32" }, "orderNumber": { "type": "string" }, "divisionId": { "type": "integer", "format": "int32" }, "supplierId": { "type": "integer", "format": "int32" } } }, "StockOrderCancelRequest": { "type": "object", "additionalProperties": false, "required": [ "id" ], "properties": { "id": { "type": "integer", "format": "int32", "minimum": 0.0, "exclusiveMinimum": true } } }, "StockLinkUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "id", "stockId", "quantity", "linkType" ], "properties": { "id": { "type": "integer", "format": "int32", "minLength": 1, "nullable": false }, "stockId": { "type": "integer", "format": "int32" }, "quantity": { "type": "number", "format": "decimal" }, "linkType": { "type": "integer", "format": "int32" } } }, "StockLinkGetAllResponse": { "type": "object", "additionalProperties": false, "required": [ "id", "stockId", "name", "unitId", "unitName", "quantity", "totalActual" ], "properties": { "id": { "type": "integer", "format": "int32" }, "stockId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "unitId": { "type": "integer", "format": "int32" }, "unitName": { "type": "string" }, "quantity": { "type": "number", "format": "decimal" }, "totalActual": { "type": "number", "format": "decimal" } } }, "StockLinkGetAllRequest": { "type": "object", "additionalProperties": false }, "StockLinkGetResponse": { "type": "object", "additionalProperties": false, "required": [ "name", "type", "quantity" ], "properties": { "name": { "type": "string" }, "description": { "type": "string", "nullable": true }, "type": { "type": "string" }, "quantity": { "type": "number", "format": "decimal" } } }, "StockLinkGetRequest": { "type": "object", "additionalProperties": false }, "StockLinkDeleteRequest": { "type": "object", "additionalProperties": false }, "StockLinkAddRequest": { "type": "object", "additionalProperties": false, "required": [ "id", "stockId", "quantity", "linkType" ], "properties": { "id": { "type": "integer", "format": "int32", "minLength": 1, "nullable": false }, "stockId": { "type": "integer", "format": "int32" }, "quantity": { "type": "number", "format": "decimal" }, "linkType": { "type": "integer", "format": "int32" } } }, "StockItemsUpdateStockTakeRequest": { "type": "object", "additionalProperties": false, "required": [ "stockItemId" ], "properties": { "stockItemId": { "type": "integer", "format": "int32" } } }, "StockItemsUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "divisionId", "stockId", "actual", "threshold" ], "properties": { "divisionId": { "type": "integer", "format": "int32" }, "stockId": { "type": "integer", "format": "int32" }, "actual": { "type": "number", "format": "decimal" }, "threshold": { "type": "number", "format": "decimal" } } }, "StockItemsGetAllResponse": { "type": "object", "additionalProperties": false, "required": [ "id", "stockId", "stockName", "divisionId", "divisionName", "threshold", "actual" ], "properties": { "id": { "type": "integer", "format": "int32" }, "stockId": { "type": "integer", "format": "int32" }, "stockName": { "type": "string" }, "divisionId": { "type": "integer", "format": "int32" }, "divisionName": { "type": "string" }, "threshold": { "type": "number", "format": "decimal" }, "actual": { "type": "number", "format": "decimal" } } }, "StockItemsGetAllRequest": { "type": "object", "additionalProperties": false }, "StockItemsGetResponse": { "type": "object", "additionalProperties": false, "required": [ "id", "stockId", "stockName", "unitId", "unitName", "divisionId", "divisionName", "threshold", "actual" ], "properties": { "id": { "type": "integer", "format": "int32" }, "stockId": { "type": "integer", "format": "int32" }, "stockName": { "type": "string" }, "unitId": { "type": "integer", "format": "int32" }, "unitName": { "type": "string" }, "divisionId": { "type": "integer", "format": "int32" }, "divisionName": { "type": "string" }, "threshold": { "type": "number", "format": "decimal" }, "actual": { "type": "number", "format": "decimal" } } }, "StockItemsGetRequest": { "type": "object", "additionalProperties": false }, "CommonModelsPaginatedListOfResponse3": { "type": "object", "additionalProperties": false, "required": [ "items", "pageNumber", "totalPages", "totalCount", "hasPreviousPage", "hasNextPage" ], "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/StockGetAllDivisionResponse" } }, "pageNumber": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "totalCount": { "type": "integer", "format": "int32" }, "hasPreviousPage": { "type": "boolean" }, "hasNextPage": { "type": "boolean" } } }, "StockGetAllDivisionResponse": { "type": "object", "additionalProperties": false, "required": [ "stockItemId", "stockId", "outletId", "name", "unitId", "unitName", "stockCategoryId", "actual", "threshold", "hasVat", "divisionId", "updated" ], "properties": { "stockItemId": { "type": "integer", "format": "int32" }, "stockId": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "unitId": { "type": "integer", "format": "int32" }, "unitName": { "type": "string" }, "stockCategoryId": { "type": "integer", "format": "int32" }, "categoryDisplayName": { "type": "string", "nullable": true }, "actual": { "type": "number", "format": "decimal" }, "threshold": { "type": "number", "format": "decimal" }, "hasVat": { "type": "boolean" }, "divisionId": { "type": "integer", "format": "int32" }, "updated": { "type": "string", "format": "date-time" } } }, "StockGetAllDivisionRequest": { "allOf": [ { "$ref": "#/components/schemas/CommonModelsQueryModel" }, { "type": "object", "additionalProperties": false } ] }, "CommonModelsPaginatedListOfResponse4": { "type": "object", "additionalProperties": false, "required": [ "items", "pageNumber", "totalPages", "totalCount", "hasPreviousPage", "hasNextPage" ], "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/StockGetAllResponse" } }, "pageNumber": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "totalCount": { "type": "integer", "format": "int32" }, "hasPreviousPage": { "type": "boolean" }, "hasNextPage": { "type": "boolean" } } }, "StockGetAllResponse": { "type": "object", "additionalProperties": false, "required": [ "id", "outletId", "name", "unitId", "unitName", "stockCategoryId", "totalActual", "hasVat" ], "properties": { "id": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "unitId": { "type": "integer", "format": "int32" }, "unitName": { "type": "string" }, "stockCategoryId": { "type": "integer", "format": "int32" }, "categoryDisplayName": { "type": "string", "nullable": true }, "totalActual": { "type": "number", "format": "decimal" }, "hasVat": { "type": "boolean" } } }, "StockGetAllRequest": { "allOf": [ { "$ref": "#/components/schemas/CommonModelsQueryModel" }, { "type": "object", "additionalProperties": false } ] }, "StockDivisionGetAllRequest": { "type": "object", "additionalProperties": false }, "StockDeleteRequest": { "type": "object", "additionalProperties": false }, "StockCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "outletId", "name", "unitId", "hasVat", "stockCategoryId" ], "properties": { "outletId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "unitId": { "type": "integer", "format": "int32" }, "hasVat": { "type": "boolean" }, "stockCategoryId": { "type": "integer", "format": "int32" } } }, "StockCategoryResponse": { "type": "object", "additionalProperties": false, "required": [ "id", "name", "parentName", "outletId", "displayName" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "parentId": { "type": "integer", "format": "int32", "nullable": true }, "parentName": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "displayName": { "type": "string" } } }, "StockCategoryRequest": { "type": "object", "additionalProperties": false }, "StockAllocateUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "id", "stockAllocateStatusId" ], "properties": { "id": { "type": "integer", "format": "int32" }, "stockAllocateStatusId": { "type": "integer", "format": "int32" } } }, "EntitiesStockAllocateItem": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "id", "stockId", "stock", "actual", "stockAllocateItemStatusId", "stockAllocateItemStatus", "stockAllocateId", "assignedUserId", "stockAllocate" ], "properties": { "id": { "type": "integer", "format": "int32" }, "stockId": { "type": "integer", "format": "int32" }, "stock": { "$ref": "#/components/schemas/EntitiesStock" }, "actual": { "type": "number", "format": "decimal" }, "stockAllocateItemStatusId": { "type": "integer", "format": "int32" }, "stockAllocateItemStatus": { "$ref": "#/components/schemas/EntitiesStockAllocateItemStatus" }, "completed": { "type": "string", "format": "date-time", "nullable": true }, "stockAllocateId": { "type": "integer", "format": "int32" }, "assignedUserId": { "type": "string" }, "assignedUser": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/EntitiesUser" } ] }, "stockAllocate": { "$ref": "#/components/schemas/EntitiesStockAllocate" } } } ] }, "EntitiesStockAllocateItemStatus": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } } ] }, "EntitiesStockAllocate": { "type": "object", "additionalProperties": false, "required": [ "id", "outletId", "outlet", "toOutletId", "toOutlet", "comment", "stockAllocateStatusId", "stockAllocateStatus", "fromDivisionId", "fromDivision", "toDivisionId", "toDivision", "assignedUserId", "fromUserId", "created", "completed" ], "properties": { "id": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" }, "outlet": { "$ref": "#/components/schemas/EntitiesOutlet" }, "toOutletId": { "type": "integer", "format": "int32" }, "toOutlet": { "$ref": "#/components/schemas/EntitiesOutlet" }, "comment": { "type": "string" }, "stockAllocateStatusId": { "type": "integer", "format": "int32" }, "stockAllocateStatus": { "$ref": "#/components/schemas/EntitiesStockAllocateStatus" }, "fromDivisionId": { "type": "integer", "format": "int32" }, "fromDivision": { "$ref": "#/components/schemas/EntitiesDivision" }, "toDivisionId": { "type": "integer", "format": "int32" }, "toDivision": { "$ref": "#/components/schemas/EntitiesDivision" }, "assignedUserId": { "type": "string" }, "assignedUser": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/EntitiesUser" } ] }, "fromUserId": { "type": "string" }, "fromUser": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/EntitiesUser" } ] }, "created": { "type": "string", "format": "date-time" }, "completed": { "type": "string", "format": "date-time" }, "stockAllocateItems": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesStockAllocateItem" } } } }, "EntitiesStockAllocateStatus": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } } ] }, "StockAllocateItemUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "id", "stockId", "actual" ], "properties": { "id": { "type": "integer", "format": "int32" }, "stockId": { "type": "integer", "format": "int32" }, "actual": { "type": "number", "format": "decimal" } } }, "StockAllocateItemDeleteRequest": { "type": "object", "additionalProperties": false }, "StockAllocateItemCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "stockAllocateId", "stockId", "actual" ], "properties": { "stockAllocateId": { "type": "integer", "format": "int32" }, "stockId": { "type": "integer", "format": "int32" }, "actual": { "type": "number", "format": "decimal" } } }, "StockAllocateItemCancelRequest": { "type": "object", "additionalProperties": false, "required": [ "id" ], "properties": { "id": { "type": "integer", "format": "int32" } } }, "StockAllocateItemActionRequest": { "type": "object", "additionalProperties": false, "required": [ "id", "stockAllocateItemStatusId" ], "properties": { "id": { "type": "integer", "format": "int32" }, "stockAllocateItemStatusId": { "type": "integer", "format": "int32" }, "stockId": { "type": "integer", "format": "int32", "nullable": true } } }, "CommonModelsPaginatedListOfStockAllocateDTOBasic": { "type": "object", "additionalProperties": false, "required": [ "items", "pageNumber", "totalPages", "totalCount", "hasPreviousPage", "hasNextPage" ], "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/DTOStockAllocateDTOBasic" } }, "pageNumber": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "totalCount": { "type": "integer", "format": "int32" }, "hasPreviousPage": { "type": "boolean" }, "hasNextPage": { "type": "boolean" } } }, "DTOStockAllocateDTOBasic": { "type": "object", "additionalProperties": false, "required": [ "id", "outletId", "outlet", "toOutletId", "toOutlet", "comment", "stockAllocateStatusId", "stockAllocateStatus", "fromDivisionId", "fromDivision", "toDivisionId", "toDivision", "assignedUserId", "fromUserId", "created", "completed" ], "properties": { "id": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" }, "outlet": { "$ref": "#/components/schemas/DTOOutletDTOBasic" }, "toOutletId": { "type": "integer", "format": "int32" }, "toOutlet": { "$ref": "#/components/schemas/DTOOutletDTOBasic" }, "comment": { "type": "string" }, "stockAllocateStatusId": { "type": "integer", "format": "int32" }, "stockAllocateStatus": { "$ref": "#/components/schemas/DTOStockAllocateStatusDTO" }, "fromDivisionId": { "type": "integer", "format": "int32" }, "fromDivision": { "$ref": "#/components/schemas/ManagerOrderViewDivisionDTO" }, "toDivisionId": { "type": "integer", "format": "int32" }, "toDivision": { "$ref": "#/components/schemas/ManagerOrderViewDivisionDTO" }, "assignedUserId": { "type": "string" }, "assignedUser": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DTOUserDTO" } ] }, "fromUserId": { "type": "string" }, "fromUser": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DTOUserDTO" } ] }, "created": { "type": "string", "format": "date-time" }, "completed": { "type": "string", "format": "date-time" } } }, "DTOStockAllocateStatusDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "StockAllocateGetAllRequest": { "allOf": [ { "$ref": "#/components/schemas/CommonModelsQueryModel" }, { "type": "object", "additionalProperties": false } ] }, "DTOStockAllocateDTO": { "allOf": [ { "$ref": "#/components/schemas/DTOStockAllocateDTOBasic" }, { "type": "object", "additionalProperties": false, "properties": { "stockAllocateItems": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/DTOStockAllocateItemDTO" } } } } ] }, "DTOStockAllocateItemDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "stockId", "stock", "divisionId", "division", "allocateAmount", "actual", "stockAllocateItemStatusId", "stockAllocateItemStatus", "completed", "assignedUserId" ], "properties": { "id": { "type": "integer", "format": "int32" }, "stockId": { "type": "integer", "format": "int32" }, "stock": { "$ref": "#/components/schemas/DTOStockDTO" }, "divisionId": { "type": "integer", "format": "int32" }, "division": { "$ref": "#/components/schemas/ManagerOrderViewDivisionDTO" }, "allocateAmount": { "type": "number", "format": "decimal" }, "actual": { "type": "number", "format": "decimal" }, "stockAllocateItemStatusId": { "type": "integer", "format": "int32" }, "stockAllocateItemStatus": { "$ref": "#/components/schemas/DTOStockAllocateItemStatusDTO" }, "completed": { "type": "string", "format": "date-time" }, "assignedUserId": { "type": "string" }, "assignedUser": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DTOUserDTO" } ] } } }, "DTOStockDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "outletId", "name", "unitId", "unit", "stockCategoryId", "hasVat" ], "properties": { "id": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "unitId": { "type": "integer", "format": "int32" }, "unit": { "$ref": "#/components/schemas/DTOUnitDTO" }, "stockCategoryId": { "type": "integer", "format": "int32" }, "stockItems": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/DTOStockItemDTO" } }, "hasVat": { "type": "boolean" } } }, "DTOStockItemDTO": { "type": "object", "additionalProperties": false, "required": [ "division", "threshold", "actual" ], "properties": { "division": { "$ref": "#/components/schemas/ManagerOrderViewDivisionDTO" }, "threshold": { "type": "number", "format": "decimal" }, "actual": { "type": "number", "format": "decimal" } } }, "DTOStockAllocateItemStatusDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "StockAllocateGetRequest": { "type": "object", "additionalProperties": false }, "StockAllocateCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "outletId", "toOutletId", "comment", "fromDivisionId", "toDivisionId", "assignedUserId" ], "properties": { "outletId": { "type": "integer", "format": "int32" }, "toOutletId": { "type": "integer", "format": "int32" }, "comment": { "type": "string" }, "fromDivisionId": { "type": "integer", "format": "int32" }, "toDivisionId": { "type": "integer", "format": "int32" }, "assignedUserId": { "type": "string" } } }, "StatsTopSalesPeriodResponse": { "type": "object", "additionalProperties": false, "required": [ "id" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "startDate": { "type": "string", "format": "date-time", "nullable": true }, "endDate": { "type": "string", "format": "date-time", "nullable": true } } }, "StatsTopSalesPeriodRequest": { "type": "object", "additionalProperties": false }, "StatsPaymentTypesResponse": { "type": "object", "additionalProperties": false, "required": [ "paymentType", "amount", "averageAmount" ], "properties": { "paymentType": { "type": "string" }, "amount": { "type": "number", "format": "decimal" }, "averageAmount": { "type": "number", "format": "decimal" } } }, "StatsPaymentTypesRequest": { "type": "object", "additionalProperties": false }, "StatsCashUpResponse": { "type": "object", "additionalProperties": false, "required": [ "name", "revenue", "actualSales", "adjustments", "tips", "tipsPercentage", "payments" ], "properties": { "name": { "type": "string" }, "revenue": { "type": "number", "format": "decimal" }, "actualSales": { "type": "number", "format": "decimal" }, "adjustments": { "type": "number", "format": "decimal" }, "tips": { "type": "number", "format": "decimal" }, "tipsPercentage": { "type": "number", "format": "decimal" }, "payments": { "type": "number", "format": "decimal" } } }, "StatsCashUpRequest": { "type": "object", "additionalProperties": false }, "SectionUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "id" ], "properties": { "id": { "type": "integer", "format": "int32", "minimum": 0.0, "exclusiveMinimum": true }, "name": { "type": "string", "minLength": 1, "nullable": false } } }, "SectionTableGetAllRequest": { "type": "object", "additionalProperties": false }, "SectionListRequest": { "type": "object", "additionalProperties": false }, "SectionGetRequest": { "type": "object", "additionalProperties": false }, "SectionDeleteRequest": { "type": "object", "additionalProperties": false }, "SectionCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "outletId" ], "properties": { "name": { "type": "string", "minLength": 1, "nullable": false }, "outletId": { "type": "integer", "format": "int32" } } }, "SalesPeriodGetRequest": { "type": "object", "additionalProperties": false }, "EntitiesCashUp": { "type": "object", "additionalProperties": false, "required": [ "id", "cashUpTotal", "tableCount", "openTableCount", "cashUpBalance", "cashUpTotalPayments", "salesPeriodId", "salesPeriod", "userId", "signOffUserId" ], "properties": { "id": { "type": "integer", "format": "int32" }, "cashUpTotal": { "type": "number", "format": "decimal" }, "tableCount": { "type": "integer", "format": "int32" }, "openTableCount": { "type": "integer", "format": "int32" }, "cashUpBalance": { "type": "number", "format": "decimal" }, "cashUpTotalPayments": { "type": "number", "format": "decimal" }, "salesPeriodId": { "type": "integer", "format": "int32" }, "salesPeriod": { "$ref": "#/components/schemas/EntitiesSalesPeriod" }, "userId": { "type": "string" }, "signOffUserId": { "type": "string" }, "signOffDate": { "type": "string", "format": "date-time", "nullable": true } } }, "SalesPeriodCreateCashUpRequest": { "type": "object", "additionalProperties": false }, "SalesPeriodCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "outletId" ], "properties": { "name": { "type": "string", "minLength": 1, "nullable": false }, "outletId": { "type": "integer", "format": "int32" } } }, "SalesPeriodCloseRequest": { "type": "object", "additionalProperties": false, "required": [ "salesPeriodId" ], "properties": { "salesPeriodId": { "type": "integer", "format": "int32" } } }, "SalesPeriodCashUpCashUp": { "allOf": [ { "$ref": "#/components/schemas/EntitiesCashUp" }, { "type": "object", "additionalProperties": false, "required": [ "userCashUps" ], "properties": { "userCashUps": { "type": "array", "items": { "$ref": "#/components/schemas/SalesPeriodCashUpUserCashUp" } } } } ] }, "SalesPeriodCashUpUserCashUp": { "type": "object", "additionalProperties": false, "required": [ "tableCashUps", "userId", "user", "userTotal", "userBalance", "userPaymentTotal", "userTipTotal", "tableTurnaroundTime" ], "properties": { "tableCashUps": { "type": "array", "items": { "$ref": "#/components/schemas/SalesPeriodCashUpTableCashUp" } }, "userId": { "type": "string" }, "user": { "$ref": "#/components/schemas/DTOUserDTO" }, "userTotal": { "type": "number", "format": "decimal" }, "userBalance": { "type": "number", "format": "decimal" }, "userPaymentTotal": { "type": "number", "format": "decimal" }, "userTipTotal": { "type": "number", "format": "decimal" }, "tableTurnaroundTime": { "type": "string", "format": "time" } } }, "SalesPeriodCashUpTableCashUp": { "type": "object", "additionalProperties": false, "required": [ "orderItems", "total", "paymentsReceived", "tablePaymentTotal", "balance" ], "properties": { "orderItems": { "type": "array", "items": { "$ref": "#/components/schemas/SalesPeriodCashUpBillOrderItemDTO" } }, "total": { "type": "number", "format": "decimal" }, "paymentsReceived": { "type": "array", "items": { "$ref": "#/components/schemas/EntitiesPayment" } }, "tablePaymentTotal": { "type": "number", "format": "decimal" }, "balance": { "type": "number", "format": "decimal" }, "userId": { "type": "string", "nullable": true }, "user": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DTOUserDTO" } ] } } }, "SalesPeriodCashUpBillOrderItemDTO": { "type": "object", "additionalProperties": false, "required": [ "orderItemId", "tableBookingId", "tableBooking", "menuItemId", "menuItem", "userId" ], "properties": { "orderItemId": { "type": "integer", "format": "int32" }, "tableBookingId": { "type": "integer", "format": "int32" }, "tableBooking": { "$ref": "#/components/schemas/DTOTableBookingDTO" }, "menuItemId": { "type": "integer", "format": "int32" }, "menuItem": { "$ref": "#/components/schemas/SalesPeriodCashUpBillMenuItemDTO" }, "orderItemOptions": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/DTOOrderItemOptionDTO" } }, "orderItemExtras": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/DTOOrderItemExtraDTO" } }, "userId": { "type": "string" }, "note": { "type": "string", "nullable": true } } }, "SalesPeriodCashUpBillMenuItemDTO": { "type": "object", "additionalProperties": false, "required": [ "menuItemId", "name", "price" ], "properties": { "menuItemId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "price": { "type": "number", "format": "decimal" } } }, "SalesPeriodCashUpRequest": { "type": "object", "additionalProperties": false }, "EntitiesRole": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "roleId", "name", "description", "roleTypeId", "roleType" ], "properties": { "roleId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "description": { "type": "string" }, "roleTypeId": { "type": "integer", "format": "int32" }, "roleType": { "$ref": "#/components/schemas/EntitiesRoleType" }, "outletId": { "type": "integer", "format": "int32", "nullable": true } } } ] }, "EntitiesRoleType": { "type": "object", "additionalProperties": false, "required": [ "id", "name", "isFrontLine", "isBackOffice", "description" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "isFrontLine": { "type": "boolean" }, "isBackOffice": { "type": "boolean" }, "description": { "type": "string" } } }, "RoleUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "description", "outletId", "roleTypeId" ], "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "roleTypeId": { "type": "integer", "format": "int32" } } }, "RoleTypeGetAllRequest": { "type": "object", "additionalProperties": false }, "RoleGetAllRequest": { "type": "object", "additionalProperties": false }, "RoleDivisionGetAllRequest": { "type": "object", "additionalProperties": false }, "RoleDivisionDeleteRequest": { "type": "object", "additionalProperties": false }, "RoleDivisionCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "divisionId", "roleId" ], "properties": { "divisionId": { "type": "integer", "format": "int32" }, "roleId": { "type": "integer", "format": "int32" } } }, "RoleDeleteRequest": { "type": "object", "additionalProperties": false }, "RoleCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "description", "outletId", "roleTypeId" ], "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "roleTypeId": { "type": "integer", "format": "int32" } } }, "PrintServiceKeyRevokeRequest": { "type": "object", "additionalProperties": false, "required": [ "id" ], "properties": { "id": { "type": "integer", "format": "int32", "minimum": 0.0, "exclusiveMinimum": true } } }, "DTOPrintServiceKeyDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "keyId", "name", "deviceId", "maskedKey", "created" ], "properties": { "id": { "type": "integer", "format": "int32" }, "keyId": { "type": "string" }, "name": { "type": "string" }, "deviceId": { "type": "integer", "format": "int32" }, "maskedKey": { "type": "string" }, "lastSeenAt": { "type": "string", "format": "date-time", "nullable": true }, "revokedAt": { "type": "string", "format": "date-time", "nullable": true }, "created": { "type": "string", "format": "date-time" }, "fullKey": { "type": "string", "nullable": true } } }, "PrintServiceKeyCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "outletId", "deviceId" ], "properties": { "outletId": { "type": "integer", "format": "int32", "minimum": 0.0, "exclusiveMinimum": true }, "deviceId": { "type": "integer", "format": "int32", "minimum": 0.0, "exclusiveMinimum": true }, "name": { "type": "string", "maxLength": 200, "minLength": 0, "nullable": false } } }, "PrinterTestRequest": { "type": "object", "additionalProperties": false, "required": [ "printerId" ], "properties": { "printerId": { "type": "integer", "format": "int32", "minLength": 1, "nullable": false } } }, "PrinterScanResultsResults": { "type": "object", "additionalProperties": false, "properties": { "status": { "type": "string", "nullable": true }, "output": { "type": "string", "nullable": true } } }, "PrinterScanResultsRequest": { "type": "object", "additionalProperties": false }, "PrinterScanRequest": { "type": "object", "additionalProperties": false, "required": [ "printerId" ], "properties": { "printerId": { "type": "integer", "format": "int32", "minLength": 1, "nullable": false } } }, "DTOPrinterDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "outletId", "deviceId", "printerName", "ipAddress", "port", "lineCharacters", "isEnabled", "isConnected", "deviceOnline" ], "properties": { "id": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" }, "deviceId": { "type": "integer", "format": "int32" }, "printerName": { "type": "string" }, "ipAddress": { "type": "string" }, "port": { "type": "integer", "format": "int32" }, "lineCharacters": { "type": "integer", "format": "int32" }, "isEnabled": { "type": "boolean" }, "isConnected": { "type": "boolean" }, "deviceOnline": { "type": "boolean" }, "printerReachable": { "type": "boolean", "nullable": true } } }, "PrinterListRequest": { "type": "object", "additionalProperties": false }, "PrinterEditRequest": { "type": "object", "additionalProperties": false, "required": [ "id", "printerName", "ipAddress", "port", "lineCharacters", "isEnabled", "deviceId" ], "properties": { "id": { "type": "integer", "format": "int32", "minLength": 1, "nullable": false }, "printerName": { "type": "string" }, "ipAddress": { "type": "string" }, "port": { "type": "integer", "format": "int32" }, "lineCharacters": { "type": "integer", "format": "int32" }, "isEnabled": { "type": "boolean" }, "deviceId": { "type": "integer", "format": "int32" } } }, "PrinterDeleteRequest": { "type": "object", "additionalProperties": false }, "PrinterCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "outletId", "deviceId", "printerName", "ipAddress", "port", "lineCharacters" ], "properties": { "outletId": { "type": "integer", "format": "int32", "minLength": 1, "nullable": false }, "deviceId": { "type": "integer", "format": "int32" }, "printerName": { "type": "string" }, "ipAddress": { "type": "string" }, "port": { "type": "integer", "format": "int32" }, "lineCharacters": { "type": "integer", "format": "int32" } } }, "CommonWrapperResultOfStatusResultDto": { "allOf": [ { "$ref": "#/components/schemas/CommonWrapperResult" }, { "type": "object", "additionalProperties": false, "properties": { "value": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/PayDtoStatusResultDto" } ] } } } ] }, "PayDtoStatusResultDto": { "type": "object", "additionalProperties": false, "required": [ "qrCodeState", "transactionId", "merchantTransactionReference", "userId", "status", "disposition", "amount", "currency", "type", "responseCode", "authorisationCode", "createdAt", "updatedAt", "paymentReference", "currencyCode" ], "properties": { "qrCodeState": { "type": "string" }, "transactionId": { "type": "string" }, "merchantTransactionReference": { "type": "string" }, "userId": { "type": "string" }, "status": { "type": "string" }, "disposition": { "type": "string" }, "amount": { "type": "number", "format": "decimal" }, "currency": { "type": "string" }, "type": { "type": "string" }, "responseCode": { "type": "integer", "format": "int32" }, "authorisationCode": { "type": "string" }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "paymentReference": { "type": "string" }, "currencyCode": { "type": "string" } } }, "CommonWrapperResult": { "type": "object", "additionalProperties": false, "required": [ "success", "error", "failure" ], "properties": { "success": { "type": "boolean" }, "error": { "type": "string" }, "failure": { "type": "boolean" } } }, "PayStatusRequest": { "type": "object", "additionalProperties": false }, "PayPayConfigTestConfigRequest": { "type": "object", "additionalProperties": false, "required": [ "id" ], "properties": { "id": { "type": "integer", "format": "int32" } } }, "PayPayConfigSetActiveRequest": { "type": "object", "additionalProperties": false, "required": [ "id", "outletId", "isEnabled" ], "properties": { "id": { "type": "integer", "format": "int32", "minimum": 0.0, "exclusiveMinimum": true }, "outletId": { "type": "integer", "format": "int32" }, "isEnabled": { "type": "boolean" } } }, "EntitiesHaloConfig": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "iv", "id", "outletId", "xApiKey", "merchantId", "isEnabled" ], "properties": { "id": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" }, "xApiKey": { "type": "string" }, "merchantId": { "type": "string" }, "isEnabled": { "type": "boolean" }, "iv": { "type": "string", "format": "byte" } } } ] }, "PayPayConfigGetRequest": { "type": "object", "additionalProperties": false }, "PayPayConfigDeleteRequest": { "type": "object", "additionalProperties": false }, "PayPayConfigCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "xApiKey", "outletId", "merchantId" ], "properties": { "outletId": { "type": "integer", "format": "int32" }, "xApiKey": { "type": "string", "minLength": 1, "nullable": false }, "merchantId": { "type": "string" } } }, "PayManualPaymentRequest": { "type": "object", "additionalProperties": false, "required": [ "paymentTypeId", "tableBookingId", "amount" ], "properties": { "paymentTypeId": { "type": "integer", "format": "int32" }, "tableBookingId": { "type": "integer", "format": "int32" }, "amount": { "type": "number", "format": "decimal" } } }, "CommonWrapperResultOfResponse": { "allOf": [ { "$ref": "#/components/schemas/CommonWrapperResult" }, { "type": "object", "additionalProperties": false, "properties": { "value": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/PayGetLinkResponse" } ] } } } ] }, "PayGetLinkResponse": { "type": "object", "additionalProperties": false, "required": [ "url", "reference" ], "properties": { "url": { "type": "string" }, "reference": { "type": "string" } } }, "PayGetLinkRequest": { "type": "object", "additionalProperties": false }, "PayCheckResponse": { "type": "object", "additionalProperties": false, "required": [ "checked" ], "properties": { "checked": { "type": "integer", "format": "int32" } } }, "PayCheckRequest": { "type": "object", "additionalProperties": false, "required": [ "tableBookingId" ], "properties": { "tableBookingId": { "type": "integer", "format": "int32" } } }, "OutletUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "businessId" ], "properties": { "name": { "type": "string", "minLength": 1, "nullable": false }, "businessId": { "type": "integer", "format": "int32" } } }, "OutletGetPaymentTypeRequest": { "type": "object", "additionalProperties": false }, "OutletGetRequest": { "type": "object", "additionalProperties": false }, "OutletCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "businessId" ], "properties": { "name": { "type": "string", "minLength": 1, "nullable": false }, "businessId": { "type": "integer", "format": "int32" } } }, "EntitiesOutletCounter": { "allOf": [ { "$ref": "#/components/schemas/EntitiesAuditableEntity" }, { "type": "object", "additionalProperties": false, "required": [ "id", "deviceName", "outletId", "outlet" ], "properties": { "id": { "type": "string", "format": "guid" }, "deviceName": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "outlet": { "$ref": "#/components/schemas/EntitiesOutlet" } } } ] }, "OutletCounterDeleteRequest": { "type": "object", "additionalProperties": false }, "OutletCounterCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "deviceName", "outletId" ], "properties": { "deviceName": { "type": "string", "minLength": 1, "nullable": false }, "outletId": { "type": "integer", "format": "int32", "minimum": 0.0, "exclusiveMinimum": true } } }, "OptionUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "optionId", "name", "positionId", "price", "optionGroupId" ], "properties": { "optionId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "positionId": { "type": "integer", "format": "int32" }, "price": { "type": "number", "format": "decimal" }, "optionGroupId": { "type": "integer", "format": "int32" } } }, "OptionItemsRequest": { "type": "object", "additionalProperties": false }, "OptionGroupUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "optionGroupId", "name", "minSelections", "maxSelections" ], "properties": { "optionGroupId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "minSelections": { "type": "integer", "format": "int32" }, "maxSelections": { "type": "integer", "format": "int32" } } }, "OptionGroupDeleteRequest": { "type": "object", "additionalProperties": false }, "OptionGroupCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "minSelections", "maxSelections", "outletId" ], "properties": { "name": { "type": "string" }, "minSelections": { "type": "integer", "format": "int32" }, "maxSelections": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" } } }, "OptionDeleteRequest": { "type": "object", "additionalProperties": false }, "OptionCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "positionId", "price", "optionGroupId", "outletId" ], "properties": { "name": { "type": "string" }, "positionId": { "type": "integer", "format": "int32" }, "price": { "type": "number", "format": "decimal" }, "optionGroupId": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" } } }, "NotificationUserRequest": { "type": "object", "additionalProperties": false, "required": [ "message", "userId" ], "properties": { "message": { "type": "string" }, "userId": { "type": "string" } } }, "NotificationTestNewRequest": { "type": "object", "additionalProperties": false, "required": [ "title", "body", "userId" ], "properties": { "title": { "type": "string" }, "body": { "type": "string" }, "userId": { "type": "string" } } }, "NotificationTestRequest": { "type": "object", "additionalProperties": false, "required": [ "message" ], "properties": { "message": { "type": "string" } } }, "NotificationAddUserRequest": { "type": "object", "additionalProperties": false, "required": [ "token" ], "properties": { "token": { "type": "string" } } }, "MenuItemUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "id", "menuSectionId", "name", "description", "price", "positionId", "divisionId", "isAvailable", "isEnabled" ], "properties": { "id": { "type": "integer", "format": "int32" }, "menuSectionId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "description": { "type": "string" }, "price": { "type": "number", "format": "decimal" }, "positionId": { "type": "integer", "format": "int32" }, "divisionId": { "type": "integer", "format": "int32" }, "isAvailable": { "type": "boolean" }, "isEnabled": { "type": "boolean" }, "billCategoryId": { "type": "integer", "format": "int32", "nullable": true }, "extraGroupIds": { "type": "array", "nullable": true, "items": { "type": "integer", "format": "int32" } }, "optionGroupIds": { "type": "array", "nullable": true, "items": { "type": "integer", "format": "int32" } } } }, "CommonModelsPaginatedListOfMenuItemAdminDTO": { "type": "object", "additionalProperties": false, "required": [ "items", "pageNumber", "totalPages", "totalCount", "hasPreviousPage", "hasNextPage" ], "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/MenuItemMenuItemAdminDTO" } }, "pageNumber": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "totalCount": { "type": "integer", "format": "int32" }, "hasPreviousPage": { "type": "boolean" }, "hasNextPage": { "type": "boolean" } } }, "MenuItemMenuItemAdminDTO": { "type": "object", "additionalProperties": false, "required": [ "menuItemId", "menuId", "menuSectionId", "menuSection", "name", "description", "price", "position", "divisionId", "menuItemOptionGroups", "menuItemExtraGroups", "isAvailable", "isEnabled", "stockPrice" ], "properties": { "menuItemId": { "type": "integer", "format": "int32" }, "menuId": { "type": "integer", "format": "int32" }, "menuSectionId": { "type": "integer", "format": "int32" }, "menuSection": { "$ref": "#/components/schemas/MenuItemMenuSectionAdminDTO" }, "name": { "type": "string" }, "description": { "type": "string" }, "price": { "type": "number", "format": "decimal" }, "position": { "type": "integer", "format": "int32" }, "divisionId": { "type": "integer", "format": "int32" }, "billCategoryId": { "type": "integer", "format": "int32", "nullable": true }, "menuItemOptionGroups": { "type": "array", "items": { "$ref": "#/components/schemas/DTOMenuItemOptionGroupDTO" } }, "menuItemExtraGroups": { "type": "array", "items": { "$ref": "#/components/schemas/DTOMenuItemExtraGroupDTO" } }, "isAvailable": { "type": "boolean" }, "isEnabled": { "type": "boolean" }, "stockPrice": { "type": "number", "format": "decimal" } } }, "MenuItemMenuSectionAdminDTO": { "type": "object", "additionalProperties": false, "required": [ "menuSectionId", "menuId", "menu" ], "properties": { "menuSectionId": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "menuId": { "type": "integer", "format": "int32" }, "menu": { "$ref": "#/components/schemas/MenuItemMenuAdminDTO" } } }, "MenuItemMenuAdminDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "name", "outletId", "position" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "position": { "type": "integer", "format": "int32" } } }, "DTOMenuItemOptionGroupDTO": { "type": "object", "additionalProperties": false, "required": [ "menuItemId", "optionGroupId", "optionGroup" ], "properties": { "menuItemId": { "type": "integer", "format": "int32" }, "optionGroupId": { "type": "integer", "format": "int32" }, "optionGroup": { "$ref": "#/components/schemas/DTOOptionGroupDTO" } } }, "DTOOptionGroupDTO": { "type": "object", "additionalProperties": false, "required": [ "optionGroupId", "name", "minSelections", "maxSelections", "options" ], "properties": { "optionGroupId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "minSelections": { "type": "integer", "format": "int32" }, "maxSelections": { "type": "integer", "format": "int32" }, "options": { "type": "array", "items": { "$ref": "#/components/schemas/DTOOptionDTO" } } } }, "DTOMenuItemExtraGroupDTO": { "type": "object", "additionalProperties": false, "required": [ "menuItemId", "extraGroupId", "extraGroup" ], "properties": { "menuItemId": { "type": "integer", "format": "int32" }, "extraGroupId": { "type": "integer", "format": "int32" }, "extraGroup": { "$ref": "#/components/schemas/DTOExtraGroupDTO" } } }, "DTOExtraGroupDTO": { "type": "object", "additionalProperties": false, "required": [ "extraGroupId", "name", "extras" ], "properties": { "extraGroupId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "extras": { "type": "array", "items": { "$ref": "#/components/schemas/DTOExtraDTO" } } } }, "MenuItemGetAllRequest": { "allOf": [ { "$ref": "#/components/schemas/CommonModelsQueryModel" }, { "type": "object", "additionalProperties": false } ] }, "MenuItemDeleteRequest": { "type": "object", "additionalProperties": false }, "MenuItemCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "menuSectionId", "name", "description", "price", "positionId", "divisionId", "isAvailable", "isEnabled" ], "properties": { "menuSectionId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "description": { "type": "string" }, "price": { "type": "number", "format": "decimal" }, "positionId": { "type": "integer", "format": "int32" }, "divisionId": { "type": "integer", "format": "int32" }, "isAvailable": { "type": "boolean" }, "isEnabled": { "type": "boolean" }, "billCategoryId": { "type": "integer", "format": "int32", "nullable": true }, "extraGroupIds": { "type": "array", "nullable": true, "items": { "type": "integer", "format": "int32" } }, "optionGroupIds": { "type": "array", "nullable": true, "items": { "type": "integer", "format": "int32" } } } }, "MenuUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "id", "position" ], "properties": { "id": { "type": "integer", "format": "int32", "minimum": 0.0, "exclusiveMinimum": true }, "name": { "type": "string", "minLength": 1, "nullable": false }, "position": { "type": "integer", "format": "int32" } } }, "MenuSectionsUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "positionId": { "type": "integer", "format": "int32", "nullable": true } } }, "MenuSectionsDeleteRequest": { "type": "object", "additionalProperties": false }, "MenuSectionsCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "menuId" ], "properties": { "name": { "type": "string" }, "menuId": { "type": "integer", "format": "int32" }, "positionId": { "type": "integer", "format": "int32", "nullable": true } } }, "MenuListRequest": { "type": "object", "additionalProperties": false }, "MenuGetSectionsResponse": { "type": "object", "additionalProperties": false, "properties": { "sections": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/DTOMenuSectionDTO" } }, "parents": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/DTOMenuSectionDTO" } } } }, "DTOMenuSectionDTO": { "type": "object", "additionalProperties": false, "required": [ "menuSectionId", "name", "menuId" ], "properties": { "menuSectionId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "menuId": { "type": "integer", "format": "int32" }, "parentId": { "type": "integer", "format": "int32", "nullable": true }, "parent": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DTOMenuSectionParentDTO" } ] }, "positionId": { "type": "integer", "format": "int32", "nullable": true } } }, "DTOMenuSectionParentDTO": { "type": "object", "additionalProperties": false, "required": [ "menuSectionId", "menuId" ], "properties": { "menuSectionId": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "menuId": { "type": "integer", "format": "int32" }, "parentId": { "type": "integer", "format": "int32", "nullable": true } } }, "MenuGetSectionsRequest": { "type": "object", "additionalProperties": false }, "MenuGetOutletMenuRequest": { "type": "object", "additionalProperties": false }, "DTOMenuItemDTOBasic": { "type": "object", "additionalProperties": false, "required": [ "menuItemId", "menuSectionId", "name", "description", "price", "divisionId", "position", "menuSection", "isAvailable", "isEnabled" ], "properties": { "menuItemId": { "type": "integer", "format": "int32" }, "menuSectionId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "description": { "type": "string" }, "price": { "type": "number", "format": "decimal" }, "divisionId": { "type": "integer", "format": "int32" }, "position": { "type": "integer", "format": "int32" }, "tags": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesTag" } }, "menuSection": { "$ref": "#/components/schemas/DTOMenuSectionBasicDTO" }, "isAvailable": { "type": "boolean" }, "isEnabled": { "type": "boolean" } } }, "DTOMenuSectionBasicDTO": { "type": "object", "additionalProperties": false, "required": [ "menuSectionId" ], "properties": { "menuSectionId": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true } } }, "MenuGetItemsRequest": { "type": "object", "additionalProperties": false }, "DTOMenuItemDTO": { "type": "object", "additionalProperties": false, "required": [ "menuItemId", "menuSectionId", "name", "description", "price", "position", "divisionId", "menuItemOptionGroups", "menuItemExtraGroups" ], "properties": { "menuItemId": { "type": "integer", "format": "int32" }, "menuSectionId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "description": { "type": "string" }, "price": { "type": "number", "format": "decimal" }, "position": { "type": "integer", "format": "int32" }, "tags": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/EntitiesTag" } }, "divisionId": { "type": "integer", "format": "int32" }, "menuItemOptionGroups": { "type": "array", "items": { "$ref": "#/components/schemas/DTOMenuItemOptionGroupDTO" } }, "menuItemExtraGroups": { "type": "array", "items": { "$ref": "#/components/schemas/DTOMenuItemExtraGroupDTO" } } } }, "MenuGetItemRequest": { "type": "object", "additionalProperties": false }, "MenuGetRequest": { "type": "object", "additionalProperties": false }, "MenuDeleteRequest": { "type": "object", "additionalProperties": false }, "MenuCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "outletId", "name", "position" ], "properties": { "outletId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "position": { "type": "integer", "format": "int32" } } }, "ManagerOrderViewResponse": { "type": "object", "additionalProperties": false, "required": [ "divisionId", "division", "lastRefresh", "pendingTables", "pendingItems" ], "properties": { "divisionId": { "type": "integer", "format": "int32" }, "division": { "$ref": "#/components/schemas/EntitiesDivision" }, "tables": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/ManagerOrderViewTableBookingDTO" } }, "lastRefresh": { "type": "string", "format": "date-time" }, "pendingTables": { "type": "integer", "format": "int32" }, "pendingItems": { "type": "integer", "format": "int32" } } }, "ManagerOrderViewTableBookingDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "tableId", "table", "bookingName", "bookingDate", "user" ], "properties": { "id": { "type": "integer", "format": "int32" }, "tableId": { "type": "integer", "format": "int32" }, "table": { "$ref": "#/components/schemas/ManagerOrderViewTableDTO" }, "orderItems": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/ManagerOrderViewOrderItemDTO" } }, "bookingName": { "type": "string" }, "bookingDate": { "type": "string", "format": "date-time" }, "closeDate": { "type": "string", "format": "date-time", "nullable": true }, "user": { "$ref": "#/components/schemas/DTOUserDTO" } } }, "ManagerOrderViewOrderItemDTO": { "type": "object", "additionalProperties": false, "required": [ "orderItemId", "tableBookingId", "menuItem", "divisionId", "orderReceived", "orderUpdated", "orderReceivedFormatted", "orderUpdatedFormatted", "orderItemStatusId", "orderItemStatus" ], "properties": { "orderItemId": { "type": "integer", "format": "int32" }, "tableBookingId": { "type": "integer", "format": "int32" }, "menuItem": { "$ref": "#/components/schemas/ManagerOrderViewMenuItemDTO" }, "divisionId": { "type": "integer", "format": "int32" }, "note": { "type": "string", "nullable": true }, "orderReceived": { "type": "string", "format": "date-time" }, "orderUpdated": { "type": "string", "format": "date-time" }, "orderReceivedFormatted": { "type": "string" }, "orderUpdatedFormatted": { "type": "string" }, "orderItemStatusId": { "type": "integer", "format": "int32" }, "orderItemStatus": { "$ref": "#/components/schemas/ManagerOrderViewOrderItemStatusDTO" }, "orderItemOptions": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/DTOOrderItemOptionDTO" } }, "orderItemExtras": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/DTOOrderItemExtraDTO" } } } }, "ManagerOrderViewMenuItemDTO": { "type": "object", "additionalProperties": false, "required": [ "menuItemId", "name", "description", "price", "position" ], "properties": { "menuItemId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "description": { "type": "string" }, "price": { "type": "number", "format": "decimal" }, "position": { "type": "integer", "format": "int32" }, "divisionId": { "type": "integer", "format": "int32", "nullable": true } } }, "ManagerOrderViewOrderItemStatusDTO": { "type": "object", "additionalProperties": false, "required": [ "orderItemStatusId", "status" ], "properties": { "orderItemStatusId": { "type": "integer", "format": "int32" }, "status": { "type": "string" } } }, "ManagerOrderViewRequest": { "type": "object", "additionalProperties": false }, "ExtraUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "extraId", "name", "positionId", "price", "extraGroupId", "outletId" ], "properties": { "extraId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "positionId": { "type": "integer", "format": "int32" }, "price": { "type": "number", "format": "decimal" }, "extraGroupId": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" } } }, "ExtraItemsRequest": { "type": "object", "additionalProperties": false }, "ExtraGroupUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "extraGroupId", "isGlobal", "name" ], "properties": { "extraGroupId": { "type": "integer", "format": "int32" }, "isGlobal": { "type": "boolean" }, "name": { "type": "string" } } }, "ExtraGroupDeleteRequest": { "type": "object", "additionalProperties": false }, "ExtraGroupCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "isGlobal" ], "properties": { "name": { "type": "string" }, "isGlobal": { "type": "boolean" } } }, "DTOExtraGroupAdminDTO": { "type": "object", "additionalProperties": false, "required": [ "extraGroupId", "name", "isGlobal" ], "properties": { "extraGroupId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "isGlobal": { "type": "boolean" } } }, "ExtraGetAllMenuSpecialExtrasDTO": { "type": "object", "additionalProperties": false, "required": [ "extraId", "name", "positionId", "price", "extraGroupId", "extraGroupName", "isAvailable" ], "properties": { "extraId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "positionId": { "type": "integer", "format": "int32" }, "price": { "type": "number", "format": "decimal" }, "extraGroupId": { "type": "integer", "format": "int32" }, "extraGroupName": { "type": "string" }, "isAvailable": { "type": "boolean" } } }, "ExtraGetAllMenuRequest": { "type": "object", "additionalProperties": false }, "ExtraDeleteRequest": { "type": "object", "additionalProperties": false }, "ExtraCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "positionId", "price", "extraGroupId", "outletId" ], "properties": { "name": { "type": "string" }, "positionId": { "type": "integer", "format": "int32" }, "price": { "type": "number", "format": "decimal" }, "extraGroupId": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" } } }, "EntitiesDivisionType": { "type": "object", "additionalProperties": false, "required": [ "id", "divisionName" ], "properties": { "id": { "type": "integer", "format": "int32" }, "divisionName": { "type": "string" } } }, "DivisionTypeGetAllRequest": { "type": "object", "additionalProperties": false }, "DivisionTypeEditRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "id" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "minLength": 1, "nullable": false } } }, "DivisionTypeCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "DivisionGetUsersResponse": { "type": "object", "additionalProperties": false, "required": [ "userId", "email", "name" ], "properties": { "userId": { "type": "string" }, "email": { "type": "string" }, "name": { "type": "string" } } }, "DivisionGetUsersRequest": { "type": "object", "additionalProperties": false }, "DivisionGetAllRequest": { "type": "object", "additionalProperties": false }, "DivisionEditRequest": { "type": "object", "additionalProperties": false, "required": [ "id", "name", "divisionTypeId", "outletId" ], "properties": { "id": { "type": "integer", "format": "int32", "minLength": 1, "nullable": false }, "divisionTypeId": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" }, "name": { "type": "string", "minLength": 1, "nullable": false } } }, "DivisionDeleteRequest": { "type": "object", "additionalProperties": false }, "DivisionCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "outletId", "divisionTypeId", "name" ], "properties": { "outletId": { "type": "integer", "format": "int32" }, "divisionTypeId": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "ClockGetAllOutletIdRequest": { "type": "object", "additionalProperties": false }, "ClockClockOutRequest": { "type": "object", "additionalProperties": false, "required": [ "outletId" ], "properties": { "outletId": { "type": "integer", "format": "int32" } } }, "ClockClockInRequest": { "type": "object", "additionalProperties": false, "required": [ "outletId" ], "properties": { "outletId": { "type": "integer", "format": "int32" } } }, "CashUpUserItemTypeRequest": { "type": "object", "additionalProperties": false }, "CashUpUserGetResponse": { "type": "object", "additionalProperties": false, "required": [ "items", "totalSales", "totalTips", "totalPayments" ], "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/CashUpUserGetItems" } }, "totalSales": { "type": "number", "format": "decimal" }, "totalTips": { "type": "number", "format": "decimal" }, "totalPayments": { "type": "number", "format": "decimal" } } }, "CashUpUserGetItems": { "type": "object", "additionalProperties": false, "required": [ "userId", "user", "sales", "tips", "payments", "openTableCount", "cashUpUserId" ], "properties": { "userId": { "type": "string" }, "user": { "$ref": "#/components/schemas/EntitiesUser" }, "sales": { "type": "number", "format": "decimal" }, "tips": { "type": "number", "format": "decimal" }, "payments": { "type": "number", "format": "decimal" }, "openTableCount": { "type": "integer", "format": "int32" }, "cashUpUserId": { "type": "integer", "format": "int32" } } }, "CashUpUserGetRequest": { "type": "object", "additionalProperties": false }, "CashUpUserDetailResponse": { "type": "object", "additionalProperties": false, "required": [ "userId", "user", "cashUpUserId", "cashUpUserItems", "openingBalance", "grossBalance", "netBalance", "isCashedUp", "isError", "message" ], "properties": { "userId": { "type": "string" }, "user": { "$ref": "#/components/schemas/DTOUserDTO" }, "cashUpUserId": { "type": "integer", "format": "int32" }, "cashUpUserItems": { "type": "array", "items": { "$ref": "#/components/schemas/DTOCashUpUserItemDTO" } }, "openingBalance": { "type": "number", "format": "decimal" }, "grossBalance": { "type": "number", "format": "decimal" }, "netBalance": { "type": "number", "format": "decimal" }, "isCashedUp": { "type": "boolean" }, "isError": { "type": "boolean" }, "message": { "type": "string" } } }, "DTOCashUpUserItemDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "cashUpUserId", "userId", "outletId", "cashUpUserItemTypeId", "value" ], "properties": { "id": { "type": "integer", "format": "int32" }, "cashUpUserId": { "type": "integer", "format": "int32" }, "userId": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "cashUpUserItemTypeId": { "type": "integer", "format": "int32" }, "cashUpUserItemType": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DTOCashUpUserItemTypeDTO" } ] }, "value": { "type": "number", "format": "decimal" } } }, "DTOCashUpUserItemTypeDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "itemType", "outletId", "isAuto", "affectsGrossBalance", "position", "cashUpUserItemRule" ], "properties": { "id": { "type": "integer", "format": "int32" }, "itemType": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "isAuto": { "type": "boolean" }, "affectsGrossBalance": { "type": "boolean" }, "position": { "type": "integer", "format": "int32" }, "cashUpUserItemRule": { "$ref": "#/components/schemas/CommonEnumsCashUpUserItemRule" }, "paymentTypeId": { "type": "integer", "format": "int32", "nullable": true }, "paymentType": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/EntitiesPaymentType" } ] }, "adjustmentTypeId": { "type": "integer", "format": "int32", "nullable": true }, "adjustmentType": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/EntitiesAdjustmentType" } ] }, "cashupConfigId": { "type": "integer", "format": "int32", "nullable": true }, "cashupConfig": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/EntitiesCashUpConfig" } ] } } }, "CashUpUserDetailRequest": { "type": "object", "additionalProperties": false }, "CashUpUserDeleteRequest": { "type": "object", "additionalProperties": false }, "CashUpUserCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "cashUpUserId", "userId", "outletId", "cashUpUserItemTypeId", "value" ], "properties": { "cashUpUserId": { "type": "integer", "format": "int32" }, "userId": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "cashUpUserItemTypeId": { "type": "integer", "format": "int32" }, "value": { "type": "number", "format": "decimal" } } }, "CashUpUserCloseRequest": { "type": "object", "additionalProperties": false, "required": [ "outletId", "userId" ], "properties": { "outletId": { "type": "integer", "format": "int32" }, "userId": { "type": "string" } } }, "BusinessGetOutletsRequest": { "type": "object", "additionalProperties": false }, "BusinessGetRequest": { "type": "object", "additionalProperties": false }, "BusinessEditRequest": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32", "minLength": 1, "nullable": false }, "name": { "type": "string", "minLength": 1, "nullable": false } } }, "BusinessDeleteRequest": { "type": "object", "additionalProperties": false, "required": [ "id" ], "properties": { "id": { "type": "integer", "format": "int32", "minLength": 1, "nullable": false } } }, "BusinessCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "name" ], "properties": { "name": { "type": "string", "minLength": 1, "nullable": false } } }, "BillCategoryUpdateRequest": { "type": "object", "additionalProperties": false, "required": [ "name" ], "properties": { "name": { "type": "string", "minLength": 1, "nullable": false } } }, "BillCategoryGetAllRequest": { "type": "object", "additionalProperties": false }, "BillCategoryCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "outletId" ], "properties": { "name": { "type": "string", "minLength": 1, "nullable": false }, "outletId": { "type": "integer", "format": "int32" } } }, "BillWhatsappBillRequest": { "type": "object", "additionalProperties": false, "required": [ "name", "tableBookingId", "phoneNumber" ], "properties": { "tableBookingId": { "type": "integer", "format": "int32" }, "name": { "type": "string", "minLength": 1, "nullable": false }, "countryCode": { "type": "string", "nullable": true }, "phoneNumber": { "type": "string", "minLength": 5 } } }, "BillPrintBillRequest": { "type": "object", "additionalProperties": false, "required": [ "tableBookingId", "printerId" ], "properties": { "tableBookingId": { "type": "integer", "format": "int32" }, "printerId": { "type": "integer", "format": "int32" } } }, "BillEmailBillRequest": { "type": "object", "additionalProperties": false, "required": [ "tableBookingId", "email", "name" ], "properties": { "tableBookingId": { "type": "integer", "format": "int32" }, "email": { "type": "string" }, "name": { "type": "string" } } }, "BillDownloadBillRequest": { "type": "object", "additionalProperties": false }, "AIGenerateStreamRequest": { "type": "object", "additionalProperties": false }, "AIGenerateMenuDescriptionRequest": { "type": "object", "additionalProperties": false, "required": [ "menu", "section", "name" ], "properties": { "menu": { "type": "string", "minLength": 1, "nullable": false }, "section": { "type": "string", "minLength": 1, "nullable": false }, "name": { "type": "string", "minLength": 1, "nullable": false } } }, "AIGenerateRequest": { "type": "object", "additionalProperties": false, "required": [ "prompt" ], "properties": { "prompt": { "type": "string", "minLength": 1, "nullable": false } } }, "AdminTokenResponse": { "type": "object", "additionalProperties": false, "required": [ "token" ], "properties": { "token": { "type": "string" } } }, "AdminTokenRequest": { "type": "object", "additionalProperties": false, "required": [ "userId" ], "properties": { "userId": { "type": "string" } } }, "EntitiesAdjustmentTypeOutlet": { "type": "object", "additionalProperties": false, "required": [ "id", "adjustmentTypeId", "adjustmentType", "outletId", "outlet" ], "properties": { "id": { "type": "integer", "format": "int32" }, "adjustmentTypeId": { "type": "integer", "format": "int32" }, "adjustmentType": { "$ref": "#/components/schemas/EntitiesAdjustmentType" }, "outletId": { "type": "integer", "format": "int32" }, "outlet": { "$ref": "#/components/schemas/EntitiesOutlet" } } }, "AdjustmentTypeOutletRemoveRequest": { "type": "object", "additionalProperties": false, "required": [ "adjustmentTypeId", "outletId" ], "properties": { "adjustmentTypeId": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32" } } }, "AdjustmentTypeOutletCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "outletId", "name", "description" ], "properties": { "outletId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "description": { "type": "string" } } }, "AdjustmentGetAllRequest": { "type": "object", "additionalProperties": false }, "AdjustmentCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "tableBookingId", "adjustmentTypeId", "amount" ], "properties": { "tableBookingId": { "type": "integer", "format": "int32" }, "adjustmentTypeId": { "type": "integer", "format": "int32" }, "amount": { "type": "number", "format": "decimal" }, "note": { "type": "string", "nullable": true } } } } } }