{"components":{"responses":{"Error":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response. Exact envelope must preserve Vue compatibility."}},"schemas":{"AdminContractUploadRequest":{"additionalProperties":false,"properties":{"file":{"format":"binary","type":"string"}},"required":["file"],"type":"object"},"AdminDashboard":{"additionalProperties":false,"properties":{"agents":{"$ref":"#/components/schemas/DashboardAgentsSummary"},"currencies":{"items":{"$ref":"#/components/schemas/DashboardCurrency"},"type":"array"},"generated_at":{"type":"string"},"integrations":{"items":{"$ref":"#/components/schemas/DashboardIntegration"},"type":"array"},"merchants":{"$ref":"#/components/schemas/DashboardMerchantsSummary"},"orders":{"$ref":"#/components/schemas/DashboardOrdersSummary"},"rates":{"items":{"$ref":"#/components/schemas/DashboardRate"},"type":"array"}},"required":["orders","merchants","agents","currencies","integrations","generated_at"],"type":"object"},"Agent":{"additionalProperties":false,"properties":{"api_key":{"type":"string"},"company_name":{"type":"string"},"created_at":{"type":"string"},"email":{"type":"string"},"id":{"type":"string"},"is_active":{"type":"boolean"},"name":{"type":"string"},"phone":{"type":"string"},"role_id":{"type":"string"}},"required":["id","name","email","role_id","is_active","created_at"],"type":"object"},"AgentBalance":{"additionalProperties":false,"properties":{"agent_id":{"type":"string"},"amount":{"type":"number"},"currency_id":{"type":"string"},"id":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","agent_id","amount","currency_id","updated_at"],"type":"object"},"AgentBalanceListResponse":{"items":{"$ref":"#/components/schemas/AgentBalance"},"type":"array"},"AgentList":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/Agent"},"type":"array"},"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["items","total","limit","offset"],"type":"object"},"AgentPurchase":{"additionalProperties":false,"properties":{"agent_id":{"type":"string"},"amount":{"type":"number"},"created_at":{"type":"string"},"currency_id":{"type":"string"},"id":{"type":"string"},"service_name":{"type":"string"},"status":{"type":"string"}},"required":["id","agent_id","service_name","amount","currency_id","status","created_at"],"type":"object"},"AgentPurchaseListResponse":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/AgentPurchase"},"type":"array"},"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["items","total","limit","offset"],"type":"object"},"AgentsReport":{"additionalProperties":false,"properties":{"active_agents":{"type":"number"},"total_agents":{"type":"number"}},"required":["total_agents","active_agents"],"type":"object"},"ApiError":{"additionalProperties":false,"properties":{"message":{"type":"string"},"status":{"type":"number"}},"required":["status","message"],"type":"object"},"AssignPermissionRequest":{"additionalProperties":false,"properties":{"permission_id":{"type":"string"}},"required":["permission_id"],"type":"object"},"AssignUserRolesRequest":{"additionalProperties":false,"properties":{"role_ids":{"items":{"type":"string"},"type":"array"}},"required":["role_ids"],"type":"object"},"AuditLogListResponse":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/AuditLogResponse"},"type":"array"},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"required":["items","total","limit","offset"],"type":"object"},"AuditLogResponse":{"additionalProperties":false,"properties":{"action":{"type":"string"},"created_at":{"format":"date-time","type":"string"},"details":{"additionalProperties":true,"type":"object"},"entity_id":{"type":"string"},"entity_type":{"type":"string"},"id":{"type":"string"},"ip_address":{"type":"string"},"user_agent":{"type":"string"},"user_id":{"type":"string"}},"required":["id","action","entity_type","ip_address","user_agent","created_at"],"type":"object"},"AuthLoginResponse":{"additionalProperties":false,"properties":{"access_token":{"type":"string"},"merchant":{"$ref":"#/components/schemas/AuthMerchant"},"user":{"$ref":"#/components/schemas/AuthUserResponse"}},"required":["user","merchant","access_token"],"type":"object"},"AuthMeResponse":{"additionalProperties":false,"properties":{"merchant":{"$ref":"#/components/schemas/AuthMerchant"},"user":{"$ref":"#/components/schemas/AuthUserResponse"}},"required":["user","merchant"],"type":"object"},"AuthMerchant":{"additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"AuthRoleRef":{"additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"AuthSwitchRoleResponse":{"additionalProperties":false,"properties":{"access_token":{"type":"string"},"user":{"$ref":"#/components/schemas/AuthUserResponse"}},"required":["access_token","user"],"type":"object"},"AuthUser":{"additionalProperties":false,"properties":{"email":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"permissions":{"items":{"type":"string"},"type":"array"},"role":{"type":"string"}},"required":["id","email","name","role","permissions"],"type":"object"},"AuthUserResponse":{"additionalProperties":false,"properties":{"active_role":{"$ref":"#/components/schemas/AuthRoleRef"},"email":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"permissions":{"items":{"type":"string"},"type":"array"},"role":{"type":"string"},"roles":{"items":{"$ref":"#/components/schemas/AuthRoleRef"},"type":"array"}},"required":["id","email","name","roles","active_role","permissions","role"],"type":"object"},"BinaryFileResponse":{"description":"Downloaded document file returned by http.ServeFile.","format":"binary","type":"string"},"BuildReportRequest":{"additionalProperties":false,"properties":{"date_from":{"type":"string"},"date_to":{"type":"string"},"filters":{"additionalProperties":{"type":"string"},"type":"object"}},"required":["date_from","date_to"],"type":"object"},"ChangePasswordRequest":{"additionalProperties":false,"properties":{"password":{"type":"string"}},"required":["password"],"type":"object"},"Contract":{"additionalProperties":false,"properties":{"amount_label":{"type":"string"},"counterparty":{"type":"string"},"created_at":{"type":"string"},"currency_label":{"type":"string"},"document_url":{"type":"string"},"download_url":{"type":"string"},"ends_at":{"type":"string"},"file_url":{"type":"string"},"id":{"type":"string"},"number":{"type":"string"},"signed_at":{"type":"string"},"starts_at":{"type":"string"},"status":{"type":"string"},"subject":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"}},"required":["id","number","status"],"type":"object"},"ContractList":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/Contract"},"type":"array"},"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["items","total","limit","offset"],"type":"object"},"ContractQueryParams":{"additionalProperties":false,"properties":{"limit":{"type":"number"},"offset":{"type":"number"},"search":{"type":"string"}},"type":"object"},"ConvertCurrencyRequest":{"additionalProperties":false,"properties":{"amount":{"type":"number"},"from":{"type":"string"},"to":{"type":"string"}},"required":["amount","from","to"],"type":"object"},"ConvertCurrencyResponse":{"additionalProperties":false,"properties":{"amount":{"type":"number"},"from":{"type":"string"},"result":{"type":"number"},"to":{"type":"string"}},"required":["amount","from","to","result"],"type":"object"},"CounterpartyListResponse":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/CounterpartyResponse"},"type":"array"},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"required":["items","total","limit","offset"],"type":"object"},"CounterpartyResponse":{"additionalProperties":false,"properties":{"company_name":{"type":"string"},"created_at":{"format":"date-time","type":"string"},"email":{"type":"string"},"id":{"type":"string"},"is_active":{"type":"boolean"},"name":{"type":"string"},"phone":{"type":"string"},"type":{"enum":["merchant","agent"],"type":"string"}},"required":["id","type","name","is_active","created_at"],"type":"object"},"CreateAgentPurchaseRequest":{"additionalProperties":false,"properties":{"amount":{"type":"number"},"currency_id":{"type":"string"},"service_name":{"type":"string"}},"required":["service_name","amount","currency_id"],"type":"object"},"CreateAgentRequest":{"additionalProperties":false,"properties":{"api_key":{"type":"string"},"company_name":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"},"role_id":{"type":"string"}},"required":["name","email","role_id"],"type":"object"},"CreateExchangeRateRequest":{"additionalProperties":false,"properties":{"effective_from":{"type":"string"},"from_currency_code":{"type":"string"},"rate":{"type":"number"},"source":{"type":"string"},"to_currency_code":{"type":"string"}},"required":["from_currency_code","to_currency_code","rate","source"],"type":"object"},"CreateIntegrationRequest":{"additionalProperties":false,"properties":{"config":{"additionalProperties":true,"type":"object"},"name":{"type":"string"},"type":{"type":"string"}},"required":["type","name"],"type":"object"},"CreateMerchantRequest":{"additionalProperties":false,"properties":{"allowed_ips":{"items":{"type":"string"},"type":"array"},"callback_url":{"type":"string"},"initial_balance_usd":{"description":"Non-negative USD amount exactly representable in cents.","maximum":9.223372036854776e+16,"minimum":0,"multipleOf":0.01,"type":"number"},"markup_percent":{"type":"number"},"name":{"type":"string"}},"required":["name"],"type":"object"},"CreateNoteRequest":{"additionalProperties":false,"properties":{"note":{"type":"string"}},"required":["note"],"type":"object"},"CreateOrderRequest":{"additionalProperties":false,"properties":{"amount_label":{"type":"string"},"currency_label":{"type":"string"},"customer_email":{"type":"string"},"customer_phone":{"type":"string"},"description":{"type":"string"},"expires_at":{"type":"string"},"external_order_id":{"type":"string"},"metadata":{"additionalProperties":{},"type":"object"},"title":{"type":"string"}},"required":["external_order_id","title"],"type":"object"},"CreatePermissionRequest":{"additionalProperties":false,"properties":{"action":{"type":"string"},"resource":{"type":"string"}},"required":["resource","action"],"type":"object"},"CreateRoleRequest":{"additionalProperties":false,"properties":{"description":{"type":"string"},"name":{"type":"string"}},"required":["name"],"type":"object"},"CreateStructuredContractRequest":{"additionalProperties":false,"properties":{"amount_label":{"anyOf":[{"type":"string"},{"type":"null"}]},"client_subject":{"type":"string"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"end_date":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"merchant_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"number":{"type":"string"},"responsible":{"anyOf":[{"type":"string"},{"type":"null"}]},"start_date":{"format":"date-time","type":"string"},"status":{"enum":["draft","active","expired","terminated"],"type":"string"},"type":{"type":"string"}},"required":["number","client_subject","type","status","start_date"],"type":"object"},"CreateSupplierRequest":{"additionalProperties":false,"properties":{"code":{"type":"string"},"config":{"additionalProperties":true,"type":"object"},"name":{"type":"string"},"priority":{"type":"integer"},"supports_fallback":{"type":"boolean"},"type":{"type":"string"}},"required":["code","name","type"],"type":"object"},"CreateSupportMessageRequest":{"additionalProperties":false,"properties":{"message":{"type":"string"}},"required":["message"],"type":"object"},"CreateSupportTicketRequest":{"additionalProperties":false,"properties":{"category":{"type":"string"},"message":{"type":"string"},"subject":{"type":"string"}},"required":["subject","category","message"],"type":"object"},"CreateUserRequest":{"additionalProperties":false,"properties":{"email":{"type":"string"},"merchant_id":{"type":"string"},"name":{"type":"string"},"password":{"type":"string"},"role_id":{"type":"string"}},"required":["email","name","password","role_id"],"type":"object"},"CsvReportResponse":{"description":"CSV report export returned with text/csv; charset=utf-8.","type":"string"},"CurrencyListResponse":{"items":{"$ref":"#/components/schemas/CurrencyResponse"},"type":"array"},"CurrencyResponse":{"additionalProperties":false,"properties":{"code":{"type":"string"},"created_at":{"type":"string"},"id":{"type":"string"},"is_active":{"type":"boolean"},"name":{"type":"string"},"symbol":{"type":"string"}},"required":["id","code","name","symbol","is_active","created_at"],"type":"object"},"DashboardAgentsSummary":{"additionalProperties":false,"properties":{"active":{"type":"number"},"total":{"type":"number"}},"required":["total","active"],"type":"object"},"DashboardCurrency":{"additionalProperties":false,"properties":{"code":{"type":"string"},"name":{"type":"string"},"symbol":{"type":"string"}},"required":["code","name","symbol"],"type":"object"},"DashboardIntegration":{"additionalProperties":false,"properties":{"id":{"type":"string"},"is_active":{"type":"boolean"},"name":{"type":"string"},"type":{"type":"string"}},"required":["id","type","name","is_active"],"type":"object"},"DashboardMerchantsSummary":{"additionalProperties":false,"properties":{"active":{"type":"number"},"total":{"type":"number"}},"required":["total","active"],"type":"object"},"DashboardOrdersSummary":{"additionalProperties":false,"properties":{"by_status":{"additionalProperties":{"type":"number"},"type":"object"},"total":{"type":"number"}},"required":["total","by_status"],"type":"object"},"DashboardRate":{"additionalProperties":false,"properties":{"from":{"type":"string"},"rate":{"type":"number"},"source":{"type":"string"},"to":{"type":"string"},"updated_at":{"type":"string"}},"required":["from","to","rate","source","updated_at"],"type":"object"},"Document":{"additionalProperties":false,"properties":{"created_at":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"size":{"type":"number"},"type":{"type":"string"}},"required":["id","name","type","size","created_at"],"type":"object"},"DocumentContractListResponse":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/DocumentContractResponse"},"type":"array"},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"required":["items","total","limit","offset"],"type":"object"},"DocumentContractResponse":{"additionalProperties":false,"properties":{"amount_label":{"anyOf":[{"type":"string"},{"type":"null"}]},"counterparty":{"anyOf":[{"type":"string"},{"type":"null"}]},"counterparty_subject":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"format":"date-time","type":"string"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"currency_label":{"anyOf":[{"type":"string"},{"type":"null"}]},"document_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"end_date":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"ends_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"file_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"id":{"type":"string"},"number":{"type":"string"},"signed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"start_date":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"starts_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"status":{"type":"string"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":{"type":"string"},"type":{"type":"string"}},"required":["id","number","title","type","created_at","status"],"type":"object"},"DocumentList":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/Document"},"type":"array"},"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["items","total","limit","offset"],"type":"object"},"DocumentUploadRequest":{"additionalProperties":false,"properties":{"file":{"format":"binary","type":"string"},"merchant_id":{"type":"string"},"type":{"default":"document","type":"string"}},"required":["file"],"type":"object"},"Employee":{"additionalProperties":false,"properties":{"created_at":{"type":"string"},"email":{"type":"string"},"id":{"type":"string"},"is_active":{"type":"boolean"},"name":{"type":"string"},"role":{"type":"string"}},"required":["id","email","name","role","is_active","created_at"],"type":"object"},"EmployeeList":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/Employee"},"type":"array"},"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["items","total","limit","offset"],"type":"object"},"Error":{"additionalProperties":true,"properties":{"error":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"type":"object"},"ExchangeRateResponse":{"additionalProperties":false,"properties":{"created_at":{"type":"string"},"effective_from":{"type":"string"},"effective_to":{"anyOf":[{"type":"string"},{"type":"null"}]},"from_currency":{"type":"string"},"id":{"type":"string"},"rate":{"type":"number"},"source":{"type":"string"},"to_currency":{"type":"string"}},"required":["id","rate","source","effective_from","created_at"],"type":"object"},"FinanceReport":{"additionalProperties":false,"properties":{"by_status":{"additionalProperties":{"type":"number"},"type":"object"},"total_amount":{"type":"number"},"total_purchases":{"type":"number"}},"required":["total_purchases","total_amount","by_status"],"type":"object"},"GamesDropBalance":{"additionalProperties":false,"properties":{"balance":{"type":"number"},"balanceProfile":{"type":"string"},"currency":{"additionalProperties":false,"properties":{"code":{"type":"string"},"id":{"type":"number"}},"required":["id","code"],"type":"object"},"draftBalance":{"type":"number"},"isPostpaid":{"type":"boolean"},"partnerId":{"type":"number"}},"required":["balance","draftBalance","isPostpaid","balanceProfile","currency","partnerId"],"type":"object"},"GamesDropBalanceResponse":{"additionalProperties":false,"properties":{"balance":{"type":"number","x-qalam-go-type":"float64"},"balanceProfile":{"type":"string"},"currency":{"$ref":"#/components/schemas/GamesDropCurrency"},"draftBalance":{"type":"number","x-qalam-go-type":"float64"},"isPostpaid":{"type":"boolean"},"partnerId":{"type":"integer"}},"required":["balance","draftBalance","isPostpaid","balanceProfile","currency","partnerId"],"type":"object"},"GamesDropCheckGameDataRequest":{"additionalProperties":false,"properties":{"gameServerId":{"type":"string"},"gameUserId":{"type":"string"},"offerId":{"type":"integer"}},"required":["offerId","gameUserId"],"type":"object"},"GamesDropCheckGameDataResponse":{"additionalProperties":false,"properties":{"gameUserLogin":{"type":"string"},"status":{"type":"string"}},"required":["status"],"type":"object"},"GamesDropCreateOrderRequest":{"additionalProperties":false,"properties":{"customer":{"anyOf":[{"$ref":"#/components/schemas/GamesDropCustomer"},{"type":"null"}]},"offerId":{"type":"integer"},"price":{"type":"number","x-qalam-go-type":"float64"},"transactionId":{"type":"string"}},"required":["offerId","price","transactionId"],"type":"object"},"GamesDropCreateOrderResponse":{"additionalProperties":false,"properties":{"count":{"type":"integer"},"createdAt":{"type":"string"},"currency":{"type":"string"},"isReturnDataForCustomer":{"type":"boolean"},"key":{"type":"string"},"message":{"type":"string"},"offerId":{"type":"integer"},"offerName":{"type":"string"},"orderId":{"type":"integer"},"price":{"type":"number","x-qalam-go-type":"float64"},"productName":{"type":"string"},"status":{"type":"string"}},"required":["orderId","count","price","currency","offerId","productName","offerName","status","isReturnDataForCustomer","createdAt"],"type":"object"},"GamesDropCurrency":{"additionalProperties":false,"properties":{"code":{"type":"string"},"id":{"type":"integer"}},"required":["id","code"],"type":"object"},"GamesDropCustomer":{"additionalProperties":false,"properties":{"email":{"type":"string"},"gameUserId":{"type":"string"}},"type":"object"},"GamesDropFindOneRequest":{"additionalProperties":false,"properties":{"offerId":{"type":"integer"}},"required":["offerId"],"type":"object"},"GamesDropFindOneResponse":{"additionalProperties":false,"properties":{"balanceProfile":{"type":"string"},"count":{"type":"integer"},"currency":{"type":"string"},"isRequiredGameServerId":{"type":"boolean"},"isRequiredGameUserId":{"type":"boolean"},"isReturnDataForCustomer":{"type":"boolean"},"isSettlementCompatible":{"type":"boolean"},"offerId":{"type":"integer"},"offerName":{"type":"string"},"platformCode":{"type":"string"},"platformName":{"type":"string"},"price":{"type":"number","x-qalam-go-type":"float64"},"productName":{"type":"string"},"regionCode":{"type":"string"},"regionName":{"type":"string"},"settlementMethod":{"type":"string"}},"required":["offerId","productName","offerName","platformCode","platformName","regionCode","regionName","count","price","currency","settlementMethod","balanceProfile","isSettlementCompatible","isReturnDataForCustomer","isRequiredGameUserId","isRequiredGameServerId"],"type":"object"},"GamesDropOrderStatusRequest":{"additionalProperties":false,"properties":{"orderId":{"type":"integer"},"transactionId":{"type":"string"}},"type":"object"},"GamesDropSyncOffer":{"additionalProperties":false,"properties":{"currency":{"type":"string"},"inStock":{"type":"boolean"},"isRequiredGameServerId":{"type":"boolean"},"isRequiredGameUserId":{"type":"boolean"},"offerGroupId":{"type":"integer"},"offerGroupName":{"type":"string"},"platformCode":{"type":"string"},"platformName":{"type":"string"},"price":{"type":"number","x-qalam-go-type":"float64"},"productName":{"type":"string"},"regionCode":{"type":"string"},"regionName":{"type":"string"}},"required":["offerGroupId","productName","offerGroupName","platformCode","platformName","regionCode","regionName","price","currency","inStock","isRequiredGameUserId","isRequiredGameServerId"],"type":"object"},"GamesDropSyncRequest":{"additionalProperties":false,"properties":{"category":{"type":"string"},"limit":{"type":"integer"},"page":{"type":"integer"},"search":{"type":"string"}},"type":"object"},"GamesDropSyncResponse":{"additionalProperties":false,"properties":{"count":{"type":"integer"},"rows":{"items":{"$ref":"#/components/schemas/GamesDropSyncOffer"},"type":"array"}},"required":["count","rows"],"type":"object"},"GamesDropTransaction":{"additionalProperties":false,"properties":{"amount":{"type":"number","x-qalam-go-type":"float64"},"balanceAfter":{"type":"number","x-qalam-go-type":"float64"},"createdAt":{"type":"string"},"description":{"type":"string"},"id":{"type":"integer"},"type":{"type":"string"}},"required":["id","amount","type","description","balanceAfter","createdAt"],"type":"object"},"GamesDropTransactionHistoryResponse":{"additionalProperties":false,"properties":{"total":{"type":"integer"},"transactions":{"items":{"$ref":"#/components/schemas/GamesDropTransaction"},"type":"array"}},"required":["transactions","total"],"type":"object"},"HealthResponse":{"additionalProperties":false,"properties":{"status":{"type":"string"},"version":{"type":"string"}},"required":["status","version"],"type":"object"},"IntegrationListResponse":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/IntegrationResponse"},"type":"array"},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"required":["items","total","limit","offset"],"type":"object"},"IntegrationResponse":{"additionalProperties":false,"properties":{"config":{"additionalProperties":true,"type":"object"},"created_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"is_active":{"type":"boolean"},"name":{"type":"string"},"type":{"type":"string"}},"required":["id","type","name","is_active","created_at"],"type":"object"},"IntegrationTestResponse":{"additionalProperties":false,"properties":{"message":{"type":"string"},"status":{"enum":["ok","error"],"type":"string"}},"required":["status","message"],"type":"object"},"InviteEmployeeRequest":{"additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"}},"required":["email","name","role"],"type":"object"},"IssueOrderRequest":{"additionalProperties":false,"properties":{"comment":{"type":"string"},"issued_to":{"type":"string"}},"type":"object"},"LoginRequest":{"additionalProperties":false,"properties":{"email":{"type":"string"},"password":{"type":"string"}},"required":["email","password"],"type":"object"},"LoginResponse":{"additionalProperties":false,"properties":{"access_token":{"type":"string"},"merchant":{"$ref":"#/components/schemas/AuthMerchant"},"user":{"$ref":"#/components/schemas/AuthUser"}},"required":["user","merchant"],"type":"object"},"Merchant":{"additionalProperties":false,"properties":{"allowed_ips":{"items":{"type":"string"},"type":"array"},"api_key":{"type":"string"},"balance_usd":{"type":"number"},"callback_secret":{"type":"string"},"callback_url":{"type":"string"},"created_at":{"type":"string"},"id":{"type":"string"},"is_active":{"type":"boolean"},"markup_percent":{"type":"number"},"name":{"type":"string"}},"required":["id","name","is_active","balance_usd","markup_percent","allowed_ips","created_at"],"type":"object"},"MerchantApiKeyResponse":{"additionalProperties":false,"properties":{"api_key":{"type":"string"}},"required":["api_key"],"type":"object"},"MerchantBalanceResponse":{"additionalProperties":false,"properties":{"balance_usd":{"type":"number"}},"required":["balance_usd"],"type":"object"},"MerchantDashboard":{"additionalProperties":false,"properties":{"orders":{"$ref":"#/components/schemas/MerchantDashboardOrderStats"},"rates":{"items":{"$ref":"#/components/schemas/DashboardRate"},"type":"array"}},"required":["orders","rates"],"type":"object"},"MerchantDashboardOrderStats":{"additionalProperties":false,"properties":{"cancelled":{"type":"number"},"completed":{"type":"number"},"pending":{"type":"number"},"total":{"type":"number"},"total_amount":{"type":"number"}},"required":["total","pending","completed","cancelled","total_amount"],"type":"object"},"MerchantList":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/Merchant"},"type":"array"},"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["items","total","limit","offset"],"type":"object"},"MerchantOrderRequest":{"additionalProperties":false,"properties":{"game_server_id":{"type":"string"},"game_user_id":{"type":"string"},"product_id":{"type":"string"}},"required":["product_id"],"type":"object"},"MerchantOrderResponse":{"additionalProperties":false,"properties":{"amount_label":{"type":"string"},"error":{"type":"string"},"id":{"type":"string"},"order_number":{"type":"string"},"result":{"$ref":"#/components/schemas/MerchantOrderResult"},"status":{"enum":["issued","failed"],"type":"string"},"supplier_status":{"enum":["issued","failed"],"type":"string"},"title":{"type":"string"}},"required":["id","order_number","status","title","amount_label","supplier_status"],"type":"object"},"MerchantOrderResult":{"additionalProperties":false,"properties":{"key":{"type":"string"},"message":{"type":"string"}},"type":"object"},"MerchantProfile":{"additionalProperties":false,"properties":{"allowed_ips":{"items":{"type":"string"},"type":"array"},"balance_usd":{"type":"number"},"callback_url":{"type":"string"},"created_at":{"type":"string"},"id":{"type":"string"},"is_active":{"type":"boolean"},"markup_percent":{"type":"number"},"name":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","name","is_active","balance_usd","markup_percent","allowed_ips","created_at","updated_at"],"type":"object"},"MerchantsReport":{"additionalProperties":false,"properties":{"active_merchants":{"type":"number"},"total_merchants":{"type":"number"}},"required":["total_merchants","active_merchants"],"type":"object"},"OpenApiDocument":{"additionalProperties":true,"type":"object"},"Order":{"additionalProperties":false,"properties":{"amount_label":{"type":"string"},"created_at":{"type":"string"},"currency_label":{"type":"string"},"customer_email":{"type":"string"},"customer_phone":{"type":"string"},"description":{"type":"string"},"expires_at":{"type":"string"},"external_order_id":{"type":"string"},"id":{"type":"string"},"issued_at":{"type":"string"},"metadata":{"additionalProperties":{},"type":"object"},"order_number":{"type":"string"},"status":{"$ref":"#/components/schemas/OrderStatus"},"title":{"type":"string"}},"required":["id","order_number","external_order_id","status","title","created_at"],"type":"object"},"OrderEvent":{"additionalProperties":false,"properties":{"created_at":{"type":"string"},"event_type":{"type":"string"},"id":{"type":"string"},"new_status":{"anyOf":[{"type":"string"},{"type":"null"}]},"old_status":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","event_type","created_at"],"type":"object"},"OrderEventListResponse":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/OrderEvent"},"type":"array"},"total":{"type":"number"}},"required":["items","total"],"type":"object"},"OrderList":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/Order"},"type":"array"},"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["items","total","limit","offset"],"type":"object"},"OrderNote":{"additionalProperties":false,"properties":{"author_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"author_name":{"type":"string"},"author_role":{"type":"string"},"created_at":{"type":"string"},"id":{"type":"string"},"note":{"type":"string"},"order_id":{"type":"string"}},"required":["id","order_id","author_name","author_role","note","created_at"],"type":"object"},"OrderNoteListResponse":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/OrderNote"},"type":"array"},"total":{"type":"number"}},"required":["items","total"],"type":"object"},"OrderStatus":{"type":"string","x-qalam-known-values":["created","confirmed","ready_for_issue","issued","expired","cancelled"]},"OrdersReport":{"additionalProperties":false,"properties":{"by_status":{"additionalProperties":{"type":"number"},"type":"object"},"created_from":{"type":"string"},"created_to":{"type":"string"},"total_orders":{"type":"number"}},"required":["total_orders","by_status"],"type":"object"},"Paginated":{"additionalProperties":false,"properties":{"items":{"items":{"x-typescript-type":"T"},"type":"array"},"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["items","total","limit","offset"],"type":"object"},"Permission":{"additionalProperties":false,"properties":{"action":{"type":"string"},"created_at":{"type":"string"},"id":{"type":"string"},"resource":{"type":"string"}},"required":["id","resource","action","created_at"],"type":"object"},"PermissionList":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/Permission"},"type":"array"},"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["items","total","limit","offset"],"type":"object"},"Product":{"additionalProperties":false,"properties":{"category":{"type":"string"},"currency":{"type":"string"},"description":{"type":"string"},"id":{"type":"string"},"in_stock":{"type":"boolean"},"name":{"type":"string"},"offer_group_name":{"type":"string"},"platform":{"type":"string"},"platform_name":{"type":"string"},"price_with_markup":{"type":"number"},"region":{"type":"string"},"region_name":{"type":"string"},"requires_game_server_id":{"type":"boolean"},"requires_game_user_id":{"type":"boolean"}},"required":["id","name","description","category","platform","platform_name","region","region_name","offer_group_name","requires_game_user_id","requires_game_server_id","price_with_markup","currency","in_stock"],"type":"object"},"ProductListResponse":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/Product"},"type":"array"},"page":{"type":"number"},"per_page":{"type":"number"},"total":{"type":"number"}},"required":["items","page","per_page","total"],"type":"object"},"ProductQueryParams":{"additionalProperties":false,"properties":{"category":{"type":"string"},"page":{"type":"number"},"per_page":{"type":"number"},"platform":{"type":"string"},"search":{"type":"string"}},"type":"object"},"ReadyForIssueRequest":{"additionalProperties":false,"properties":{"result_payload":{"additionalProperties":{},"type":"object"}},"required":["result_payload"],"type":"object"},"ReadyResponse":{"additionalProperties":false,"properties":{"database":{"type":"string"},"status":{"type":"string"}},"required":["status","database"],"type":"object"},"RefreshTokenResponse":{"additionalProperties":false,"properties":{"access_token":{"type":"string"}},"required":["access_token"],"type":"object"},"RegisterRequest":{"additionalProperties":false,"properties":{"email":{"type":"string"},"merchant_name":{"type":"string"},"name":{"type":"string"},"password":{"type":"string"}},"required":["email","password","name","merchant_name"],"type":"object"},"RegisterResponse":{"additionalProperties":false,"properties":{"access_token":{"type":"string"},"api_key":{"type":"string"},"merchant":{"$ref":"#/components/schemas/AuthMerchant"},"user":{"$ref":"#/components/schemas/AuthUserResponse"}},"required":["user","merchant","api_key","access_token"],"type":"object"},"ReportColumn":{"additionalProperties":false,"properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"type":"object"},"ReportDefinition":{"additionalProperties":false,"properties":{"description":{"type":"string"},"filters":{"items":{"$ref":"#/components/schemas/ReportFilterDefinition"},"type":"array"},"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"ReportDefinitionList":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/ReportDefinition"},"type":"array"},"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["items","total","limit","offset"],"type":"object"},"ReportExportResponse":{"additionalProperties":false,"properties":{"download_url":{"type":"string"},"file_url":{"type":"string"},"url":{"type":"string"}},"type":"object"},"ReportFilterDefinition":{"additionalProperties":false,"properties":{"key":{"type":"string"},"label":{"type":"string"},"options":{"items":{"$ref":"#/components/schemas/ReportFilterOption"},"type":"array"},"required":{"type":"boolean"},"type":{"type":"string","x-qalam-known-values":["text","select","date"]}},"required":["key","label"],"type":"object"},"ReportFilterOption":{"additionalProperties":false,"properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"type":"object"},"ReportResult":{"additionalProperties":false,"properties":{"columns":{"items":{"$ref":"#/components/schemas/ReportColumn"},"type":"array"},"rows":{"items":{"$ref":"#/components/schemas/ReportRow"},"type":"array"},"summary":{"items":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"type":"object"},{"$ref":"#/components/schemas/ReportSummaryMetric"}]},"type":"array"}},"required":["columns","rows"],"type":"object"},"ReportRow":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"type":"object"},"ReportSummaryMetric":{"additionalProperties":false,"properties":{"key":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"required":["key","label","value"],"type":"object"},"RevokeAllSessionsResponse":{"additionalProperties":false,"properties":{"remaining":{"type":"number"},"status":{"x-typescript-type":"'all_revoked'"}},"required":["status","remaining"],"type":"object"},"RevokeSessionResponse":{"additionalProperties":false,"properties":{"status":{"x-typescript-type":"'revoked'"}},"required":["status"],"type":"object"},"Role":{"additionalProperties":false,"properties":{"created_at":{"type":"string"},"description":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name","created_at"],"type":"object"},"RoleList":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/Role"},"type":"array"},"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["items","total","limit","offset"],"type":"object"},"RouteSupplierOrderRequest":{"additionalProperties":false,"properties":{"game_server_id":{"type":"string"},"game_user_id":{"type":"string"},"order_id":{"type":"string"}},"required":["order_id"],"type":"object"},"RouteSupplierOrderResponse":{"additionalProperties":false,"properties":{"cost":{"type":"number","x-qalam-go-type":"float64"},"cost_currency":{"type":"string"},"external_order_id":{"type":"string"},"key":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"supplier_code":{"type":"string"},"supplier_name":{"type":"string"},"supplier_order_id":{"type":"string"}},"required":["supplier_order_id","supplier_code","supplier_name","external_order_id","status","cost","cost_currency"],"type":"object"},"SetMarkupRequest":{"additionalProperties":false,"properties":{"percent":{"type":"number"}},"required":["percent"],"type":"object"},"StatusResponse":{"additionalProperties":false,"properties":{"status":{"type":"string"}},"required":["status"],"type":"object"},"StructuredContractListResponse":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/StructuredContractResponse"},"type":"array"},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"required":["items","total","limit","offset"],"type":"object"},"StructuredContractResponse":{"additionalProperties":false,"properties":{"amount_label":{"type":"string"},"client_subject":{"type":"string"},"created_at":{"format":"date-time","type":"string"},"currency":{"type":"string"},"end_date":{"format":"date-time","type":"string"},"id":{"type":"string"},"merchant_id":{"type":"string"},"number":{"type":"string"},"responsible":{"type":"string"},"start_date":{"format":"date-time","type":"string"},"status":{"enum":["draft","active","expired","terminated"],"type":"string"},"type":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","number","client_subject","type","status","start_date","created_at","updated_at"],"type":"object"},"SupplierCatalogSyncResponse":{"additionalProperties":false,"properties":{"supplier_code":{"type":"string"},"supplier_id":{"type":"string"},"synced":{"type":"integer"}},"required":["synced","supplier_id","supplier_code"],"type":"object"},"SupplierListResponse":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/SupplierResponse"},"type":"array"},"total":{"type":"integer"}},"required":["items","total"],"type":"object"},"SupplierPriceQuote":{"additionalProperties":false,"properties":{"currency":{"type":"string"},"external_product_id":{"type":"string"},"in_stock":{"type":"boolean"},"offer_group_name":{"type":"string"},"platform":{"type":"string"},"price":{"type":"number","x-qalam-go-type":"float64"},"product_description":{"type":"string"},"product_name":{"type":"string"},"region":{"type":"string"},"supplier_code":{"type":"string"},"supplier_name":{"type":"string"}},"required":["supplier_code","supplier_name","product_name","price","currency","in_stock"],"type":"object"},"SupplierPriceQuoteListResponse":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/SupplierPriceQuote"},"type":"array"},"total":{"type":"integer"}},"required":["items","total"],"type":"object"},"SupplierResponse":{"additionalProperties":false,"properties":{"code":{"type":"string"},"config":{"additionalProperties":true,"type":"object"},"created_at":{"format":"date-time","type":"string"},"health_status":{"type":"string"},"id":{"type":"string"},"is_active":{"type":"boolean"},"name":{"type":"string"},"priority":{"type":"integer"},"supports_fallback":{"type":"boolean"},"type":{"type":"string"}},"required":["id","code","name","type","config","priority","is_active","supports_fallback","health_status","created_at"],"type":"object"},"SupplierTestConnectionResponse":{"additionalProperties":false,"properties":{"latency":{"type":"string"},"message":{"type":"string"},"status":{"enum":["ok","error"],"type":"string"}},"required":["status","message","latency"],"type":"object"},"SupportMessage":{"additionalProperties":false,"properties":{"author_id":{"type":"string"},"author_name":{"type":"string"},"author_role":{"type":"string"},"created_at":{"type":"string"},"id":{"type":"string"},"message":{"type":"string"},"ticket_id":{"type":"string"}},"required":["id","ticket_id","author_name","author_role","message","created_at"],"type":"object"},"SupportMessageListResponse":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/SupportMessage"},"type":"array"},"total":{"type":"number"}},"required":["items","total"],"type":"object"},"SupportTicket":{"additionalProperties":false,"properties":{"category":{"type":"string"},"created_at":{"type":"string"},"id":{"type":"string"},"message":{"type":"string"},"status":{"$ref":"#/components/schemas/TicketStatus"},"subject":{"type":"string"}},"required":["id","subject","category","status","created_at"],"type":"object"},"SupportTicketList":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/SupportTicket"},"type":"array"},"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["items","total","limit","offset"],"type":"object"},"SwitchRoleRequest":{"additionalProperties":false,"properties":{"role_id":{"type":"string"}},"required":["role_id"],"type":"object"},"SwitchRoleResponse":{"additionalProperties":false,"properties":{"access_token":{"type":"string"},"user":{"$ref":"#/components/schemas/UserResponse"}},"required":["access_token","user"],"type":"object"},"TextDocumentResponse":{"type":"string"},"TicketStatus":{"type":"string","x-qalam-known-values":["open","in_progress","resolved","closed"]},"TopUpBalanceRequest":{"additionalProperties":false,"properties":{"amount":{"description":"Positive USD amount exactly representable in cents.","maximum":9.223372036854776e+16,"minimum":0.01,"multipleOf":0.01,"type":"number"}},"required":["amount"],"type":"object"},"UnknownJson":{"description":"Temporary placeholder until operation-level DTO mapping is added.","type":["object","array","string","number","boolean","null"]},"UpdateMerchantRequest":{"additionalProperties":false,"properties":{"allowed_ips":{"items":{"type":"string"},"type":"array"},"callback_url":{"type":"string"},"markup_percent":{"type":"number"},"name":{"type":"string"}},"required":["name"],"type":"object"},"UpdateOrderStatusRequest":{"additionalProperties":false,"properties":{"reason":{"type":"string"},"status":{"$ref":"#/components/schemas/OrderStatus"}},"required":["status"],"type":"object"},"UpdateProfileRequest":{"additionalProperties":false,"properties":{"allowed_ips":{"items":{"type":"string"},"type":"array"},"callback_url":{"type":"string"},"name":{"type":"string"}},"type":"object"},"UpdateStructuredContractRequest":{"additionalProperties":false,"properties":{"amount_label":{"anyOf":[{"type":"string"},{"type":"null"}]},"client_subject":{"anyOf":[{"type":"string"},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"end_date":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"merchant_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"number":{"anyOf":[{"type":"string"},{"type":"null"}]},"responsible":{"anyOf":[{"type":"string"},{"type":"null"}]},"start_date":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"status":{"anyOf":[{"enum":["draft","active","expired","terminated"],"type":"string"},{"type":"null"}]},"type":{"anyOf":[{"type":"string"},{"type":"null"}]}},"type":"object"},"UpdateSupplierRequest":{"additionalProperties":false,"properties":{"config":{"additionalProperties":true,"type":"object"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}]},"supports_fallback":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"type":"object"},"UpdateTicketStatusRequest":{"additionalProperties":false,"properties":{"status":{"$ref":"#/components/schemas/TicketStatus"}},"required":["status"],"type":"object"},"UpdateUserRequest":{"additionalProperties":false,"properties":{"is_active":{"type":"boolean"},"merchant_id":{"type":"string"},"name":{"type":"string"},"role_id":{"type":"string"}},"type":"object"},"User":{"additionalProperties":false,"properties":{"active_role":{"$ref":"#/components/schemas/UserRoleRef"},"created_at":{"type":"string"},"email":{"type":"string"},"id":{"type":"string"},"is_active":{"type":"boolean"},"merchant_id":{"type":"string"},"name":{"type":"string"},"role_id":{"type":"string"},"roles":{"items":{"$ref":"#/components/schemas/UserRoleRef"},"type":"array"}},"required":["id","email","name","role_id","is_active","created_at"],"type":"object"},"UserList":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/User"},"type":"array"},"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["items","total","limit","offset"],"type":"object"},"UserResponse":{"additionalProperties":false,"properties":{"active_role":{"$ref":"#/components/schemas/Role"},"email":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"permissions":{"items":{"type":"string"},"type":"array"},"role":{"type":"string"},"roles":{"items":{"$ref":"#/components/schemas/Role"},"type":"array"}},"required":["id","email","name","roles","active_role","permissions","role"],"type":"object"},"UserRoleRef":{"additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"UserSession":{"additionalProperties":false,"properties":{"created_at":{"type":"string"},"device_name":{"type":"string"},"expires_at":{"type":"string"},"id":{"type":"string"},"ip_address":{"type":"string"},"is_current":{"type":"boolean"},"last_seen":{"type":"string"},"user_agent":{"type":"string"}},"required":["id","device_name","user_agent","ip_address","last_seen","created_at","expires_at","is_current"],"type":"object"},"UserSessionList":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/UserSession"},"type":"array"},"total":{"type":"number"}},"required":["items","total"],"type":"object"},"WebhookLog":{"additionalProperties":false,"properties":{"attempt_number":{"type":"number"},"callback_url":{"type":"string"},"created_at":{"type":"string"},"error":{"type":"string"},"event_type":{"type":"string"},"id":{"type":"string"},"order_number":{"type":"string"},"response_body":{"type":"string"},"response_status":{"type":"number"}},"required":["id","event_type","order_number","callback_url","attempt_number","created_at"],"type":"object"},"WebhookLogList":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/WebhookLog"},"type":"array"},"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["items","total","limit","offset"],"type":"object"}},"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","description":"Access JWT. Admin routes additionally require a currently assigned active admin or owner role.","scheme":"bearer","type":"http"}}},"info":{"description":"Target Rust/Axum API contract. Every published path and method is verified against the registered router surface.","title":"Qalam API","version":"0.1.0"},"openapi":"3.1.0","paths":{"/api/v1/admin/agents":{"get":{"operationId":"getApiV1AdminAgents","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentList"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/admin/agents","tags":["admin"],"x-qalam-domain":"admin/agents","x-qalam-schema-mapping":{"response":"AgentList"},"x-qalam-source":"src/main.rs"},"post":{"operationId":"postApiV1AdminAgents","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAgentRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/admin/agents","tags":["admin"],"x-qalam-domain":"admin/agents","x-qalam-schema-mapping":{"request":"CreateAgentRequest","response":"Agent"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/agents/{id}/deactivate":{"patch":{"operationId":"patchApiV1AdminAgentsByIdDeactivate","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"PATCH /api/v1/admin/agents/{id}/deactivate","tags":["admin"],"x-qalam-domain":"admin/agents","x-qalam-schema-mapping":{"response":"Agent"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/audit-logs":{"get":{"operationId":"getApiV1AdminAuditLogs","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditLogListResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/admin/audit-logs","tags":["admin"],"x-qalam-domain":"admin/audit-logs","x-qalam-schema-mapping":{"response":"AuditLogListResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/contracts":{"get":{"operationId":"getApiV1AdminContracts","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractList"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/admin/contracts","tags":["admin"],"x-qalam-domain":"admin/contracts","x-qalam-schema-mapping":{"response":"ContractList"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/counterparties":{"get":{"operationId":"getApiV1AdminCounterparties","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CounterpartyListResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/admin/counterparties","tags":["admin"],"x-qalam-domain":"admin/counterparties","x-qalam-schema-mapping":{"response":"CounterpartyListResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/dashboard":{"get":{"operationId":"getApiV1AdminDashboard","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDashboard"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/admin/dashboard","tags":["admin"],"x-qalam-domain":"admin/dashboard","x-qalam-schema-mapping":{"response":"AdminDashboard"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/exchange-rates":{"post":{"operationId":"postApiV1AdminExchangeRates","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateExchangeRateRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExchangeRateResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/admin/exchange-rates","tags":["admin"],"x-qalam-domain":"admin/exchange-rates","x-qalam-schema-mapping":{"request":"CreateExchangeRateRequest","response":"ExchangeRateResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/integrations":{"get":{"operationId":"getApiV1AdminIntegrations","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationListResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/admin/integrations","tags":["admin"],"x-qalam-domain":"admin/integrations","x-qalam-schema-mapping":{"response":"IntegrationListResponse"},"x-qalam-source":"src/main.rs"},"post":{"operationId":"postApiV1AdminIntegrations","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntegrationRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/admin/integrations","tags":["admin"],"x-qalam-domain":"admin/integrations","x-qalam-schema-mapping":{"request":"CreateIntegrationRequest","response":"IntegrationResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/integrations/{id}":{"patch":{"operationId":"patchApiV1AdminIntegrationsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntegrationRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"PATCH /api/v1/admin/integrations/{id}","tags":["admin"],"x-qalam-domain":"admin/integrations","x-qalam-schema-mapping":{"request":"CreateIntegrationRequest","response":"IntegrationResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/integrations/{id}/deactivate":{"patch":{"operationId":"patchApiV1AdminIntegrationsByIdDeactivate","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"PATCH /api/v1/admin/integrations/{id}/deactivate","tags":["admin"],"x-qalam-domain":"admin/integrations","x-qalam-schema-mapping":{"response":"StatusResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/integrations/{id}/test":{"post":{"operationId":"postApiV1AdminIntegrationsByIdTest","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationTestResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/admin/integrations/{id}/test","tags":["admin"],"x-qalam-domain":"admin/integrations","x-qalam-schema-mapping":{"response":"IntegrationTestResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/merchants":{"get":{"operationId":"getApiV1AdminMerchants","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantList"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/admin/merchants","tags":["admin"],"x-qalam-domain":"admin/merchants","x-qalam-schema-mapping":{"response":"MerchantList"},"x-qalam-source":"src/main.rs"},"post":{"operationId":"postApiV1AdminMerchants","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMerchantRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Merchant"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/admin/merchants","tags":["admin"],"x-qalam-domain":"admin/merchants","x-qalam-schema-mapping":{"request":"CreateMerchantRequest","response":"Merchant"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/merchants/{id}":{"patch":{"operationId":"patchApiV1AdminMerchantsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMerchantRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Merchant"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"PATCH /api/v1/admin/merchants/{id}","tags":["admin"],"x-qalam-domain":"admin/merchants","x-qalam-schema-mapping":{"request":"UpdateMerchantRequest","response":"Merchant"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/merchants/{id}/api-key":{"post":{"operationId":"postApiV1AdminMerchantsByIdApiKey","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantApiKeyResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/admin/merchants/{id}/api-key","tags":["admin"],"x-qalam-domain":"admin/merchants","x-qalam-schema-mapping":{"response":"MerchantApiKeyResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/merchants/{id}/balance":{"get":{"operationId":"getApiV1AdminMerchantsByIdBalance","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantBalanceResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/admin/merchants/{id}/balance","tags":["admin"],"x-qalam-domain":"admin/merchants","x-qalam-schema-mapping":{"response":"MerchantBalanceResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/merchants/{id}/balance/topup":{"post":{"operationId":"postApiV1AdminMerchantsByIdBalanceTopup","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Stable key for an exact retry of the same merchant top-up.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":128,"minLength":1,"pattern":"^[!-~]+$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopUpBalanceRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/admin/merchants/{id}/balance/topup","tags":["admin"],"x-qalam-domain":"admin/merchants","x-qalam-schema-mapping":{"request":"TopUpBalanceRequest","response":"StatusResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/merchants/{id}/contracts":{"post":{"operationId":"postApiV1AdminMerchantsByIdContracts","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/AdminContractUploadRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/admin/merchants/{id}/contracts","tags":["admin"],"x-qalam-domain":"admin/merchants","x-qalam-schema-mapping":{"request":"AdminContractUploadRequest","request_media_type":"multipart/form-data","response":"Document"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/merchants/{id}/deactivate":{"patch":{"operationId":"patchApiV1AdminMerchantsByIdDeactivate","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Merchant"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"PATCH /api/v1/admin/merchants/{id}/deactivate","tags":["admin"],"x-qalam-domain":"admin/merchants","x-qalam-schema-mapping":{"response":"Merchant"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/merchants/{id}/markup":{"post":{"operationId":"postApiV1AdminMerchantsByIdMarkup","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetMarkupRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/admin/merchants/{id}/markup","tags":["admin"],"x-qalam-domain":"admin/merchants","x-qalam-schema-mapping":{"request":"SetMarkupRequest","response":"StatusResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/permissions":{"get":{"operationId":"getApiV1AdminPermissions","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionList"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/admin/permissions","tags":["admin"],"x-qalam-domain":"admin/permissions","x-qalam-schema-mapping":{"response":"PermissionList"},"x-qalam-source":"src/main.rs"},"post":{"operationId":"postApiV1AdminPermissions","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePermissionRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Permission"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/admin/permissions","tags":["admin"],"x-qalam-domain":"admin/permissions","x-qalam-schema-mapping":{"request":"CreatePermissionRequest","response":"Permission"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/reports":{"get":{"operationId":"getApiV1AdminReports","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportDefinitionList"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/admin/reports","tags":["admin"],"x-qalam-domain":"admin/reports","x-qalam-schema-mapping":{"response":"ReportDefinitionList"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/reports/agents":{"get":{"operationId":"getApiV1AdminReportsAgents","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentsReport"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/admin/reports/agents","tags":["admin"],"x-qalam-domain":"admin/reports","x-qalam-schema-mapping":{"response":"AgentsReport"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/reports/finance":{"get":{"operationId":"getApiV1AdminReportsFinance","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceReport"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/admin/reports/finance","tags":["admin"],"x-qalam-domain":"admin/reports","x-qalam-schema-mapping":{"response":"FinanceReport"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/reports/merchants":{"get":{"operationId":"getApiV1AdminReportsMerchants","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantsReport"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/admin/reports/merchants","tags":["admin"],"x-qalam-domain":"admin/reports","x-qalam-schema-mapping":{"response":"MerchantsReport"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/reports/orders":{"get":{"operationId":"getApiV1AdminReportsOrders","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersReport"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/admin/reports/orders","tags":["admin"],"x-qalam-domain":"admin/reports","x-qalam-schema-mapping":{"response":"OrdersReport"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/reports/{id}/build":{"post":{"operationId":"postApiV1AdminReportsByIdBuild","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildReportRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportResult"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/admin/reports/{id}/build","tags":["admin"],"x-qalam-domain":"admin/reports","x-qalam-schema-mapping":{"request":"BuildReportRequest","response":"ReportResult"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/reports/{id}/export":{"get":{"operationId":"getApiV1AdminReportsByIdExport","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"text/csv":{"schema":{"$ref":"#/components/schemas/CsvReportResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/admin/reports/{id}/export","tags":["admin"],"x-qalam-domain":"admin/reports","x-qalam-schema-mapping":{"media_type":"text/csv","response":"CsvReportResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/roles":{"get":{"operationId":"getApiV1AdminRoles","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleList"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/admin/roles","tags":["admin"],"x-qalam-domain":"admin/roles","x-qalam-schema-mapping":{"response":"RoleList"},"x-qalam-source":"src/main.rs"},"post":{"operationId":"postApiV1AdminRoles","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRoleRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/admin/roles","tags":["admin"],"x-qalam-domain":"admin/roles","x-qalam-schema-mapping":{"request":"CreateRoleRequest","response":"Role"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/roles/{id}":{"delete":{"operationId":"deleteApiV1AdminRolesById","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"DELETE /api/v1/admin/roles/{id}","tags":["admin"],"x-qalam-domain":"admin/roles","x-qalam-schema-mapping":{"response":"StatusResponse"},"x-qalam-source":"src/main.rs"},"patch":{"operationId":"patchApiV1AdminRolesById","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRoleRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"PATCH /api/v1/admin/roles/{id}","tags":["admin"],"x-qalam-domain":"admin/roles","x-qalam-schema-mapping":{"request":"CreateRoleRequest","response":"Role"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/roles/{role_id}/permissions":{"post":{"operationId":"postApiV1AdminRolesByRole_idPermissions","parameters":[{"in":"path","name":"role_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignPermissionRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/admin/roles/{role_id}/permissions","tags":["admin"],"x-qalam-domain":"admin/roles","x-qalam-schema-mapping":{"request":"AssignPermissionRequest","response":"StatusResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/roles/{role_id}/permissions/{permission_id}":{"delete":{"operationId":"deleteApiV1AdminRolesByRole_idPermissionsByPermission_id","parameters":[{"in":"path","name":"role_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"permission_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"DELETE /api/v1/admin/roles/{role_id}/permissions/{permission_id}","tags":["admin"],"x-qalam-domain":"admin/roles","x-qalam-schema-mapping":{"response":"StatusResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/users":{"get":{"operationId":"getApiV1AdminUsers","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserList"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/admin/users","tags":["admin"],"x-qalam-domain":"admin/users","x-qalam-schema-mapping":{"response":"UserList"},"x-qalam-source":"src/main.rs"},"post":{"operationId":"postApiV1AdminUsers","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/admin/users","tags":["admin"],"x-qalam-domain":"admin/users","x-qalam-schema-mapping":{"request":"CreateUserRequest","response":"User"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/users/{id}":{"delete":{"operationId":"deleteApiV1AdminUsersById","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"DELETE /api/v1/admin/users/{id}","tags":["admin"],"x-qalam-domain":"admin/users","x-qalam-schema-mapping":{"response":"StatusResponse"},"x-qalam-source":"src/main.rs"},"patch":{"operationId":"patchApiV1AdminUsersById","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"PATCH /api/v1/admin/users/{id}","tags":["admin"],"x-qalam-domain":"admin/users","x-qalam-schema-mapping":{"request":"UpdateUserRequest","response":"User"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/users/{id}/password":{"post":{"operationId":"postApiV1AdminUsersByIdPassword","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/admin/users/{id}/password","tags":["admin"],"x-qalam-domain":"admin/users","x-qalam-schema-mapping":{"request":"ChangePasswordRequest","response":"StatusResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/admin/users/{id}/roles":{"put":{"operationId":"putApiV1AdminUsersByIdRoles","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignUserRolesRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthUserResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"PUT /api/v1/admin/users/{id}/roles","tags":["admin"],"x-qalam-domain":"admin/users","x-qalam-schema-mapping":{"request":"AssignUserRolesRequest","response":"AuthUserResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/agent/balance":{"get":{"operationId":"getApiV1AgentBalance","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentBalanceListResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/agent/balance","tags":["agent"],"x-qalam-domain":"agent","x-qalam-schema-mapping":{"response":"AgentBalanceListResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/agent/purchase":{"post":{"operationId":"postApiV1AgentPurchase","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAgentPurchaseRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPurchase"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"POST /api/v1/agent/purchase","tags":["agent"],"x-qalam-domain":"agent","x-qalam-schema-mapping":{"request":"CreateAgentPurchaseRequest","response":"AgentPurchase"},"x-qalam-source":"src/main.rs"}},"/api/v1/agent/purchases":{"get":{"operationId":"getApiV1AgentPurchases","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPurchaseListResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/agent/purchases","tags":["agent"],"x-qalam-domain":"agent","x-qalam-schema-mapping":{"response":"AgentPurchaseListResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/auth/sessions":{"delete":{"operationId":"deleteApiV1AuthSessions","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeAllSessionsResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"DELETE /api/v1/auth/sessions","tags":["auth"],"x-qalam-domain":"auth","x-qalam-schema-mapping":{"response":"RevokeAllSessionsResponse"},"x-qalam-source":"src/main.rs"},"get":{"operationId":"getApiV1AuthSessions","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSessionList"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/auth/sessions","tags":["auth"],"x-qalam-domain":"auth","x-qalam-schema-mapping":{"response":"UserSessionList"},"x-qalam-source":"src/main.rs"}},"/api/v1/auth/sessions/{id}":{"delete":{"operationId":"deleteApiV1AuthSessionsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeSessionResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"DELETE /api/v1/auth/sessions/{id}","tags":["auth"],"x-qalam-domain":"auth","x-qalam-schema-mapping":{"response":"RevokeSessionResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/auth/switch-role":{"post":{"operationId":"postApiV1AuthSwitchRole","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwitchRoleRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthSwitchRoleResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"POST /api/v1/auth/switch-role","tags":["auth"],"x-qalam-domain":"auth","x-qalam-schema-mapping":{"request":"SwitchRoleRequest","response":"AuthSwitchRoleResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/contracts":{"get":{"operationId":"getApiV1Contracts","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredContractListResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/contracts","tags":["contracts"],"x-qalam-domain":"contracts","x-qalam-schema-mapping":{"response":"StructuredContractListResponse"},"x-qalam-source":"src/main.rs"},"post":{"operationId":"postApiV1Contracts","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStructuredContractRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredContractResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/contracts","tags":["contracts"],"x-qalam-domain":"contracts","x-qalam-schema-mapping":{"request":"CreateStructuredContractRequest","response":"StructuredContractResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/contracts/{id}":{"get":{"operationId":"getApiV1ContractsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredContractResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/contracts/{id}","tags":["contracts"],"x-qalam-domain":"contracts","x-qalam-schema-mapping":{"response":"StructuredContractResponse"},"x-qalam-source":"src/main.rs"},"patch":{"operationId":"patchApiV1ContractsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStructuredContractRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredContractResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"PATCH /api/v1/contracts/{id}","tags":["contracts"],"x-qalam-domain":"contracts","x-qalam-schema-mapping":{"request":"UpdateStructuredContractRequest","response":"StructuredContractResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/currencies":{"get":{"operationId":"getApiV1Currencies","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrencyListResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/currencies","tags":["currencies"],"x-qalam-domain":"currencies","x-qalam-schema-mapping":{"response":"CurrencyListResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/currencies/convert":{"post":{"operationId":"postApiV1CurrenciesConvert","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConvertCurrencyRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConvertCurrencyResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"POST /api/v1/currencies/convert","tags":["currencies"],"x-qalam-domain":"currencies","x-qalam-schema-mapping":{"request":"ConvertCurrencyRequest","response":"ConvertCurrencyResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/currencies/rate":{"get":{"operationId":"getApiV1CurrenciesRate","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExchangeRateResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/currencies/rate","tags":["currencies"],"x-qalam-domain":"currencies","x-qalam-schema-mapping":{"response":"ExchangeRateResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/documents":{"get":{"operationId":"getApiV1Documents","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentList"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/documents","tags":["documents"],"x-qalam-domain":"documents","x-qalam-schema-mapping":{"response":"DocumentList"},"x-qalam-source":"src/main.rs"}},"/api/v1/documents/upload":{"post":{"operationId":"postApiV1DocumentsUpload","parameters":[],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/DocumentUploadRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/documents/upload","tags":["documents"],"x-qalam-domain":"documents","x-qalam-schema-mapping":{"request":"DocumentUploadRequest","request_media_type":"multipart/form-data","response":"Document"},"x-qalam-source":"src/main.rs"}},"/api/v1/documents/{id}/download":{"get":{"operationId":"getApiV1DocumentsByIdDownload","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/BinaryFileResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/documents/{id}/download","tags":["documents"],"x-qalam-domain":"documents","x-qalam-schema-mapping":{"media_type":"application/octet-stream","response":"BinaryFileResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/employees":{"get":{"operationId":"getApiV1Employees","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeList"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/employees","tags":["employees"],"x-qalam-domain":"employees","x-qalam-schema-mapping":{"response":"EmployeeList"},"x-qalam-source":"src/main.rs"}},"/api/v1/employees/invite":{"post":{"operationId":"postApiV1EmployeesInvite","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteEmployeeRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Employee"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"POST /api/v1/employees/invite","tags":["employees"],"x-qalam-domain":"employees","x-qalam-schema-mapping":{"request":"InviteEmployeeRequest","response":"Employee"},"x-qalam-source":"src/main.rs"}},"/api/v1/gamesdrop/balance":{"get":{"operationId":"getApiV1GamesdropBalance","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamesDropBalanceResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/gamesdrop/balance","tags":["gamesdrop"],"x-qalam-domain":"gamesdrop","x-qalam-schema-mapping":{"response":"GamesDropBalanceResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/gamesdrop/check-game-data":{"post":{"operationId":"postApiV1GamesdropCheckGameData","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamesDropCheckGameDataRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamesDropCheckGameDataResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/gamesdrop/check-game-data","tags":["gamesdrop"],"x-qalam-domain":"gamesdrop","x-qalam-schema-mapping":{"request":"GamesDropCheckGameDataRequest","response":"GamesDropCheckGameDataResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/gamesdrop/create-order":{"post":{"operationId":"postApiV1GamesdropCreateOrder","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamesDropCreateOrderRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamesDropCreateOrderResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/gamesdrop/create-order","tags":["gamesdrop"],"x-qalam-domain":"gamesdrop","x-qalam-schema-mapping":{"request":"GamesDropCreateOrderRequest","response":"GamesDropCreateOrderResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/gamesdrop/find-one":{"post":{"operationId":"postApiV1GamesdropFindOne","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamesDropFindOneRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamesDropFindOneResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/gamesdrop/find-one","tags":["gamesdrop"],"x-qalam-domain":"gamesdrop","x-qalam-schema-mapping":{"request":"GamesDropFindOneRequest","response":"GamesDropFindOneResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/gamesdrop/order-status":{"post":{"operationId":"postApiV1GamesdropOrderStatus","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamesDropOrderStatusRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamesDropCreateOrderResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/gamesdrop/order-status","tags":["gamesdrop"],"x-qalam-domain":"gamesdrop","x-qalam-schema-mapping":{"request":"GamesDropOrderStatusRequest","response":"GamesDropCreateOrderResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/gamesdrop/sync":{"post":{"operationId":"postApiV1GamesdropSync","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamesDropSyncRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamesDropSyncResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/gamesdrop/sync","tags":["gamesdrop"],"x-qalam-domain":"gamesdrop","x-qalam-schema-mapping":{"request":"GamesDropSyncRequest","response":"GamesDropSyncResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/gamesdrop/transactions":{"get":{"operationId":"getApiV1GamesdropTransactions","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamesDropTransactionHistoryResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/gamesdrop/transactions","tags":["gamesdrop"],"x-qalam-domain":"gamesdrop","x-qalam-schema-mapping":{"response":"GamesDropTransactionHistoryResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/merchants/me":{"get":{"operationId":"getApiV1MerchantsMe","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantProfile"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/merchants/me","tags":["merchants"],"x-qalam-domain":"merchants","x-qalam-schema-mapping":{"response":"MerchantProfile"},"x-qalam-source":"src/main.rs"},"patch":{"operationId":"patchApiV1MerchantsMe","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantProfile"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"PATCH /api/v1/merchants/me","tags":["merchants"],"x-qalam-domain":"merchants","x-qalam-schema-mapping":{"request":"UpdateProfileRequest","response":"MerchantProfile"},"x-qalam-source":"src/main.rs"}},"/api/v1/merchants/me/contracts":{"get":{"operationId":"getApiV1MerchantsMeContracts","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentContractListResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/merchants/me/contracts","tags":["merchants"],"x-qalam-domain":"merchants","x-qalam-schema-mapping":{"response":"DocumentContractListResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/merchants/me/dashboard":{"get":{"operationId":"getApiV1MerchantsMeDashboard","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantDashboard"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/merchants/me/dashboard","tags":["merchants"],"x-qalam-domain":"merchants","x-qalam-schema-mapping":{"response":"MerchantDashboard"},"x-qalam-source":"src/main.rs"}},"/api/v1/merchants/me/orders":{"post":{"operationId":"postApiV1MerchantsMeOrders","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantOrderRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantOrderResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"POST /api/v1/merchants/me/orders","tags":["merchants"],"x-qalam-domain":"merchants","x-qalam-schema-mapping":{"request":"MerchantOrderRequest","response":"MerchantOrderResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/merchants/me/products":{"get":{"operationId":"getApiV1MerchantsMeProducts","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductListResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/merchants/me/products","tags":["merchants"],"x-qalam-domain":"merchants","x-qalam-schema-mapping":{"response":"ProductListResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/merchants/me/reports":{"get":{"operationId":"getApiV1MerchantsMeReports","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportDefinitionList"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/merchants/me/reports","tags":["merchants"],"x-qalam-domain":"merchants","x-qalam-schema-mapping":{"response":"ReportDefinitionList"},"x-qalam-source":"src/main.rs"}},"/api/v1/merchants/me/reports/orders":{"get":{"operationId":"getApiV1MerchantsMeReportsOrders","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersReport"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/merchants/me/reports/orders","tags":["merchants"],"x-qalam-domain":"merchants","x-qalam-schema-mapping":{"response":"OrdersReport"},"x-qalam-source":"src/main.rs"}},"/api/v1/merchants/me/reports/{id}/build":{"post":{"operationId":"postApiV1MerchantsMeReportsByIdBuild","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildReportRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportResult"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"POST /api/v1/merchants/me/reports/{id}/build","tags":["merchants"],"x-qalam-domain":"merchants","x-qalam-schema-mapping":{"request":"BuildReportRequest","response":"ReportResult"},"x-qalam-source":"src/main.rs"}},"/api/v1/merchants/me/reports/{id}/export":{"get":{"operationId":"getApiV1MerchantsMeReportsByIdExport","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"text/csv":{"schema":{"$ref":"#/components/schemas/CsvReportResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/merchants/me/reports/{id}/export","tags":["merchants"],"x-qalam-domain":"merchants","x-qalam-schema-mapping":{"media_type":"text/csv","response":"CsvReportResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/orders":{"get":{"operationId":"getApiV1Orders","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderList"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/orders","tags":["orders"],"x-qalam-domain":"orders","x-qalam-schema-mapping":{"response":"OrderList"},"x-qalam-source":"src/main.rs"},"post":{"operationId":"postApiV1Orders","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrderRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"POST /api/v1/orders","tags":["orders"],"x-qalam-domain":"orders","x-qalam-schema-mapping":{"request":"CreateOrderRequest","response":"Order"},"x-qalam-source":"src/main.rs"}},"/api/v1/orders/by-external-id/{external_order_id}":{"get":{"operationId":"getApiV1OrdersByExternalIdByExternal_order_id","parameters":[{"in":"path","name":"external_order_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/orders/by-external-id/{external_order_id}","tags":["orders"],"x-qalam-domain":"orders","x-qalam-schema-mapping":{"response":"Order"},"x-qalam-source":"src/main.rs"}},"/api/v1/orders/by-number/{order_number}":{"get":{"operationId":"getApiV1OrdersByNumberByOrder_number","parameters":[{"in":"path","name":"order_number","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/orders/by-number/{order_number}","tags":["orders"],"x-qalam-domain":"orders","x-qalam-schema-mapping":{"response":"Order"},"x-qalam-source":"src/main.rs"}},"/api/v1/orders/{id}":{"get":{"operationId":"getApiV1OrdersById","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/orders/{id}","tags":["orders"],"x-qalam-domain":"orders","x-qalam-schema-mapping":{"response":"Order"},"x-qalam-source":"src/main.rs"}},"/api/v1/orders/{id}/events":{"get":{"operationId":"getApiV1OrdersByIdEvents","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderEventListResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/orders/{id}/events","tags":["orders"],"x-qalam-domain":"orders","x-qalam-schema-mapping":{"response":"OrderEventListResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/orders/{id}/issue":{"post":{"operationId":"postApiV1OrdersByIdIssue","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueOrderRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"POST /api/v1/orders/{id}/issue","tags":["orders"],"x-qalam-domain":"orders","x-qalam-schema-mapping":{"request":"IssueOrderRequest","response":"Order"},"x-qalam-source":"src/main.rs"}},"/api/v1/orders/{id}/notes":{"get":{"operationId":"getApiV1OrdersByIdNotes","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderNoteListResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/orders/{id}/notes","tags":["orders"],"x-qalam-domain":"orders","x-qalam-schema-mapping":{"response":"OrderNoteListResponse"},"x-qalam-source":"src/main.rs"},"post":{"operationId":"postApiV1OrdersByIdNotes","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateNoteRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderNote"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"POST /api/v1/orders/{id}/notes","tags":["orders"],"x-qalam-domain":"orders","x-qalam-schema-mapping":{"request":"CreateNoteRequest","response":"OrderNote"},"x-qalam-source":"src/main.rs"}},"/api/v1/orders/{id}/ready-for-issue":{"post":{"operationId":"postApiV1OrdersByIdReadyForIssue","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadyForIssueRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"POST /api/v1/orders/{id}/ready-for-issue","tags":["orders"],"x-qalam-domain":"orders","x-qalam-schema-mapping":{"request":"ReadyForIssueRequest","response":"Order"},"x-qalam-source":"src/main.rs"}},"/api/v1/orders/{id}/status":{"patch":{"operationId":"patchApiV1OrdersByIdStatus","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrderStatusRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"PATCH /api/v1/orders/{id}/status","tags":["orders"],"x-qalam-domain":"orders","x-qalam-schema-mapping":{"request":"UpdateOrderStatusRequest","response":"Order"},"x-qalam-source":"src/main.rs"}},"/api/v1/suppliers":{"get":{"operationId":"getApiV1Suppliers","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierListResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/suppliers","tags":["suppliers"],"x-qalam-domain":"suppliers","x-qalam-schema-mapping":{"response":"SupplierListResponse"},"x-qalam-source":"src/main.rs"},"post":{"operationId":"postApiV1Suppliers","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSupplierRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/suppliers","tags":["suppliers"],"x-qalam-domain":"suppliers","x-qalam-schema-mapping":{"request":"CreateSupplierRequest","response":"SupplierResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/suppliers/compare-prices":{"get":{"operationId":"getApiV1SuppliersComparePrices","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierPriceQuoteListResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/suppliers/compare-prices","tags":["suppliers"],"x-qalam-domain":"suppliers","x-qalam-schema-mapping":{"response":"SupplierPriceQuoteListResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/suppliers/orders/{id}":{"get":{"operationId":"getApiV1SuppliersOrdersById","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteSupplierOrderResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"502":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/suppliers/orders/{id}","tags":["suppliers"],"x-qalam-domain":"suppliers","x-qalam-schema-mapping":{"response":"RouteSupplierOrderResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/suppliers/route-order":{"post":{"operationId":"postApiV1SuppliersRouteOrder","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteSupplierOrderRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteSupplierOrderResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"502":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/suppliers/route-order","tags":["suppliers"],"x-qalam-domain":"suppliers","x-qalam-schema-mapping":{"request":"RouteSupplierOrderRequest","response":"RouteSupplierOrderResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/suppliers/{id}":{"get":{"operationId":"getApiV1SuppliersById","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"GET /api/v1/suppliers/{id}","tags":["suppliers"],"x-qalam-domain":"suppliers","x-qalam-schema-mapping":{"response":"SupplierResponse"},"x-qalam-source":"src/main.rs"},"patch":{"operationId":"patchApiV1SuppliersById","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSupplierRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"PATCH /api/v1/suppliers/{id}","tags":["suppliers"],"x-qalam-domain":"suppliers","x-qalam-schema-mapping":{"request":"UpdateSupplierRequest","response":"SupplierResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/suppliers/{id}/deactivate":{"post":{"operationId":"postApiV1SuppliersByIdDeactivate","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/suppliers/{id}/deactivate","tags":["suppliers"],"x-qalam-domain":"suppliers","x-qalam-schema-mapping":{"response":"StatusResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/suppliers/{id}/sync-catalog":{"post":{"operationId":"postApiV1SuppliersByIdSyncCatalog","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierCatalogSyncResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/suppliers/{id}/sync-catalog","tags":["suppliers"],"x-qalam-domain":"suppliers","x-qalam-schema-mapping":{"response":"SupplierCatalogSyncResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/suppliers/{id}/test":{"post":{"operationId":"postApiV1SuppliersByIdTest","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierTestConnectionResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"summary":"POST /api/v1/suppliers/{id}/test","tags":["suppliers"],"x-qalam-domain":"suppliers","x-qalam-schema-mapping":{"response":"SupplierTestConnectionResponse"},"x-qalam-source":"src/main.rs"}},"/api/v1/support":{"get":{"operationId":"getApiV1Support","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportTicketList"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/support","tags":["support"],"x-qalam-domain":"support","x-qalam-schema-mapping":{"response":"SupportTicketList"},"x-qalam-source":"src/main.rs"},"post":{"operationId":"postApiV1Support","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSupportTicketRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportTicket"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"POST /api/v1/support","tags":["support"],"x-qalam-domain":"support","x-qalam-schema-mapping":{"request":"CreateSupportTicketRequest","response":"SupportTicket"},"x-qalam-source":"src/main.rs"}},"/api/v1/support/{id}":{"get":{"operationId":"getApiV1SupportById","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportTicket"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/support/{id}","tags":["support"],"x-qalam-domain":"support","x-qalam-schema-mapping":{"response":"SupportTicket"},"x-qalam-source":"src/main.rs"}},"/api/v1/support/{id}/messages":{"get":{"operationId":"getApiV1SupportByIdMessages","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportMessageListResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/support/{id}/messages","tags":["support"],"x-qalam-domain":"support","x-qalam-schema-mapping":{"response":"SupportMessageListResponse"},"x-qalam-source":"src/main.rs"},"post":{"operationId":"postApiV1SupportByIdMessages","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSupportMessageRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportMessage"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"POST /api/v1/support/{id}/messages","tags":["support"],"x-qalam-domain":"support","x-qalam-schema-mapping":{"request":"CreateSupportMessageRequest","response":"SupportMessage"},"x-qalam-source":"src/main.rs"}},"/api/v1/support/{id}/status":{"patch":{"operationId":"patchApiV1SupportByIdStatus","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTicketStatusRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportTicket"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"PATCH /api/v1/support/{id}/status","tags":["support"],"x-qalam-domain":"support","x-qalam-schema-mapping":{"request":"UpdateTicketStatusRequest","response":"SupportTicket"},"x-qalam-source":"src/main.rs"}},"/api/v1/webhooks/logs":{"get":{"operationId":"getApiV1WebhooksLogs","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookLogList"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /api/v1/webhooks/logs","tags":["webhooks"],"x-qalam-domain":"webhooks","x-qalam-schema-mapping":{"response":"WebhookLogList"},"x-qalam-source":"src/main.rs"}},"/auth/login":{"post":{"operationId":"postAuthLogin","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthLoginResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"POST /auth/login","tags":["auth"],"x-qalam-domain":"auth","x-qalam-schema-mapping":{"request":"LoginRequest","response":"AuthLoginResponse"},"x-qalam-source":"src/main.rs"}},"/auth/logout":{"post":{"operationId":"postAuthLogout","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"POST /auth/logout","tags":["auth"],"x-qalam-domain":"auth","x-qalam-schema-mapping":{"response":"StatusResponse"},"x-qalam-source":"src/main.rs"}},"/auth/me":{"get":{"operationId":"getAuthMe","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthMeResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /auth/me","tags":["auth"],"x-qalam-domain":"auth","x-qalam-schema-mapping":{"response":"AuthMeResponse"},"x-qalam-source":"src/main.rs"}},"/auth/refresh":{"post":{"operationId":"postAuthRefresh","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"POST /auth/refresh","tags":["auth"],"x-qalam-domain":"auth","x-qalam-schema-mapping":{"response":"RefreshTokenResponse"},"x-qalam-source":"src/main.rs"}},"/auth/register":{"post":{"operationId":"postAuthRegister","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"POST /auth/register","tags":["auth"],"x-qalam-domain":"auth","x-qalam-schema-mapping":{"request":"RegisterRequest","response":"RegisterResponse"},"x-qalam-source":"src/main.rs"}},"/docs/API.md":{"get":{"operationId":"getDocsAPIMd","parameters":[],"responses":{"200":{"content":{"text/markdown":{"schema":{"$ref":"#/components/schemas/TextDocumentResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /docs/API.md","tags":["docs"],"x-qalam-domain":"docs","x-qalam-schema-mapping":{"media_type":"text/markdown","response":"TextDocumentResponse"},"x-qalam-source":"src/main.rs"}},"/docs/openapi.json":{"get":{"operationId":"getDocsOpenapiJson","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenApiDocument"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /docs/openapi.json","tags":["docs"],"x-qalam-domain":"docs","x-qalam-schema-mapping":{"response":"OpenApiDocument"},"x-qalam-source":"src/main.rs"}},"/docs/openapi.yaml":{"get":{"operationId":"getDocsOpenapiYaml","parameters":[],"responses":{"200":{"content":{"text/yaml":{"schema":{"$ref":"#/components/schemas/TextDocumentResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /docs/openapi.yaml","tags":["docs"],"x-qalam-domain":"docs","x-qalam-schema-mapping":{"media_type":"text/yaml","response":"TextDocumentResponse"},"x-qalam-source":"src/main.rs"}},"/health":{"get":{"operationId":"getHealth","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /health","tags":["health"],"x-qalam-domain":"health","x-qalam-schema-mapping":{"response":"HealthResponse"},"x-qalam-source":"src/main.rs"}},"/public/orders/{order_number}":{"get":{"operationId":"getPublicOrdersByOrder_number","parameters":[{"in":"path","name":"order_number","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /public/orders/{order_number}","tags":["public"],"x-qalam-domain":"public","x-qalam-schema-mapping":{"response":"Order"},"x-qalam-source":"src/main.rs"}},"/public/orders/{order_number}/issue":{"post":{"operationId":"postPublicOrdersByOrder_numberIssue","parameters":[{"in":"path","name":"order_number","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueOrderRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"POST /public/orders/{order_number}/issue","tags":["public"],"x-qalam-domain":"public","x-qalam-schema-mapping":{"request":"IssueOrderRequest","response":"Order"},"x-qalam-source":"src/main.rs"}},"/public/products":{"get":{"operationId":"getPublicProducts","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductListResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /public/products","tags":["public"],"x-qalam-domain":"public","x-qalam-schema-mapping":{"response":"ProductListResponse"},"x-qalam-source":"src/main.rs"}},"/ready":{"get":{"operationId":"getReady","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadyResponse"}}},"description":"Successful response."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"summary":"GET /ready","tags":["ready"],"x-qalam-domain":"ready","x-qalam-schema-mapping":{"response":"ReadyResponse"},"x-qalam-source":"src/main.rs"}}},"servers":[{"description":"Production","url":"https://api.qalamorda.com"},{"description":"Local development","url":"http://localhost:8080"}],"x-qalam-contract-source":{"backend_path_count":101,"backend_route_count":119,"frontend_endpoint_count":54,"frontend_schema_count":92,"frontend_without_backend":[],"inventory_schema_version":1,"operation_schema_mapping_count":119}}