{"openapi":"3.1.0","info":{"title":"Finora API","version":"0.1.0"},"paths":{"/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh","operationId":"refresh_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_auth_logout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ventas":{"get":{"tags":["ventas"],"summary":"Listar Ventas","operationId":"listar_ventas_ventas_get","parameters":[{"name":"fecha_inicio","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Fecha Inicio"}},{"name":"fecha_fin","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Fecha Fin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VentaOut"},"title":"Response Listar Ventas Ventas Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["ventas"],"summary":"Crear Venta","operationId":"crear_venta_ventas_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VentaCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VentaOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ventas/deudas":{"get":{"tags":["ventas"],"summary":"Listar Deudas","operationId":"listar_deudas_ventas_deudas_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/VentaOut"},"type":"array","title":"Response Listar Deudas Ventas Deudas Get"}}}}}}},"/ventas/{venta_id}":{"put":{"tags":["ventas"],"summary":"Editar Venta","operationId":"editar_venta_ventas__venta_id__put","parameters":[{"name":"venta_id","in":"path","required":true,"schema":{"type":"integer","title":"Venta Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VentaUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VentaOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["ventas"],"summary":"Eliminar Venta","operationId":"eliminar_venta_ventas__venta_id__delete","parameters":[{"name":"venta_id","in":"path","required":true,"schema":{"type":"integer","title":"Venta Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ventas/{venta_id}/pago":{"post":{"tags":["ventas"],"summary":"Registrar Pago","operationId":"registrar_pago_ventas__venta_id__pago_post","parameters":[{"name":"venta_id","in":"path","required":true,"schema":{"type":"integer","title":"Venta Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagoDeudaRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VentaOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gastos":{"get":{"tags":["gastos"],"summary":"Listar Gastos","operationId":"listar_gastos_gastos_get","parameters":[{"name":"fecha_inicio","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Fecha Inicio"}},{"name":"fecha_fin","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Fecha Fin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GastoOut"},"title":"Response Listar Gastos Gastos Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["gastos"],"summary":"Crear Gasto","operationId":"crear_gasto_gastos_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GastoCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GastoOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gastos/{gasto_id}":{"put":{"tags":["gastos"],"summary":"Editar Gasto","operationId":"editar_gasto_gastos__gasto_id__put","parameters":[{"name":"gasto_id","in":"path","required":true,"schema":{"type":"integer","title":"Gasto Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GastoUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GastoOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["gastos"],"summary":"Eliminar Gasto","operationId":"eliminar_gasto_gastos__gasto_id__delete","parameters":[{"name":"gasto_id","in":"path","required":true,"schema":{"type":"integer","title":"Gasto Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/personal":{"get":{"tags":["finanzas_personales"],"summary":"Listar Movimientos","operationId":"listar_movimientos_personal_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FinanzaPersonalOut"},"type":"array","title":"Response Listar Movimientos Personal Get"}}}}}},"post":{"tags":["finanzas_personales"],"summary":"Crear Movimiento","operationId":"crear_movimiento_personal_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanzaPersonalCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanzaPersonalOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/personal/{mov_id}":{"put":{"tags":["finanzas_personales"],"summary":"Editar Movimiento","operationId":"editar_movimiento_personal__mov_id__put","parameters":[{"name":"mov_id","in":"path","required":true,"schema":{"type":"integer","title":"Mov Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanzaPersonalUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanzaPersonalOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["finanzas_personales"],"summary":"Eliminar Movimiento","operationId":"eliminar_movimiento_personal__mov_id__delete","parameters":[{"name":"mov_id","in":"path","required":true,"schema":{"type":"integer","title":"Mov Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reportes/resumen":{"get":{"tags":["reportes"],"summary":"Resumen","operationId":"resumen_reportes_resumen_get","parameters":[{"name":"fecha_inicio","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Fecha Inicio"}},{"name":"fecha_fin","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Fecha Fin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reportes/cobros-por-medio-pago":{"get":{"tags":["reportes"],"summary":"Cobros Por Medio Pago","operationId":"cobros_por_medio_pago_reportes_cobros_por_medio_pago_get","parameters":[{"name":"fecha_inicio","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Fecha Inicio"}},{"name":"fecha_fin","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Fecha Fin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reportes/top-productos":{"get":{"tags":["reportes"],"summary":"Top Productos","operationId":"top_productos_reportes_top_productos_get","parameters":[{"name":"fecha_inicio","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Fecha Inicio"}},{"name":"fecha_fin","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Fecha Fin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reportes/top-destinos":{"get":{"tags":["reportes"],"summary":"Top Destinos","operationId":"top_destinos_reportes_top_destinos_get","parameters":[{"name":"fecha_inicio","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Fecha Inicio"}},{"name":"fecha_fin","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Fecha Fin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reportes/evolucion-ingresos":{"get":{"tags":["reportes"],"summary":"Evolucion Ingresos","operationId":"evolucion_ingresos_reportes_evolucion_ingresos_get","parameters":[{"name":"fecha_inicio","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Fecha Inicio"}},{"name":"fecha_fin","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Fecha Fin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reportes/top-clientes":{"get":{"tags":["reportes"],"summary":"Top Clientes","operationId":"top_clientes_reportes_top_clientes_get","parameters":[{"name":"fecha_inicio","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Fecha Inicio"}},{"name":"fecha_fin","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Fecha Fin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reportes/clientes-riesgo":{"get":{"tags":["reportes"],"summary":"Clientes Riesgo","operationId":"clientes_riesgo_reportes_clientes_riesgo_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/reportes/descargar-pdf":{"get":{"tags":["reportes"],"summary":"Descargar Pdf","operationId":"descargar_pdf_reportes_descargar_pdf_get","parameters":[{"name":"fecha_inicio","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Fecha Inicio"}},{"name":"fecha_fin","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Fecha Fin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/usuarios":{"get":{"tags":["admin"],"summary":"Listar Usuarios","operationId":"listar_usuarios_admin_usuarios_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"role","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"}},{"name":"active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UsuarioOut"},"title":"Response Listar Usuarios Admin Usuarios Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Crear Usuario","operationId":"crear_usuario_admin_usuarios_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsuarioCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsuarioOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/usuarios/{user_id}":{"put":{"tags":["admin"],"summary":"Editar Usuario","operationId":"editar_usuario_admin_usuarios__user_id__put","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsuarioUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsuarioOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Eliminar Usuario","operationId":"eliminar_usuario_admin_usuarios__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/usuarios/{user_id}/estado":{"put":{"tags":["admin"],"summary":"Cambiar Estado Usuario","operationId":"cambiar_estado_usuario_admin_usuarios__user_id__estado_put","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsuarioSetActive"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsuarioOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/usuarios/{user_id}/password":{"put":{"tags":["admin"],"summary":"Restablecer Password","operationId":"restablecer_password_admin_usuarios__user_id__password_put","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsuarioResetPassword"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owner/tenants":{"get":{"tags":["owner"],"summary":"Listar Tenants","operationId":"listar_tenants_owner_tenants_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["owner"],"summary":"Crear Tenant","operationId":"crear_tenant_owner_tenants_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owner/tenants/{tenant_id}/admin":{"post":{"tags":["owner"],"summary":"Crear Teniente","operationId":"crear_teniente_owner_tenants__tenant_id__admin_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrearTenienteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsuarioOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owner/tenants/{tenant_id}/usuarios":{"get":{"tags":["owner"],"summary":"Usuarios Del Tenant","operationId":"usuarios_del_tenant_owner_tenants__tenant_id__usuarios_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UsuarioOut"},"title":"Response Usuarios Del Tenant Owner Tenants  Tenant Id  Usuarios Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owner/tenants/{tenant_id}/movimientos":{"get":{"tags":["owner"],"summary":"Ultimos Movimientos Tenant","operationId":"ultimos_movimientos_tenant_owner_tenants__tenant_id__movimientos_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owner/tenants/{tenant_id}/activar":{"put":{"tags":["owner"],"summary":"Activar Tenant","operationId":"activar_tenant_owner_tenants__tenant_id__activar_put","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owner/tenants/{tenant_id}/desactivar":{"put":{"tags":["owner"],"summary":"Desactivar Tenant","operationId":"desactivar_tenant_owner_tenants__tenant_id__desactivar_put","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantDesactivarRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owner/tenants/{tenant_id}/password":{"put":{"tags":["owner"],"summary":"Cambiar Password Teniente","operationId":"cambiar_password_teniente_owner_tenants__tenant_id__password_put","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantPasswordRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owner/tenants/{tenant_id}":{"delete":{"tags":["owner"],"summary":"Eliminar Tenant","operationId":"eliminar_tenant_owner_tenants__tenant_id__delete","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EliminarTenantRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owner/estadisticas":{"get":{"tags":["owner"],"summary":"Kpis Globales","operationId":"kpis_globales_owner_estadisticas_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/owner/estadisticas/actividad":{"get":{"tags":["owner"],"summary":"Actividad Por Tenant","operationId":"actividad_por_tenant_owner_estadisticas_actividad_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/owner/estadisticas/evolucion-semanal":{"get":{"tags":["owner"],"summary":"Evolucion Semanal","operationId":"evolucion_semanal_owner_estadisticas_evolucion_semanal_get","parameters":[{"name":"dias","in":"query","required":false,"schema":{"type":"integer","default":60,"title":"Dias"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/{full_path}":{"get":{"summary":"Spa","operationId":"spa__full_path__get","parameters":[{"name":"full_path","in":"path","required":true,"schema":{"type":"string","title":"Full Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"CrearTenienteRequest":{"properties":{"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"nombre":{"type":"string","title":"Nombre"}},"type":"object","required":["username","password","nombre"],"title":"CrearTenienteRequest"},"EliminarTenantRequest":{"properties":{"nombre_confirmacion":{"type":"string","title":"Nombre Confirmacion"}},"type":"object","required":["nombre_confirmacion"],"title":"EliminarTenantRequest"},"FinanzaPersonalCreate":{"properties":{"fecha":{"type":"string","format":"date","title":"Fecha"},"descripcion":{"type":"string","title":"Descripcion"},"monto":{"type":"number","title":"Monto"},"tipo":{"type":"string","title":"Tipo"}},"type":"object","required":["fecha","descripcion","monto","tipo"],"title":"FinanzaPersonalCreate"},"FinanzaPersonalOut":{"properties":{"fecha":{"type":"string","format":"date","title":"Fecha"},"descripcion":{"type":"string","title":"Descripcion"},"monto":{"type":"number","title":"Monto"},"tipo":{"type":"string","title":"Tipo"},"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["fecha","descripcion","monto","tipo","id","created_at","updated_at"],"title":"FinanzaPersonalOut"},"FinanzaPersonalUpdate":{"properties":{"fecha":{"type":"string","format":"date","title":"Fecha"},"descripcion":{"type":"string","title":"Descripcion"},"monto":{"type":"number","title":"Monto"},"tipo":{"type":"string","title":"Tipo"}},"type":"object","required":["fecha","descripcion","monto","tipo"],"title":"FinanzaPersonalUpdate"},"GastoCreate":{"properties":{"fecha":{"type":"string","format":"date","title":"Fecha"},"descripcion":{"type":"string","title":"Descripcion"},"monto":{"type":"number","title":"Monto"}},"type":"object","required":["fecha","descripcion","monto"],"title":"GastoCreate"},"GastoOut":{"properties":{"fecha":{"type":"string","format":"date","title":"Fecha"},"descripcion":{"type":"string","title":"Descripcion"},"monto":{"type":"number","title":"Monto"},"id":{"type":"integer","title":"Id"},"created_by":{"type":"integer","title":"Created By"},"cargado_por":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cargado Por"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["fecha","descripcion","monto","id","created_by","created_at","updated_at"],"title":"GastoOut"},"GastoUpdate":{"properties":{"fecha":{"type":"string","format":"date","title":"Fecha"},"descripcion":{"type":"string","title":"Descripcion"},"monto":{"type":"number","title":"Monto"}},"type":"object","required":["fecha","descripcion","monto"],"title":"GastoUpdate"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LoginRequest":{"properties":{"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"}},"type":"object","required":["username","password"],"title":"LoginRequest"},"LogoutRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"LogoutRequest"},"PagoDeudaRequest":{"properties":{"monto":{"type":"number","title":"Monto"}},"type":"object","required":["monto"],"title":"PagoDeudaRequest"},"RefreshRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"RefreshRequest"},"TenantCreate":{"properties":{"nombre":{"type":"string","title":"Nombre"}},"type":"object","required":["nombre"],"title":"TenantCreate"},"TenantDesactivarRequest":{"properties":{"motivo":{"type":"string","title":"Motivo"}},"type":"object","required":["motivo"],"title":"TenantDesactivarRequest"},"TenantPasswordRequest":{"properties":{"password":{"type":"string","title":"Password"}},"type":"object","required":["password"],"title":"TenantPasswordRequest"},"TokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"}},"type":"object","required":["access_token","refresh_token"],"title":"TokenResponse"},"UsuarioCreate":{"properties":{"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"nombre":{"type":"string","title":"Nombre"},"role":{"type":"string","title":"Role","default":"user"}},"type":"object","required":["username","password","nombre"],"title":"UsuarioCreate"},"UsuarioOut":{"properties":{"id":{"type":"integer","title":"Id"},"username":{"type":"string","title":"Username"},"nombre":{"type":"string","title":"Nombre"},"role":{"type":"string","title":"Role"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","username","nombre","role","is_active","created_at"],"title":"UsuarioOut"},"UsuarioResetPassword":{"properties":{"password":{"type":"string","title":"Password"}},"type":"object","required":["password"],"title":"UsuarioResetPassword"},"UsuarioSetActive":{"properties":{"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["is_active"],"title":"UsuarioSetActive"},"UsuarioUpdate":{"properties":{"username":{"type":"string","title":"Username"},"nombre":{"type":"string","title":"Nombre"},"role":{"type":"string","title":"Role"}},"type":"object","required":["username","nombre","role"],"title":"UsuarioUpdate"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VentaCreate":{"properties":{"fecha":{"type":"string","format":"date","title":"Fecha"},"producto":{"type":"string","title":"Producto"},"variante":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variante"},"comprador":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comprador"},"destino":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destino"},"precio_venta":{"type":"number","title":"Precio Venta","default":0},"costo_producto":{"type":"number","title":"Costo Producto","default":0},"costo_envio":{"type":"number","title":"Costo Envio","default":0},"otros_gastos":{"type":"number","title":"Otros Gastos","default":0},"forma_pago":{"type":"string","title":"Forma Pago"},"pagado":{"type":"number","title":"Pagado","default":0}},"type":"object","required":["fecha","producto","forma_pago"],"title":"VentaCreate"},"VentaOut":{"properties":{"fecha":{"type":"string","format":"date","title":"Fecha"},"producto":{"type":"string","title":"Producto"},"variante":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variante"},"comprador":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comprador"},"destino":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destino"},"precio_venta":{"type":"number","title":"Precio Venta","default":0},"costo_producto":{"type":"number","title":"Costo Producto","default":0},"costo_envio":{"type":"number","title":"Costo Envio","default":0},"otros_gastos":{"type":"number","title":"Otros Gastos","default":0},"forma_pago":{"type":"string","title":"Forma Pago"},"pagado":{"type":"number","title":"Pagado","default":0},"id":{"type":"integer","title":"Id"},"deuda":{"type":"number","title":"Deuda"},"estado":{"type":"string","title":"Estado"},"created_by":{"type":"integer","title":"Created By"},"cargado_por":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cargado Por"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["fecha","producto","forma_pago","id","deuda","estado","created_by","created_at","updated_at"],"title":"VentaOut"},"VentaUpdate":{"properties":{"fecha":{"type":"string","format":"date","title":"Fecha"},"producto":{"type":"string","title":"Producto"},"variante":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variante"},"comprador":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comprador"},"destino":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destino"},"precio_venta":{"type":"number","title":"Precio Venta","default":0},"costo_producto":{"type":"number","title":"Costo Producto","default":0},"costo_envio":{"type":"number","title":"Costo Envio","default":0},"otros_gastos":{"type":"number","title":"Otros Gastos","default":0},"forma_pago":{"type":"string","title":"Forma Pago"},"pagado":{"type":"number","title":"Pagado","default":0}},"type":"object","required":["fecha","producto","forma_pago"],"title":"VentaUpdate"}}}}