{"openapi":"3.1.0","info":{"title":"Rent360 API","description":"\n    ## Multi-Tenant SaaS για Διαχείριση Ενοικίασης Οχημάτων\n\n    Το Rent360 API παρέχει πλήρη λειτουργικότητα για:\n\n    ### Core Features\n    - **Fleet Management**: Διαχείριση οχημάτων, κατηγοριών, και βελτιστοποίηση στόλου\n    - **Reservations & Rentals**: Κρατήσεις, ενοικιάσεις, και lifecycle management\n    - **Pricing**: Τιμοκατάλογοι, προσφορές, ασφαλιστικά προϊόντα\n    - **Billing & Payments**: Τιμολόγηση, πληρωμές, εγγυήσεις\n    - **Customers & Suppliers**: Διαχείριση πελατών και προμηθευτών\n    - **Operations**: Inventory, delivery notes, expenses\n    - **Vehicle Operations**: Ασφάλειες, επισκευές, ατυχήματα\n\n    ### Multi-Tenancy\n    - Tenant isolation μέσω subdomain routing\n    - Κάθε tenant έχει ξεχωριστή database\n    - JWT tokens με tenant-binding\n\n    ### Authentication\n    - Bearer token authentication (JWT)\n    - Role-based access control (RBAC)\n    - Cross-tenant access prevention\n\n    ### Endpoints που δεν χρειάζονται tenant context:\n    - `/api/health/*` - Health checks\n    - `/api/tenant` - Tenant management (control plane)\n\n    ### Admin Panel\n    - **Admin Domain**: `admin.rent360.cloudon.gr`\n    - **Admin Endpoints**: `/api/admin/*` (requires superuser access)\n    - Διαχείριση tenants, metrics, και cross-tenant operations\n\n    **Root Domain**: `rent360.cloudon.gr`\n    **Tenant Subdomains**: `{tenant-slug}.rent360.cloudon.gr`\n    **Admin Panel**: `admin.rent360.cloudon.gr`\n    ","contact":{"name":"Rent360 Development Team","email":"dev@rent360.cloudon.gr"},"license":{"name":"Proprietary","url":"https://rent360.cloudon.gr/license"},"version":"1.0.0"},"paths":{"/api/health":{"get":{"tags":["health"],"summary":"Health","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Api Health Get"}}}}}}},"/api/health/live":{"get":{"tags":["health"],"summary":"Liveness","operationId":"liveness_api_health_live_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Liveness Api Health Live Get"}}}}}}},"/api/health/ready":{"get":{"tags":["health"],"summary":"Readiness","operationId":"readiness_api_health_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Readiness Api Health Ready Get"}}}}}}},"/api/tenant":{"get":{"tags":["health"],"summary":"Tenant Info","operationId":"tenant_info_api_tenant_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Response Tenant Info Api Tenant Get"}}}}}}},"/api/metrics":{"get":{"tags":["monitoring"],"summary":"Metrics","description":"Prometheus metrics endpoint.\n\nReturns:\n    Response με prometheus formatted metrics","operationId":"metrics_api_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_api_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"}}}}}}},"/api/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_api_auth_logout_post","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/api/auth/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"me_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"me_api_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/me/license":{"get":{"tags":["auth"],"summary":"My License","description":"Read-only view of the current tenant's license.\n\nReturned to authenticated tenant users so the UI can render banners\n(e.g. \"9/10 vehicles\") without needing admin credentials.","operationId":"my_license_api_me_license_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TenantLicenseResponse"},{"type":"null"}],"title":"Response My License Api Me License Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/me/usage":{"get":{"tags":["auth"],"summary":"My Usage","description":"Live usage snapshot for the current tenant — caps, counters, warnings.","operationId":"my_usage_api_me_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantUsageResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/dashboard/overview":{"get":{"tags":["dashboard"],"summary":"Get Dashboard Overview","operationId":"get_dashboard_overview_api_dashboard_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardOverviewResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/company":{"get":{"tags":["company"],"summary":"Get Company","operationId":"get_company_api_company_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyProfileResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["company"],"summary":"Create Company","operationId":"create_company_api_company_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyProfileCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/company/{company_id}":{"patch":{"tags":["company"],"summary":"Update Company","operationId":"update_company_api_company__company_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyProfileUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/branches":{"get":{"tags":["branches"],"summary":"List Branches","operationId":"list_branches_api_branches_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BranchResponse"},"title":"Response List Branches Api Branches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["branches"],"summary":"Create Branch","operationId":"create_branch_api_branches_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BranchCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BranchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/branches/{branch_id}":{"get":{"tags":["branches"],"summary":"Get Branch","operationId":"get_branch_api_branches__branch_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"branch_id","in":"path","required":true,"schema":{"type":"string","title":"Branch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BranchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["branches"],"summary":"Update Branch","operationId":"update_branch_api_branches__branch_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"branch_id","in":"path","required":true,"schema":{"type":"string","title":"Branch Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BranchUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BranchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users":{"get":{"tags":["users"],"summary":"List Users","operationId":"list_users_api_users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserResponse"},"title":"Response List Users Api Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["users"],"summary":"Create User","operationId":"create_user_api_users_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}":{"get":{"tags":["users"],"summary":"Get User","operationId":"get_user_api_users__user_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["users"],"summary":"Update User","operationId":"update_user_api_users__user_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}/roles":{"post":{"tags":["users"],"summary":"Assign Roles","operationId":"assign_roles_api_users__user_id__roles_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleAssignmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/customers":{"get":{"tags":["customers"],"summary":"List Customers","operationId":"list_customers_api_customers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"is_company","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Company"}},{"name":"driver_capable","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Driver Capable"}},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Active Only"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["customers"],"summary":"Create Customer Endpoint","operationId":"create_customer_endpoint_api_customers_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/customers/{customer_id}":{"get":{"tags":["customers"],"summary":"Get Customer","operationId":"get_customer_api_customers__customer_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["customers"],"summary":"Update Customer","operationId":"update_customer_api_customers__customer_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["customers"],"summary":"Patch Customer","operationId":"patch_customer_api_customers__customer_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/customers/{customer_id}/status":{"patch":{"tags":["customers"],"summary":"Update Customer Status","operationId":"update_customer_status_api_customers__customer_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/customers/{customer_id}/addresses":{"post":{"tags":["customers"],"summary":"Add Address","operationId":"add_address_api_customers__customer_id__addresses_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerAddressCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/customers/{customer_id}/contacts":{"post":{"tags":["customers"],"summary":"Add Contact","operationId":"add_contact_api_customers__customer_id__contacts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerContactCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/customers/{customer_id}/driver-profiles":{"post":{"tags":["customers"],"summary":"Add Driver Profile","operationId":"add_driver_profile_api_customers__customer_id__driver_profiles_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDriverProfileCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/customers/{customer_id}/relationships":{"post":{"tags":["customers"],"summary":"Add Customer Relationship","operationId":"add_customer_relationship_api_customers__customer_id__relationships_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerRelationshipCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/customers/{customer_id}/relationships/{relationship_id}":{"delete":{"tags":["customers"],"summary":"Remove Customer Relationship","operationId":"remove_customer_relationship_api_customers__customer_id__relationships__relationship_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}},{"name":"relationship_id","in":"path","required":true,"schema":{"type":"string","title":"Relationship Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/customers/{customer_id}/attachments":{"get":{"tags":["customers"],"summary":"List Customer Attachments","operationId":"list_customer_attachments_api_customers__customer_id__attachments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomerAttachmentResponse"},"title":"Response List Customer Attachments Api Customers  Customer Id  Attachments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["customers"],"summary":"Upload Customer Attachment","operationId":"upload_customer_attachment_api_customers__customer_id__attachments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_customer_attachment_api_customers__customer_id__attachments_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerAttachmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/customers/{customer_id}/attachments/{attachment_id}/download":{"get":{"tags":["customers"],"summary":"Download Customer Attachment","operationId":"download_customer_attachment_api_customers__customer_id__attachments__attachment_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/customers/{customer_id}/attachments/{attachment_id}":{"delete":{"tags":["customers"],"summary":"Delete Customer Attachment","operationId":"delete_customer_attachment_api_customers__customer_id__attachments__attachment_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/suppliers":{"get":{"tags":["suppliers"],"summary":"List Suppliers","operationId":"list_suppliers_api_suppliers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"supplier_type_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Type Id"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"is_blacklisted","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Blacklisted"}},{"name":"city","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"}},{"name":"tax_registration_no","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Registration No"}},{"name":"is_company","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Company"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["suppliers"],"summary":"Create Supplier Endpoint","operationId":"create_supplier_endpoint_api_suppliers_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/suppliers/types/":{"get":{"tags":["suppliers"],"summary":"List Supplier Types","operationId":"list_supplier_types_api_suppliers_types__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SupplierTypeResponse"},"type":"array","title":"Response List Supplier Types Api Suppliers Types  Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["suppliers"],"summary":"Create Supplier Type","operationId":"create_supplier_type_api_suppliers_types__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierTypeCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierTypeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/suppliers/{supplier_id}":{"get":{"tags":["suppliers"],"summary":"Get Supplier","operationId":"get_supplier_api_suppliers__supplier_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"supplier_id","in":"path","required":true,"schema":{"type":"string","title":"Supplier Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["suppliers"],"summary":"Update Supplier","operationId":"update_supplier_api_suppliers__supplier_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"supplier_id","in":"path","required":true,"schema":{"type":"string","title":"Supplier Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["suppliers"],"summary":"Patch Supplier","operationId":"patch_supplier_api_suppliers__supplier_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"supplier_id","in":"path","required":true,"schema":{"type":"string","title":"Supplier Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/suppliers/{supplier_id}/status":{"patch":{"tags":["suppliers"],"summary":"Patch Supplier Status","operationId":"patch_supplier_status_api_suppliers__supplier_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"supplier_id","in":"path","required":true,"schema":{"type":"string","title":"Supplier Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/suppliers/{supplier_id}/blacklist":{"patch":{"tags":["suppliers"],"summary":"Patch Supplier Blacklist","operationId":"patch_supplier_blacklist_api_suppliers__supplier_id__blacklist_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"supplier_id","in":"path","required":true,"schema":{"type":"string","title":"Supplier Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierBlacklistUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/suppliers/{supplier_id}/contacts":{"post":{"tags":["suppliers"],"summary":"Add Supplier Contact","operationId":"add_supplier_contact_api_suppliers__supplier_id__contacts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"supplier_id","in":"path","required":true,"schema":{"type":"string","title":"Supplier Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierContactCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inventory":{"get":{"tags":["inventory"],"summary":"List Inventory Items","operationId":"list_inventory_items_api_inventory_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"item_category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Item Category"}},{"name":"branch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Id"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"is_serialized","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Serialized"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["inventory"],"summary":"Create Inventory Item Endpoint","operationId":"create_inventory_item_endpoint_api_inventory_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryItemCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inventory/assignments/{assignment_id}/status":{"patch":{"tags":["inventory"],"summary":"Patch Inventory Assignment Status","operationId":"patch_inventory_assignment_status_api_inventory_assignments__assignment_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"assignment_id","in":"path","required":true,"schema":{"type":"string","title":"Assignment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryAssignmentStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryAssignmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inventory/{item_id}":{"get":{"tags":["inventory"],"summary":"Get Inventory Item","operationId":"get_inventory_item_api_inventory__item_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["inventory"],"summary":"Update Inventory Item Endpoint","operationId":"update_inventory_item_endpoint_api_inventory__item_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryItemUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["inventory"],"summary":"Patch Inventory Item Endpoint","operationId":"patch_inventory_item_endpoint_api_inventory__item_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryItemUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inventory/{item_id}/status":{"patch":{"tags":["inventory"],"summary":"Patch Inventory Item Status","operationId":"patch_inventory_item_status_api_inventory__item_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryItemStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inventory/{item_id}/movements":{"get":{"tags":["inventory"],"summary":"List Inventory Item Movements","operationId":"list_inventory_item_movements_api_inventory__item_id__movements_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InventoryMovementResponse"},"title":"Response List Inventory Item Movements Api Inventory  Item Id  Movements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["inventory"],"summary":"Create Inventory Item Movement","operationId":"create_inventory_item_movement_api_inventory__item_id__movements_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryMovementCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryMovementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inventory/{item_id}/assignments":{"get":{"tags":["inventory"],"summary":"List Inventory Item Assignments","operationId":"list_inventory_item_assignments_api_inventory__item_id__assignments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InventoryAssignmentResponse"},"title":"Response List Inventory Item Assignments Api Inventory  Item Id  Assignments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["inventory"],"summary":"Create Inventory Item Assignment","operationId":"create_inventory_item_assignment_api_inventory__item_id__assignments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryAssignmentCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryAssignmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/delivery-notes":{"get":{"tags":["delivery-notes"],"summary":"List Delivery Notes","operationId":"list_delivery_notes_api_delivery_notes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"delivery_note_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Note Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"branch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryNoteListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["delivery-notes"],"summary":"Create Delivery Note Endpoint","operationId":"create_delivery_note_endpoint_api_delivery_notes_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryNoteCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryNoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/delivery-notes/{delivery_note_id}":{"get":{"tags":["delivery-notes"],"summary":"Get Delivery Note","operationId":"get_delivery_note_api_delivery_notes__delivery_note_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"delivery_note_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Note Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryNoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["delivery-notes"],"summary":"Update Delivery Note Endpoint","operationId":"update_delivery_note_endpoint_api_delivery_notes__delivery_note_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"delivery_note_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Note Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryNoteUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryNoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["delivery-notes"],"summary":"Patch Delivery Note Endpoint","operationId":"patch_delivery_note_endpoint_api_delivery_notes__delivery_note_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"delivery_note_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Note Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryNoteUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryNoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/delivery-notes/{delivery_note_id}/confirm":{"patch":{"tags":["delivery-notes"],"summary":"Confirm Delivery Note Endpoint","operationId":"confirm_delivery_note_endpoint_api_delivery_notes__delivery_note_id__confirm_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"delivery_note_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Note Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryNoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/delivery-notes/{delivery_note_id}/cancel":{"patch":{"tags":["delivery-notes"],"summary":"Cancel Delivery Note Endpoint","operationId":"cancel_delivery_note_endpoint_api_delivery_notes__delivery_note_id__cancel_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"delivery_note_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Note Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryNoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/expenses":{"get":{"tags":["expenses"],"summary":"List Expense Documents","operationId":"list_expense_documents_api_expenses_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"document_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"supplier_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Id"}},{"name":"branch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpenseDocumentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["expenses"],"summary":"Create Expense Document Endpoint","operationId":"create_expense_document_endpoint_api_expenses_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpenseDocumentCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpenseDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/expenses/{document_id}":{"get":{"tags":["expenses"],"summary":"Get Expense Document","operationId":"get_expense_document_api_expenses__document_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpenseDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["expenses"],"summary":"Update Expense Document Endpoint","operationId":"update_expense_document_endpoint_api_expenses__document_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpenseDocumentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpenseDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["expenses"],"summary":"Patch Expense Document Endpoint","operationId":"patch_expense_document_endpoint_api_expenses__document_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpenseDocumentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpenseDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/expenses/{document_id}/confirm":{"patch":{"tags":["expenses"],"summary":"Confirm Expense Document Endpoint","operationId":"confirm_expense_document_endpoint_api_expenses__document_id__confirm_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpenseDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/expenses/{document_id}/cancel":{"patch":{"tags":["expenses"],"summary":"Cancel Expense Document Endpoint","operationId":"cancel_expense_document_endpoint_api_expenses__document_id__cancel_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpenseDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet-optimization/overview":{"get":{"tags":["fleet-optimization"],"summary":"Get Fleet Optimization Overview","operationId":"get_fleet_optimization_overview_api_fleet_optimization_overview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"branch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Id"}},{"name":"category_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Id"}},{"name":"optimization_rating","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Optimization Rating"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"has_gaps_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Gaps Only"}},{"name":"has_opportunities_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Opportunities Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetOptimizationOverviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet-optimization/vehicle-performance":{"get":{"tags":["fleet-optimization"],"summary":"Get Vehicle Performance","operationId":"get_vehicle_performance_api_fleet_optimization_vehicle_performance_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"branch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Id"}},{"name":"category_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Id"}},{"name":"optimization_rating","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Optimization Rating"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"has_gaps_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Gaps Only"}},{"name":"has_opportunities_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Opportunities Only"}},{"name":"vehicle_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetOptimizationVehiclePerformanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet-optimization/gaps":{"get":{"tags":["fleet-optimization"],"summary":"Get Fleet Optimization Gaps","operationId":"get_fleet_optimization_gaps_api_fleet_optimization_gaps_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"branch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Id"}},{"name":"category_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Id"}},{"name":"optimization_rating","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Optimization Rating"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"has_gaps_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Gaps Only"}},{"name":"has_opportunities_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Opportunities Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetOptimizationGapListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet-optimization/opportunities":{"get":{"tags":["fleet-optimization"],"summary":"Get Reallocation Opportunities","operationId":"get_reallocation_opportunities_api_fleet_optimization_opportunities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"branch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Id"}},{"name":"category_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Id"}},{"name":"optimization_rating","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Optimization Rating"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"has_gaps_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Gaps Only"}},{"name":"has_opportunities_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Opportunities Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetOptimizationOpportunityListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing-documents":{"get":{"tags":["billing"],"summary":"List Billing Documents","operationId":"list_billing_documents_api_billing_documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"document_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Id"}},{"name":"rental_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rental Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingDocumentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["billing"],"summary":"Create Billing Document Endpoint","operationId":"create_billing_document_endpoint_api_billing_documents_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingDocumentCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing-documents/{document_id}":{"get":{"tags":["billing"],"summary":"Get Billing Document","operationId":"get_billing_document_api_billing_documents__document_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["billing"],"summary":"Update Billing Document Endpoint","operationId":"update_billing_document_endpoint_api_billing_documents__document_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingDocumentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["billing"],"summary":"Patch Billing Document Endpoint","operationId":"patch_billing_document_endpoint_api_billing_documents__document_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingDocumentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing-documents/{document_id}/confirm":{"patch":{"tags":["billing"],"summary":"Confirm Billing Document Endpoint","operationId":"confirm_billing_document_endpoint_api_billing_documents__document_id__confirm_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing-documents/{document_id}/cancel":{"patch":{"tags":["billing"],"summary":"Cancel Billing Document Endpoint","operationId":"cancel_billing_document_endpoint_api_billing_documents__document_id__cancel_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicle-insurance/insurers":{"get":{"tags":["vehicle-insurance"],"summary":"List Insurers Endpoint","operationId":"list_insurers_endpoint_api_vehicle_insurance_insurers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsurerListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["vehicle-insurance"],"summary":"Create Insurer Endpoint","operationId":"create_insurer_endpoint_api_vehicle_insurance_insurers_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsurerCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsurerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicle-insurance/insurers/{insurer_id}":{"get":{"tags":["vehicle-insurance"],"summary":"Get Insurer Endpoint","operationId":"get_insurer_endpoint_api_vehicle_insurance_insurers__insurer_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"insurer_id","in":"path","required":true,"schema":{"type":"string","title":"Insurer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsurerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["vehicle-insurance"],"summary":"Update Insurer Endpoint","operationId":"update_insurer_endpoint_api_vehicle_insurance_insurers__insurer_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"insurer_id","in":"path","required":true,"schema":{"type":"string","title":"Insurer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsurerUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsurerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicle-insurance/policies":{"get":{"tags":["vehicle-insurance"],"summary":"List Policies Endpoint","operationId":"list_policies_endpoint_api_vehicle_insurance_policies_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"insurer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Insurer Id"}},{"name":"vehicle_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"valid_on","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid On"}},{"name":"expires_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expires Before"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleInsurancePolicyListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["vehicle-insurance"],"summary":"Create Policy Endpoint","operationId":"create_policy_endpoint_api_vehicle_insurance_policies_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleInsurancePolicyCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleInsurancePolicyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicle-insurance/policies/{policy_id}":{"get":{"tags":["vehicle-insurance"],"summary":"Get Policy Endpoint","operationId":"get_policy_endpoint_api_vehicle_insurance_policies__policy_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","title":"Policy Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleInsurancePolicyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["vehicle-insurance"],"summary":"Update Policy Endpoint","operationId":"update_policy_endpoint_api_vehicle_insurance_policies__policy_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","title":"Policy Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleInsurancePolicyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleInsurancePolicyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicle-insurance/policies/{policy_id}/status":{"patch":{"tags":["vehicle-insurance"],"summary":"Update Policy Status Endpoint","operationId":"update_policy_status_endpoint_api_vehicle_insurance_policies__policy_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","title":"Policy Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleInsurancePolicyStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleInsurancePolicyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicle-insurance/policies/{policy_id}/assignments":{"get":{"tags":["vehicle-insurance"],"summary":"List Policy Assignments Endpoint","operationId":"list_policy_assignments_endpoint_api_vehicle_insurance_policies__policy_id__assignments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","title":"Policy Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleInsurancePolicyAssignmentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["vehicle-insurance"],"summary":"Create Policy Assignment Endpoint","operationId":"create_policy_assignment_endpoint_api_vehicle_insurance_policies__policy_id__assignments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","title":"Policy Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleInsurancePolicyAssignmentCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleInsurancePolicyAssignmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicle-insurance/policies/{policy_id}/documents":{"get":{"tags":["vehicle-insurance"],"summary":"List Policy Documents Endpoint","operationId":"list_policy_documents_endpoint_api_vehicle_insurance_policies__policy_id__documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","title":"Policy Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VehicleInsurancePolicyDocumentResponse"},"title":"Response List Policy Documents Endpoint Api Vehicle Insurance Policies  Policy Id  Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["vehicle-insurance"],"summary":"Create Policy Document Endpoint","operationId":"create_policy_document_endpoint_api_vehicle_insurance_policies__policy_id__documents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","title":"Policy Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_policy_document_endpoint_api_vehicle_insurance_policies__policy_id__documents_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleInsurancePolicyDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicle-insurance/assignments/{assignment_id}/close":{"post":{"tags":["vehicle-insurance"],"summary":"Close Policy Assignment Endpoint","operationId":"close_policy_assignment_endpoint_api_vehicle_insurance_assignments__assignment_id__close_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"assignment_id","in":"path","required":true,"schema":{"type":"string","title":"Assignment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleInsurancePolicyAssignmentClose"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleInsurancePolicyAssignmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicle-insurance/vehicles/{vehicle_id}/assignments/replace-current":{"post":{"tags":["vehicle-insurance"],"summary":"Replace Current Assignment Endpoint","operationId":"replace_current_assignment_endpoint_api_vehicle_insurance_vehicles__vehicle_id__assignments_replace_current_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"string","title":"Vehicle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleInsurancePolicyAssignmentReplaceCurrent"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleInsurancePolicyAssignmentReplaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicle-insurance/vehicles/{vehicle_id}/assignments":{"get":{"tags":["vehicle-insurance"],"summary":"List Vehicle Assignments Endpoint","operationId":"list_vehicle_assignments_endpoint_api_vehicle_insurance_vehicles__vehicle_id__assignments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"string","title":"Vehicle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleInsurancePolicyAssignmentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicle-insurance/vehicles/{vehicle_id}/summary":{"get":{"tags":["vehicle-insurance"],"summary":"Get Vehicle Insurance Summary Endpoint","operationId":"get_vehicle_insurance_summary_endpoint_api_vehicle_insurance_vehicles__vehicle_id__summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"string","title":"Vehicle Id"}},{"name":"as_of_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"As Of Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleInsuranceSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/repairs/cases":{"get":{"tags":["repairs"],"summary":"List Repair Cases Endpoint","operationId":"list_repair_cases_endpoint_api_repairs_cases_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"vehicle_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"cause_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cause Type"}},{"name":"supplier_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Id"}},{"name":"is_vehicle_unavailable","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Vehicle Unavailable"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairCaseListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["repairs"],"summary":"Create Repair Case Endpoint","operationId":"create_repair_case_endpoint_api_repairs_cases_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairCaseCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairCaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/repairs/cases/{repair_case_id}":{"get":{"tags":["repairs"],"summary":"Get Repair Case Endpoint","operationId":"get_repair_case_endpoint_api_repairs_cases__repair_case_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repair_case_id","in":"path","required":true,"schema":{"type":"string","title":"Repair Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairCaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["repairs"],"summary":"Update Repair Case Endpoint","operationId":"update_repair_case_endpoint_api_repairs_cases__repair_case_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repair_case_id","in":"path","required":true,"schema":{"type":"string","title":"Repair Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairCaseUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairCaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/repairs/cases/{repair_case_id}/status":{"patch":{"tags":["repairs"],"summary":"Update Repair Case Status Endpoint","operationId":"update_repair_case_status_endpoint_api_repairs_cases__repair_case_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repair_case_id","in":"path","required":true,"schema":{"type":"string","title":"Repair Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairCaseStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairCaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/repairs/cases/{repair_case_id}/orders":{"get":{"tags":["repairs"],"summary":"List Repair Orders Endpoint","operationId":"list_repair_orders_endpoint_api_repairs_cases__repair_case_id__orders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repair_case_id","in":"path","required":true,"schema":{"type":"string","title":"Repair Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairOrderListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["repairs"],"summary":"Create Repair Order Endpoint","operationId":"create_repair_order_endpoint_api_repairs_cases__repair_case_id__orders_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repair_case_id","in":"path","required":true,"schema":{"type":"string","title":"Repair Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairOrderCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/repairs/cases/{repair_case_id}/documents":{"get":{"tags":["repairs"],"summary":"List Repair Documents Endpoint","operationId":"list_repair_documents_endpoint_api_repairs_cases__repair_case_id__documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repair_case_id","in":"path","required":true,"schema":{"type":"string","title":"Repair Case Id"}},{"name":"repair_order_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repair Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RepairDocumentResponse"},"title":"Response List Repair Documents Endpoint Api Repairs Cases  Repair Case Id  Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["repairs"],"summary":"Create Repair Document Endpoint","operationId":"create_repair_document_endpoint_api_repairs_cases__repair_case_id__documents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repair_case_id","in":"path","required":true,"schema":{"type":"string","title":"Repair Case Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_repair_document_endpoint_api_repairs_cases__repair_case_id__documents_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/repairs/orders/{repair_order_id}":{"get":{"tags":["repairs"],"summary":"Get Repair Order Endpoint","operationId":"get_repair_order_endpoint_api_repairs_orders__repair_order_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repair_order_id","in":"path","required":true,"schema":{"type":"string","title":"Repair Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["repairs"],"summary":"Update Repair Order Endpoint","operationId":"update_repair_order_endpoint_api_repairs_orders__repair_order_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repair_order_id","in":"path","required":true,"schema":{"type":"string","title":"Repair Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairOrderUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/repairs/orders/{repair_order_id}/status":{"patch":{"tags":["repairs"],"summary":"Update Repair Order Status Endpoint","operationId":"update_repair_order_status_endpoint_api_repairs_orders__repair_order_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repair_order_id","in":"path","required":true,"schema":{"type":"string","title":"Repair Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairOrderStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/repairs/orders/{repair_order_id}/lines":{"get":{"tags":["repairs"],"summary":"List Repair Order Lines Endpoint","operationId":"list_repair_order_lines_endpoint_api_repairs_orders__repair_order_id__lines_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repair_order_id","in":"path","required":true,"schema":{"type":"string","title":"Repair Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairOrderLineListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["repairs"],"summary":"Create Repair Order Line Endpoint","operationId":"create_repair_order_line_endpoint_api_repairs_orders__repair_order_id__lines_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repair_order_id","in":"path","required":true,"schema":{"type":"string","title":"Repair Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairOrderLineCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairOrderLineResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/repairs/orders/{repair_order_id}/expense-document/create-draft":{"post":{"tags":["repairs"],"summary":"Create Draft Expense Document Endpoint","operationId":"create_draft_expense_document_endpoint_api_repairs_orders__repair_order_id__expense_document_create_draft_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repair_order_id","in":"path","required":true,"schema":{"type":"string","title":"Repair Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairExpenseDocumentCreateDraft"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/repairs/orders/{repair_order_id}/expense-document/link":{"patch":{"tags":["repairs"],"summary":"Link Draft Expense Document Endpoint","operationId":"link_draft_expense_document_endpoint_api_repairs_orders__repair_order_id__expense_document_link_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repair_order_id","in":"path","required":true,"schema":{"type":"string","title":"Repair Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairExpenseDocumentLink"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/repairs/lines/{repair_order_line_id}":{"get":{"tags":["repairs"],"summary":"Get Repair Order Line Endpoint","operationId":"get_repair_order_line_endpoint_api_repairs_lines__repair_order_line_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repair_order_line_id","in":"path","required":true,"schema":{"type":"string","title":"Repair Order Line Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairOrderLineResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["repairs"],"summary":"Update Repair Order Line Endpoint","operationId":"update_repair_order_line_endpoint_api_repairs_lines__repair_order_line_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repair_order_line_id","in":"path","required":true,"schema":{"type":"string","title":"Repair Order Line Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairOrderLineUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairOrderLineResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/repairs/vehicles/{vehicle_id}/summary":{"get":{"tags":["repairs"],"summary":"Get Vehicle Repair Summary Endpoint","operationId":"get_vehicle_repair_summary_endpoint_api_repairs_vehicles__vehicle_id__summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"string","title":"Vehicle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleRepairSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/repairs/vehicles/{vehicle_id}/history":{"get":{"tags":["repairs"],"summary":"List Vehicle Repair History Endpoint","operationId":"list_vehicle_repair_history_endpoint_api_repairs_vehicles__vehicle_id__history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"string","title":"Vehicle Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleRepairHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accidents/cases":{"get":{"tags":["accidents"],"summary":"List Accident Cases Endpoint","operationId":"list_accident_cases_endpoint_api_accidents_cases_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"vehicle_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Id"}},{"name":"rental_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rental Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"liability_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Liability Status"}},{"name":"has_repair","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Repair"}},{"name":"has_billing","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Billing"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccidentCaseListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["accidents"],"summary":"Create Accident Case Endpoint","operationId":"create_accident_case_endpoint_api_accidents_cases_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccidentCaseCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccidentCaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accidents/cases/{accident_case_id}":{"get":{"tags":["accidents"],"summary":"Get Accident Case Endpoint","operationId":"get_accident_case_endpoint_api_accidents_cases__accident_case_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accident_case_id","in":"path","required":true,"schema":{"type":"string","title":"Accident Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccidentCaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["accidents"],"summary":"Update Accident Case Endpoint","operationId":"update_accident_case_endpoint_api_accidents_cases__accident_case_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accident_case_id","in":"path","required":true,"schema":{"type":"string","title":"Accident Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccidentCaseUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccidentCaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accidents/cases/{accident_case_id}/status":{"patch":{"tags":["accidents"],"summary":"Update Accident Case Status Endpoint","operationId":"update_accident_case_status_endpoint_api_accidents_cases__accident_case_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accident_case_id","in":"path","required":true,"schema":{"type":"string","title":"Accident Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccidentCaseStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccidentCaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accidents/cases/{accident_case_id}/resolve-policy":{"patch":{"tags":["accidents"],"summary":"Resolve Accident Policy Endpoint","operationId":"resolve_accident_policy_endpoint_api_accidents_cases__accident_case_id__resolve_policy_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accident_case_id","in":"path","required":true,"schema":{"type":"string","title":"Accident Case Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccidentPolicyResolveRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccidentCaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accidents/cases/{accident_case_id}/documents":{"get":{"tags":["accidents"],"summary":"List Accident Documents Endpoint","operationId":"list_accident_documents_endpoint_api_accidents_cases__accident_case_id__documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accident_case_id","in":"path","required":true,"schema":{"type":"string","title":"Accident Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AccidentDocumentResponse"},"title":"Response List Accident Documents Endpoint Api Accidents Cases  Accident Case Id  Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["accidents"],"summary":"Create Accident Document Endpoint","operationId":"create_accident_document_endpoint_api_accidents_cases__accident_case_id__documents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accident_case_id","in":"path","required":true,"schema":{"type":"string","title":"Accident Case Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_accident_document_endpoint_api_accidents_cases__accident_case_id__documents_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccidentDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accidents/cases/{accident_case_id}/repair/link":{"patch":{"tags":["accidents"],"summary":"Link Accident Repair Endpoint","operationId":"link_accident_repair_endpoint_api_accidents_cases__accident_case_id__repair_link_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accident_case_id","in":"path","required":true,"schema":{"type":"string","title":"Accident Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccidentRepairLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccidentCaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accidents/cases/{accident_case_id}/repair/create":{"post":{"tags":["accidents"],"summary":"Create Accident Repair Endpoint","operationId":"create_accident_repair_endpoint_api_accidents_cases__accident_case_id__repair_create_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accident_case_id","in":"path","required":true,"schema":{"type":"string","title":"Accident Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccidentRepairCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccidentCaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accidents/cases/{accident_case_id}/billing-recovery/link":{"patch":{"tags":["accidents"],"summary":"Link Billing Recovery Endpoint","operationId":"link_billing_recovery_endpoint_api_accidents_cases__accident_case_id__billing_recovery_link_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accident_case_id","in":"path","required":true,"schema":{"type":"string","title":"Accident Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccidentBillingRecoveryLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccidentCaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accidents/vehicles/{vehicle_id}/summary":{"get":{"tags":["accidents"],"summary":"Get Vehicle Accident Summary Endpoint","operationId":"get_vehicle_accident_summary_endpoint_api_accidents_vehicles__vehicle_id__summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"string","title":"Vehicle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleAccidentSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accidents/vehicles/{vehicle_id}/history":{"get":{"tags":["accidents"],"summary":"List Vehicle Accident History Endpoint","operationId":"list_vehicle_accident_history_endpoint_api_accidents_vehicles__vehicle_id__history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"string","title":"Vehicle Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleAccidentHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accidents/rentals/{rental_id}/summary":{"get":{"tags":["accidents"],"summary":"Get Rental Accident Summary Endpoint","operationId":"get_rental_accident_summary_endpoint_api_accidents_rentals__rental_id__summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rental_id","in":"path","required":true,"schema":{"type":"string","title":"Rental Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalAccidentSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accidents/rentals/{rental_id}/history":{"get":{"tags":["accidents"],"summary":"List Rental Accident History Endpoint","operationId":"list_rental_accident_history_endpoint_api_accidents_rentals__rental_id__history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rental_id","in":"path","required":true,"schema":{"type":"string","title":"Rental Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalAccidentHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicles":{"get":{"tags":["vehicles"],"summary":"List Vehicles","operationId":"list_vehicles_api_vehicles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"category_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Id"}},{"name":"category_size","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Size"}},{"name":"location_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"}},{"name":"transmission","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transmission"}},{"name":"fuel_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel Type"}},{"name":"color","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"}},{"name":"is_rented","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Rented"}},{"name":"available_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Available From"}},{"name":"available_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Available To"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VehicleResponse"},"title":"Response List Vehicles Api Vehicles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["vehicles"],"summary":"Create Vehicle","operationId":"create_vehicle_api_vehicles_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicles/{vehicle_id}":{"get":{"tags":["vehicles"],"summary":"Get Vehicle","operationId":"get_vehicle_api_vehicles__vehicle_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"string","title":"Vehicle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["vehicles"],"summary":"Update Vehicle","operationId":"update_vehicle_api_vehicles__vehicle_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"string","title":"Vehicle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["vehicles"],"summary":"Patch Vehicle","operationId":"patch_vehicle_api_vehicles__vehicle_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"string","title":"Vehicle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicles/{vehicle_id}/status":{"patch":{"tags":["vehicles"],"summary":"Update Vehicle Status","operationId":"update_vehicle_status_api_vehicles__vehicle_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"string","title":"Vehicle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicles/{vehicle_id}/attachments":{"get":{"tags":["vehicles"],"summary":"List Vehicle Attachments","operationId":"list_vehicle_attachments_api_vehicles__vehicle_id__attachments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"string","title":"Vehicle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VehicleAttachmentResponse"},"title":"Response List Vehicle Attachments Api Vehicles  Vehicle Id  Attachments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["vehicles"],"summary":"Upload Vehicle Attachment","operationId":"upload_vehicle_attachment_api_vehicles__vehicle_id__attachments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"string","title":"Vehicle Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_vehicle_attachment_api_vehicles__vehicle_id__attachments_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleAttachmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicles/{vehicle_id}/attachments/{attachment_id}/download":{"get":{"tags":["vehicles"],"summary":"Download Vehicle Attachment","operationId":"download_vehicle_attachment_api_vehicles__vehicle_id__attachments__attachment_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"string","title":"Vehicle Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicles/{vehicle_id}/attachments/{attachment_id}":{"delete":{"tags":["vehicles"],"summary":"Delete Vehicle Attachment","operationId":"delete_vehicle_attachment_api_vehicles__vehicle_id__attachments__attachment_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"string","title":"Vehicle Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicle-categories":{"get":{"tags":["vehicle-categories"],"summary":"List Categories","operationId":"list_categories_api_vehicle_categories_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VehicleCategoryResponse"},"title":"Response List Categories Api Vehicle Categories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["vehicle-categories"],"summary":"Create Category","operationId":"create_category_api_vehicle_categories_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleCategoryCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleCategoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicle-categories/{category_id}":{"patch":{"tags":["vehicle-categories"],"summary":"Update Category","operationId":"update_category_api_vehicle_categories__category_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"string","title":"Category Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleCategoryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleCategoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/planner/board":{"get":{"tags":["planner"],"summary":"Get Planner Board","operationId":"get_planner_board_api_planner_board_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"location_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"}},{"name":"category_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Category Id"}},{"name":"category_size","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Size"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"availability","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Availability"}},{"name":"transmission","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transmission"}},{"name":"fuel_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel Type"}},{"name":"color","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"}},{"name":"is_rented","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Rented"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlannerBoardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/planner/events":{"get":{"tags":["planner"],"summary":"List Planner Events","operationId":"list_planner_events_api_planner_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"vehicle_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Id"}},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":200,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AvailabilityEventResponse"},"title":"Response List Planner Events Api Planner Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["planner"],"summary":"Create Planner Event","operationId":"create_planner_event_api_planner_events_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityEventCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityEventResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/planner/events/{event_id}":{"patch":{"tags":["planner"],"summary":"Update Planner Event","operationId":"update_planner_event_api_planner_events__event_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityEventUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityEventResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pricing/reference-data":{"get":{"tags":["pricing"],"summary":"Pricing Reference Data","operationId":"pricing_reference_data_api_pricing_reference_data_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingReferenceDataResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/pricing/quote":{"post":{"tags":["pricing"],"summary":"Pricing Quote","operationId":"pricing_quote_api_pricing_quote_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingQuoteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingQuoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/pricing/pricelists":{"get":{"tags":["pricing"],"summary":"List Pricelists","operationId":"list_pricelists_api_pricing_pricelists_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}},{"name":"branch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Id"}},{"name":"customer_type_scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Type Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricelistListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pricing"],"summary":"Create Pricelist Endpoint","operationId":"create_pricelist_endpoint_api_pricing_pricelists_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricelistCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricelistResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pricing/pricelists/{pricelist_id}":{"get":{"tags":["pricing"],"summary":"Get Pricelist","operationId":"get_pricelist_api_pricing_pricelists__pricelist_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pricelist_id","in":"path","required":true,"schema":{"type":"string","title":"Pricelist Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricelistResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["pricing"],"summary":"Update Pricelist Endpoint","operationId":"update_pricelist_endpoint_api_pricing_pricelists__pricelist_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pricelist_id","in":"path","required":true,"schema":{"type":"string","title":"Pricelist Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricelistUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricelistResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pricing/offers/":{"get":{"tags":["pricing"],"summary":"List Offers","operationId":"list_offers_api_pricing_offers__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"pricelist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricelist Id"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pricing"],"summary":"Create Offer Endpoint","operationId":"create_offer_endpoint_api_pricing_offers__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pricing/offers/{offer_id}":{"get":{"tags":["pricing"],"summary":"Get Offer","operationId":"get_offer_api_pricing_offers__offer_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["pricing"],"summary":"Update Offer Endpoint","operationId":"update_offer_endpoint_api_pricing_offers__offer_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","title":"Offer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pricing/insurance-products/":{"get":{"tags":["pricing"],"summary":"List Insurance Products","operationId":"list_insurance_products_api_pricing_insurance_products__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceProductListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pricing"],"summary":"Create Insurance Product Endpoint","operationId":"create_insurance_product_endpoint_api_pricing_insurance_products__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceProductCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceProductResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pricing/insurance-products/{product_id}":{"put":{"tags":["pricing"],"summary":"Update Insurance Product Endpoint","operationId":"update_insurance_product_endpoint_api_pricing_insurance_products__product_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceProductUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceProductResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pricing/extra-charge-products/":{"get":{"tags":["pricing"],"summary":"List Extra Charge Products","operationId":"list_extra_charge_products_api_pricing_extra_charge_products__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtraChargeProductListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pricing"],"summary":"Create Extra Charge Product Endpoint","operationId":"create_extra_charge_product_endpoint_api_pricing_extra_charge_products__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtraChargeProductCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtraChargeProductResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pricing/extra-charge-products/{product_id}":{"put":{"tags":["pricing"],"summary":"Update Extra Charge Product Endpoint","operationId":"update_extra_charge_product_endpoint_api_pricing_extra_charge_products__product_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtraChargeProductUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtraChargeProductResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reservations/agent/wizard/start":{"post":{"tags":["reservations-agent"],"summary":"Start Reservation Agent Wizard","operationId":"start_reservation_agent_wizard_api_reservations_agent_wizard_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationAgentWizardRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationAgentWizardStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/reservations/agent/wizard/suggest-allocation":{"post":{"tags":["reservations-agent"],"summary":"Suggest Reservation Agent Allocation","operationId":"suggest_reservation_agent_allocation_api_reservations_agent_wizard_suggest_allocation_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationAgentWizardRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationAgentSuggestionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/reservations/agent/wizard/confirm":{"post":{"tags":["reservations-agent"],"summary":"Confirm Reservation Agent Allocation","operationId":"confirm_reservation_agent_allocation_api_reservations_agent_wizard_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationAgentWizardConfirmRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationAgentConfirmResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/reservations/agent/reallocation/analyze":{"post":{"tags":["reservations-agent"],"summary":"Analyze Reservation Agent Reallocation","operationId":"analyze_reservation_agent_reallocation_api_reservations_agent_reallocation_analyze_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationReallocationAnalyzeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationReallocationAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/reservations/agent/reallocation/apply":{"post":{"tags":["reservations-agent"],"summary":"Apply Reservation Agent Reallocation","operationId":"apply_reservation_agent_reallocation_api_reservations_agent_reallocation_apply_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationReallocationApplyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationReallocationApplyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/reservations/agent/allocation/{allocation_id}/lock":{"patch":{"tags":["reservations-agent"],"summary":"Lock Reservation Agent Allocation","operationId":"lock_reservation_agent_allocation_api_reservations_agent_allocation__allocation_id__lock_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"allocation_id","in":"path","required":true,"schema":{"type":"string","title":"Allocation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationAllocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reservations/agent/allocation/{allocation_id}/unlock":{"patch":{"tags":["reservations-agent"],"summary":"Unlock Reservation Agent Allocation","operationId":"unlock_reservation_agent_allocation_api_reservations_agent_allocation__allocation_id__unlock_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"allocation_id","in":"path","required":true,"schema":{"type":"string","title":"Allocation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationAllocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reservations/reference-data":{"get":{"tags":["reservations"],"summary":"Reservation Reference Data","operationId":"reservation_reference_data_api_reservations_reference_data_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationReferenceDataResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/reservations/preview-price":{"post":{"tags":["reservations"],"summary":"Preview Reservation Price","operationId":"preview_reservation_price_api_reservations_preview_price_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationPricePreviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationPricingSnapshot"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/reservations":{"get":{"tags":["reservations"],"summary":"List Reservations","operationId":"list_reservations_api_reservations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"vehicle_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Id"}},{"name":"pickup_location_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pickup Location Id"}},{"name":"return_location_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Location Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["reservations"],"summary":"Create Reservation","operationId":"create_reservation_api_reservations_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reservations/{reservation_id}":{"get":{"tags":["reservations"],"summary":"Get Reservation","operationId":"get_reservation_api_reservations__reservation_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"reservation_id","in":"path","required":true,"schema":{"type":"string","title":"Reservation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["reservations"],"summary":"Update Reservation","operationId":"update_reservation_api_reservations__reservation_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"reservation_id","in":"path","required":true,"schema":{"type":"string","title":"Reservation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reservations/{reservation_id}/status":{"patch":{"tags":["reservations"],"summary":"Update Reservation Status","operationId":"update_reservation_status_api_reservations__reservation_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"reservation_id","in":"path","required":true,"schema":{"type":"string","title":"Reservation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reservations/{reservation_id}/convert-to-rental":{"post":{"tags":["reservations"],"summary":"Convert Reservation To Rental","operationId":"convert_reservation_to_rental_api_reservations__reservation_id__convert_to_rental_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"reservation_id","in":"path","required":true,"schema":{"type":"string","title":"Reservation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalFromReservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rentals":{"get":{"tags":["rentals"],"summary":"List Rentals","operationId":"list_rentals_api_rentals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"vehicle_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Id"}},{"name":"pickup_location_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pickup Location Id"}},{"name":"return_location_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Location Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["rentals"],"summary":"Create Rental","operationId":"create_rental_api_rentals_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rentals/{rental_id}":{"get":{"tags":["rentals"],"summary":"Get Rental","operationId":"get_rental_api_rentals__rental_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rental_id","in":"path","required":true,"schema":{"type":"string","title":"Rental Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["rentals"],"summary":"Update Rental","operationId":"update_rental_api_rentals__rental_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rental_id","in":"path","required":true,"schema":{"type":"string","title":"Rental Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rentals/{rental_id}/status":{"patch":{"tags":["rentals"],"summary":"Update Rental Status","operationId":"update_rental_status_api_rentals__rental_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rental_id","in":"path","required":true,"schema":{"type":"string","title":"Rental Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rentals/from-reservation/{reservation_id}":{"post":{"tags":["rentals"],"summary":"Create Rental From Reservation","operationId":"create_rental_from_reservation_api_rentals_from_reservation__reservation_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"reservation_id","in":"path","required":true,"schema":{"type":"string","title":"Reservation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalFromReservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/payments/receivables":{"get":{"tags":["payments"],"summary":"List Receivables","operationId":"list_receivables_api_payments_receivables_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Id"}},{"name":"open_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Open Only"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceivableDocumentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/payments/payables":{"get":{"tags":["payments"],"summary":"List Payables","operationId":"list_payables_api_payments_payables_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"supplier_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Id"}},{"name":"open_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Open Only"}},{"name":"document_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayableDocumentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/payments":{"get":{"tags":["payments"],"summary":"List Payments","operationId":"list_payments_api_payments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"direction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"}},{"name":"payment_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Type"}},{"name":"rental_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rental Id"}},{"name":"expense_document_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expense Document Id"}},{"name":"billing_document_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Document Id"}},{"name":"customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Id"}},{"name":"supplier_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"method","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["payments"],"summary":"Create Payment","operationId":"create_payment_api_payments_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/payments/{payment_id}":{"get":{"tags":["payments"],"summary":"Get Payment","operationId":"get_payment_api_payments__payment_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["payments"],"summary":"Update Payment","operationId":"update_payment_api_payments__payment_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/payments/{payment_id}/status":{"patch":{"tags":["payments"],"summary":"Update Payment Status","operationId":"update_payment_status_api_payments__payment_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/guarantees":{"get":{"tags":["guarantees"],"summary":"List Guarantees","operationId":"list_guarantees_api_guarantees_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"rental_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rental Id"}},{"name":"customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"method","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuaranteeListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["guarantees"],"summary":"Create Guarantee","operationId":"create_guarantee_api_guarantees_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuaranteeCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuaranteeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/guarantees/{guarantee_id}":{"get":{"tags":["guarantees"],"summary":"Get Guarantee","operationId":"get_guarantee_api_guarantees__guarantee_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"guarantee_id","in":"path","required":true,"schema":{"type":"string","title":"Guarantee Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuaranteeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["guarantees"],"summary":"Update Guarantee","operationId":"update_guarantee_api_guarantees__guarantee_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"guarantee_id","in":"path","required":true,"schema":{"type":"string","title":"Guarantee Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuaranteeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuaranteeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/guarantees/{guarantee_id}/status":{"patch":{"tags":["guarantees"],"summary":"Update Guarantee Status","operationId":"update_guarantee_status_api_guarantees__guarantee_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"guarantee_id","in":"path","required":true,"schema":{"type":"string","title":"Guarantee Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuaranteeStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuaranteeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/auth/login":{"post":{"tags":["admin-auth"],"summary":"Admin Login","operationId":"admin_login_api_admin_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/auth/me":{"get":{"tags":["admin-auth"],"summary":"Admin Me","operationId":"admin_me_api_admin_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/dashboard":{"get":{"tags":["admin-dashboard"],"summary":"Admin Dashboard","description":"Live KPIs για όλη την πλατφόρμα.","operationId":"admin_dashboard_api_admin_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Dashboard Api Admin Dashboard Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/billing/summary":{"get":{"tags":["admin-dashboard"],"summary":"Billing Summary","operationId":"billing_summary_api_admin_billing_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"period","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Format YYYY-MM. Default = τρέχων μήνας.","title":"Period"},"description":"Format YYYY-MM. Default = τρέχων μήνας."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Billing Summary Api Admin Billing Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{tenant_id}/invoice-preview":{"get":{"tags":["admin-dashboard"],"summary":"Tenant Invoice Preview","operationId":"tenant_invoice_preview_api_admin_tenants__tenant_id__invoice_preview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"period","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Tenant Invoice Preview Api Admin Tenants  Tenant Id  Invoice Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{tenant_id}/invoice-preview.pdf":{"get":{"tags":["admin-dashboard"],"summary":"Tenant Invoice Preview Pdf","operationId":"tenant_invoice_preview_pdf_api_admin_tenants__tenant_id__invoice_preview_pdf_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"period","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/billing/summary.pdf":{"get":{"tags":["admin-dashboard"],"summary":"Billing Summary Pdf","operationId":"billing_summary_pdf_api_admin_billing_summary_pdf_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"period","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/activity":{"get":{"tags":["admin-activity"],"summary":"Admin Activity","operationId":"admin_activity_api_admin_activity_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Activity Api Admin Activity Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/activity/sessions/{tenant_id}/{session_id}/revoke":{"post":{"tags":["admin-activity"],"summary":"Admin Revoke Session","operationId":"admin_revoke_session_api_admin_activity_sessions__tenant_id___session_id__revoke_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Revoke Session Api Admin Activity Sessions  Tenant Id   Session Id  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/license-plans":{"get":{"tags":["admin-licensing"],"summary":"List Plans","operationId":"list_plans_api_admin_license_plans_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Inactive"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LicensePlanResponse"},"title":"Response List Plans Api Admin License Plans Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-licensing"],"summary":"Create Plan","operationId":"create_plan_api_admin_license_plans_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicensePlanCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicensePlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/license-plans/{plan_id}":{"get":{"tags":["admin-licensing"],"summary":"Get Plan","operationId":"get_plan_api_admin_license_plans__plan_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicensePlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-licensing"],"summary":"Update Plan","operationId":"update_plan_api_admin_license_plans__plan_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicensePlanUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicensePlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-licensing"],"summary":"Deactivate Plan","operationId":"deactivate_plan_api_admin_license_plans__plan_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{tenant_id}/license":{"get":{"tags":["admin-licensing"],"summary":"Get License","operationId":"get_license_api_admin_tenants__tenant_id__license_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TenantLicenseResponse"},{"type":"null"}],"title":"Response Get License Api Admin Tenants  Tenant Id  License Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin-licensing"],"summary":"Set License","operationId":"set_license_api_admin_tenants__tenant_id__license_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantLicenseAssign"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantLicenseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-licensing"],"summary":"Patch License","operationId":"patch_license_api_admin_tenants__tenant_id__license_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantLicensePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantLicenseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{tenant_id}/usage":{"get":{"tags":["admin-licensing"],"summary":"Get Usage","operationId":"get_usage_api_admin_tenants__tenant_id__usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantUsageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{tenant_id}/billing":{"get":{"tags":["admin-licensing"],"summary":"List Billing","operationId":"list_billing_api_admin_tenants__tenant_id__billing_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants":{"get":{"tags":["admin"],"summary":"Get Tenants","description":"Λίστα όλων των tenants με filtering.","operationId":"get_tenants_api_admin_tenants_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Tenant","description":"Δημιουργία νέου tenant.","operationId":"create_tenant_api_admin_tenants_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{tenant_id}":{"get":{"tags":["admin"],"summary":"Get Tenant","description":"Get tenant details.","operationId":"get_tenant_api_admin_tenants__tenant_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin"],"summary":"Update Tenant","description":"Update tenant.","operationId":"update_tenant_api_admin_tenants__tenant_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Tenant Soft","description":"Soft delete tenant - αλλάζει status σε 'deleted'.","operationId":"delete_tenant_soft_api_admin_tenants__tenant_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{tenant_id}/suspend":{"post":{"tags":["admin"],"summary":"Suspend Tenant Endpoint","description":"Suspend tenant - αναστέλλει την πρόσβαση.","operationId":"suspend_tenant_endpoint_api_admin_tenants__tenant_id__suspend_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{tenant_id}/activate":{"post":{"tags":["admin"],"summary":"Activate Tenant Endpoint","description":"Activate suspended tenant.","operationId":"activate_tenant_endpoint_api_admin_tenants__tenant_id__activate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{tenant_id}/hard":{"delete":{"tags":["admin"],"summary":"Delete Tenant Hard","description":"Hard delete - ΔΙΑΓΡΑΦΕΙ ΟΛΟΚΛΗΡΑ το tenant και το database. ΠΡΟΣΟΧΗ!","operationId":"delete_tenant_hard_api_admin_tenants__tenant_id__hard_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"confirm","in":"query","required":true,"schema":{"type":"string","description":"Πρέπει να είναι 'DELETE' για επιβεβαίωση","title":"Confirm"},"description":"Πρέπει να είναι 'DELETE' για επιβεβαίωση"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{tenant_id}/metrics":{"post":{"tags":["admin"],"summary":"Refresh Metrics","description":"Ανανεώνει τα metrics για ένα tenant.","operationId":"refresh_metrics_api_admin_tenants__tenant_id__metrics_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccidentBillingRecoveryLinkRequest":{"properties":{"billing_document_id":{"type":"string","format":"uuid","title":"Billing Document Id"}},"type":"object","required":["billing_document_id"],"title":"AccidentBillingRecoveryLinkRequest"},"AccidentCaseCreate":{"properties":{"code":{"type":"string","maxLength":32,"minLength":1,"title":"Code"},"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"rental_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rental Id"},"driver_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Driver Id"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"driver_name_snapshot":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Driver Name Snapshot"},"customer_name_snapshot":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Customer Name Snapshot"},"happened_at":{"type":"string","format":"date-time","title":"Happened At"},"reported_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reported At"},"location_text":{"type":"string","minLength":1,"title":"Location Text"},"description":{"type":"string","minLength":1,"title":"Description"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"status":{"type":"string","enum":["draft","open","under_review","closed","cancelled"],"title":"Status","default":"draft"},"liability_status":{"type":"string","enum":["undetermined","company","customer","third_party","shared"],"title":"Liability Status","default":"undetermined"}},"type":"object","required":["code","vehicle_id","happened_at","location_text","description"],"title":"AccidentCaseCreate"},"AccidentCaseListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AccidentCaseResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"AccidentCaseListResponse"},"AccidentCaseResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"code":{"type":"string","title":"Code"},"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_code":{"type":"string","title":"Vehicle Code"},"vehicle_plate_number":{"type":"string","title":"Vehicle Plate Number"},"vehicle_display_name":{"type":"string","title":"Vehicle Display Name"},"rental_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rental Id"},"rental_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rental Code"},"driver_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Driver Id"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"driver_name_snapshot":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Name Snapshot"},"customer_name_snapshot":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Name Snapshot"},"happened_at":{"type":"string","format":"date-time","title":"Happened At"},"reported_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reported At"},"location_text":{"type":"string","title":"Location Text"},"description":{"type":"string","title":"Description"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"status":{"type":"string","enum":["draft","open","under_review","closed","cancelled"],"title":"Status"},"liability_status":{"type":"string","enum":["undetermined","company","customer","third_party","shared"],"title":"Liability Status"},"resolved_policy_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Resolved Policy Id"},"resolved_policy_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Policy Number"},"resolved_policy_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Policy Status"},"resolved_policy_insurer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Policy Insurer Name"},"repair_case_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Repair Case Id"},"repair_case_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repair Case Code"},"repair_case_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repair Case Status"},"billing_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Billing Document Id"},"billing_document_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Document Code"},"billing_document_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Document Status"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"}},"type":"object","required":["id","created_at","updated_at","is_active","code","vehicle_id","vehicle_code","vehicle_plate_number","vehicle_display_name","happened_at","location_text","description","status","liability_status"],"title":"AccidentCaseResponse"},"AccidentCaseStatusUpdate":{"properties":{"status":{"type":"string","enum":["draft","open","under_review","closed","cancelled"],"title":"Status"}},"type":"object","required":["status"],"title":"AccidentCaseStatusUpdate"},"AccidentCaseUpdate":{"properties":{"rental_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rental Id"},"driver_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Driver Id"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"driver_name_snapshot":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Driver Name Snapshot"},"customer_name_snapshot":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Customer Name Snapshot"},"reported_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reported At"},"location_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Text"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"liability_status":{"anyOf":[{"type":"string","enum":["undetermined","company","customer","third_party","shared"]},{"type":"null"}],"title":"Liability Status"}},"type":"object","title":"AccidentCaseUpdate"},"AccidentDocumentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"accident_case_id":{"type":"string","format":"uuid","title":"Accident Case Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"original_filename":{"type":"string","title":"Original Filename"},"stored_filename":{"type":"string","title":"Stored Filename"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"file_size_bytes":{"type":"integer","title":"File Size Bytes"},"file_path":{"type":"string","title":"File Path"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","created_at","updated_at","is_active","accident_case_id","original_filename","stored_filename","file_size_bytes","file_path"],"title":"AccidentDocumentResponse"},"AccidentPolicyResolveRequest":{"properties":{"refresh":{"type":"boolean","title":"Refresh","default":true}},"type":"object","title":"AccidentPolicyResolveRequest"},"AccidentRepairCreateRequest":{"properties":{"repair_code":{"type":"string","maxLength":32,"minLength":1,"title":"Repair Code"},"order_number":{"type":"string","maxLength":32,"minLength":1,"title":"Order Number"},"supplier_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Supplier Id"},"reason_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Text"},"description":{"type":"string","minLength":1,"title":"Description"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["repair_code","order_number","description"],"title":"AccidentRepairCreateRequest"},"AccidentRepairLinkRequest":{"properties":{"repair_case_id":{"type":"string","format":"uuid","title":"Repair Case Id"}},"type":"object","required":["repair_case_id"],"title":"AccidentRepairLinkRequest"},"AccidentSummaryItemResponse":{"properties":{"accident_case_id":{"type":"string","format":"uuid","title":"Accident Case Id"},"code":{"type":"string","title":"Code"},"status":{"type":"string","enum":["draft","open","under_review","closed","cancelled"],"title":"Status"},"liability_status":{"type":"string","enum":["undetermined","company","customer","third_party","shared"],"title":"Liability Status"},"happened_at":{"type":"string","format":"date-time","title":"Happened At"},"location_text":{"type":"string","title":"Location Text"},"rental_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rental Id"},"rental_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rental Code"},"resolved_policy_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Resolved Policy Id"},"resolved_policy_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Policy Number"},"resolved_policy_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Policy Status"},"repair_case_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Repair Case Id"},"repair_case_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repair Case Code"},"repair_case_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repair Case Status"},"billing_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Billing Document Id"},"billing_document_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Document Code"},"billing_document_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Document Status"}},"type":"object","required":["accident_case_id","code","status","liability_status","happened_at","location_text"],"title":"AccidentSummaryItemResponse"},"AdminLoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","minLength":1,"title":"Password"}},"type":"object","required":["email","password"],"title":"AdminLoginRequest"},"AdminTokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["access_token","expires_at"],"title":"AdminTokenResponse"},"AdminUserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","format":"email","title":"Email"},"full_name":{"type":"string","title":"Full Name"},"is_superuser":{"type":"boolean","title":"Is Superuser"},"is_active":{"type":"boolean","title":"Is Active"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","email","full_name","is_superuser","is_active","last_login_at","created_at"],"title":"AdminUserResponse"},"AvailabilityEventCreate":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"event_type":{"type":"string","enum":["reservation","rental","maintenance","blocked"],"title":"Event Type"},"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"end_datetime":{"type":"string","format":"date-time","title":"End Datetime"},"pickup_location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pickup Location Id"},"return_location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Return Location Id"},"title":{"type":"string","title":"Title"},"status":{"type":"string","enum":["draft","confirmed","active","cancelled"],"title":"Status","default":"confirmed"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["vehicle_id","event_type","start_datetime","end_datetime","title"],"title":"AvailabilityEventCreate"},"AvailabilityEventResponse":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"event_type":{"type":"string","enum":["reservation","rental","maintenance","blocked"],"title":"Event Type"},"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"end_datetime":{"type":"string","format":"date-time","title":"End Datetime"},"pickup_location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pickup Location Id"},"return_location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Return Location Id"},"title":{"type":"string","title":"Title"},"status":{"type":"string","enum":["draft","confirmed","active","cancelled"],"title":"Status","default":"confirmed"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["vehicle_id","event_type","start_datetime","end_datetime","title","id","created_at","updated_at","is_active"],"title":"AvailabilityEventResponse"},"AvailabilityEventUpdate":{"properties":{"vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Id"},"event_type":{"anyOf":[{"type":"string","enum":["reservation","rental","maintenance","blocked"]},{"type":"null"}],"title":"Event Type"},"start_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Datetime"},"end_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Datetime"},"pickup_location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pickup Location Id"},"return_location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Return Location Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"status":{"anyOf":[{"type":"string","enum":["draft","confirmed","active","cancelled"]},{"type":"null"}],"title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"AvailabilityEventUpdate"},"BillingDocumentCreate":{"properties":{"code":{"type":"string","maxLength":32,"minLength":1,"title":"Code"},"document_type":{"type":"string","enum":["invoice","receipt","credit_note"],"title":"Document Type"},"customer_id":{"type":"string","format":"uuid","title":"Customer Id"},"rental_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rental Id"},"credited_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Credited Document Id"},"document_datetime":{"type":"string","format":"date-time","title":"Document Datetime"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"lines":{"items":{"$ref":"#/components/schemas/BillingDocumentLineInput"},"type":"array","title":"Lines"}},"type":"object","required":["code","document_type","customer_id","document_datetime"],"title":"BillingDocumentCreate"},"BillingDocumentLineInput":{"properties":{"line_type":{"type":"string","enum":["charge","discount","tax"],"title":"Line Type","default":"charge"},"description":{"type":"string","maxLength":255,"minLength":1,"title":"Description"},"quantity":{"type":"number","exclusiveMinimum":0.0,"title":"Quantity","default":1},"unit_price":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Unit Price","default":"0.00"},"tax_rate":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Tax Rate"},"source_type":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Source Type"},"source_reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Source Reference"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["description"],"title":"BillingDocumentLineInput"},"BillingDocumentLineResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"billing_document_id":{"type":"string","format":"uuid","title":"Billing Document Id"},"sort_order":{"type":"integer","title":"Sort Order"},"line_type":{"type":"string","enum":["charge","discount","tax"],"title":"Line Type"},"description":{"type":"string","title":"Description"},"quantity":{"type":"number","title":"Quantity"},"unit_price":{"type":"number","title":"Unit Price"},"tax_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tax Rate"},"line_subtotal":{"type":"number","title":"Line Subtotal"},"tax_amount":{"type":"number","title":"Tax Amount"},"line_total":{"type":"number","title":"Line Total"},"source_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type"},"source_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Reference"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","created_at","updated_at","is_active","billing_document_id","sort_order","line_type","description","quantity","unit_price","line_subtotal","tax_amount","line_total"],"title":"BillingDocumentLineResponse"},"BillingDocumentListItemResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"code":{"type":"string","title":"Code"},"document_type":{"type":"string","enum":["invoice","receipt","credit_note"],"title":"Document Type"},"customer_id":{"type":"string","format":"uuid","title":"Customer Id"},"customer_name":{"type":"string","title":"Customer Name"},"rental_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rental Id"},"rental_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rental Code"},"credited_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Credited Document Id"},"credited_document_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credited Document Code"},"document_datetime":{"type":"string","format":"date-time","title":"Document Datetime"},"status":{"type":"string","enum":["draft","confirmed","cancelled"],"title":"Status"},"subtotal_amount":{"type":"number","title":"Subtotal Amount"},"tax_total":{"type":"number","title":"Tax Total"},"total_amount":{"type":"number","title":"Total Amount"},"receivable_total":{"type":"number","title":"Receivable Total","default":0},"receivable_effect_amount":{"type":"number","title":"Receivable Effect Amount","default":0},"paid_amount":{"type":"number","title":"Paid Amount","default":0},"pending_amount":{"type":"number","title":"Pending Amount","default":0},"open_amount":{"type":"number","title":"Open Amount","default":0},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Confirmed At"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"},"line_count":{"type":"integer","title":"Line Count"}},"type":"object","required":["id","created_at","updated_at","is_active","code","document_type","customer_id","customer_name","document_datetime","status","subtotal_amount","tax_total","total_amount","line_count"],"title":"BillingDocumentListItemResponse"},"BillingDocumentListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BillingDocumentListItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"BillingDocumentListResponse"},"BillingDocumentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"code":{"type":"string","title":"Code"},"document_type":{"type":"string","enum":["invoice","receipt","credit_note"],"title":"Document Type"},"customer_id":{"type":"string","format":"uuid","title":"Customer Id"},"customer_name":{"type":"string","title":"Customer Name"},"rental_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rental Id"},"rental_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rental Code"},"credited_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Credited Document Id"},"credited_document_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credited Document Code"},"document_datetime":{"type":"string","format":"date-time","title":"Document Datetime"},"status":{"type":"string","enum":["draft","confirmed","cancelled"],"title":"Status"},"subtotal_amount":{"type":"number","title":"Subtotal Amount"},"tax_total":{"type":"number","title":"Tax Total"},"total_amount":{"type":"number","title":"Total Amount"},"receivable_total":{"type":"number","title":"Receivable Total","default":0},"receivable_effect_amount":{"type":"number","title":"Receivable Effect Amount","default":0},"paid_amount":{"type":"number","title":"Paid Amount","default":0},"pending_amount":{"type":"number","title":"Pending Amount","default":0},"open_amount":{"type":"number","title":"Open Amount","default":0},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Confirmed At"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"},"line_count":{"type":"integer","title":"Line Count"},"lines":{"items":{"$ref":"#/components/schemas/BillingDocumentLineResponse"},"type":"array","title":"Lines"}},"type":"object","required":["id","created_at","updated_at","is_active","code","document_type","customer_id","customer_name","document_datetime","status","subtotal_amount","tax_total","total_amount","line_count","lines"],"title":"BillingDocumentResponse"},"BillingDocumentSummaryResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"code":{"type":"string","title":"Code"},"document_type":{"type":"string","enum":["invoice","receipt","credit_note"],"title":"Document Type"},"status":{"type":"string","enum":["draft","confirmed","cancelled"],"title":"Status"},"receivable_total":{"type":"number","title":"Receivable Total"},"paid_amount":{"type":"number","title":"Paid Amount"},"open_amount":{"type":"number","title":"Open Amount"},"document_datetime":{"type":"string","format":"date-time","title":"Document Datetime"}},"type":"object","required":["id","code","document_type","status","receivable_total","paid_amount","open_amount","document_datetime"],"title":"BillingDocumentSummaryResponse"},"BillingDocumentUpdate":{"properties":{"code":{"type":"string","maxLength":32,"minLength":1,"title":"Code"},"document_type":{"type":"string","enum":["invoice","receipt","credit_note"],"title":"Document Type"},"customer_id":{"type":"string","format":"uuid","title":"Customer Id"},"rental_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rental Id"},"credited_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Credited Document Id"},"document_datetime":{"type":"string","format":"date-time","title":"Document Datetime"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"lines":{"items":{"$ref":"#/components/schemas/BillingDocumentLineInput"},"type":"array","title":"Lines"}},"type":"object","required":["code","document_type","customer_id","document_datetime"],"title":"BillingDocumentUpdate"},"BillingListResponse":{"properties":{"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/BillingTransactionResponse"},"type":"array","title":"Items"},"sum_finalized_cents":{"type":"integer","title":"Sum Finalized Cents"},"sum_pending_cents":{"type":"integer","title":"Sum Pending Cents"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"}},"type":"object","required":["total","items","sum_finalized_cents","sum_pending_cents","currency"],"title":"BillingListResponse"},"BillingTransactionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"license_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"License Id"},"kind":{"type":"string","title":"Kind"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"billable_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Billable At"},"status":{"type":"string","title":"Status"},"source_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type"},"source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Id"},"source_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Ref"},"invoice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","tenant_id","license_id","kind","amount_cents","currency","occurred_at","billable_at","status","source_type","source_id","source_ref","invoice_id","notes","created_at"],"title":"BillingTransactionResponse"},"Body_create_accident_document_endpoint_api_accidents_cases__accident_case_id__documents_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["file"],"title":"Body_create_accident_document_endpoint_api_accidents_cases__accident_case_id__documents_post"},"Body_create_policy_document_endpoint_api_vehicle_insurance_policies__policy_id__documents_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["file"],"title":"Body_create_policy_document_endpoint_api_vehicle_insurance_policies__policy_id__documents_post"},"Body_create_repair_document_endpoint_api_repairs_cases__repair_case_id__documents_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"repair_order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repair Order Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["file"],"title":"Body_create_repair_document_endpoint_api_repairs_cases__repair_case_id__documents_post"},"Body_upload_customer_attachment_api_customers__customer_id__attachments_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"asset_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Type"},"attachment_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attachment Label"}},"type":"object","required":["file"],"title":"Body_upload_customer_attachment_api_customers__customer_id__attachments_post"},"Body_upload_vehicle_attachment_api_vehicles__vehicle_id__attachments_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"asset_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Type"}},"type":"object","required":["file"],"title":"Body_upload_vehicle_attachment_api_vehicles__vehicle_id__attachments_post"},"BranchCreate":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"address_line1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line1"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"}},"type":"object","required":["code","name"],"title":"BranchCreate"},"BranchResponse":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"address_line1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line1"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["code","name","id","created_at","updated_at","is_active"],"title":"BranchResponse"},"BranchUpdate":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"address_line1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line1"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"BranchUpdate"},"CompanyProfileCreate":{"properties":{"legal_name":{"type":"string","title":"Legal Name"},"trade_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trade Name"},"tax_registration_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Registration No"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"address_line1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line1"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"currency_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency Code"}},"type":"object","required":["legal_name"],"title":"CompanyProfileCreate"},"CompanyProfileResponse":{"properties":{"legal_name":{"type":"string","title":"Legal Name"},"trade_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trade Name"},"tax_registration_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Registration No"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"address_line1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line1"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"currency_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency Code"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["legal_name","id","created_at","updated_at","is_active"],"title":"CompanyProfileResponse"},"CompanyProfileUpdate":{"properties":{"legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Name"},"trade_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trade Name"},"tax_registration_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Registration No"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"address_line1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line1"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"currency_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency Code"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"CompanyProfileUpdate"},"CustomerAddressCreate":{"properties":{"address_type":{"type":"string","title":"Address Type"},"address_line1":{"type":"string","title":"Address Line1"},"city":{"type":"string","title":"City"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"country_code":{"type":"string","title":"Country Code"}},"type":"object","required":["address_type","address_line1","city","country_code"],"title":"CustomerAddressCreate"},"CustomerAddressResponse":{"properties":{"address_type":{"type":"string","title":"Address Type"},"address_line1":{"type":"string","title":"Address Line1"},"city":{"type":"string","title":"City"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"country_code":{"type":"string","title":"Country Code"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["address_type","address_line1","city","country_code","id","created_at","updated_at","is_active"],"title":"CustomerAddressResponse"},"CustomerAttachmentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"customer_id":{"type":"string","format":"uuid","title":"Customer Id"},"asset_type":{"type":"string","enum":["photo","document","signature"],"title":"Asset Type"},"attachment_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attachment Label"},"original_filename":{"type":"string","title":"Original Filename"},"stored_filename":{"type":"string","title":"Stored Filename"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"file_size_bytes":{"type":"integer","title":"File Size Bytes"},"file_path":{"type":"string","title":"File Path"}},"type":"object","required":["id","created_at","updated_at","is_active","customer_id","asset_type","original_filename","stored_filename","file_size_bytes","file_path"],"title":"CustomerAttachmentResponse"},"CustomerContactCreate":{"properties":{"contact_name":{"type":"string","title":"Contact Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"role_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Title"}},"type":"object","required":["contact_name"],"title":"CustomerContactCreate"},"CustomerContactResponse":{"properties":{"contact_name":{"type":"string","title":"Contact Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"role_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Title"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["contact_name","id","created_at","updated_at","is_active"],"title":"CustomerContactResponse"},"CustomerCreate":{"properties":{"customer_code":{"type":"string","maxLength":32,"minLength":1,"title":"Customer Code"},"full_name":{"type":"string","maxLength":255,"minLength":1,"title":"Full Name"},"first_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Last Name"},"company_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Company Name"},"email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Phone"},"secondary_phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Secondary Phone"},"phone_3":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Phone 3"},"fax":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Fax"},"tax_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tax Id"},"tax_office":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Tax Office"},"identity_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Identity Number"},"identity_document_type":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Identity Document Type"},"identity_issue_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Identity Issue Date"},"identity_expiry_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Identity Expiry Date"},"identity_issue_authority":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Identity Issue Authority"},"driving_license_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driving License Number"},"driving_license_issue_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Driving License Issue Date"},"driving_license_expiry_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Driving License Expiry Date"},"driving_license_issue_authority":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Driving License Issue Authority"},"birth_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birth Date"},"father_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Father Name"},"partner":{"type":"boolean","title":"Partner","default":false},"minimum_reservation_charge_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":0.0},{"type":"null"}],"title":"Minimum Reservation Charge Days"},"withhold_commission":{"type":"boolean","title":"Withhold Commission","default":false},"nationality":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Nationality"},"locality":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Locality"},"entry_in_country":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Entry In Country"},"profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Profession"},"tax_profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Tax Profession"},"myf_enabled":{"type":"boolean","title":"Myf Enabled","default":false},"myf_type":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Myf Type"},"address_line_1":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Line 1"},"address_line_2":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Line 2"},"street":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Street"},"street_number":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Street Number"},"city":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"City"},"postal_code":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Postal Code"},"country_code":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"Country Code"},"temporary_hotel":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Temporary Hotel"},"temporary_room":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Temporary Room"},"temporary_country_code":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"Temporary Country Code"},"temporary_street":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Temporary Street"},"temporary_street_number":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Temporary Street Number"},"temporary_city":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Temporary City"},"temporary_postal_code":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Temporary Postal Code"},"discount_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Discount Percent"},"special_vat_category":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Special Vat Category"},"price_list":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Price List"},"is_blacklisted":{"type":"boolean","title":"Is Blacklisted","default":false},"contact_person":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Contact Person"},"trade_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Trade Name"},"representative_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Representative Name"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"status":{"type":"string","enum":["active","blocked","archived"],"title":"Status","default":"active"},"is_company":{"type":"boolean","title":"Is Company","default":false},"addresses":{"items":{"$ref":"#/components/schemas/CustomerAddressCreate"},"type":"array","title":"Addresses"},"contacts":{"items":{"$ref":"#/components/schemas/CustomerContactCreate"},"type":"array","title":"Contacts"},"driver_profiles":{"items":{"$ref":"#/components/schemas/CustomerDriverProfileCreate"},"type":"array","title":"Driver Profiles"}},"type":"object","required":["customer_code","full_name"],"title":"CustomerCreate"},"CustomerDriverProfileCreate":{"properties":{"license_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License No"},"license_country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Country Code"},"license_issue_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"License Issue Date"},"license_expiry_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"License Expiry Date"}},"type":"object","title":"CustomerDriverProfileCreate"},"CustomerDriverProfileResponse":{"properties":{"license_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License No"},"license_country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Country Code"},"license_issue_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"License Issue Date"},"license_expiry_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"License Expiry Date"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","created_at","updated_at","is_active"],"title":"CustomerDriverProfileResponse"},"CustomerListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CustomerResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"CustomerListResponse"},"CustomerRelationshipCreate":{"properties":{"person_customer_id":{"type":"string","format":"uuid","title":"Person Customer Id"},"role_title":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Role Title"},"is_authorized_driver":{"type":"boolean","title":"Is Authorized Driver","default":false},"is_billing_contact":{"type":"boolean","title":"Is Billing Contact","default":false},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["person_customer_id"],"title":"CustomerRelationshipCreate"},"CustomerRelationshipResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"company_customer_id":{"type":"string","format":"uuid","title":"Company Customer Id"},"company_customer_code":{"type":"string","title":"Company Customer Code"},"company_customer_name":{"type":"string","title":"Company Customer Name"},"company_is_active":{"type":"boolean","title":"Company Is Active"},"company_status":{"type":"string","title":"Company Status"},"person_customer_id":{"type":"string","format":"uuid","title":"Person Customer Id"},"person_customer_code":{"type":"string","title":"Person Customer Code"},"person_customer_name":{"type":"string","title":"Person Customer Name"},"person_is_active":{"type":"boolean","title":"Person Is Active"},"person_status":{"type":"string","title":"Person Status"},"person_driver_capable":{"type":"boolean","title":"Person Driver Capable","default":false},"person_driver_eligible":{"type":"boolean","title":"Person Driver Eligible","default":false},"role_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Title"},"is_authorized_driver":{"type":"boolean","title":"Is Authorized Driver","default":false},"is_billing_contact":{"type":"boolean","title":"Is Billing Contact","default":false},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","created_at","updated_at","is_active","company_customer_id","company_customer_code","company_customer_name","company_is_active","company_status","person_customer_id","person_customer_code","person_customer_name","person_is_active","person_status"],"title":"CustomerRelationshipResponse"},"CustomerResponse":{"properties":{"customer_code":{"type":"string","maxLength":32,"minLength":1,"title":"Customer Code"},"full_name":{"type":"string","maxLength":255,"minLength":1,"title":"Full Name"},"first_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Last Name"},"company_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Company Name"},"email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Phone"},"secondary_phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Secondary Phone"},"phone_3":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Phone 3"},"fax":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Fax"},"tax_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tax Id"},"tax_office":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Tax Office"},"identity_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Identity Number"},"identity_document_type":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Identity Document Type"},"identity_issue_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Identity Issue Date"},"identity_expiry_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Identity Expiry Date"},"identity_issue_authority":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Identity Issue Authority"},"driving_license_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driving License Number"},"driving_license_issue_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Driving License Issue Date"},"driving_license_expiry_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Driving License Expiry Date"},"driving_license_issue_authority":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Driving License Issue Authority"},"birth_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birth Date"},"father_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Father Name"},"partner":{"type":"boolean","title":"Partner","default":false},"minimum_reservation_charge_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":0.0},{"type":"null"}],"title":"Minimum Reservation Charge Days"},"withhold_commission":{"type":"boolean","title":"Withhold Commission","default":false},"nationality":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Nationality"},"locality":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Locality"},"entry_in_country":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Entry In Country"},"profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Profession"},"tax_profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Tax Profession"},"myf_enabled":{"type":"boolean","title":"Myf Enabled","default":false},"myf_type":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Myf Type"},"address_line_1":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Line 1"},"address_line_2":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Line 2"},"street":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Street"},"street_number":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Street Number"},"city":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"City"},"postal_code":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Postal Code"},"country_code":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"Country Code"},"temporary_hotel":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Temporary Hotel"},"temporary_room":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Temporary Room"},"temporary_country_code":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"Temporary Country Code"},"temporary_street":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Temporary Street"},"temporary_street_number":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Temporary Street Number"},"temporary_city":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Temporary City"},"temporary_postal_code":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Temporary Postal Code"},"discount_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Discount Percent"},"special_vat_category":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Special Vat Category"},"price_list":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Price List"},"is_blacklisted":{"type":"boolean","title":"Is Blacklisted","default":false},"contact_person":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Contact Person"},"trade_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Trade Name"},"representative_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Representative Name"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"status":{"type":"string","enum":["active","blocked","archived"],"title":"Status","default":"active"},"is_company":{"type":"boolean","title":"Is Company","default":false},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"customer_kind":{"type":"string","enum":["individual","company"],"title":"Customer Kind","default":"individual"},"driver_capable":{"type":"boolean","title":"Driver Capable","default":false},"driver_eligible":{"type":"boolean","title":"Driver Eligible","default":false},"addresses":{"items":{"$ref":"#/components/schemas/CustomerAddressResponse"},"type":"array","title":"Addresses","default":[]},"contacts":{"items":{"$ref":"#/components/schemas/CustomerContactResponse"},"type":"array","title":"Contacts","default":[]},"driver_profiles":{"items":{"$ref":"#/components/schemas/CustomerDriverProfileResponse"},"type":"array","title":"Driver Profiles","default":[]},"related_people":{"items":{"$ref":"#/components/schemas/CustomerRelationshipResponse"},"type":"array","title":"Related People","default":[]},"linked_companies":{"items":{"$ref":"#/components/schemas/CustomerRelationshipResponse"},"type":"array","title":"Linked Companies","default":[]}},"type":"object","required":["customer_code","full_name","id","created_at","updated_at","is_active"],"title":"CustomerResponse"},"CustomerStatusUpdate":{"properties":{"status":{"type":"string","enum":["active","blocked","archived"],"title":"Status"}},"type":"object","required":["status"],"title":"CustomerStatusUpdate"},"CustomerUpdate":{"properties":{"customer_code":{"anyOf":[{"type":"string","maxLength":32,"minLength":1},{"type":"null"}],"title":"Customer Code"},"full_name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Full Name"},"first_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Last Name"},"company_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Company Name"},"email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Phone"},"secondary_phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Secondary Phone"},"phone_3":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Phone 3"},"fax":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Fax"},"tax_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tax Id"},"tax_office":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Tax Office"},"identity_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Identity Number"},"identity_document_type":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Identity Document Type"},"identity_issue_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Identity Issue Date"},"identity_expiry_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Identity Expiry Date"},"identity_issue_authority":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Identity Issue Authority"},"driving_license_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driving License Number"},"driving_license_issue_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Driving License Issue Date"},"driving_license_expiry_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Driving License Expiry Date"},"driving_license_issue_authority":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Driving License Issue Authority"},"birth_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birth Date"},"father_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Father Name"},"partner":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Partner"},"minimum_reservation_charge_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":0.0},{"type":"null"}],"title":"Minimum Reservation Charge Days"},"withhold_commission":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Withhold Commission"},"nationality":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Nationality"},"locality":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Locality"},"entry_in_country":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Entry In Country"},"profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Profession"},"tax_profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Tax Profession"},"myf_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Myf Enabled"},"myf_type":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Myf Type"},"address_line_1":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Line 1"},"address_line_2":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Line 2"},"street":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Street"},"street_number":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Street Number"},"city":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"City"},"postal_code":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Postal Code"},"country_code":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"Country Code"},"temporary_hotel":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Temporary Hotel"},"temporary_room":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Temporary Room"},"temporary_country_code":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"Temporary Country Code"},"temporary_street":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Temporary Street"},"temporary_street_number":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Temporary Street Number"},"temporary_city":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Temporary City"},"temporary_postal_code":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Temporary Postal Code"},"discount_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Discount Percent"},"special_vat_category":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Special Vat Category"},"price_list":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Price List"},"is_blacklisted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Blacklisted"},"contact_person":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Contact Person"},"trade_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Trade Name"},"representative_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Representative Name"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"status":{"anyOf":[{"type":"string","enum":["active","blocked","archived"]},{"type":"null"}],"title":"Status"},"is_company":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Company"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"CustomerUpdate"},"DashboardAlertsResponse":{"properties":{"overdue_rentals":{"items":{"$ref":"#/components/schemas/DashboardRentalAlertItemResponse"},"type":"array","title":"Overdue Rentals"},"vehicles_in_maintenance":{"items":{"$ref":"#/components/schemas/DashboardVehicleAlertItemResponse"},"type":"array","title":"Vehicles In Maintenance"},"low_availability_categories":{"items":{"$ref":"#/components/schemas/DashboardAvailabilityPressureResponse"},"type":"array","title":"Low Availability Categories"},"upcoming_pickups":{"items":{"$ref":"#/components/schemas/DashboardRentalAlertItemResponse"},"type":"array","title":"Upcoming Pickups"},"upcoming_returns":{"items":{"$ref":"#/components/schemas/DashboardRentalAlertItemResponse"},"type":"array","title":"Upcoming Returns"},"inactive_vehicles":{"items":{"$ref":"#/components/schemas/DashboardVehicleAlertItemResponse"},"type":"array","title":"Inactive Vehicles"}},"type":"object","required":["overdue_rentals","vehicles_in_maintenance","low_availability_categories","upcoming_pickups","upcoming_returns","inactive_vehicles"],"title":"DashboardAlertsResponse"},"DashboardAvailabilityPressureResponse":{"properties":{"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"category_code":{"type":"string","title":"Category Code"},"category_name":{"type":"string","title":"Category Name"},"available_vehicles":{"type":"integer","title":"Available Vehicles"},"total_vehicles":{"type":"integer","title":"Total Vehicles"},"available_ratio":{"type":"number","title":"Available Ratio"}},"type":"object","required":["category_code","category_name","available_vehicles","total_vehicles","available_ratio"],"title":"DashboardAvailabilityPressureResponse"},"DashboardCategoryCountResponse":{"properties":{"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"category_code":{"type":"string","title":"Category Code"},"category_name":{"type":"string","title":"Category Name"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["category_code","category_name","count"],"title":"DashboardCategoryCountResponse"},"DashboardCategoryRevenueResponse":{"properties":{"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"category_code":{"type":"string","title":"Category Code"},"category_name":{"type":"string","title":"Category Name"},"amount":{"type":"number","title":"Amount"}},"type":"object","required":["category_code","category_name","amount"],"title":"DashboardCategoryRevenueResponse"},"DashboardComparisonMetricResponse":{"properties":{"current_value":{"type":"number","title":"Current Value"},"previous_value":{"type":"number","title":"Previous Value"},"delta_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delta Percent"}},"type":"object","required":["current_value","previous_value"],"title":"DashboardComparisonMetricResponse"},"DashboardComparisonsResponse":{"properties":{"reservations_today":{"$ref":"#/components/schemas/DashboardComparisonMetricResponse"},"returns_today":{"$ref":"#/components/schemas/DashboardComparisonMetricResponse"},"revenue_today":{"$ref":"#/components/schemas/DashboardComparisonMetricResponse"}},"type":"object","required":["reservations_today","returns_today","revenue_today"],"title":"DashboardComparisonsResponse"},"DashboardFleetMetricsResponse":{"properties":{"total_vehicles":{"type":"integer","title":"Total Vehicles"},"available_vehicles":{"type":"integer","title":"Available Vehicles"},"vehicles_on_rent":{"type":"integer","title":"Vehicles On Rent"},"vehicles_reserved":{"type":"integer","title":"Vehicles Reserved"},"vehicles_in_maintenance":{"type":"integer","title":"Vehicles In Maintenance"},"inactive_vehicles":{"type":"integer","title":"Inactive Vehicles"},"blocked_unavailable_vehicles":{"type":"integer","title":"Blocked Unavailable Vehicles"}},"type":"object","required":["total_vehicles","available_vehicles","vehicles_on_rent","vehicles_reserved","vehicles_in_maintenance","inactive_vehicles","blocked_unavailable_vehicles"],"title":"DashboardFleetMetricsResponse"},"DashboardInsightsResponse":{"properties":{"rentals_by_category":{"items":{"$ref":"#/components/schemas/DashboardCategoryCountResponse"},"type":"array","title":"Rentals By Category"},"revenue_by_category":{"items":{"$ref":"#/components/schemas/DashboardCategoryRevenueResponse"},"type":"array","title":"Revenue By Category"},"revenue_trend":{"items":{"$ref":"#/components/schemas/DashboardTrendPointResponse"},"type":"array","title":"Revenue Trend"},"rentals_over_time":{"items":{"$ref":"#/components/schemas/DashboardTrendPointResponse"},"type":"array","title":"Rentals Over Time"},"fleet_utilization_percent":{"type":"number","title":"Fleet Utilization Percent"},"utilization_available":{"type":"integer","title":"Utilization Available"},"utilization_occupied":{"type":"integer","title":"Utilization Occupied"},"utilization_maintenance":{"type":"integer","title":"Utilization Maintenance"},"utilization_blocked":{"type":"integer","title":"Utilization Blocked"},"utilization_inactive":{"type":"integer","title":"Utilization Inactive"},"top_category":{"anyOf":[{"$ref":"#/components/schemas/DashboardCategoryCountResponse"},{"type":"null"}]},"availability_pressure":{"items":{"$ref":"#/components/schemas/DashboardAvailabilityPressureResponse"},"type":"array","title":"Availability Pressure"}},"type":"object","required":["rentals_by_category","revenue_by_category","revenue_trend","rentals_over_time","fleet_utilization_percent","utilization_available","utilization_occupied","utilization_maintenance","utilization_blocked","utilization_inactive","availability_pressure"],"title":"DashboardInsightsResponse"},"DashboardOperationsMetricsResponse":{"properties":{"reservations_today":{"type":"integer","title":"Reservations Today"},"active_rentals":{"type":"integer","title":"Active Rentals"},"pickups_today":{"type":"integer","title":"Pickups Today"},"returns_today":{"type":"integer","title":"Returns Today"},"overdue_rentals":{"type":"integer","title":"Overdue Rentals"},"upcoming_pickups":{"type":"integer","title":"Upcoming Pickups"},"upcoming_returns":{"type":"integer","title":"Upcoming Returns"}},"type":"object","required":["reservations_today","active_rentals","pickups_today","returns_today","overdue_rentals","upcoming_pickups","upcoming_returns"],"title":"DashboardOperationsMetricsResponse"},"DashboardOverviewResponse":{"properties":{"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"currency_code":{"type":"string","title":"Currency Code"},"upcoming_window_hours":{"type":"integer","title":"Upcoming Window Hours"},"revenue_is_operational":{"type":"boolean","title":"Revenue Is Operational"},"summary":{"$ref":"#/components/schemas/DashboardSummaryResponse"},"comparisons":{"$ref":"#/components/schemas/DashboardComparisonsResponse"},"fleet":{"$ref":"#/components/schemas/DashboardFleetMetricsResponse"},"operations":{"$ref":"#/components/schemas/DashboardOperationsMetricsResponse"},"revenue":{"$ref":"#/components/schemas/DashboardRevenueMetricsResponse"},"insights":{"$ref":"#/components/schemas/DashboardInsightsResponse"},"alerts":{"$ref":"#/components/schemas/DashboardAlertsResponse"}},"type":"object","required":["generated_at","currency_code","upcoming_window_hours","revenue_is_operational","summary","comparisons","fleet","operations","revenue","insights","alerts"],"title":"DashboardOverviewResponse"},"DashboardRentalAlertItemResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"code":{"type":"string","title":"Code"},"customer_name":{"type":"string","title":"Customer Name"},"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_plate":{"type":"string","title":"Vehicle Plate"},"when":{"type":"string","format":"date-time","title":"When"}},"type":"object","required":["id","code","customer_name","vehicle_id","vehicle_plate","when"],"title":"DashboardRentalAlertItemResponse"},"DashboardRevenueMetricsResponse":{"properties":{"revenue_today":{"type":"number","title":"Revenue Today"},"revenue_month":{"type":"number","title":"Revenue Month"},"revenue_year":{"type":"number","title":"Revenue Year"},"average_rental_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Rental Value"},"average_rental_duration_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Rental Duration Days"}},"type":"object","required":["revenue_today","revenue_month","revenue_year"],"title":"DashboardRevenueMetricsResponse"},"DashboardSummaryResponse":{"properties":{"total_vehicles":{"type":"integer","title":"Total Vehicles"},"available_vehicles":{"type":"integer","title":"Available Vehicles"},"active_rentals":{"type":"integer","title":"Active Rentals"},"returns_today":{"type":"integer","title":"Returns Today"},"revenue_today":{"type":"number","title":"Revenue Today"},"attention_items":{"type":"integer","title":"Attention Items"}},"type":"object","required":["total_vehicles","available_vehicles","active_rentals","returns_today","revenue_today","attention_items"],"title":"DashboardSummaryResponse"},"DashboardTrendPointResponse":{"properties":{"label":{"type":"string","title":"Label"},"short_label":{"type":"string","title":"Short Label"},"value":{"type":"number","title":"Value"}},"type":"object","required":["label","short_label","value"],"title":"DashboardTrendPointResponse"},"DashboardVehicleAlertItemResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"code":{"type":"string","title":"Code"},"plate_number":{"type":"string","title":"Plate Number"},"model_label":{"type":"string","title":"Model Label"},"category_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Code"}},"type":"object","required":["id","code","plate_number","model_label"],"title":"DashboardVehicleAlertItemResponse"},"DeliveryNoteCreate":{"properties":{"code":{"type":"string","maxLength":32,"minLength":1,"title":"Code"},"delivery_note_type":{"type":"string","enum":["inbound","outbound","transfer"],"title":"Delivery Note Type"},"source_branch_id":{"type":"string","format":"uuid","title":"Source Branch Id"},"target_branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Branch Id"},"document_datetime":{"type":"string","format":"date-time","title":"Document Datetime"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"lines":{"items":{"$ref":"#/components/schemas/DeliveryNoteLineInput"},"type":"array","title":"Lines"}},"type":"object","required":["code","delivery_note_type","source_branch_id","document_datetime"],"title":"DeliveryNoteCreate"},"DeliveryNoteLineInput":{"properties":{"inventory_item_id":{"type":"string","format":"uuid","title":"Inventory Item Id"},"quantity":{"type":"number","exclusiveMinimum":0.0,"title":"Quantity"}},"type":"object","required":["inventory_item_id","quantity"],"title":"DeliveryNoteLineInput"},"DeliveryNoteLineResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"delivery_note_id":{"type":"string","format":"uuid","title":"Delivery Note Id"},"inventory_item_id":{"type":"string","format":"uuid","title":"Inventory Item Id"},"sort_order":{"type":"integer","title":"Sort Order"},"inventory_item_code":{"type":"string","title":"Inventory Item Code"},"inventory_item_name":{"type":"string","title":"Inventory Item Name"},"quantity":{"type":"number","title":"Quantity"}},"type":"object","required":["id","created_at","updated_at","is_active","delivery_note_id","inventory_item_id","sort_order","inventory_item_code","inventory_item_name","quantity"],"title":"DeliveryNoteLineResponse"},"DeliveryNoteListItemResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"code":{"type":"string","title":"Code"},"delivery_note_type":{"type":"string","enum":["inbound","outbound","transfer"],"title":"Delivery Note Type"},"source_branch_id":{"type":"string","format":"uuid","title":"Source Branch Id"},"source_branch_name":{"type":"string","title":"Source Branch Name"},"target_branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Branch Id"},"target_branch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Branch Name"},"document_datetime":{"type":"string","format":"date-time","title":"Document Datetime"},"status":{"type":"string","enum":["draft","confirmed","cancelled"],"title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Confirmed At"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"},"line_count":{"type":"integer","title":"Line Count"},"movement_count":{"type":"integer","title":"Movement Count"},"total_quantity":{"type":"number","title":"Total Quantity"}},"type":"object","required":["id","created_at","updated_at","is_active","code","delivery_note_type","source_branch_id","source_branch_name","document_datetime","status","line_count","movement_count","total_quantity"],"title":"DeliveryNoteListItemResponse"},"DeliveryNoteListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DeliveryNoteListItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"DeliveryNoteListResponse"},"DeliveryNoteResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"code":{"type":"string","title":"Code"},"delivery_note_type":{"type":"string","enum":["inbound","outbound","transfer"],"title":"Delivery Note Type"},"source_branch_id":{"type":"string","format":"uuid","title":"Source Branch Id"},"source_branch_name":{"type":"string","title":"Source Branch Name"},"target_branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Branch Id"},"target_branch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Branch Name"},"document_datetime":{"type":"string","format":"date-time","title":"Document Datetime"},"status":{"type":"string","enum":["draft","confirmed","cancelled"],"title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Confirmed At"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"},"line_count":{"type":"integer","title":"Line Count"},"movement_count":{"type":"integer","title":"Movement Count"},"total_quantity":{"type":"number","title":"Total Quantity"},"lines":{"items":{"$ref":"#/components/schemas/DeliveryNoteLineResponse"},"type":"array","title":"Lines"},"movements":{"items":{"$ref":"#/components/schemas/InventoryMovementResponse"},"type":"array","title":"Movements"}},"type":"object","required":["id","created_at","updated_at","is_active","code","delivery_note_type","source_branch_id","source_branch_name","document_datetime","status","line_count","movement_count","total_quantity","lines","movements"],"title":"DeliveryNoteResponse"},"DeliveryNoteUpdate":{"properties":{"code":{"type":"string","maxLength":32,"minLength":1,"title":"Code"},"delivery_note_type":{"type":"string","enum":["inbound","outbound","transfer"],"title":"Delivery Note Type"},"source_branch_id":{"type":"string","format":"uuid","title":"Source Branch Id"},"target_branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Branch Id"},"document_datetime":{"type":"string","format":"date-time","title":"Document Datetime"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"lines":{"items":{"$ref":"#/components/schemas/DeliveryNoteLineInput"},"type":"array","title":"Lines"}},"type":"object","required":["code","delivery_note_type","source_branch_id","document_datetime"],"title":"DeliveryNoteUpdate"},"ExpenseDocumentCreate":{"properties":{"code":{"type":"string","maxLength":32,"minLength":1,"title":"Code"},"supplier_id":{"type":"string","format":"uuid","title":"Supplier Id"},"document_type":{"type":"string","enum":["expense","procurement","stock_procurement","service_cost"],"title":"Document Type"},"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"document_datetime":{"type":"string","format":"date-time","title":"Document Datetime"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"lines":{"items":{"$ref":"#/components/schemas/ExpenseDocumentLineInput"},"type":"array","title":"Lines"}},"type":"object","required":["code","supplier_id","document_type","document_datetime"],"title":"ExpenseDocumentCreate"},"ExpenseDocumentLineInput":{"properties":{"description":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Description"},"inventory_item_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Inventory Item Id"},"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"quantity":{"type":"number","exclusiveMinimum":0.0,"title":"Quantity","default":1},"unit_cost":{"type":"number","minimum":0.0,"title":"Unit Cost","default":0},"line_total":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Line Total"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"ExpenseDocumentLineInput"},"ExpenseDocumentLineResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"expense_document_id":{"type":"string","format":"uuid","title":"Expense Document Id"},"sort_order":{"type":"integer","title":"Sort Order"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"inventory_item_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Inventory Item Id"},"inventory_item_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inventory Item Code"},"inventory_item_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inventory Item Name"},"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"branch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Name"},"quantity":{"type":"number","title":"Quantity"},"unit_cost":{"type":"number","title":"Unit Cost"},"line_total":{"type":"number","title":"Line Total"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","created_at","updated_at","is_active","expense_document_id","sort_order","quantity","unit_cost","line_total"],"title":"ExpenseDocumentLineResponse"},"ExpenseDocumentListItemResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"code":{"type":"string","title":"Code"},"supplier_id":{"type":"string","format":"uuid","title":"Supplier Id"},"supplier_name":{"type":"string","title":"Supplier Name"},"document_type":{"type":"string","enum":["expense","procurement","stock_procurement","service_cost"],"title":"Document Type"},"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"branch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Name"},"delivery_note_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Delivery Note Id"},"delivery_note_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Note Code"},"delivery_note_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Note Status"},"document_datetime":{"type":"string","format":"date-time","title":"Document Datetime"},"status":{"type":"string","enum":["draft","confirmed","cancelled"],"title":"Status"},"subtotal_amount":{"type":"number","title":"Subtotal Amount"},"total_amount":{"type":"number","title":"Total Amount"},"payable_total":{"type":"number","title":"Payable Total","default":0},"paid_amount":{"type":"number","title":"Paid Amount","default":0},"pending_amount":{"type":"number","title":"Pending Amount","default":0},"open_amount":{"type":"number","title":"Open Amount","default":0},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Confirmed At"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"},"line_count":{"type":"integer","title":"Line Count"},"stock_affecting":{"type":"boolean","title":"Stock Affecting"}},"type":"object","required":["id","created_at","updated_at","is_active","code","supplier_id","supplier_name","document_type","document_datetime","status","subtotal_amount","total_amount","line_count","stock_affecting"],"title":"ExpenseDocumentListItemResponse"},"ExpenseDocumentListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ExpenseDocumentListItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"ExpenseDocumentListResponse"},"ExpenseDocumentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"code":{"type":"string","title":"Code"},"supplier_id":{"type":"string","format":"uuid","title":"Supplier Id"},"supplier_name":{"type":"string","title":"Supplier Name"},"document_type":{"type":"string","enum":["expense","procurement","stock_procurement","service_cost"],"title":"Document Type"},"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"branch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Name"},"delivery_note_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Delivery Note Id"},"delivery_note_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Note Code"},"delivery_note_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Note Status"},"document_datetime":{"type":"string","format":"date-time","title":"Document Datetime"},"status":{"type":"string","enum":["draft","confirmed","cancelled"],"title":"Status"},"subtotal_amount":{"type":"number","title":"Subtotal Amount"},"total_amount":{"type":"number","title":"Total Amount"},"payable_total":{"type":"number","title":"Payable Total","default":0},"paid_amount":{"type":"number","title":"Paid Amount","default":0},"pending_amount":{"type":"number","title":"Pending Amount","default":0},"open_amount":{"type":"number","title":"Open Amount","default":0},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Confirmed At"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"},"line_count":{"type":"integer","title":"Line Count"},"stock_affecting":{"type":"boolean","title":"Stock Affecting"},"lines":{"items":{"$ref":"#/components/schemas/ExpenseDocumentLineResponse"},"type":"array","title":"Lines"}},"type":"object","required":["id","created_at","updated_at","is_active","code","supplier_id","supplier_name","document_type","document_datetime","status","subtotal_amount","total_amount","line_count","stock_affecting","lines"],"title":"ExpenseDocumentResponse"},"ExpenseDocumentUpdate":{"properties":{"code":{"type":"string","maxLength":32,"minLength":1,"title":"Code"},"supplier_id":{"type":"string","format":"uuid","title":"Supplier Id"},"document_type":{"type":"string","enum":["expense","procurement","stock_procurement","service_cost"],"title":"Document Type"},"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"document_datetime":{"type":"string","format":"date-time","title":"Document Datetime"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"lines":{"items":{"$ref":"#/components/schemas/ExpenseDocumentLineInput"},"type":"array","title":"Lines"}},"type":"object","required":["code","supplier_id","document_type","document_datetime"],"title":"ExpenseDocumentUpdate"},"ExtraChargeProductCreate":{"properties":{"code":{"type":"string","maxLength":32,"minLength":1,"title":"Code"},"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Description"},"pricing_mode":{"type":"string","enum":["fixed","per_day","per_unit"],"title":"Pricing Mode","default":"fixed"},"price_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Price Amount","default":"0.00"},"default_quantity":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Default Quantity"},"taxable":{"type":"boolean","title":"Taxable","default":true},"sort_order":{"type":"integer","minimum":0.0,"title":"Sort Order","default":0},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["code","name"],"title":"ExtraChargeProductCreate"},"ExtraChargeProductListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ExtraChargeProductResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"ExtraChargeProductListResponse"},"ExtraChargeProductResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"pricing_mode":{"type":"string","enum":["fixed","per_day","per_unit"],"title":"Pricing Mode","default":"fixed"},"price_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Price Amount"},"default_quantity":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Default Quantity"},"taxable":{"type":"boolean","title":"Taxable","default":true},"sort_order":{"type":"integer","title":"Sort Order","default":0},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","created_at","updated_at","is_active","code","name","price_amount"],"title":"ExtraChargeProductResponse"},"ExtraChargeProductUpdate":{"properties":{"code":{"anyOf":[{"type":"string","maxLength":32,"minLength":1},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Description"},"pricing_mode":{"anyOf":[{"type":"string","enum":["fixed","per_day","per_unit"]},{"type":"null"}],"title":"Pricing Mode"},"price_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Price Amount"},"default_quantity":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Default Quantity"},"taxable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Taxable"},"sort_order":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Sort Order"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"ExtraChargeProductUpdate"},"FleetOptimizationBranchBreakdownItemResponse":{"properties":{"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"branch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Name"},"active_vehicles":{"type":"integer","title":"Active Vehicles"},"total_reservation_hours":{"type":"number","title":"Total Reservation Hours"},"total_idle_hours":{"type":"number","title":"Total Idle Hours"},"utilization_percentage":{"type":"number","title":"Utilization Percentage"},"soft_allocations_count":{"type":"integer","title":"Soft Allocations Count","default":0},"hard_allocations_count":{"type":"integer","title":"Hard Allocations Count","default":0},"reallocation_opportunities_count":{"type":"integer","title":"Reallocation Opportunities Count"}},"type":"object","required":["active_vehicles","total_reservation_hours","total_idle_hours","utilization_percentage","reallocation_opportunities_count"],"title":"FleetOptimizationBranchBreakdownItemResponse"},"FleetOptimizationGapItemResponse":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_display_name":{"type":"string","title":"Vehicle Display Name"},"gap_start":{"type":"string","format":"date-time","title":"Gap Start"},"gap_end":{"type":"string","format":"date-time","title":"Gap End"},"gap_duration_hours":{"type":"number","title":"Gap Duration Hours"},"before_reservation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Before Reservation Id"},"after_reservation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"After Reservation Id"}},"type":"object","required":["vehicle_id","vehicle_display_name","gap_start","gap_end","gap_duration_hours"],"title":"FleetOptimizationGapItemResponse"},"FleetOptimizationGapListResponse":{"properties":{"period_start":{"type":"string","format":"date","title":"Period Start"},"period_end":{"type":"string","format":"date","title":"Period End"},"items":{"items":{"$ref":"#/components/schemas/FleetOptimizationGapItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total","default":0}},"type":"object","required":["period_start","period_end"],"title":"FleetOptimizationGapListResponse"},"FleetOptimizationGroupedSummariesResponse":{"properties":{"by_branch":{"items":{"$ref":"#/components/schemas/FleetOptimizationGroupedSummaryItemResponse"},"type":"array","title":"By Branch"},"by_category":{"items":{"$ref":"#/components/schemas/FleetOptimizationGroupedSummaryItemResponse"},"type":"array","title":"By Category"},"by_branch_category":{"items":{"$ref":"#/components/schemas/FleetOptimizationGroupedSummaryItemResponse"},"type":"array","title":"By Branch Category"},"by_optimization_rating":{"items":{"$ref":"#/components/schemas/FleetOptimizationGroupedSummaryItemResponse"},"type":"array","title":"By Optimization Rating"}},"type":"object","title":"FleetOptimizationGroupedSummariesResponse"},"FleetOptimizationGroupedSummaryItemResponse":{"properties":{"grouping_type":{"type":"string","enum":["branch","category","branch_category","optimization_rating"],"title":"Grouping Type"},"group_key":{"type":"string","title":"Group Key"},"group_label":{"type":"string","title":"Group Label"},"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"branch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Name"},"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"category_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Code"},"category_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Name"},"optimization_rating":{"anyOf":[{"type":"string","enum":["A","B","C"]},{"type":"null"}],"title":"Optimization Rating"},"active_vehicles":{"type":"integer","title":"Active Vehicles"},"total_reservation_hours":{"type":"number","title":"Total Reservation Hours"},"total_idle_hours":{"type":"number","title":"Total Idle Hours"},"utilization_percentage":{"type":"number","title":"Utilization Percentage"},"soft_allocations_count":{"type":"integer","title":"Soft Allocations Count"},"hard_allocations_count":{"type":"integer","title":"Hard Allocations Count"},"reallocation_opportunities_count":{"type":"integer","title":"Reallocation Opportunities Count"}},"type":"object","required":["grouping_type","group_key","group_label","active_vehicles","total_reservation_hours","total_idle_hours","utilization_percentage","soft_allocations_count","hard_allocations_count","reallocation_opportunities_count"],"title":"FleetOptimizationGroupedSummaryItemResponse"},"FleetOptimizationHighlightsResponse":{"properties":{"highest_utilized_vehicle":{"anyOf":[{"$ref":"#/components/schemas/FleetOptimizationSummaryVehicleResponse"},{"type":"null"}]},"lowest_utilized_vehicle":{"anyOf":[{"$ref":"#/components/schemas/FleetOptimizationSummaryVehicleResponse"},{"type":"null"}]},"largest_idle_gap":{"anyOf":[{"$ref":"#/components/schemas/FleetOptimizationSummaryGapResponse"},{"type":"null"}]},"vehicles_with_opportunities_count":{"type":"integer","title":"Vehicles With Opportunities Count","default":0},"vehicles_with_rating_a_count":{"type":"integer","title":"Vehicles With Rating A Count","default":0},"vehicles_with_rating_c_count":{"type":"integer","title":"Vehicles With Rating C Count","default":0}},"type":"object","title":"FleetOptimizationHighlightsResponse"},"FleetOptimizationOpportunityItemResponse":{"properties":{"reservation_id":{"type":"string","format":"uuid","title":"Reservation Id"},"current_vehicle":{"$ref":"#/components/schemas/ReservationReallocationVehicleOptionResponse"},"suggested_vehicle":{"$ref":"#/components/schemas/ReservationReallocationVehicleOptionResponse"},"score_improvement":{"type":"number","title":"Score Improvement"},"explanation":{"items":{"type":"string"},"type":"array","title":"Explanation"},"severity":{"type":"string","enum":["low","medium","high"],"title":"Severity"}},"type":"object","required":["reservation_id","current_vehicle","suggested_vehicle","score_improvement","severity"],"title":"FleetOptimizationOpportunityItemResponse"},"FleetOptimizationOpportunityListResponse":{"properties":{"period_start":{"type":"string","format":"date","title":"Period Start"},"period_end":{"type":"string","format":"date","title":"Period End"},"items":{"items":{"$ref":"#/components/schemas/FleetOptimizationOpportunityItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total","default":0}},"type":"object","required":["period_start","period_end"],"title":"FleetOptimizationOpportunityListResponse"},"FleetOptimizationOverviewResponse":{"properties":{"period_start":{"type":"string","format":"date","title":"Period Start"},"period_end":{"type":"string","format":"date","title":"Period End"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"total_vehicles":{"type":"integer","title":"Total Vehicles"},"active_vehicles":{"type":"integer","title":"Active Vehicles"},"utilization_percentage":{"type":"number","title":"Utilization Percentage"},"total_reservations":{"type":"integer","title":"Total Reservations"},"soft_allocations_count":{"type":"integer","title":"Soft Allocations Count"},"hard_allocations_count":{"type":"integer","title":"Hard Allocations Count"},"soft_allocation_ratio_percentage":{"type":"number","title":"Soft Allocation Ratio Percentage"},"hard_allocation_ratio_percentage":{"type":"number","title":"Hard Allocation Ratio Percentage"},"total_idle_hours":{"type":"number","title":"Total Idle Hours"},"high_utilization_vehicles":{"type":"integer","title":"High Utilization Vehicles"},"underutilized_vehicles":{"type":"integer","title":"Underutilized Vehicles"},"optimization_health_rating":{"type":"string","enum":["A","B","C"],"title":"Optimization Health Rating"},"highlights":{"$ref":"#/components/schemas/FleetOptimizationHighlightsResponse"},"branch_breakdown":{"items":{"$ref":"#/components/schemas/FleetOptimizationBranchBreakdownItemResponse"},"type":"array","title":"Branch Breakdown"},"grouped_summaries":{"$ref":"#/components/schemas/FleetOptimizationGroupedSummariesResponse"},"rankings":{"$ref":"#/components/schemas/FleetOptimizationRankingsResponse"},"shortlists":{"$ref":"#/components/schemas/FleetOptimizationShortlistsResponse"}},"type":"object","required":["period_start","period_end","generated_at","total_vehicles","active_vehicles","utilization_percentage","total_reservations","soft_allocations_count","hard_allocations_count","soft_allocation_ratio_percentage","hard_allocation_ratio_percentage","total_idle_hours","high_utilization_vehicles","underutilized_vehicles","optimization_health_rating","highlights","grouped_summaries","rankings","shortlists"],"title":"FleetOptimizationOverviewResponse"},"FleetOptimizationRankingsResponse":{"properties":{"most_utilized_vehicles":{"items":{"$ref":"#/components/schemas/FleetOptimizationVehicleRankingItemResponse"},"type":"array","title":"Most Utilized Vehicles"},"least_utilized_vehicles":{"items":{"$ref":"#/components/schemas/FleetOptimizationVehicleRankingItemResponse"},"type":"array","title":"Least Utilized Vehicles"},"highest_idle_hours_vehicles":{"items":{"$ref":"#/components/schemas/FleetOptimizationVehicleRankingItemResponse"},"type":"array","title":"Highest Idle Hours Vehicles"},"best_average_optimization_score_vehicles":{"items":{"$ref":"#/components/schemas/FleetOptimizationVehicleRankingItemResponse"},"type":"array","title":"Best Average Optimization Score Vehicles"},"worst_average_optimization_score_vehicles":{"items":{"$ref":"#/components/schemas/FleetOptimizationVehicleRankingItemResponse"},"type":"array","title":"Worst Average Optimization Score Vehicles"},"vehicles_with_most_open_opportunities":{"items":{"$ref":"#/components/schemas/FleetOptimizationVehicleRankingItemResponse"},"type":"array","title":"Vehicles With Most Open Opportunities"}},"type":"object","title":"FleetOptimizationRankingsResponse"},"FleetOptimizationReservationContributionItemResponse":{"properties":{"reservation_id":{"type":"string","format":"uuid","title":"Reservation Id"},"reservation_code":{"type":"string","title":"Reservation Code"},"customer_name":{"type":"string","title":"Customer Name"},"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"end_datetime":{"type":"string","format":"date-time","title":"End Datetime"},"reservation_hours":{"type":"number","title":"Reservation Hours"},"allocation_type":{"anyOf":[{"type":"string","enum":["soft","hard"]},{"type":"null"}],"title":"Allocation Type"},"optimization_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Optimization Score"},"status":{"type":"string","title":"Status"}},"type":"object","required":["reservation_id","reservation_code","customer_name","start_datetime","end_datetime","reservation_hours","status"],"title":"FleetOptimizationReservationContributionItemResponse"},"FleetOptimizationShortlistsResponse":{"properties":{"vehicles_needing_attention":{"items":{"$ref":"#/components/schemas/FleetOptimizationVehicleRankingItemResponse"},"type":"array","title":"Vehicles Needing Attention"},"largest_gaps_worth_reviewing":{"items":{"$ref":"#/components/schemas/FleetOptimizationGapItemResponse"},"type":"array","title":"Largest Gaps Worth Reviewing"},"soft_allocations_most_worth_checking":{"items":{"$ref":"#/components/schemas/FleetOptimizationOpportunityItemResponse"},"type":"array","title":"Soft Allocations Most Worth Checking"},"lowest_performing_branch_category_combinations":{"items":{"$ref":"#/components/schemas/FleetOptimizationGroupedSummaryItemResponse"},"type":"array","title":"Lowest Performing Branch Category Combinations"}},"type":"object","title":"FleetOptimizationShortlistsResponse"},"FleetOptimizationSummaryGapResponse":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_display_name":{"type":"string","title":"Vehicle Display Name"},"gap_start":{"type":"string","format":"date-time","title":"Gap Start"},"gap_end":{"type":"string","format":"date-time","title":"Gap End"},"gap_duration_hours":{"type":"number","title":"Gap Duration Hours"}},"type":"object","required":["vehicle_id","vehicle_display_name","gap_start","gap_end","gap_duration_hours"],"title":"FleetOptimizationSummaryGapResponse"},"FleetOptimizationSummaryVehicleResponse":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_display_name":{"type":"string","title":"Vehicle Display Name"},"utilization_percentage":{"type":"number","title":"Utilization Percentage"},"optimization_rating":{"type":"string","enum":["A","B","C"],"title":"Optimization Rating"}},"type":"object","required":["vehicle_id","vehicle_display_name","utilization_percentage","optimization_rating"],"title":"FleetOptimizationSummaryVehicleResponse"},"FleetOptimizationVehicleDrilldownResponse":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_code":{"type":"string","title":"Vehicle Code"},"vehicle_plate_number":{"type":"string","title":"Vehicle Plate Number"},"vehicle_display_name":{"type":"string","title":"Vehicle Display Name"},"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"category_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Code"},"category_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Name"},"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"},"location_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Name"},"utilization_percentage":{"type":"number","title":"Utilization Percentage"},"total_reservation_hours":{"type":"number","title":"Total Reservation Hours"},"total_idle_hours":{"type":"number","title":"Total Idle Hours"},"allocation_score_avg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Allocation Score Avg"},"soft_allocations_count":{"type":"integer","title":"Soft Allocations Count"},"hard_allocations_count":{"type":"integer","title":"Hard Allocations Count"},"optimization_rating":{"type":"string","enum":["A","B","C"],"title":"Optimization Rating"},"gaps":{"items":{"$ref":"#/components/schemas/FleetOptimizationGapItemResponse"},"type":"array","title":"Gaps"},"reservations":{"items":{"$ref":"#/components/schemas/FleetOptimizationReservationContributionItemResponse"},"type":"array","title":"Reservations"},"has_reallocation_opportunity":{"type":"boolean","title":"Has Reallocation Opportunity","default":false},"open_reallocation_opportunities_count":{"type":"integer","title":"Open Reallocation Opportunities Count","default":0}},"type":"object","required":["vehicle_id","vehicle_code","vehicle_plate_number","vehicle_display_name","utilization_percentage","total_reservation_hours","total_idle_hours","soft_allocations_count","hard_allocations_count","optimization_rating"],"title":"FleetOptimizationVehicleDrilldownResponse"},"FleetOptimizationVehiclePerformanceItemResponse":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_code":{"type":"string","title":"Vehicle Code"},"vehicle_plate_number":{"type":"string","title":"Vehicle Plate Number"},"vehicle_display_name":{"type":"string","title":"Vehicle Display Name"},"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"category_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Code"},"category_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Name"},"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"},"location_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Name"},"utilization_percentage":{"type":"number","title":"Utilization Percentage"},"total_reservation_hours":{"type":"number","title":"Total Reservation Hours"},"total_idle_hours":{"type":"number","title":"Total Idle Hours"},"allocation_score_avg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Allocation Score Avg"},"soft_allocations_count":{"type":"integer","title":"Soft Allocations Count"},"hard_allocations_count":{"type":"integer","title":"Hard Allocations Count"},"optimization_rating":{"type":"string","enum":["A","B","C"],"title":"Optimization Rating"},"has_gaps":{"type":"boolean","title":"Has Gaps","default":false},"has_reallocation_opportunity":{"type":"boolean","title":"Has Reallocation Opportunity","default":false},"open_reallocation_opportunities_count":{"type":"integer","title":"Open Reallocation Opportunities Count","default":0}},"type":"object","required":["vehicle_id","vehicle_code","vehicle_plate_number","vehicle_display_name","utilization_percentage","total_reservation_hours","total_idle_hours","soft_allocations_count","hard_allocations_count","optimization_rating"],"title":"FleetOptimizationVehiclePerformanceItemResponse"},"FleetOptimizationVehiclePerformanceResponse":{"properties":{"period_start":{"type":"string","format":"date","title":"Period Start"},"period_end":{"type":"string","format":"date","title":"Period End"},"items":{"items":{"$ref":"#/components/schemas/FleetOptimizationVehiclePerformanceItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total","default":0},"selected_vehicle":{"anyOf":[{"$ref":"#/components/schemas/FleetOptimizationVehicleDrilldownResponse"},{"type":"null"}]}},"type":"object","required":["period_start","period_end"],"title":"FleetOptimizationVehiclePerformanceResponse"},"FleetOptimizationVehicleRankingItemResponse":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_code":{"type":"string","title":"Vehicle Code"},"vehicle_plate_number":{"type":"string","title":"Vehicle Plate Number"},"vehicle_display_name":{"type":"string","title":"Vehicle Display Name"},"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"category_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Code"},"category_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Name"},"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"},"location_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Name"},"utilization_percentage":{"type":"number","title":"Utilization Percentage"},"total_idle_hours":{"type":"number","title":"Total Idle Hours"},"allocation_score_avg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Allocation Score Avg"},"soft_allocations_count":{"type":"integer","title":"Soft Allocations Count"},"hard_allocations_count":{"type":"integer","title":"Hard Allocations Count"},"optimization_rating":{"type":"string","enum":["A","B","C"],"title":"Optimization Rating"},"open_reallocation_opportunities_count":{"type":"integer","title":"Open Reallocation Opportunities Count","default":0}},"type":"object","required":["vehicle_id","vehicle_code","vehicle_plate_number","vehicle_display_name","utilization_percentage","total_idle_hours","soft_allocations_count","hard_allocations_count","optimization_rating"],"title":"FleetOptimizationVehicleRankingItemResponse"},"GuaranteeCreate":{"properties":{"rental_id":{"type":"string","format":"uuid","title":"Rental Id"},"customer_id":{"type":"string","format":"uuid","title":"Customer Id"},"guarantee_code":{"type":"string","maxLength":64,"minLength":1,"title":"Guarantee Code"},"guarantee_datetime":{"type":"string","format":"date-time","title":"Guarantee Datetime"},"method":{"type":"string","enum":["cash","card","bank_transfer","pos","other"],"title":"Method"},"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount"},"currency_code":{"type":"string","maxLength":3,"minLength":3,"title":"Currency Code","default":"EUR"},"status":{"type":"string","enum":["pending","held","released","partially_released","retained","cancelled"],"title":"Status","default":"pending"},"authorization_code":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Authorization Code"},"external_transaction_reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"External Transaction Reference"},"held_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Held At"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At"},"released_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Released Amount"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["rental_id","customer_id","guarantee_code","guarantee_datetime","method","amount"],"title":"GuaranteeCreate"},"GuaranteeListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/GuaranteeResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"GuaranteeListResponse"},"GuaranteeResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"rental_id":{"type":"string","format":"uuid","title":"Rental Id"},"customer_id":{"type":"string","format":"uuid","title":"Customer Id"},"guarantee_code":{"type":"string","title":"Guarantee Code"},"guarantee_datetime":{"type":"string","format":"date-time","title":"Guarantee Datetime"},"method":{"type":"string","enum":["cash","card","bank_transfer","pos","other"],"title":"Method"},"amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount"},"currency_code":{"type":"string","title":"Currency Code"},"status":{"type":"string","enum":["pending","held","released","partially_released","retained","cancelled"],"title":"Status"},"authorization_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization Code"},"external_transaction_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Transaction Reference"},"held_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Held At"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At"},"released_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Released Amount"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By User Id"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"}},"type":"object","required":["id","created_at","updated_at","is_active","rental_id","customer_id","guarantee_code","guarantee_datetime","method","amount","currency_code","status"],"title":"GuaranteeResponse"},"GuaranteeStatusUpdate":{"properties":{"status":{"type":"string","enum":["pending","held","released","partially_released","retained","cancelled"],"title":"Status"},"released_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Released Amount"}},"type":"object","required":["status"],"title":"GuaranteeStatusUpdate"},"GuaranteeUpdate":{"properties":{"rental_id":{"type":"string","format":"uuid","title":"Rental Id"},"customer_id":{"type":"string","format":"uuid","title":"Customer Id"},"guarantee_code":{"type":"string","maxLength":64,"minLength":1,"title":"Guarantee Code"},"guarantee_datetime":{"type":"string","format":"date-time","title":"Guarantee Datetime"},"method":{"type":"string","enum":["cash","card","bank_transfer","pos","other"],"title":"Method"},"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount"},"currency_code":{"type":"string","maxLength":3,"minLength":3,"title":"Currency Code","default":"EUR"},"status":{"type":"string","enum":["pending","held","released","partially_released","retained","cancelled"],"title":"Status","default":"pending"},"authorization_code":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Authorization Code"},"external_transaction_reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"External Transaction Reference"},"held_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Held At"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At"},"released_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Released Amount"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["rental_id","customer_id","guarantee_code","guarantee_datetime","method","amount"],"title":"GuaranteeUpdate"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InsuranceProductCreate":{"properties":{"code":{"type":"string","maxLength":32,"minLength":1,"title":"Code"},"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Description"},"pricing_mode":{"type":"string","enum":["fixed","per_day"],"title":"Pricing Mode","default":"fixed"},"price_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Price Amount","default":"0.00"},"default_excess_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Default Excess Amount"},"sort_order":{"type":"integer","minimum":0.0,"title":"Sort Order","default":0},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["code","name"],"title":"InsuranceProductCreate"},"InsuranceProductListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/InsuranceProductResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"InsuranceProductListResponse"},"InsuranceProductResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"pricing_mode":{"type":"string","enum":["fixed","per_day"],"title":"Pricing Mode","default":"fixed"},"price_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Price Amount"},"default_excess_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Default Excess Amount"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","created_at","updated_at","is_active","code","name","price_amount"],"title":"InsuranceProductResponse"},"InsuranceProductUpdate":{"properties":{"code":{"anyOf":[{"type":"string","maxLength":32,"minLength":1},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Description"},"pricing_mode":{"anyOf":[{"type":"string","enum":["fixed","per_day"]},{"type":"null"}],"title":"Pricing Mode"},"price_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Price Amount"},"default_excess_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Default Excess Amount"},"sort_order":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Sort Order"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"InsuranceProductUpdate"},"InsurerCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["name"],"title":"InsurerCreate"},"InsurerListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/InsurerResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"InsurerListResponse"},"InsurerResponse":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["name","id","created_at","updated_at","is_active"],"title":"InsurerResponse"},"InsurerUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"InsurerUpdate"},"InventoryAssignmentCreate":{"properties":{"rental_id":{"type":"string","format":"uuid","title":"Rental Id"},"branch_id":{"type":"string","format":"uuid","title":"Branch Id"},"vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Id"},"quantity":{"type":"number","exclusiveMinimum":0.0,"title":"Quantity"},"assigned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Assigned At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["rental_id","branch_id","quantity"],"title":"InventoryAssignmentCreate"},"InventoryAssignmentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"inventory_item_id":{"type":"string","format":"uuid","title":"Inventory Item Id"},"rental_id":{"type":"string","format":"uuid","title":"Rental Id"},"rental_code":{"type":"string","title":"Rental Code"},"branch_id":{"type":"string","format":"uuid","title":"Branch Id"},"branch_name":{"type":"string","title":"Branch Name"},"vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Id"},"vehicle_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Code"},"quantity":{"type":"number","title":"Quantity"},"status":{"type":"string","enum":["assigned","returned","cancelled"],"title":"Status"},"assigned_at":{"type":"string","format":"date-time","title":"Assigned At"},"returned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Returned At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","created_at","updated_at","is_active","inventory_item_id","rental_id","rental_code","branch_id","branch_name","quantity","status","assigned_at"],"title":"InventoryAssignmentResponse"},"InventoryAssignmentStatusUpdate":{"properties":{"status":{"type":"string","enum":["returned","cancelled"],"title":"Status"},"returned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Returned At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["status"],"title":"InventoryAssignmentStatusUpdate"},"InventoryItemCreate":{"properties":{"code":{"type":"string","maxLength":32,"minLength":1,"title":"Code"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"item_category":{"type":"string","enum":["accessory","consumable","equipment","other"],"title":"Item Category"},"item_type":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Item Type"},"unit_of_measure":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Unit Of Measure","default":"pcs"},"is_serialized":{"type":"boolean","title":"Is Serialized","default":false},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["code","name","item_category"],"title":"InventoryItemCreate"},"InventoryItemListItemResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"item_category":{"type":"string","enum":["accessory","consumable","equipment","other"],"title":"Item Category"},"item_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Item Type"},"unit_of_measure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Of Measure"},"is_serialized":{"type":"boolean","title":"Is Serialized"},"total_quantity_on_hand":{"type":"number","title":"Total Quantity On Hand"},"total_quantity_assigned":{"type":"number","title":"Total Quantity Assigned"},"total_quantity_available":{"type":"number","title":"Total Quantity Available"},"selected_branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Selected Branch Id"},"selected_branch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Branch Name"},"selected_branch_quantity_on_hand":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Selected Branch Quantity On Hand"},"selected_branch_quantity_assigned":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Selected Branch Quantity Assigned"},"selected_branch_quantity_available":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Selected Branch Quantity Available"}},"type":"object","required":["id","created_at","updated_at","is_active","code","name","item_category","is_serialized","total_quantity_on_hand","total_quantity_assigned","total_quantity_available"],"title":"InventoryItemListItemResponse"},"InventoryItemResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"item_category":{"type":"string","enum":["accessory","consumable","equipment","other"],"title":"Item Category"},"item_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Item Type"},"unit_of_measure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Of Measure"},"is_serialized":{"type":"boolean","title":"Is Serialized"},"total_quantity_on_hand":{"type":"number","title":"Total Quantity On Hand"},"total_quantity_assigned":{"type":"number","title":"Total Quantity Assigned"},"total_quantity_available":{"type":"number","title":"Total Quantity Available"},"selected_branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Selected Branch Id"},"selected_branch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Branch Name"},"selected_branch_quantity_on_hand":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Selected Branch Quantity On Hand"},"selected_branch_quantity_assigned":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Selected Branch Quantity Assigned"},"selected_branch_quantity_available":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Selected Branch Quantity Available"},"stock_balances":{"items":{"$ref":"#/components/schemas/InventoryStockBalanceResponse"},"type":"array","title":"Stock Balances"},"movements":{"items":{"$ref":"#/components/schemas/InventoryMovementResponse"},"type":"array","title":"Movements"},"assignments":{"items":{"$ref":"#/components/schemas/InventoryAssignmentResponse"},"type":"array","title":"Assignments"}},"type":"object","required":["id","created_at","updated_at","is_active","code","name","item_category","is_serialized","total_quantity_on_hand","total_quantity_assigned","total_quantity_available","stock_balances","movements","assignments"],"title":"InventoryItemResponse"},"InventoryItemStatusUpdate":{"properties":{"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["is_active"],"title":"InventoryItemStatusUpdate"},"InventoryItemUpdate":{"properties":{"code":{"anyOf":[{"type":"string","maxLength":32,"minLength":1},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"item_category":{"anyOf":[{"type":"string","enum":["accessory","consumable","equipment","other"]},{"type":"null"}],"title":"Item Category"},"item_type":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Item Type"},"unit_of_measure":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Unit Of Measure"},"is_serialized":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Serialized"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"InventoryItemUpdate"},"InventoryListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/InventoryItemListItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"InventoryListResponse"},"InventoryMovementCreate":{"properties":{"movement_type":{"type":"string","enum":["stock_in","stock_out","transfer","adjustment"],"title":"Movement Type"},"branch_id":{"type":"string","format":"uuid","title":"Branch Id"},"counterparty_branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Counterparty Branch Id"},"related_rental_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Related Rental Id"},"related_vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Related Vehicle Id"},"quantity":{"type":"number","exclusiveMinimum":0.0,"title":"Quantity"},"movement_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Movement Datetime"},"reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Reference"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"adjustment_direction":{"anyOf":[{"type":"string","enum":["increase","decrease"]},{"type":"null"}],"title":"Adjustment Direction"}},"type":"object","required":["movement_type","branch_id","quantity"],"title":"InventoryMovementCreate"},"InventoryMovementResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"inventory_item_id":{"type":"string","format":"uuid","title":"Inventory Item Id"},"delivery_note_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Delivery Note Id"},"delivery_note_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Note Code"},"branch_id":{"type":"string","format":"uuid","title":"Branch Id"},"branch_name":{"type":"string","title":"Branch Name"},"counterparty_branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Counterparty Branch Id"},"counterparty_branch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Counterparty Branch Name"},"related_rental_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Related Rental Id"},"related_rental_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Related Rental Code"},"related_vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Related Vehicle Id"},"related_vehicle_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Related Vehicle Code"},"movement_type":{"type":"string","enum":["stock_in","stock_out","transfer","adjustment"],"title":"Movement Type"},"adjustment_direction":{"anyOf":[{"type":"string","enum":["increase","decrease"]},{"type":"null"}],"title":"Adjustment Direction"},"quantity":{"type":"number","title":"Quantity"},"movement_datetime":{"type":"string","format":"date-time","title":"Movement Datetime"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","created_at","updated_at","is_active","inventory_item_id","branch_id","branch_name","movement_type","quantity","movement_datetime"],"title":"InventoryMovementResponse"},"InventoryStockBalanceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"inventory_item_id":{"type":"string","format":"uuid","title":"Inventory Item Id"},"branch_id":{"type":"string","format":"uuid","title":"Branch Id"},"branch_name":{"type":"string","title":"Branch Name"},"quantity_on_hand":{"type":"number","title":"Quantity On Hand"},"quantity_assigned":{"type":"number","title":"Quantity Assigned"},"quantity_available":{"type":"number","title":"Quantity Available"}},"type":"object","required":["id","created_at","updated_at","is_active","inventory_item_id","branch_id","branch_name","quantity_on_hand","quantity_assigned","quantity_available"],"title":"InventoryStockBalanceResponse"},"LicensePlanCreate":{"properties":{"code":{"type":"string","maxLength":64,"minLength":1,"title":"Code"},"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"plan_type":{"type":"string","enum":["classic","transactional"],"title":"Plan Type"},"max_fleet":{"type":"integer","minimum":0.0,"title":"Max Fleet"},"max_concurrent_users":{"type":"integer","minimum":1.0,"title":"Max Concurrent Users"},"reservation_engine_enabled":{"type":"boolean","title":"Reservation Engine Enabled","default":true},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","default":"EUR"},"billing_period":{"type":"string","enum":["monthly","annual"],"title":"Billing Period","default":"monthly"},"base_fee_cents":{"type":"integer","minimum":0.0,"title":"Base Fee Cents","default":0},"annual_fee_cents":{"type":"integer","minimum":0.0,"title":"Annual Fee Cents","default":0},"per_transaction_fee_cents":{"type":"integer","minimum":0.0,"title":"Per Transaction Fee Cents","default":0},"cancellation_window_hours":{"type":"integer","maximum":720.0,"minimum":0.0,"title":"Cancellation Window Hours","default":24},"idle_timeout_minutes":{"type":"integer","maximum":1440.0,"minimum":1.0,"title":"Idle Timeout Minutes","default":30},"grace_period_days":{"type":"integer","maximum":365.0,"minimum":0.0,"title":"Grace Period Days","default":14}},"type":"object","required":["code","name","plan_type","max_fleet","max_concurrent_users"],"title":"LicensePlanCreate"},"LicensePlanResponse":{"properties":{"code":{"type":"string","maxLength":64,"minLength":1,"title":"Code"},"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"plan_type":{"type":"string","enum":["classic","transactional"],"title":"Plan Type"},"max_fleet":{"type":"integer","minimum":0.0,"title":"Max Fleet"},"max_concurrent_users":{"type":"integer","minimum":1.0,"title":"Max Concurrent Users"},"reservation_engine_enabled":{"type":"boolean","title":"Reservation Engine Enabled","default":true},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","default":"EUR"},"billing_period":{"type":"string","enum":["monthly","annual"],"title":"Billing Period","default":"monthly"},"base_fee_cents":{"type":"integer","minimum":0.0,"title":"Base Fee Cents","default":0},"annual_fee_cents":{"type":"integer","minimum":0.0,"title":"Annual Fee Cents","default":0},"per_transaction_fee_cents":{"type":"integer","minimum":0.0,"title":"Per Transaction Fee Cents","default":0},"cancellation_window_hours":{"type":"integer","maximum":720.0,"minimum":0.0,"title":"Cancellation Window Hours","default":24},"idle_timeout_minutes":{"type":"integer","maximum":1440.0,"minimum":1.0,"title":"Idle Timeout Minutes","default":30},"grace_period_days":{"type":"integer","maximum":365.0,"minimum":0.0,"title":"Grace Period Days","default":14},"id":{"type":"string","format":"uuid","title":"Id"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["code","name","plan_type","max_fleet","max_concurrent_users","id","is_active","created_at","updated_at"],"title":"LicensePlanResponse"},"LicensePlanUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"max_fleet":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Fleet"},"max_concurrent_users":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Concurrent Users"},"reservation_engine_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reservation Engine Enabled"},"base_fee_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Base Fee Cents"},"annual_fee_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Annual Fee Cents"},"per_transaction_fee_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Per Transaction Fee Cents"},"cancellation_window_hours":{"anyOf":[{"type":"integer","maximum":720.0,"minimum":0.0},{"type":"null"}],"title":"Cancellation Window Hours"},"idle_timeout_minutes":{"anyOf":[{"type":"integer","maximum":1440.0,"minimum":1.0},{"type":"null"}],"title":"Idle Timeout Minutes"},"grace_period_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":0.0},{"type":"null"}],"title":"Grace Period Days"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"LicensePlanUpdate"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"OfferCreate":{"properties":{"code":{"type":"string","maxLength":32,"minLength":1,"title":"Code"},"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"pricelist_id":{"type":"string","format":"uuid","title":"Pricelist Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid To"},"priority":{"type":"integer","maximum":9999.0,"minimum":1.0,"title":"Priority","default":100},"manual_select_allowed":{"type":"boolean","title":"Manual Select Allowed","default":true},"auto_select_enabled":{"type":"boolean","title":"Auto Select Enabled","default":true},"channel":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Channel"},"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"customer_type_scope":{"type":"string","enum":["all","individual","company"],"title":"Customer Type Scope","default":"all"},"adjustment_type":{"type":"string","enum":["percentage","fixed"],"title":"Adjustment Type","default":"percentage"},"adjustment_scope":{"type":"string","enum":["base_rental","subtotal"],"title":"Adjustment Scope","default":"base_rental"},"adjustment_value":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Adjustment Value","default":"0.00"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["code","name","pricelist_id"],"title":"OfferCreate"},"OfferListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/OfferResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"OfferListResponse"},"OfferResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"pricelist_id":{"type":"string","format":"uuid","title":"Pricelist Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid To"},"priority":{"type":"integer","title":"Priority","default":100},"manual_select_allowed":{"type":"boolean","title":"Manual Select Allowed","default":true},"auto_select_enabled":{"type":"boolean","title":"Auto Select Enabled","default":true},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"customer_type_scope":{"type":"string","enum":["all","individual","company"],"title":"Customer Type Scope","default":"all"},"adjustment_type":{"type":"string","enum":["percentage","fixed"],"title":"Adjustment Type","default":"percentage"},"adjustment_scope":{"type":"string","enum":["base_rental","subtotal"],"title":"Adjustment Scope","default":"base_rental"},"adjustment_value":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Adjustment Value"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","created_at","updated_at","is_active","code","name","pricelist_id","adjustment_value"],"title":"OfferResponse"},"OfferUpdate":{"properties":{"code":{"anyOf":[{"type":"string","maxLength":32,"minLength":1},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Name"},"pricelist_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pricelist Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid To"},"priority":{"anyOf":[{"type":"integer","maximum":9999.0,"minimum":1.0},{"type":"null"}],"title":"Priority"},"manual_select_allowed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Manual Select Allowed"},"auto_select_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Select Enabled"},"channel":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Channel"},"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"customer_type_scope":{"anyOf":[{"type":"string","enum":["all","individual","company"]},{"type":"null"}],"title":"Customer Type Scope"},"adjustment_type":{"anyOf":[{"type":"string","enum":["percentage","fixed"]},{"type":"null"}],"title":"Adjustment Type"},"adjustment_scope":{"anyOf":[{"type":"string","enum":["base_rental","subtotal"]},{"type":"null"}],"title":"Adjustment Scope"},"adjustment_value":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Adjustment Value"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"OfferUpdate"},"PayableDocumentListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PayableDocumentResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"PayableDocumentListResponse"},"PayableDocumentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"code":{"type":"string","title":"Code"},"supplier_id":{"type":"string","format":"uuid","title":"Supplier Id"},"supplier_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Name"},"document_type":{"type":"string","title":"Document Type"},"document_datetime":{"type":"string","format":"date-time","title":"Document Datetime"},"status":{"type":"string","title":"Status"},"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"branch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Name"},"payable_total":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Payable Total"},"paid_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Paid Amount"},"pending_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Pending Amount"},"open_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Open Amount"},"delivery_note_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Delivery Note Id"},"delivery_note_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Note Code"}},"type":"object","required":["id","created_at","updated_at","is_active","code","supplier_id","document_type","document_datetime","status","payable_total","paid_amount","pending_amount","open_amount"],"title":"PayableDocumentResponse"},"PaymentAllocationInput":{"properties":{"rental_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rental Id"},"expense_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Expense Document Id"},"billing_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Billing Document Id"},"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["amount"],"title":"PaymentAllocationInput"},"PaymentAllocationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"payment_id":{"type":"string","format":"uuid","title":"Payment Id"},"rental_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rental Id"},"rental_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rental Code"},"expense_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Expense Document Id"},"expense_document_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expense Document Code"},"expense_document_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expense Document Status"},"billing_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Billing Document Id"},"billing_document_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Document Code"},"billing_document_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Document Type"},"billing_document_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Document Status"},"amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","created_at","updated_at","is_active","payment_id","amount"],"title":"PaymentAllocationResponse"},"PaymentCreate":{"properties":{"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"supplier_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Supplier Id"},"payment_code":{"type":"string","maxLength":64,"minLength":1,"title":"Payment Code"},"payment_direction":{"type":"string","enum":["incoming","outgoing"],"title":"Payment Direction"},"payment_type":{"type":"string","enum":["collection","supplier_payment","advance"],"title":"Payment Type"},"payment_datetime":{"type":"string","format":"date-time","title":"Payment Datetime"},"method":{"type":"string","enum":["cash","card","bank_transfer","pos","other"],"title":"Method"},"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount"},"currency_code":{"type":"string","maxLength":3,"minLength":3,"title":"Currency Code","default":"EUR"},"status":{"type":"string","enum":["pending","completed","failed","cancelled","refunded"],"title":"Status","default":"pending"},"external_transaction_reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"External Transaction Reference"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"allocations":{"items":{"$ref":"#/components/schemas/PaymentAllocationInput"},"type":"array","title":"Allocations"}},"type":"object","required":["payment_code","payment_direction","payment_type","payment_datetime","method","amount"],"title":"PaymentCreate"},"PaymentListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PaymentResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"PaymentListResponse"},"PaymentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"rental_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rental Id"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"customer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Name"},"supplier_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Supplier Id"},"supplier_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Name"},"payment_code":{"type":"string","title":"Payment Code"},"payment_direction":{"type":"string","enum":["incoming","outgoing"],"title":"Payment Direction"},"payment_type":{"type":"string","enum":["collection","supplier_payment","advance"],"title":"Payment Type"},"payment_datetime":{"type":"string","format":"date-time","title":"Payment Datetime"},"method":{"type":"string","enum":["cash","card","bank_transfer","pos","other"],"title":"Method"},"amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount"},"allocated_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Allocated Amount"},"unallocated_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Unallocated Amount"},"currency_code":{"type":"string","title":"Currency Code"},"status":{"type":"string","enum":["pending","completed","failed","cancelled","refunded"],"title":"Status"},"external_transaction_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Transaction Reference"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By User Id"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"},"allocations":{"items":{"$ref":"#/components/schemas/PaymentAllocationResponse"},"type":"array","title":"Allocations"}},"type":"object","required":["id","created_at","updated_at","is_active","payment_code","payment_direction","payment_type","payment_datetime","method","amount","allocated_amount","unallocated_amount","currency_code","status"],"title":"PaymentResponse"},"PaymentStatusUpdate":{"properties":{"status":{"type":"string","enum":["pending","completed","failed","cancelled","refunded"],"title":"Status"}},"type":"object","required":["status"],"title":"PaymentStatusUpdate"},"PaymentUpdate":{"properties":{"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"supplier_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Supplier Id"},"payment_code":{"type":"string","maxLength":64,"minLength":1,"title":"Payment Code"},"payment_direction":{"type":"string","enum":["incoming","outgoing"],"title":"Payment Direction"},"payment_type":{"type":"string","enum":["collection","supplier_payment","advance"],"title":"Payment Type"},"payment_datetime":{"type":"string","format":"date-time","title":"Payment Datetime"},"method":{"type":"string","enum":["cash","card","bank_transfer","pos","other"],"title":"Method"},"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount"},"currency_code":{"type":"string","maxLength":3,"minLength":3,"title":"Currency Code","default":"EUR"},"status":{"type":"string","enum":["pending","completed","failed","cancelled","refunded"],"title":"Status","default":"pending"},"external_transaction_reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"External Transaction Reference"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"allocations":{"items":{"$ref":"#/components/schemas/PaymentAllocationInput"},"type":"array","title":"Allocations"}},"type":"object","required":["payment_code","payment_direction","payment_type","payment_datetime","method","amount"],"title":"PaymentUpdate"},"PlannerBoardResponse":{"properties":{"start_date":{"type":"string","format":"date","title":"Start Date"},"end_date":{"type":"string","format":"date","title":"End Date"},"vehicles":{"items":{"$ref":"#/components/schemas/VehicleResponse"},"type":"array","title":"Vehicles"},"events":{"items":{"$ref":"#/components/schemas/AvailabilityEventResponse"},"type":"array","title":"Events"}},"type":"object","required":["start_date","end_date","vehicles","events"],"title":"PlannerBoardResponse"},"PricelistCandidateResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"priority":{"type":"integer","title":"Priority"},"usage_mode":{"type":"string","enum":["manual","automatic","both"],"title":"Usage Mode"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"customer_type_scope":{"type":"string","enum":["all","individual","company"],"title":"Customer Type Scope"},"rate_scope":{"anyOf":[{"type":"string","enum":["vehicle","category"]},{"type":"null"}],"title":"Rate Scope"},"billing_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Category"},"daily_rate":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Daily Rate"},"hourly_rate":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Hourly Rate"},"selection_reason":{"type":"string","title":"Selection Reason"}},"type":"object","required":["id","code","name","priority","usage_mode","customer_type_scope","selection_reason"],"title":"PricelistCandidateResponse"},"PricelistCreate":{"properties":{"code":{"type":"string","maxLength":32,"minLength":1,"title":"Code"},"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"currency_code":{"type":"string","maxLength":3,"minLength":3,"title":"Currency Code","default":"EUR"},"is_default":{"type":"boolean","title":"Is Default","default":false},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid To"},"priority":{"type":"integer","maximum":9999.0,"minimum":1.0,"title":"Priority","default":100},"usage_mode":{"type":"string","enum":["manual","automatic","both"],"title":"Usage Mode","default":"both"},"manual_select_allowed":{"type":"boolean","title":"Manual Select Allowed","default":true},"auto_select_enabled":{"type":"boolean","title":"Auto Select Enabled","default":true},"channel":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Channel"},"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"customer_type_scope":{"type":"string","enum":["all","individual","company"],"title":"Customer Type Scope","default":"all"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"rates":{"items":{"$ref":"#/components/schemas/PricelistRateCreate"},"type":"array","title":"Rates"}},"type":"object","required":["code","name"],"title":"PricelistCreate"},"PricelistListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PricelistResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"PricelistListResponse"},"PricelistRateCreate":{"properties":{"vehicle_category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Category Id"},"vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Id"},"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"billing_category":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Billing Category"},"daily_rate":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Daily Rate"},"hourly_rate":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Hourly Rate"},"minimum_days":{"type":"integer","minimum":1.0,"title":"Minimum Days","default":1},"maximum_days":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Maximum Days"},"minimum_hours":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Minimum Hours"},"maximum_hours":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Maximum Hours"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid To"},"airport_tax_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Airport Tax Amount"},"municipal_tax_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Municipal Tax Amount"},"vat_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Vat Percent"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["daily_rate"],"title":"PricelistRateCreate"},"PricelistRateResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"vehicle_category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Category Id"},"vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Id"},"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"billing_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Category"},"daily_rate":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Daily Rate"},"hourly_rate":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Hourly Rate"},"minimum_days":{"type":"integer","title":"Minimum Days","default":1},"maximum_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maximum Days"},"minimum_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minimum Hours"},"maximum_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maximum Hours"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid To"},"airport_tax_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Airport Tax Amount"},"municipal_tax_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Municipal Tax Amount"},"vat_percent":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Vat Percent"}},"type":"object","required":["id","created_at","updated_at","is_active","daily_rate"],"title":"PricelistRateResponse"},"PricelistResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"currency_code":{"type":"string","title":"Currency Code","default":"EUR"},"is_default":{"type":"boolean","title":"Is Default","default":false},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid To"},"priority":{"type":"integer","title":"Priority","default":100},"usage_mode":{"type":"string","enum":["manual","automatic","both"],"title":"Usage Mode","default":"both"},"manual_select_allowed":{"type":"boolean","title":"Manual Select Allowed","default":true},"auto_select_enabled":{"type":"boolean","title":"Auto Select Enabled","default":true},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"customer_type_scope":{"type":"string","enum":["all","individual","company"],"title":"Customer Type Scope","default":"all"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"rates":{"items":{"$ref":"#/components/schemas/PricelistRateResponse"},"type":"array","title":"Rates"}},"type":"object","required":["id","created_at","updated_at","is_active","code","name"],"title":"PricelistResponse"},"PricelistUpdate":{"properties":{"code":{"anyOf":[{"type":"string","maxLength":32,"minLength":1},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"currency_code":{"anyOf":[{"type":"string","maxLength":3,"minLength":3},{"type":"null"}],"title":"Currency Code"},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid To"},"priority":{"anyOf":[{"type":"integer","maximum":9999.0,"minimum":1.0},{"type":"null"}],"title":"Priority"},"usage_mode":{"anyOf":[{"type":"string","enum":["manual","automatic","both"]},{"type":"null"}],"title":"Usage Mode"},"manual_select_allowed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Manual Select Allowed"},"auto_select_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Select Enabled"},"channel":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Channel"},"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"customer_type_scope":{"anyOf":[{"type":"string","enum":["all","individual","company"]},{"type":"null"}],"title":"Customer Type Scope"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"rates":{"anyOf":[{"items":{"$ref":"#/components/schemas/PricelistRateCreate"},"type":"array"},{"type":"null"}],"title":"Rates"}},"type":"object","title":"PricelistUpdate"},"PricingAddonRequest":{"properties":{"product_id":{"type":"string","format":"uuid","title":"Product Id"},"quantity":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Quantity"},"included":{"type":"boolean","title":"Included","default":false}},"type":"object","required":["product_id"],"title":"PricingAddonRequest"},"PricingLineItemResponse":{"properties":{"product_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Product Id"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"name":{"type":"string","title":"Name"},"pricing_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Mode"},"quantity":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Quantity","default":"1.00"},"included":{"type":"boolean","title":"Included","default":false},"unit_price":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Unit Price","default":"0.00"},"line_total":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Line Total","default":"0.00"},"excess_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Excess Amount"},"source":{"type":"string","enum":["insurance","extra","offer"],"title":"Source"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name","source"],"title":"PricingLineItemResponse"},"PricingQuoteRequest":{"properties":{"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"end_datetime":{"type":"string","format":"date-time","title":"End Datetime"},"pickup_location_id":{"type":"string","format":"uuid","title":"Pickup Location Id"},"return_location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Return Location Id"},"office_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Office Id"},"vehicle_category_id":{"type":"string","format":"uuid","title":"Vehicle Category Id"},"vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Id"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"customer_type":{"anyOf":[{"type":"string","enum":["all","individual","company"]},{"type":"null"}],"title":"Customer Type"},"channel":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Channel","default":"desk"},"selection_mode":{"type":"string","enum":["manual","automatic"],"title":"Selection Mode","default":"automatic"},"manual_pricelist_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Manual Pricelist Id"},"manual_offer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Manual Offer Id"},"insurance_products":{"items":{"$ref":"#/components/schemas/PricingAddonRequest"},"type":"array","title":"Insurance Products"},"extra_products":{"items":{"$ref":"#/components/schemas/PricingAddonRequest"},"type":"array","title":"Extra Products"}},"type":"object","required":["start_datetime","end_datetime","pickup_location_id","vehicle_category_id"],"title":"PricingQuoteRequest"},"PricingQuoteResponse":{"properties":{"compatible_pricelists":{"items":{"$ref":"#/components/schemas/PricelistCandidateResponse"},"type":"array","title":"Compatible Pricelists"},"recommended_pricelist_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Recommended Pricelist Id"},"recommended_pricelist_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommended Pricelist Code"},"selected_pricelist_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Selected Pricelist Id"},"selected_pricelist_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Pricelist Code"},"selected_pricelist_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Pricelist Name"},"currency_code":{"type":"string","title":"Currency Code","default":"EUR"},"selection_mode":{"type":"string","enum":["manual","automatic"],"title":"Selection Mode","default":"automatic"},"selection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selection Reason"},"selected_offer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Selected Offer Id"},"selected_offer_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Offer Code"},"selected_offer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Offer Name"},"offer_selection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offer Selection Reason"},"offer_adjustment_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Offer Adjustment Amount","default":"0.00"},"rate_scope":{"anyOf":[{"type":"string","enum":["vehicle","category"]},{"type":"null"}],"title":"Rate Scope"},"billing_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Category"},"daily_rate":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Daily Rate"},"hourly_rate":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Hourly Rate"},"days_count":{"type":"integer","title":"Days Count","default":0},"hours_count":{"type":"integer","title":"Hours Count","default":0},"base_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Base Amount","default":"0.00"},"insurance_items":{"items":{"$ref":"#/components/schemas/PricingLineItemResponse"},"type":"array","title":"Insurance Items"},"extra_charge_items":{"items":{"$ref":"#/components/schemas/PricingLineItemResponse"},"type":"array","title":"Extra Charge Items"},"insurance_total":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Insurance Total","default":"0.00"},"extra_charges_total":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Extra Charges Total","default":"0.00"},"subtotal_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Subtotal Amount","default":"0.00"},"airport_tax_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Airport Tax Amount","default":"0.00"},"municipal_tax_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Municipal Tax Amount","default":"0.00"},"vat_percent":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Vat Percent"},"vat_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Vat Amount","default":"0.00"},"total_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Total Amount","default":"0.00"},"vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Id"},"vehicle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Label"},"vehicle_category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Category Id"},"vehicle_category_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Category Label"},"explanation":{"items":{"type":"string"},"type":"array","title":"Explanation"}},"type":"object","title":"PricingQuoteResponse"},"PricingReferenceDataResponse":{"properties":{"branches":{"items":{"$ref":"#/components/schemas/BranchResponse"},"type":"array","title":"Branches"},"categories":{"items":{"$ref":"#/components/schemas/VehicleCategoryResponse"},"type":"array","title":"Categories"},"vehicles":{"items":{"$ref":"#/components/schemas/VehicleResponse"},"type":"array","title":"Vehicles"},"pricelists":{"items":{"$ref":"#/components/schemas/PricelistResponse"},"type":"array","title":"Pricelists"},"offers":{"items":{"$ref":"#/components/schemas/OfferResponse"},"type":"array","title":"Offers"},"insurance_products":{"items":{"$ref":"#/components/schemas/InsuranceProductResponse"},"type":"array","title":"Insurance Products"},"extra_charge_products":{"items":{"$ref":"#/components/schemas/ExtraChargeProductResponse"},"type":"array","title":"Extra Charge Products"}},"type":"object","title":"PricingReferenceDataResponse"},"ReceivableDocumentListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ReceivableDocumentResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"ReceivableDocumentListResponse"},"ReceivableDocumentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"source_type":{"type":"string","title":"Source Type"},"document_code":{"type":"string","title":"Document Code"},"document_type":{"type":"string","title":"Document Type"},"billing_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Billing Document Id"},"rental_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rental Id"},"rental_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rental Code"},"reservation_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reservation Reference"},"contract_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Number"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"customer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Name"},"document_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Document Datetime"},"status":{"type":"string","title":"Status"},"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"expected_end_datetime":{"type":"string","format":"date-time","title":"Expected End Datetime"},"actual_end_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Actual End Datetime"},"receivable_total":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Receivable Total"},"paid_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Paid Amount"},"pending_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Pending Amount"},"open_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Open Amount"}},"type":"object","required":["id","created_at","updated_at","is_active","source_type","document_code","document_type","status","start_datetime","expected_end_datetime","receivable_total","paid_amount","pending_amount","open_amount"],"title":"ReceivableDocumentResponse"},"RentalAccidentHistoryResponse":{"properties":{"rental_id":{"type":"string","format":"uuid","title":"Rental Id"},"rental_code":{"type":"string","title":"Rental Code"},"items":{"items":{"$ref":"#/components/schemas/AccidentSummaryItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["rental_id","rental_code","items","total","limit","offset"],"title":"RentalAccidentHistoryResponse"},"RentalAccidentSummaryResponse":{"properties":{"rental_id":{"type":"string","format":"uuid","title":"Rental Id"},"rental_code":{"type":"string","title":"Rental Code"},"current_open_accidents":{"items":{"$ref":"#/components/schemas/AccidentSummaryItemResponse"},"type":"array","title":"Current Open Accidents"},"latest_accident":{"anyOf":[{"$ref":"#/components/schemas/AccidentSummaryItemResponse"},{"type":"null"}]},"history_preview":{"items":{"$ref":"#/components/schemas/AccidentSummaryItemResponse"},"type":"array","title":"History Preview"},"history_count":{"type":"integer","title":"History Count","default":0}},"type":"object","required":["rental_id","rental_code"],"title":"RentalAccidentSummaryResponse"},"RentalAdditionalDriverInput":{"properties":{"linked_customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Linked Customer Id"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"age":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":0.0},{"type":"null"}],"title":"Age"},"vat_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Vat Number"},"identifier":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Identifier"},"driving_license_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driving License Number"},"license_years":{"anyOf":[{"type":"integer","maximum":80.0,"minimum":0.0},{"type":"null"}],"title":"License Years"},"sort_order":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Sort Order"}},"type":"object","required":["name"],"title":"RentalAdditionalDriverInput"},"RentalAdditionalDriverResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"rental_id":{"type":"string","format":"uuid","title":"Rental Id"},"linked_customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Linked Customer Id"},"sort_order":{"type":"integer","title":"Sort Order"},"name":{"type":"string","title":"Name"},"age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age"},"vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Number"},"identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identifier"},"driving_license_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driving License Number"},"license_years":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"License Years"}},"type":"object","required":["id","created_at","updated_at","is_active","rental_id","sort_order","name"],"title":"RentalAdditionalDriverResponse"},"RentalCreate":{"properties":{"reservation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reservation Id"},"reservation_reference":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Reservation Reference"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"driver_customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Driver Customer Id"},"driver_same_as_customer":{"type":"boolean","title":"Driver Same As Customer","default":true},"rental_code":{"type":"string","maxLength":32,"minLength":1,"title":"Rental Code"},"contract_type":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Contract Type"},"contract_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Contract Number"},"sequential_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Sequential Number"},"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Category Id"},"office_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Office Id"},"pricelist_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pricelist Id"},"offer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Offer Id"},"billing_category":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Billing Category"},"vehicle_type":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Vehicle Type"},"pricelist_code":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Pricelist Code"},"offer_reference":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Offer Reference"},"return_reference":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Return Reference"},"customer_is_company":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Customer Is Company"},"billing_document_type":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Billing Document Type"},"pricing_resolution_mode":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Pricing Resolution Mode"},"pricing_selection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Selection Reason"},"pricing_recalculate_requested":{"type":"boolean","title":"Pricing Recalculate Requested","default":false},"pricing_override_requested":{"type":"boolean","title":"Pricing Override Requested","default":false},"pricing_override_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Override Reason"},"customer_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Customer Name"},"customer_email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Customer Email"},"customer_phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Customer Phone"},"customer_identifier":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Customer Identifier"},"customer_vat_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Customer Vat Number"},"customer_driving_license_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Customer Driving License Number"},"customer_profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Customer Profession"},"customer_age":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":0.0},{"type":"null"}],"title":"Customer Age"},"customer_payment_method":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Customer Payment Method"},"customer_card_reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Customer Card Reference"},"driver_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Driver Name"},"driver_email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Driver Email"},"driver_phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driver Phone"},"driver_identifier":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Driver Identifier"},"driver_vat_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driver Vat Number"},"driver_driving_license_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driver Driving License Number"},"driver_profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Driver Profession"},"driver_age":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":0.0},{"type":"null"}],"title":"Driver Age"},"driver_payment_method":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driver Payment Method"},"driver_card_reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Driver Card Reference"},"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"expected_end_datetime":{"type":"string","format":"date-time","title":"Expected End Datetime"},"actual_end_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Actual End Datetime"},"total_days":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total Days"},"total_hours":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total Hours"},"pickup_location_id":{"type":"string","format":"uuid","title":"Pickup Location Id"},"return_location_id":{"type":"string","format":"uuid","title":"Return Location Id"},"pickup_place":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Pickup Place"},"return_place":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Return Place"},"delivery_user_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Delivery User Name"},"return_user_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Return User Name"},"status":{"type":"string","enum":["draft","ready_for_pickup","active","completed","cancelled"],"title":"Status","default":"draft"},"pickup_odometer_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pickup Odometer Km"},"return_odometer_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Return Odometer Km"},"pickup_fuel_level":{"anyOf":[{"type":"integer","maximum":8.0,"minimum":0.0},{"type":"null"}],"title":"Pickup Fuel Level"},"return_fuel_level":{"anyOf":[{"type":"integer","maximum":8.0,"minimum":0.0},{"type":"null"}],"title":"Return Fuel Level"},"pickup_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pickup Notes"},"return_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Notes"},"pickup_condition_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pickup Condition Notes"},"return_condition_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Condition Notes"},"damage_reported":{"type":"boolean","title":"Damage Reported","default":false},"discount_percent":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Discount Percent"},"discount_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Discount Amount"},"net_rental_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Net Rental Amount"},"kilometer_charge_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Kilometer Charge Amount"},"fuel_charge_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Fuel Charge Amount"},"insurance_total":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Insurance Total"},"extra_charges_total":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Extra Charges Total"},"damage_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Damage Amount"},"movement_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Movement Amount"},"net_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Net Amount"},"special_discount_percent":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Special Discount Percent"},"special_discount_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Special Discount Amount"},"airport_tax_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Airport Tax Amount"},"municipal_tax_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Municipal Tax Amount"},"vat_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Vat Amount"},"rounding_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rounding Amount"},"total_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Amount"},"grand_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Grand Total"},"agreement_confirmed":{"type":"boolean","title":"Agreement Confirmed","default":false},"per_day_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Per Day Amount"},"receipts_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Receipts Amount"},"balance_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Balance Amount"},"guarantee_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Guarantee Amount"},"customer_total_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Customer Total Amount"},"driver_total_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Driver Total Amount"},"contract_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Contract Datetime"},"contract_user_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Contract User Name"},"partner_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Partner Name"},"broker_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Broker Name"},"tariff_code":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tariff Code"},"reference_number":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Reference Number"},"digital_registry_reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Digital Registry Reference"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"additional_drivers":{"items":{"$ref":"#/components/schemas/RentalAdditionalDriverInput"},"type":"array","title":"Additional Drivers"},"insurances":{"items":{"$ref":"#/components/schemas/RentalInsuranceInput"},"type":"array","title":"Insurances"},"extra_charges":{"items":{"$ref":"#/components/schemas/RentalExtraChargeInput"},"type":"array","title":"Extra Charges"}},"type":"object","required":["rental_code","vehicle_id","start_datetime","expected_end_datetime","pickup_location_id","return_location_id"],"title":"RentalCreate"},"RentalExtraChargeInput":{"properties":{"extra_charge_product_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Extra Charge Product Id"},"item_name":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Item Name"},"description":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Description"},"included":{"type":"boolean","title":"Included","default":false},"quantity":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Quantity","default":1},"price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Price"},"sort_order":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Sort Order"}},"type":"object","title":"RentalExtraChargeInput"},"RentalExtraChargeResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"rental_id":{"type":"string","format":"uuid","title":"Rental Id"},"extra_charge_product_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Extra Charge Product Id"},"sort_order":{"type":"integer","title":"Sort Order"},"item_name":{"type":"string","title":"Item Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"included":{"type":"boolean","title":"Included"},"quantity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Quantity"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"}},"type":"object","required":["id","created_at","updated_at","is_active","rental_id","sort_order","item_name","included"],"title":"RentalExtraChargeResponse"},"RentalFromReservationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"reservation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reservation Id"},"reservation_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reservation Reference"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"driver_customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Driver Customer Id"},"driver_same_as_customer":{"type":"boolean","title":"Driver Same As Customer","default":true},"rental_code":{"type":"string","title":"Rental Code"},"contract_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Type"},"contract_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Number"},"sequential_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sequential Number"},"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Category Id"},"office_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Office Id"},"pricelist_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pricelist Id"},"offer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Offer Id"},"billing_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Category"},"vehicle_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Type"},"pricelist_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricelist Code"},"offer_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offer Reference"},"return_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Reference"},"customer_is_company":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Customer Is Company"},"billing_document_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Document Type"},"pricing_resolution_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Resolution Mode"},"pricing_selection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Selection Reason"},"pricing_snapshot":{"anyOf":[{"$ref":"#/components/schemas/ReservationPricingSnapshot"},{"type":"null"}]},"original_pricing_snapshot":{"anyOf":[{"$ref":"#/components/schemas/ReservationPricingSnapshot"},{"type":"null"}]},"pricing_override_applied":{"type":"boolean","title":"Pricing Override Applied","default":false},"pricing_override_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Override Reason"},"customer_name":{"type":"string","title":"Customer Name"},"customer_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Email"},"customer_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Phone"},"customer_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Identifier"},"customer_vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Vat Number"},"customer_driving_license_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Driving License Number"},"customer_profession":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Profession"},"customer_age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Customer Age"},"customer_payment_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Payment Method"},"customer_card_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Card Reference"},"driver_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Name"},"driver_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Email"},"driver_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Phone"},"driver_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Identifier"},"driver_vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Vat Number"},"driver_driving_license_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Driving License Number"},"driver_profession":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Profession"},"driver_age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Driver Age"},"driver_payment_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Payment Method"},"driver_card_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Card Reference"},"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"expected_end_datetime":{"type":"string","format":"date-time","title":"Expected End Datetime"},"actual_end_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Actual End Datetime"},"total_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Days"},"total_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Hours"},"pickup_location_id":{"type":"string","format":"uuid","title":"Pickup Location Id"},"return_location_id":{"type":"string","format":"uuid","title":"Return Location Id"},"pickup_place":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pickup Place"},"return_place":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Place"},"delivery_user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery User Name"},"return_user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return User Name"},"status":{"type":"string","enum":["draft","ready_for_pickup","active","completed","cancelled"],"title":"Status"},"pickup_odometer_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pickup Odometer Km"},"return_odometer_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Return Odometer Km"},"pickup_fuel_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pickup Fuel Level"},"return_fuel_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Return Fuel Level"},"pickup_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pickup Notes"},"return_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Notes"},"pickup_condition_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pickup Condition Notes"},"return_condition_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Condition Notes"},"damage_reported":{"type":"boolean","title":"Damage Reported","default":false},"discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discount Percent"},"discount_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discount Amount"},"net_rental_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Net Rental Amount"},"kilometer_charge_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Kilometer Charge Amount"},"fuel_charge_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fuel Charge Amount"},"insurance_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Insurance Total"},"extra_charges_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Extra Charges Total"},"damage_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Damage Amount"},"movement_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Movement Amount"},"net_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Net Amount"},"special_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Special Discount Percent"},"special_discount_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Special Discount Amount"},"airport_tax_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Airport Tax Amount"},"municipal_tax_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Municipal Tax Amount"},"vat_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Vat Amount"},"rounding_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rounding Amount"},"total_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Amount"},"grand_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Grand Total"},"agreement_confirmed":{"type":"boolean","title":"Agreement Confirmed","default":false},"per_day_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Per Day Amount"},"receipts_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Receipts Amount"},"balance_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Balance Amount"},"guarantee_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Guarantee Amount"},"customer_total_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Customer Total Amount"},"driver_total_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Driver Total Amount"},"contract_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Contract Datetime"},"contract_user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract User Name"},"partner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partner Name"},"broker_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Broker Name"},"tariff_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tariff Code"},"reference_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Number"},"digital_registry_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Digital Registry Reference"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"planner_event_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Planner Event Id"},"commercial_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Commercial Total"},"receivable_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Receivable Total"},"receivable_paid_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Receivable Paid Amount"},"receivable_pending_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Receivable Pending Amount"},"receivable_open_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Receivable Open Amount"},"total_completed_payments":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Completed Payments"},"total_pending_payments":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Pending Payments"},"total_refunded_payments":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Refunded Payments"},"guarantee_held_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Guarantee Held Amount"},"guarantee_released_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Guarantee Released Amount"},"guarantee_retained_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Guarantee Retained Amount"},"balance_due":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Balance Due"},"billing_documents":{"items":{"$ref":"#/components/schemas/BillingDocumentSummaryResponse"},"type":"array","title":"Billing Documents"},"additional_drivers":{"items":{"$ref":"#/components/schemas/RentalAdditionalDriverResponse"},"type":"array","title":"Additional Drivers"},"insurances":{"items":{"$ref":"#/components/schemas/RentalInsuranceResponse"},"type":"array","title":"Insurances"},"extra_charges":{"items":{"$ref":"#/components/schemas/RentalExtraChargeResponse"},"type":"array","title":"Extra Charges"},"source_reservation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Reservation Id"}},"type":"object","required":["id","created_at","updated_at","is_active","rental_code","vehicle_id","customer_name","start_datetime","expected_end_datetime","pickup_location_id","return_location_id","status"],"title":"RentalFromReservationResponse"},"RentalInsuranceInput":{"properties":{"insurance_product_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Insurance Product Id"},"insurance_type":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Insurance Type"},"description":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Description"},"included":{"type":"boolean","title":"Included","default":false},"excess_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Excess Amount"},"price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Price"},"sort_order":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Sort Order"}},"type":"object","title":"RentalInsuranceInput"},"RentalInsuranceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"rental_id":{"type":"string","format":"uuid","title":"Rental Id"},"insurance_product_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Insurance Product Id"},"sort_order":{"type":"integer","title":"Sort Order"},"insurance_type":{"type":"string","title":"Insurance Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"included":{"type":"boolean","title":"Included"},"excess_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Excess Amount"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"}},"type":"object","required":["id","created_at","updated_at","is_active","rental_id","sort_order","insurance_type","included"],"title":"RentalInsuranceResponse"},"RentalListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RentalResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"RentalListResponse"},"RentalResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"reservation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reservation Id"},"reservation_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reservation Reference"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"driver_customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Driver Customer Id"},"driver_same_as_customer":{"type":"boolean","title":"Driver Same As Customer","default":true},"rental_code":{"type":"string","title":"Rental Code"},"contract_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Type"},"contract_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Number"},"sequential_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sequential Number"},"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Category Id"},"office_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Office Id"},"pricelist_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pricelist Id"},"offer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Offer Id"},"billing_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Category"},"vehicle_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Type"},"pricelist_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricelist Code"},"offer_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offer Reference"},"return_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Reference"},"customer_is_company":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Customer Is Company"},"billing_document_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Document Type"},"pricing_resolution_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Resolution Mode"},"pricing_selection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Selection Reason"},"pricing_snapshot":{"anyOf":[{"$ref":"#/components/schemas/ReservationPricingSnapshot"},{"type":"null"}]},"original_pricing_snapshot":{"anyOf":[{"$ref":"#/components/schemas/ReservationPricingSnapshot"},{"type":"null"}]},"pricing_override_applied":{"type":"boolean","title":"Pricing Override Applied","default":false},"pricing_override_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Override Reason"},"customer_name":{"type":"string","title":"Customer Name"},"customer_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Email"},"customer_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Phone"},"customer_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Identifier"},"customer_vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Vat Number"},"customer_driving_license_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Driving License Number"},"customer_profession":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Profession"},"customer_age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Customer Age"},"customer_payment_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Payment Method"},"customer_card_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Card Reference"},"driver_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Name"},"driver_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Email"},"driver_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Phone"},"driver_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Identifier"},"driver_vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Vat Number"},"driver_driving_license_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Driving License Number"},"driver_profession":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Profession"},"driver_age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Driver Age"},"driver_payment_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Payment Method"},"driver_card_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Card Reference"},"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"expected_end_datetime":{"type":"string","format":"date-time","title":"Expected End Datetime"},"actual_end_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Actual End Datetime"},"total_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Days"},"total_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Hours"},"pickup_location_id":{"type":"string","format":"uuid","title":"Pickup Location Id"},"return_location_id":{"type":"string","format":"uuid","title":"Return Location Id"},"pickup_place":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pickup Place"},"return_place":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Place"},"delivery_user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery User Name"},"return_user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return User Name"},"status":{"type":"string","enum":["draft","ready_for_pickup","active","completed","cancelled"],"title":"Status"},"pickup_odometer_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pickup Odometer Km"},"return_odometer_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Return Odometer Km"},"pickup_fuel_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pickup Fuel Level"},"return_fuel_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Return Fuel Level"},"pickup_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pickup Notes"},"return_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Notes"},"pickup_condition_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pickup Condition Notes"},"return_condition_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Condition Notes"},"damage_reported":{"type":"boolean","title":"Damage Reported","default":false},"discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discount Percent"},"discount_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discount Amount"},"net_rental_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Net Rental Amount"},"kilometer_charge_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Kilometer Charge Amount"},"fuel_charge_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fuel Charge Amount"},"insurance_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Insurance Total"},"extra_charges_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Extra Charges Total"},"damage_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Damage Amount"},"movement_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Movement Amount"},"net_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Net Amount"},"special_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Special Discount Percent"},"special_discount_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Special Discount Amount"},"airport_tax_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Airport Tax Amount"},"municipal_tax_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Municipal Tax Amount"},"vat_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Vat Amount"},"rounding_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rounding Amount"},"total_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Amount"},"grand_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Grand Total"},"agreement_confirmed":{"type":"boolean","title":"Agreement Confirmed","default":false},"per_day_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Per Day Amount"},"receipts_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Receipts Amount"},"balance_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Balance Amount"},"guarantee_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Guarantee Amount"},"customer_total_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Customer Total Amount"},"driver_total_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Driver Total Amount"},"contract_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Contract Datetime"},"contract_user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract User Name"},"partner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partner Name"},"broker_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Broker Name"},"tariff_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tariff Code"},"reference_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Number"},"digital_registry_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Digital Registry Reference"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"planner_event_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Planner Event Id"},"commercial_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Commercial Total"},"receivable_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Receivable Total"},"receivable_paid_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Receivable Paid Amount"},"receivable_pending_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Receivable Pending Amount"},"receivable_open_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Receivable Open Amount"},"total_completed_payments":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Completed Payments"},"total_pending_payments":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Pending Payments"},"total_refunded_payments":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Refunded Payments"},"guarantee_held_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Guarantee Held Amount"},"guarantee_released_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Guarantee Released Amount"},"guarantee_retained_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Guarantee Retained Amount"},"balance_due":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Balance Due"},"billing_documents":{"items":{"$ref":"#/components/schemas/BillingDocumentSummaryResponse"},"type":"array","title":"Billing Documents"},"additional_drivers":{"items":{"$ref":"#/components/schemas/RentalAdditionalDriverResponse"},"type":"array","title":"Additional Drivers"},"insurances":{"items":{"$ref":"#/components/schemas/RentalInsuranceResponse"},"type":"array","title":"Insurances"},"extra_charges":{"items":{"$ref":"#/components/schemas/RentalExtraChargeResponse"},"type":"array","title":"Extra Charges"}},"type":"object","required":["id","created_at","updated_at","is_active","rental_code","vehicle_id","customer_name","start_datetime","expected_end_datetime","pickup_location_id","return_location_id","status"],"title":"RentalResponse"},"RentalStatusUpdate":{"properties":{"status":{"type":"string","enum":["draft","ready_for_pickup","active","completed","cancelled"],"title":"Status"}},"type":"object","required":["status"],"title":"RentalStatusUpdate"},"RentalUpdate":{"properties":{"reservation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reservation Id"},"reservation_reference":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Reservation Reference"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"driver_customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Driver Customer Id"},"driver_same_as_customer":{"type":"boolean","title":"Driver Same As Customer","default":true},"rental_code":{"type":"string","maxLength":32,"minLength":1,"title":"Rental Code"},"contract_type":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Contract Type"},"contract_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Contract Number"},"sequential_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Sequential Number"},"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Category Id"},"office_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Office Id"},"pricelist_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pricelist Id"},"offer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Offer Id"},"billing_category":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Billing Category"},"vehicle_type":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Vehicle Type"},"pricelist_code":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Pricelist Code"},"offer_reference":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Offer Reference"},"return_reference":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Return Reference"},"customer_is_company":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Customer Is Company"},"billing_document_type":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Billing Document Type"},"pricing_resolution_mode":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Pricing Resolution Mode"},"pricing_selection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Selection Reason"},"pricing_recalculate_requested":{"type":"boolean","title":"Pricing Recalculate Requested","default":false},"pricing_override_requested":{"type":"boolean","title":"Pricing Override Requested","default":false},"pricing_override_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Override Reason"},"customer_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Customer Name"},"customer_email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Customer Email"},"customer_phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Customer Phone"},"customer_identifier":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Customer Identifier"},"customer_vat_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Customer Vat Number"},"customer_driving_license_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Customer Driving License Number"},"customer_profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Customer Profession"},"customer_age":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":0.0},{"type":"null"}],"title":"Customer Age"},"customer_payment_method":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Customer Payment Method"},"customer_card_reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Customer Card Reference"},"driver_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Driver Name"},"driver_email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Driver Email"},"driver_phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driver Phone"},"driver_identifier":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Driver Identifier"},"driver_vat_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driver Vat Number"},"driver_driving_license_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driver Driving License Number"},"driver_profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Driver Profession"},"driver_age":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":0.0},{"type":"null"}],"title":"Driver Age"},"driver_payment_method":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driver Payment Method"},"driver_card_reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Driver Card Reference"},"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"expected_end_datetime":{"type":"string","format":"date-time","title":"Expected End Datetime"},"actual_end_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Actual End Datetime"},"total_days":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total Days"},"total_hours":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total Hours"},"pickup_location_id":{"type":"string","format":"uuid","title":"Pickup Location Id"},"return_location_id":{"type":"string","format":"uuid","title":"Return Location Id"},"pickup_place":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Pickup Place"},"return_place":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Return Place"},"delivery_user_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Delivery User Name"},"return_user_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Return User Name"},"status":{"type":"string","enum":["draft","ready_for_pickup","active","completed","cancelled"],"title":"Status","default":"draft"},"pickup_odometer_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pickup Odometer Km"},"return_odometer_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Return Odometer Km"},"pickup_fuel_level":{"anyOf":[{"type":"integer","maximum":8.0,"minimum":0.0},{"type":"null"}],"title":"Pickup Fuel Level"},"return_fuel_level":{"anyOf":[{"type":"integer","maximum":8.0,"minimum":0.0},{"type":"null"}],"title":"Return Fuel Level"},"pickup_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pickup Notes"},"return_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Notes"},"pickup_condition_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pickup Condition Notes"},"return_condition_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Condition Notes"},"damage_reported":{"type":"boolean","title":"Damage Reported","default":false},"discount_percent":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Discount Percent"},"discount_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Discount Amount"},"net_rental_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Net Rental Amount"},"kilometer_charge_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Kilometer Charge Amount"},"fuel_charge_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Fuel Charge Amount"},"insurance_total":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Insurance Total"},"extra_charges_total":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Extra Charges Total"},"damage_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Damage Amount"},"movement_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Movement Amount"},"net_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Net Amount"},"special_discount_percent":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Special Discount Percent"},"special_discount_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Special Discount Amount"},"airport_tax_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Airport Tax Amount"},"municipal_tax_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Municipal Tax Amount"},"vat_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Vat Amount"},"rounding_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rounding Amount"},"total_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Amount"},"grand_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Grand Total"},"agreement_confirmed":{"type":"boolean","title":"Agreement Confirmed","default":false},"per_day_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Per Day Amount"},"receipts_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Receipts Amount"},"balance_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Balance Amount"},"guarantee_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Guarantee Amount"},"customer_total_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Customer Total Amount"},"driver_total_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Driver Total Amount"},"contract_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Contract Datetime"},"contract_user_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Contract User Name"},"partner_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Partner Name"},"broker_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Broker Name"},"tariff_code":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tariff Code"},"reference_number":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Reference Number"},"digital_registry_reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Digital Registry Reference"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"additional_drivers":{"items":{"$ref":"#/components/schemas/RentalAdditionalDriverInput"},"type":"array","title":"Additional Drivers"},"insurances":{"items":{"$ref":"#/components/schemas/RentalInsuranceInput"},"type":"array","title":"Insurances"},"extra_charges":{"items":{"$ref":"#/components/schemas/RentalExtraChargeInput"},"type":"array","title":"Extra Charges"}},"type":"object","required":["rental_code","vehicle_id","start_datetime","expected_end_datetime","pickup_location_id","return_location_id"],"title":"RentalUpdate"},"RepairCaseCreate":{"properties":{"code":{"type":"string","maxLength":32,"minLength":1,"title":"Code"},"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"cause_type":{"type":"string","enum":["wear_and_tear","damage","breakdown","inspection_find","other"],"title":"Cause Type"},"reason_text":{"type":"string","minLength":1,"title":"Reason Text"},"status":{"type":"string","enum":["draft","open","in_progress","completed","cancelled"],"title":"Status","default":"draft"},"opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opened At"},"expected_ready_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expected Ready At"},"is_vehicle_unavailable":{"type":"boolean","title":"Is Vehicle Unavailable","default":false},"unavailable_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Unavailable From"},"unavailable_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Unavailable Until"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["code","vehicle_id","cause_type","reason_text"],"title":"RepairCaseCreate"},"RepairCaseListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RepairCaseResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"RepairCaseListResponse"},"RepairCaseResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"code":{"type":"string","title":"Code"},"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_code":{"type":"string","title":"Vehicle Code"},"vehicle_plate_number":{"type":"string","title":"Vehicle Plate Number"},"vehicle_display_name":{"type":"string","title":"Vehicle Display Name"},"cause_type":{"type":"string","enum":["wear_and_tear","damage","breakdown","inspection_find","other"],"title":"Cause Type"},"reason_text":{"type":"string","title":"Reason Text"},"status":{"type":"string","enum":["draft","open","in_progress","completed","cancelled"],"title":"Status"},"opened_at":{"type":"string","format":"date-time","title":"Opened At"},"expected_ready_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expected Ready At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"},"is_vehicle_unavailable":{"type":"boolean","title":"Is Vehicle Unavailable"},"unavailable_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Unavailable From"},"unavailable_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Unavailable Until"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"order_count":{"type":"integer","title":"Order Count"},"open_order_count":{"type":"integer","title":"Open Order Count"},"latest_supplier_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Latest Supplier Id"},"latest_supplier_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Supplier Name"},"has_linked_draft_expense_document":{"type":"boolean","title":"Has Linked Draft Expense Document","default":false}},"type":"object","required":["id","created_at","updated_at","is_active","code","vehicle_id","vehicle_code","vehicle_plate_number","vehicle_display_name","cause_type","reason_text","status","opened_at","is_vehicle_unavailable","order_count","open_order_count"],"title":"RepairCaseResponse"},"RepairCaseStatusUpdate":{"properties":{"status":{"type":"string","enum":["draft","open","in_progress","completed","cancelled"],"title":"Status"}},"type":"object","required":["status"],"title":"RepairCaseStatusUpdate"},"RepairCaseUpdate":{"properties":{"code":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Code"},"cause_type":{"anyOf":[{"type":"string","enum":["wear_and_tear","damage","breakdown","inspection_find","other"]},{"type":"null"}],"title":"Cause Type"},"reason_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Text"},"expected_ready_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expected Ready At"},"is_vehicle_unavailable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Vehicle Unavailable"},"unavailable_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Unavailable From"},"unavailable_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Unavailable Until"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"RepairCaseUpdate"},"RepairDocumentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"repair_case_id":{"type":"string","format":"uuid","title":"Repair Case Id"},"repair_order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Repair Order Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"original_filename":{"type":"string","title":"Original Filename"},"stored_filename":{"type":"string","title":"Stored Filename"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"file_size_bytes":{"type":"integer","title":"File Size Bytes"},"file_path":{"type":"string","title":"File Path"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","created_at","updated_at","is_active","repair_case_id","original_filename","stored_filename","file_size_bytes","file_path"],"title":"RepairDocumentResponse"},"RepairExpenseDocumentCreateDraft":{"properties":{"code":{"type":"string","maxLength":32,"minLength":1,"title":"Code"},"document_datetime":{"type":"string","format":"date-time","title":"Document Datetime"},"branch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Branch Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["code","document_datetime"],"title":"RepairExpenseDocumentCreateDraft"},"RepairExpenseDocumentLink":{"properties":{"expense_document_id":{"type":"string","format":"uuid","title":"Expense Document Id"}},"type":"object","required":["expense_document_id"],"title":"RepairExpenseDocumentLink"},"RepairOrderCreate":{"properties":{"order_number":{"type":"string","maxLength":32,"minLength":1,"title":"Order Number"},"supplier_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Supplier Id"},"status":{"type":"string","enum":["draft","issued","in_progress","completed","cancelled"],"title":"Status","default":"draft"},"description":{"type":"string","minLength":1,"title":"Description"},"total_amount":{"type":"number","minimum":0.0,"title":"Total Amount","default":0},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["order_number","description"],"title":"RepairOrderCreate"},"RepairOrderLineCreate":{"properties":{"sort_order":{"type":"integer","minimum":1.0,"title":"Sort Order","default":1},"line_type":{"type":"string","enum":["labor","part","service","other"],"title":"Line Type","default":"service"},"description":{"type":"string","minLength":1,"title":"Description"},"quantity":{"type":"number","exclusiveMinimum":0.0,"title":"Quantity","default":1},"unit_cost":{"type":"number","minimum":0.0,"title":"Unit Cost","default":0},"line_total":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Line Total"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["description"],"title":"RepairOrderLineCreate"},"RepairOrderLineListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RepairOrderLineResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"repair_order_id":{"type":"string","format":"uuid","title":"Repair Order Id"}},"type":"object","required":["items","total","repair_order_id"],"title":"RepairOrderLineListResponse"},"RepairOrderLineResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"repair_order_id":{"type":"string","format":"uuid","title":"Repair Order Id"},"sort_order":{"type":"integer","title":"Sort Order"},"line_type":{"type":"string","enum":["labor","part","service","other"],"title":"Line Type"},"description":{"type":"string","title":"Description"},"quantity":{"type":"number","title":"Quantity"},"unit_cost":{"type":"number","title":"Unit Cost"},"line_total":{"type":"number","title":"Line Total"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","created_at","updated_at","is_active","repair_order_id","sort_order","line_type","description","quantity","unit_cost","line_total"],"title":"RepairOrderLineResponse"},"RepairOrderLineUpdate":{"properties":{"sort_order":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Sort Order"},"line_type":{"anyOf":[{"type":"string","enum":["labor","part","service","other"]},{"type":"null"}],"title":"Line Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"quantity":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Quantity"},"unit_cost":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Unit Cost"},"line_total":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Line Total"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"RepairOrderLineUpdate"},"RepairOrderListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RepairOrderResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"repair_case_id":{"type":"string","format":"uuid","title":"Repair Case Id"}},"type":"object","required":["items","total","repair_case_id"],"title":"RepairOrderListResponse"},"RepairOrderResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"repair_case_id":{"type":"string","format":"uuid","title":"Repair Case Id"},"repair_case_code":{"type":"string","title":"Repair Case Code"},"order_number":{"type":"string","title":"Order Number"},"supplier_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Supplier Id"},"supplier_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Name"},"expense_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Expense Document Id"},"expense_document_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expense Document Code"},"expense_document_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expense Document Status"},"status":{"type":"string","enum":["draft","issued","in_progress","completed","cancelled"],"title":"Status"},"description":{"type":"string","title":"Description"},"issued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Issued At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"},"total_amount":{"type":"number","title":"Total Amount"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"line_count":{"type":"integer","title":"Line Count"},"lines":{"items":{"$ref":"#/components/schemas/RepairOrderLineResponse"},"type":"array","title":"Lines"}},"type":"object","required":["id","created_at","updated_at","is_active","repair_case_id","repair_case_code","order_number","status","description","total_amount","line_count"],"title":"RepairOrderResponse"},"RepairOrderStatusUpdate":{"properties":{"status":{"type":"string","enum":["draft","issued","in_progress","completed","cancelled"],"title":"Status"}},"type":"object","required":["status"],"title":"RepairOrderStatusUpdate"},"RepairOrderUpdate":{"properties":{"order_number":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Order Number"},"supplier_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Supplier Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"total_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Total Amount"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"RepairOrderUpdate"},"RepairVehicleHistoryItemResponse":{"properties":{"repair_case_id":{"type":"string","format":"uuid","title":"Repair Case Id"},"code":{"type":"string","title":"Code"},"cause_type":{"type":"string","enum":["wear_and_tear","damage","breakdown","inspection_find","other"],"title":"Cause Type"},"reason_text":{"type":"string","title":"Reason Text"},"status":{"type":"string","enum":["draft","open","in_progress","completed","cancelled"],"title":"Status"},"opened_at":{"type":"string","format":"date-time","title":"Opened At"},"expected_ready_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expected Ready At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"is_vehicle_unavailable":{"type":"boolean","title":"Is Vehicle Unavailable"},"unavailable_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Unavailable From"},"unavailable_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Unavailable Until"},"latest_supplier_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Latest Supplier Id"},"latest_supplier_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Supplier Name"},"latest_order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Latest Order Id"},"latest_order_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Order Number"},"has_linked_draft_expense_document":{"type":"boolean","title":"Has Linked Draft Expense Document","default":false},"latest_expense_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Latest Expense Document Id"},"latest_expense_document_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Expense Document Code"},"latest_expense_document_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Expense Document Status"}},"type":"object","required":["repair_case_id","code","cause_type","reason_text","status","opened_at","is_vehicle_unavailable"],"title":"RepairVehicleHistoryItemResponse"},"ReservationAgentConfirmResponse":{"properties":{"reservation":{"$ref":"#/components/schemas/ReservationResponse"},"allocation":{"$ref":"#/components/schemas/ReservationAllocationResponse"}},"type":"object","required":["reservation","allocation"],"title":"ReservationAgentConfirmResponse"},"ReservationAgentSuggestionItemResponse":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_code":{"type":"string","title":"Vehicle Code"},"vehicle_plate_number":{"type":"string","title":"Vehicle Plate Number"},"vehicle_display_name":{"type":"string","title":"Vehicle Display Name"},"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"category_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Label"},"category_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Size"},"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"},"location_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Name"},"allocation_type":{"type":"string","enum":["soft","hard"],"title":"Allocation Type"},"score":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Score"},"reason_text":{"type":"string","title":"Reason Text"},"explanation":{"items":{"type":"string"},"type":"array","title":"Explanation"},"requires_relocation":{"type":"boolean","title":"Requires Relocation","default":false},"is_selected":{"type":"boolean","title":"Is Selected","default":false}},"type":"object","required":["vehicle_id","vehicle_code","vehicle_plate_number","vehicle_display_name","allocation_type","score","reason_text"],"title":"ReservationAgentSuggestionItemResponse"},"ReservationAgentSuggestionListResponse":{"properties":{"allocation_mode":{"type":"string","enum":["hard","suggested","category_only"],"title":"Allocation Mode"},"recommended_vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Recommended Vehicle Id"},"items":{"items":{"$ref":"#/components/schemas/ReservationAgentSuggestionItemResponse"},"type":"array","title":"Items"}},"type":"object","required":["allocation_mode"],"title":"ReservationAgentSuggestionListResponse"},"ReservationAgentWizardConfirmRequest":{"properties":{"reservation":{"$ref":"#/components/schemas/ReservationCreate"},"allocation_mode":{"type":"string","enum":["hard","suggested","category_only"],"title":"Allocation Mode","default":"suggested"},"selected_vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Selected Vehicle Id"}},"type":"object","required":["reservation"],"title":"ReservationAgentWizardConfirmRequest"},"ReservationAgentWizardRequest":{"properties":{"reservation":{"$ref":"#/components/schemas/ReservationCreate"},"allocation_mode":{"type":"string","enum":["hard","suggested","category_only"],"title":"Allocation Mode","default":"suggested"},"specific_vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Specific Vehicle Id"}},"type":"object","required":["reservation"],"title":"ReservationAgentWizardRequest"},"ReservationAgentWizardStartResponse":{"properties":{"allocation_mode":{"type":"string","enum":["hard","suggested","category_only"],"title":"Allocation Mode"},"demand_summary":{"type":"string","title":"Demand Summary"},"vehicle_category_id":{"type":"string","format":"uuid","title":"Vehicle Category Id"},"vehicle_category_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Category Label"},"category_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Size"},"pickup_location_id":{"type":"string","format":"uuid","title":"Pickup Location Id"},"pickup_location_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pickup Location Name"},"return_location_id":{"type":"string","format":"uuid","title":"Return Location Id"},"return_location_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Location Name"},"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"end_datetime":{"type":"string","format":"date-time","title":"End Datetime"},"specific_vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Specific Vehicle Id"},"specific_vehicle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Specific Vehicle Label"},"candidate_count":{"type":"integer","title":"Candidate Count","default":0}},"type":"object","required":["allocation_mode","demand_summary","vehicle_category_id","pickup_location_id","return_location_id","start_datetime","end_datetime"],"title":"ReservationAgentWizardStartResponse"},"ReservationAllocationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"reservation_id":{"type":"string","format":"uuid","title":"Reservation Id"},"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Code"},"vehicle_plate_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Plate Number"},"vehicle_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Display Name"},"allocation_type":{"type":"string","enum":["soft","hard"],"title":"Allocation Type"},"assigned_at":{"type":"string","format":"date-time","title":"Assigned At"},"assigned_by":{"type":"string","enum":["system","user"],"title":"Assigned By"},"optimization_score":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Optimization Score"},"is_locked":{"type":"boolean","title":"Is Locked","default":false}},"type":"object","required":["id","created_at","updated_at","is_active","reservation_id","vehicle_id","allocation_type","assigned_at","assigned_by"],"title":"ReservationAllocationResponse"},"ReservationCreate":{"properties":{"reservation_code":{"type":"string","maxLength":32,"minLength":1,"title":"Reservation Code"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"driver_customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Driver Customer Id"},"vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Id"},"vehicle_category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Category Id"},"office_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Office Id"},"pricelist_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pricelist Id"},"offer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Offer Id"},"customer_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Customer Name"},"customer_is_company":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Customer Is Company"},"billing_document_type":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Billing Document Type"},"pricing_resolution_mode":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Pricing Resolution Mode"},"pricing_selection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Selection Reason"},"pricing_recalculate_requested":{"type":"boolean","title":"Pricing Recalculate Requested","default":false},"pricing_override_requested":{"type":"boolean","title":"Pricing Override Requested","default":false},"pricing_override_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Override Reason"},"customer_email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Customer Email"},"customer_phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Customer Phone"},"customer_identifier":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Customer Identifier"},"customer_vat_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Customer Vat Number"},"customer_driving_license_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Customer Driving License Number"},"customer_profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Customer Profession"},"customer_age":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":0.0},{"type":"null"}],"title":"Customer Age"},"customer_payment_method":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Customer Payment Method"},"customer_card_reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Customer Card Reference"},"driver_same_as_customer":{"type":"boolean","title":"Driver Same As Customer","default":true},"driver_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Driver Name"},"driver_email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Driver Email"},"driver_phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driver Phone"},"driver_identifier":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Driver Identifier"},"driver_vat_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driver Vat Number"},"driver_driving_license_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driver Driving License Number"},"driver_profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Driver Profession"},"driver_age":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":0.0},{"type":"null"}],"title":"Driver Age"},"driver_payment_method":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driver Payment Method"},"driver_card_reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Driver Card Reference"},"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"end_datetime":{"type":"string","format":"date-time","title":"End Datetime"},"days_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Days Count"},"hours_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Hours Count"},"pickup_location_id":{"type":"string","format":"uuid","title":"Pickup Location Id"},"pickup_place":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Pickup Place"},"pickup_flight_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Pickup Flight Number"},"pickup_flight_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Pickup Flight Time"},"return_location_id":{"type":"string","format":"uuid","title":"Return Location Id"},"return_place":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Return Place"},"billing_category":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Billing Category"},"vehicle_type":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Vehicle Type"},"pricelist_code":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Pricelist Code"},"offer_reference":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Offer Reference"},"return_reference":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Return Reference"},"discount_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Discount Percent"},"discount_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Discount Amount"},"net_rental_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Net Rental Amount"},"insurance_total":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Insurance Total"},"extra_charges_total":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Extra Charges Total"},"subtotal_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Subtotal Amount"},"special_discount_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Special Discount Percent"},"special_discount_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Special Discount Amount"},"airport_tax_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Airport Tax Amount"},"municipal_tax_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Municipal Tax Amount"},"vat_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Vat Amount"},"grand_total":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Grand Total"},"agreement_confirmed":{"type":"boolean","title":"Agreement Confirmed","default":false},"per_day_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Per Day Amount"},"receipts_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Receipts Amount"},"balance_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Balance Amount"},"guarantee_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Guarantee Amount"},"financial_locked":{"type":"boolean","title":"Financial Locked","default":false},"reservation_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reservation Datetime"},"status":{"type":"string","enum":["draft","confirmed","active","completed","cancelled"],"title":"Status","default":"draft"},"confirmed_flag":{"type":"boolean","title":"Confirmed Flag","default":false},"cancellation_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancellation Datetime"},"reservation_user_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Reservation User Name"},"partner_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Partner Name"},"broker_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Broker Name"},"tariff_code":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tariff Code"},"reference_number":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Reference Number"},"sequential_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Sequential Number"},"payment_wizard_reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Payment Wizard Reference"},"payment_wizard_reference_2":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Payment Wizard Reference 2"},"bank_auth_code":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Bank Auth Code"},"bank_transaction_code":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Bank Transaction Code"},"total_price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Total Price"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"insurances":{"items":{"$ref":"#/components/schemas/ReservationInsuranceInput"},"type":"array","title":"Insurances"},"extra_charges":{"items":{"$ref":"#/components/schemas/ReservationExtraChargeInput"},"type":"array","title":"Extra Charges"}},"type":"object","required":["reservation_code","start_datetime","end_datetime","pickup_location_id","return_location_id"],"title":"ReservationCreate"},"ReservationExtraChargeInput":{"properties":{"extra_charge_product_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Extra Charge Product Id"},"item_name":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Item Name"},"description":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Description"},"included":{"type":"boolean","title":"Included","default":false},"quantity":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Quantity"},"price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Price"},"sort_order":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Sort Order"}},"type":"object","title":"ReservationExtraChargeInput"},"ReservationExtraChargeResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"extra_charge_product_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Extra Charge Product Id"},"item_name":{"type":"string","title":"Item Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"included":{"type":"boolean","title":"Included","default":false},"quantity":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Quantity"},"price":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Price"},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","required":["id","created_at","updated_at","is_active","item_name"],"title":"ReservationExtraChargeResponse"},"ReservationInsuranceInput":{"properties":{"insurance_product_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Insurance Product Id"},"insurance_type":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Insurance Type"},"description":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Description"},"included":{"type":"boolean","title":"Included","default":false},"excess_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Excess Amount"},"price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Price"},"sort_order":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Sort Order"}},"type":"object","title":"ReservationInsuranceInput"},"ReservationInsuranceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"insurance_product_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Insurance Product Id"},"insurance_type":{"type":"string","title":"Insurance Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"included":{"type":"boolean","title":"Included","default":false},"excess_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Excess Amount"},"price":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Price"},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","required":["id","created_at","updated_at","is_active","insurance_type"],"title":"ReservationInsuranceResponse"},"ReservationListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ReservationResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"ReservationListResponse"},"ReservationPricePreviewRequest":{"properties":{"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"customer_is_company":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Customer Is Company"},"vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Id"},"vehicle_category_id":{"type":"string","format":"uuid","title":"Vehicle Category Id"},"office_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Office Id"},"pricelist_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pricelist Id"},"offer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Offer Id"},"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"end_datetime":{"type":"string","format":"date-time","title":"End Datetime"},"pickup_location_id":{"type":"string","format":"uuid","title":"Pickup Location Id"},"return_location_id":{"type":"string","format":"uuid","title":"Return Location Id"},"channel":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Channel","default":"desk"},"insurances":{"items":{"$ref":"#/components/schemas/ReservationInsuranceInput"},"type":"array","title":"Insurances"},"extra_charges":{"items":{"$ref":"#/components/schemas/ReservationExtraChargeInput"},"type":"array","title":"Extra Charges"}},"type":"object","required":["vehicle_category_id","start_datetime","end_datetime","pickup_location_id","return_location_id"],"title":"ReservationPricePreviewRequest"},"ReservationPricingSnapshot":{"properties":{"currency_code":{"type":"string","title":"Currency Code","default":"EUR"},"pricelist_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pricelist Id"},"pricelist_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricelist Code"},"pricelist_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricelist Name"},"selection_mode":{"type":"string","enum":["manual","automatic"],"title":"Selection Mode","default":"automatic"},"selection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selection Reason"},"offer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Offer Id"},"offer_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offer Code"},"offer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offer Name"},"offer_selection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offer Selection Reason"},"rate_scope":{"anyOf":[{"type":"string","enum":["vehicle","category"]},{"type":"null"}],"title":"Rate Scope"},"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"category_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Label"},"vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Id"},"vehicle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Label"},"billing_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Category"},"days_count":{"type":"integer","title":"Days Count","default":0},"hours_count":{"type":"integer","title":"Hours Count","default":0},"base_rate":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Base Rate","default":"0.00"},"hourly_rate":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Hourly Rate"},"base_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Base Amount","default":"0.00"},"discount_value":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Discount Value","default":"0.00"},"offer_value":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Offer Value","default":"0.00"},"special_discount_value":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Special Discount Value","default":"0.00"},"insurance_total":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Insurance Total","default":"0.00"},"extras_total":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Extras Total","default":"0.00"},"subtotal":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Subtotal","default":"0.00"},"airport_tax_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Airport Tax Amount","default":"0.00"},"municipal_tax_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Municipal Tax Amount","default":"0.00"},"vat_percent":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Vat Percent"},"vat_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Vat Amount","default":"0.00"},"total":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Total","default":"0.00"},"per_day_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Per Day Amount","default":"0.00"},"receipts_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Receipts Amount","default":"0.00"},"balance_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Balance Amount","default":"0.00"},"guarantee_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Guarantee Amount","default":"0.00"},"override_applied":{"type":"boolean","title":"Override Applied","default":false},"override_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Reason"},"insurance_items":{"items":{"$ref":"#/components/schemas/PricingLineItemResponse"},"type":"array","title":"Insurance Items"},"extra_charge_items":{"items":{"$ref":"#/components/schemas/PricingLineItemResponse"},"type":"array","title":"Extra Charge Items"},"explanation":{"items":{"type":"string"},"type":"array","title":"Explanation"}},"type":"object","title":"ReservationPricingSnapshot"},"ReservationReallocationAnalysisResponse":{"properties":{"reservation_id":{"type":"string","format":"uuid","title":"Reservation Id"},"allocation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Allocation Id"},"allocation_type":{"anyOf":[{"type":"string","enum":["soft","hard"]},{"type":"null"}],"title":"Allocation Type"},"is_locked":{"type":"boolean","title":"Is Locked","default":false},"has_suggestion":{"type":"boolean","title":"Has Suggestion","default":false},"current_vehicle":{"anyOf":[{"$ref":"#/components/schemas/ReservationReallocationVehicleOptionResponse"},{"type":"null"}]},"suggested_vehicle":{"anyOf":[{"$ref":"#/components/schemas/ReservationReallocationVehicleOptionResponse"},{"type":"null"}]},"score_improvement":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Score Improvement"},"explanation":{"items":{"type":"string"},"type":"array","title":"Explanation"}},"type":"object","required":["reservation_id"],"title":"ReservationReallocationAnalysisResponse"},"ReservationReallocationAnalyzeRequest":{"properties":{"reservation_id":{"type":"string","format":"uuid","title":"Reservation Id"}},"type":"object","required":["reservation_id"],"title":"ReservationReallocationAnalyzeRequest"},"ReservationReallocationApplyRequest":{"properties":{"reservation_id":{"type":"string","format":"uuid","title":"Reservation Id"},"target_vehicle_id":{"type":"string","format":"uuid","title":"Target Vehicle Id"}},"type":"object","required":["reservation_id","target_vehicle_id"],"title":"ReservationReallocationApplyRequest"},"ReservationReallocationApplyResponse":{"properties":{"reservation":{"$ref":"#/components/schemas/ReservationResponse"},"allocation":{"$ref":"#/components/schemas/ReservationAllocationResponse"},"reallocation":{"$ref":"#/components/schemas/ReservationReallocationAnalysisResponse"}},"type":"object","required":["reservation","allocation","reallocation"],"title":"ReservationReallocationApplyResponse"},"ReservationReallocationVehicleOptionResponse":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_code":{"type":"string","title":"Vehicle Code"},"vehicle_plate_number":{"type":"string","title":"Vehicle Plate Number"},"vehicle_display_name":{"type":"string","title":"Vehicle Display Name"},"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"},"location_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Name"},"score":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Score"},"gap_before_hours":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Gap Before Hours"},"gap_after_hours":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Gap After Hours"},"requires_relocation":{"type":"boolean","title":"Requires Relocation","default":false},"reason_text":{"type":"string","title":"Reason Text"},"explanation":{"items":{"type":"string"},"type":"array","title":"Explanation"}},"type":"object","required":["vehicle_id","vehicle_code","vehicle_plate_number","vehicle_display_name","score","reason_text"],"title":"ReservationReallocationVehicleOptionResponse"},"ReservationReferenceDataResponse":{"properties":{"customers":{"items":{"$ref":"#/components/schemas/CustomerResponse"},"type":"array","title":"Customers"},"drivers":{"items":{"$ref":"#/components/schemas/CustomerResponse"},"type":"array","title":"Drivers"},"branches":{"items":{"$ref":"#/components/schemas/BranchResponse"},"type":"array","title":"Branches"},"categories":{"items":{"$ref":"#/components/schemas/VehicleCategoryResponse"},"type":"array","title":"Categories"},"vehicles":{"items":{"$ref":"#/components/schemas/VehicleResponse"},"type":"array","title":"Vehicles"},"pricelists":{"items":{"$ref":"#/components/schemas/PricelistResponse"},"type":"array","title":"Pricelists"},"offers":{"items":{"$ref":"#/components/schemas/OfferResponse"},"type":"array","title":"Offers"},"insurance_products":{"items":{"$ref":"#/components/schemas/InsuranceProductResponse"},"type":"array","title":"Insurance Products"},"extra_charge_products":{"items":{"$ref":"#/components/schemas/ExtraChargeProductResponse"},"type":"array","title":"Extra Charge Products"}},"type":"object","title":"ReservationReferenceDataResponse"},"ReservationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"reservation_code":{"type":"string","title":"Reservation Code"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"driver_customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Driver Customer Id"},"vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Id"},"vehicle_category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Category Id"},"office_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Office Id"},"pricelist_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pricelist Id"},"offer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Offer Id"},"customer_name":{"type":"string","title":"Customer Name"},"customer_is_company":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Customer Is Company"},"billing_document_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Document Type"},"pricing_resolution_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Resolution Mode"},"pricing_selection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Selection Reason"},"pricing_snapshot":{"anyOf":[{"$ref":"#/components/schemas/ReservationPricingSnapshot"},{"type":"null"}]},"original_pricing_snapshot":{"anyOf":[{"$ref":"#/components/schemas/ReservationPricingSnapshot"},{"type":"null"}]},"pricing_override_applied":{"type":"boolean","title":"Pricing Override Applied","default":false},"pricing_override_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Override Reason"},"customer_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Email"},"customer_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Phone"},"customer_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Identifier"},"customer_vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Vat Number"},"customer_driving_license_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Driving License Number"},"customer_profession":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Profession"},"customer_age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Customer Age"},"customer_payment_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Payment Method"},"customer_card_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Card Reference"},"driver_same_as_customer":{"type":"boolean","title":"Driver Same As Customer","default":true},"driver_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Name"},"driver_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Email"},"driver_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Phone"},"driver_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Identifier"},"driver_vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Vat Number"},"driver_driving_license_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Driving License Number"},"driver_profession":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Profession"},"driver_age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Driver Age"},"driver_payment_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Payment Method"},"driver_card_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Card Reference"},"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"end_datetime":{"type":"string","format":"date-time","title":"End Datetime"},"days_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Count"},"hours_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hours Count"},"pickup_location_id":{"type":"string","format":"uuid","title":"Pickup Location Id"},"pickup_place":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pickup Place"},"pickup_flight_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pickup Flight Number"},"pickup_flight_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Pickup Flight Time"},"return_location_id":{"type":"string","format":"uuid","title":"Return Location Id"},"return_place":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Place"},"billing_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Category"},"vehicle_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Type"},"pricelist_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricelist Code"},"offer_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offer Reference"},"return_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Reference"},"discount_percent":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Discount Percent"},"discount_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Discount Amount"},"net_rental_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Net Rental Amount"},"insurance_total":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Insurance Total"},"extra_charges_total":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Extra Charges Total"},"subtotal_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Subtotal Amount"},"special_discount_percent":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Special Discount Percent"},"special_discount_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Special Discount Amount"},"airport_tax_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Airport Tax Amount"},"municipal_tax_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Municipal Tax Amount"},"vat_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Vat Amount"},"grand_total":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Grand Total"},"agreement_confirmed":{"type":"boolean","title":"Agreement Confirmed","default":false},"per_day_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Per Day Amount"},"receipts_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Receipts Amount"},"balance_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Balance Amount"},"guarantee_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Guarantee Amount"},"financial_locked":{"type":"boolean","title":"Financial Locked","default":false},"reservation_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reservation Datetime"},"status":{"type":"string","enum":["draft","confirmed","active","completed","cancelled"],"title":"Status"},"confirmed_flag":{"type":"boolean","title":"Confirmed Flag","default":false},"cancellation_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancellation Datetime"},"reservation_user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reservation User Name"},"partner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partner Name"},"broker_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Broker Name"},"tariff_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tariff Code"},"reference_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Number"},"sequential_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sequential Number"},"payment_wizard_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Wizard Reference"},"payment_wizard_reference_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Wizard Reference 2"},"bank_auth_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Auth Code"},"bank_transaction_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Transaction Code"},"total_price":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Total Price"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"planner_event_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Planner Event Id"},"allocation":{"anyOf":[{"$ref":"#/components/schemas/ReservationAllocationResponse"},{"type":"null"}]},"has_reallocation_opportunity":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Reallocation Opportunity"},"insurances":{"items":{"$ref":"#/components/schemas/ReservationInsuranceResponse"},"type":"array","title":"Insurances"},"extra_charges":{"items":{"$ref":"#/components/schemas/ReservationExtraChargeResponse"},"type":"array","title":"Extra Charges"}},"type":"object","required":["id","created_at","updated_at","is_active","reservation_code","customer_name","start_datetime","end_datetime","pickup_location_id","return_location_id","status"],"title":"ReservationResponse"},"ReservationStatusUpdate":{"properties":{"status":{"type":"string","enum":["draft","confirmed","active","completed","cancelled"],"title":"Status"}},"type":"object","required":["status"],"title":"ReservationStatusUpdate"},"ReservationUpdate":{"properties":{"reservation_code":{"type":"string","maxLength":32,"minLength":1,"title":"Reservation Code"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"driver_customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Driver Customer Id"},"vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Id"},"vehicle_category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Category Id"},"office_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Office Id"},"pricelist_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pricelist Id"},"offer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Offer Id"},"customer_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Customer Name"},"customer_is_company":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Customer Is Company"},"billing_document_type":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Billing Document Type"},"pricing_resolution_mode":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Pricing Resolution Mode"},"pricing_selection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Selection Reason"},"pricing_recalculate_requested":{"type":"boolean","title":"Pricing Recalculate Requested","default":false},"pricing_override_requested":{"type":"boolean","title":"Pricing Override Requested","default":false},"pricing_override_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Override Reason"},"customer_email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Customer Email"},"customer_phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Customer Phone"},"customer_identifier":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Customer Identifier"},"customer_vat_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Customer Vat Number"},"customer_driving_license_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Customer Driving License Number"},"customer_profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Customer Profession"},"customer_age":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":0.0},{"type":"null"}],"title":"Customer Age"},"customer_payment_method":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Customer Payment Method"},"customer_card_reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Customer Card Reference"},"driver_same_as_customer":{"type":"boolean","title":"Driver Same As Customer","default":true},"driver_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Driver Name"},"driver_email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Driver Email"},"driver_phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driver Phone"},"driver_identifier":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Driver Identifier"},"driver_vat_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driver Vat Number"},"driver_driving_license_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driver Driving License Number"},"driver_profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Driver Profession"},"driver_age":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":0.0},{"type":"null"}],"title":"Driver Age"},"driver_payment_method":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Driver Payment Method"},"driver_card_reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Driver Card Reference"},"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"end_datetime":{"type":"string","format":"date-time","title":"End Datetime"},"days_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Days Count"},"hours_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Hours Count"},"pickup_location_id":{"type":"string","format":"uuid","title":"Pickup Location Id"},"pickup_place":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Pickup Place"},"pickup_flight_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Pickup Flight Number"},"pickup_flight_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Pickup Flight Time"},"return_location_id":{"type":"string","format":"uuid","title":"Return Location Id"},"return_place":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Return Place"},"billing_category":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Billing Category"},"vehicle_type":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Vehicle Type"},"pricelist_code":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Pricelist Code"},"offer_reference":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Offer Reference"},"return_reference":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Return Reference"},"discount_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Discount Percent"},"discount_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Discount Amount"},"net_rental_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Net Rental Amount"},"insurance_total":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Insurance Total"},"extra_charges_total":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Extra Charges Total"},"subtotal_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Subtotal Amount"},"special_discount_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Special Discount Percent"},"special_discount_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Special Discount Amount"},"airport_tax_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Airport Tax Amount"},"municipal_tax_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Municipal Tax Amount"},"vat_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Vat Amount"},"grand_total":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Grand Total"},"agreement_confirmed":{"type":"boolean","title":"Agreement Confirmed","default":false},"per_day_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Per Day Amount"},"receipts_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Receipts Amount"},"balance_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Balance Amount"},"guarantee_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Guarantee Amount"},"financial_locked":{"type":"boolean","title":"Financial Locked","default":false},"reservation_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reservation Datetime"},"status":{"type":"string","enum":["draft","confirmed","active","completed","cancelled"],"title":"Status","default":"draft"},"confirmed_flag":{"type":"boolean","title":"Confirmed Flag","default":false},"cancellation_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancellation Datetime"},"reservation_user_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Reservation User Name"},"partner_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Partner Name"},"broker_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Broker Name"},"tariff_code":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tariff Code"},"reference_number":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Reference Number"},"sequential_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Sequential Number"},"payment_wizard_reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Payment Wizard Reference"},"payment_wizard_reference_2":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Payment Wizard Reference 2"},"bank_auth_code":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Bank Auth Code"},"bank_transaction_code":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Bank Transaction Code"},"total_price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Total Price"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"insurances":{"items":{"$ref":"#/components/schemas/ReservationInsuranceInput"},"type":"array","title":"Insurances"},"extra_charges":{"items":{"$ref":"#/components/schemas/ReservationExtraChargeInput"},"type":"array","title":"Extra Charges"}},"type":"object","required":["reservation_code","start_datetime","end_datetime","pickup_location_id","return_location_id"],"title":"ReservationUpdate"},"RoleAssignmentRequest":{"properties":{"role_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Role Ids"}},"type":"object","required":["role_ids"],"title":"RoleAssignmentRequest"},"SupplierBlacklistUpdate":{"properties":{"is_blacklisted":{"type":"boolean","title":"Is Blacklisted"}},"type":"object","required":["is_blacklisted"],"title":"SupplierBlacklistUpdate"},"SupplierContactCreate":{"properties":{"contact_name":{"type":"string","title":"Contact Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"}},"type":"object","required":["contact_name"],"title":"SupplierContactCreate"},"SupplierContactResponse":{"properties":{"contact_name":{"type":"string","title":"Contact Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["contact_name","id","created_at","updated_at","is_active"],"title":"SupplierContactResponse"},"SupplierCreate":{"properties":{"supplier_no":{"type":"string","title":"Supplier No"},"supplier_type_id":{"type":"string","title":"Supplier Type Id"},"is_company":{"type":"boolean","title":"Is Company","default":true},"company_name":{"type":"string","title":"Company Name"},"trade_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Trade Name"},"representative_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Representative Name"},"tax_registration_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Registration No"},"tax_office":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Tax Office"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"secondary_phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Secondary Phone"},"phone_3":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Phone 3"},"fax":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Fax"},"country_code":{"type":"string","title":"Country Code"},"partner":{"type":"boolean","title":"Partner","default":false},"minimum_reservation_charge_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":0.0},{"type":"null"}],"title":"Minimum Reservation Charge Days"},"withhold_commission":{"type":"boolean","title":"Withhold Commission","default":false},"nationality":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Nationality"},"identification":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Identification"},"locality":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Locality"},"entry_in_country":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Entry In Country"},"profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Profession"},"tax_profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Tax Profession"},"myf_enabled":{"type":"boolean","title":"Myf Enabled","default":false},"myf_type":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Myf Type"},"street":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Street"},"street_number":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Street Number"},"city":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"City"},"postal_code":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Postal Code"},"discount_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Discount Percent"},"special_vat_category":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Special Vat Category"},"price_list":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Price List"},"is_blacklisted":{"type":"boolean","title":"Is Blacklisted","default":false},"contact_person":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Contact Person"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"contacts":{"items":{"$ref":"#/components/schemas/SupplierContactCreate"},"type":"array","title":"Contacts"}},"type":"object","required":["supplier_no","supplier_type_id","company_name","country_code"],"title":"SupplierCreate"},"SupplierListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SupplierResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"SupplierListResponse"},"SupplierResponse":{"properties":{"supplier_no":{"type":"string","title":"Supplier No"},"supplier_type_id":{"type":"string","title":"Supplier Type Id"},"is_company":{"type":"boolean","title":"Is Company","default":true},"company_name":{"type":"string","title":"Company Name"},"trade_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Trade Name"},"representative_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Representative Name"},"tax_registration_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Registration No"},"tax_office":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Tax Office"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"secondary_phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Secondary Phone"},"phone_3":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Phone 3"},"fax":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Fax"},"country_code":{"type":"string","title":"Country Code"},"partner":{"type":"boolean","title":"Partner","default":false},"minimum_reservation_charge_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":0.0},{"type":"null"}],"title":"Minimum Reservation Charge Days"},"withhold_commission":{"type":"boolean","title":"Withhold Commission","default":false},"nationality":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Nationality"},"identification":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Identification"},"locality":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Locality"},"entry_in_country":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Entry In Country"},"profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Profession"},"tax_profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Tax Profession"},"myf_enabled":{"type":"boolean","title":"Myf Enabled","default":false},"myf_type":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Myf Type"},"street":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Street"},"street_number":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Street Number"},"city":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"City"},"postal_code":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Postal Code"},"discount_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Discount Percent"},"special_vat_category":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Special Vat Category"},"price_list":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Price List"},"is_blacklisted":{"type":"boolean","title":"Is Blacklisted","default":false},"contact_person":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Contact Person"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"contacts":{"items":{"$ref":"#/components/schemas/SupplierContactResponse"},"type":"array","title":"Contacts"}},"type":"object","required":["supplier_no","supplier_type_id","company_name","country_code","id","created_at","updated_at","is_active"],"title":"SupplierResponse"},"SupplierStatusUpdate":{"properties":{"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["is_active"],"title":"SupplierStatusUpdate"},"SupplierTypeCreate":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"category":{"type":"string","title":"Category"}},"type":"object","required":["code","name","category"],"title":"SupplierTypeCreate"},"SupplierTypeResponse":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"category":{"type":"string","title":"Category"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["code","name","category","id","created_at","updated_at","is_active"],"title":"SupplierTypeResponse"},"SupplierUpdate":{"properties":{"supplier_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier No"},"supplier_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Type Id"},"is_company":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Company"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"trade_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Trade Name"},"representative_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Representative Name"},"tax_registration_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Registration No"},"tax_office":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Tax Office"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"secondary_phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Secondary Phone"},"phone_3":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Phone 3"},"fax":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Fax"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"partner":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Partner"},"minimum_reservation_charge_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":0.0},{"type":"null"}],"title":"Minimum Reservation Charge Days"},"withhold_commission":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Withhold Commission"},"nationality":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Nationality"},"identification":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Identification"},"locality":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Locality"},"entry_in_country":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Entry In Country"},"profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Profession"},"tax_profession":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Tax Profession"},"myf_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Myf Enabled"},"myf_type":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Myf Type"},"street":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Street"},"street_number":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Street Number"},"city":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"City"},"postal_code":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Postal Code"},"discount_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Discount Percent"},"special_vat_category":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Special Vat Category"},"price_list":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Price List"},"is_blacklisted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Blacklisted"},"contact_person":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Contact Person"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"SupplierUpdate"},"TenantCreate":{"properties":{"slug":{"type":"string","maxLength":64,"minLength":2,"pattern":"^[a-z0-9-]+$","title":"Slug"},"name":{"type":"string","maxLength":255,"minLength":2,"title":"Name"},"primary_domain":{"type":"string","maxLength":255,"minLength":3,"title":"Primary Domain"},"admin_email":{"type":"string","format":"email","title":"Admin Email"},"admin_password":{"type":"string","minLength":8,"title":"Admin Password"}},"type":"object","required":["slug","name","primary_domain","admin_email","admin_password"],"title":"TenantCreate","description":"Schema για tenant creation."},"TenantLicenseAssign":{"properties":{"plan_id":{"type":"string","format":"uuid","title":"Plan Id"},"status":{"type":"string","enum":["trial","active","suspended","grace","expired","cancelled"],"title":"Status","default":"active"},"starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starts At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"max_fleet_override":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Fleet Override"},"max_concurrent_users_override":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Concurrent Users Override"},"per_transaction_fee_cents_override":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Per Transaction Fee Cents Override"},"cancellation_window_hours_override":{"anyOf":[{"type":"integer","maximum":720.0,"minimum":0.0},{"type":"null"}],"title":"Cancellation Window Hours Override"},"idle_timeout_minutes_override":{"anyOf":[{"type":"integer","maximum":1440.0,"minimum":1.0},{"type":"null"}],"title":"Idle Timeout Minutes Override"},"grace_period_days_override":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":0.0},{"type":"null"}],"title":"Grace Period Days Override"}},"type":"object","required":["plan_id"],"title":"TenantLicenseAssign","description":"Assign or replace the active license on a tenant. Plan id is required."},"TenantLicensePatch":{"properties":{"status":{"anyOf":[{"type":"string","enum":["trial","active","suspended","grace","expired","cancelled"]},{"type":"null"}],"title":"Status"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"max_fleet_override":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Fleet Override"},"max_concurrent_users_override":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Concurrent Users Override"},"per_transaction_fee_cents_override":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Per Transaction Fee Cents Override"},"cancellation_window_hours_override":{"anyOf":[{"type":"integer","maximum":720.0,"minimum":0.0},{"type":"null"}],"title":"Cancellation Window Hours Override"},"idle_timeout_minutes_override":{"anyOf":[{"type":"integer","maximum":1440.0,"minimum":1.0},{"type":"null"}],"title":"Idle Timeout Minutes Override"},"grace_period_days_override":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":0.0},{"type":"null"}],"title":"Grace Period Days Override"}},"type":"object","title":"TenantLicensePatch"},"TenantLicenseResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"plan_id":{"type":"string","format":"uuid","title":"Plan Id"},"plan":{"$ref":"#/components/schemas/LicensePlanResponse"},"status":{"type":"string","enum":["trial","active","suspended","grace","expired","cancelled"],"title":"Status"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"last_billed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Billed At"},"next_billing_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Billing At"},"grace_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Grace Started At"},"grace_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grace Reason"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"effective_max_fleet":{"type":"integer","title":"Effective Max Fleet"},"effective_max_concurrent_users":{"type":"integer","title":"Effective Max Concurrent Users"},"effective_per_transaction_fee_cents":{"type":"integer","title":"Effective Per Transaction Fee Cents"},"effective_cancellation_window_hours":{"type":"integer","title":"Effective Cancellation Window Hours"},"effective_idle_timeout_minutes":{"type":"integer","title":"Effective Idle Timeout Minutes"},"effective_grace_period_days":{"type":"integer","title":"Effective Grace Period Days"},"max_fleet_override":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Fleet Override"},"max_concurrent_users_override":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Concurrent Users Override"},"per_transaction_fee_cents_override":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Per Transaction Fee Cents Override"},"cancellation_window_hours_override":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cancellation Window Hours Override"},"idle_timeout_minutes_override":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Idle Timeout Minutes Override"},"grace_period_days_override":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grace Period Days Override"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","tenant_id","plan_id","plan","status","starts_at","expires_at","trial_ends_at","last_billed_at","next_billing_at","grace_started_at","grace_reason","notes","effective_max_fleet","effective_max_concurrent_users","effective_per_transaction_fee_cents","effective_cancellation_window_hours","effective_idle_timeout_minutes","effective_grace_period_days","max_fleet_override","max_concurrent_users_override","per_transaction_fee_cents_override","cancellation_window_hours_override","idle_timeout_minutes_override","grace_period_days_override","created_at","updated_at"],"title":"TenantLicenseResponse"},"TenantListResponse":{"properties":{"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/TenantResponse"},"type":"array","title":"Items"}},"type":"object","required":["total","items"],"title":"TenantListResponse","description":"Tenant list με pagination."},"TenantMetricsResponse":{"properties":{"user_count":{"type":"integer","title":"User Count"},"active_users_30d":{"type":"integer","title":"Active Users 30D"},"storage_used_mb":{"type":"integer","title":"Storage Used Mb"},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"}},"type":"object","required":["user_count","active_users_30d","storage_used_mb","last_activity_at"],"title":"TenantMetricsResponse","description":"Tenant metrics response."},"TenantResponse":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"primary_domain":{"type":"string","title":"Primary Domain"},"status":{"type":"string","title":"Status"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"database_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Database Name"},"metrics":{"anyOf":[{"$ref":"#/components/schemas/TenantMetricsResponse"},{"type":"null"}]}},"type":"object","required":["id","slug","name","primary_domain","status","is_active","created_at","updated_at"],"title":"TenantResponse","description":"Tenant response schema."},"TenantUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":2},{"type":"null"}],"title":"Name"},"primary_domain":{"anyOf":[{"type":"string","maxLength":255,"minLength":3},{"type":"null"}],"title":"Primary Domain"},"status":{"anyOf":[{"type":"string","pattern":"^(active|suspended|deleted)$"},{"type":"null"}],"title":"Status"}},"type":"object","title":"TenantUpdate","description":"Schema για tenant update."},"TenantUsageResponse":{"properties":{"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"license_status":{"anyOf":[{"type":"string","enum":["trial","active","suspended","grace","expired","cancelled"]},{"type":"null"}],"title":"License Status"},"plan_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Code"},"plan_type":{"anyOf":[{"type":"string","enum":["classic","transactional"]},{"type":"null"}],"title":"Plan Type"},"max_fleet":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Fleet"},"max_concurrent_users":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Concurrent Users"},"active_vehicles":{"type":"integer","title":"Active Vehicles"},"total_vehicles":{"type":"integer","title":"Total Vehicles"},"active_users":{"type":"integer","title":"Active Users"},"active_sessions":{"type":"integer","title":"Active Sessions"},"fleet_utilization_pct":{"type":"number","title":"Fleet Utilization Pct"},"seats_utilization_pct":{"type":"number","title":"Seats Utilization Pct"},"mtd_reservation_charges_cents":{"type":"integer","title":"Mtd Reservation Charges Cents"},"mtd_total_billed_cents":{"type":"integer","title":"Mtd Total Billed Cents"},"mtd_pending_cents":{"type":"integer","title":"Mtd Pending Cents"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["tenant_id","license_status","plan_code","plan_type","max_fleet","max_concurrent_users","active_vehicles","total_vehicles","active_users","active_sessions","fleet_utilization_pct","seats_utilization_pct","mtd_reservation_charges_cents","mtd_total_billed_cents","mtd_pending_cents","currency","warnings"],"title":"TenantUsageResponse","description":"Live usage snapshot for a tenant — joins control license with tenant DB counters."},"TokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"}},"type":"object","required":["access_token"],"title":"TokenResponse"},"UserCreate":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"is_superuser":{"type":"boolean","title":"Is Superuser","default":false},"role_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Role Ids","default":[]}},"type":"object","required":["email","password"],"title":"UserCreate"},"UserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"email":{"type":"string","format":"email","title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"is_superuser":{"type":"boolean","title":"Is Superuser"},"role_codes":{"items":{"type":"string"},"type":"array","title":"Role Codes","default":[]}},"type":"object","required":["id","created_at","updated_at","is_active","email","is_superuser"],"title":"UserResponse"},"UserUpdate":{"properties":{"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"is_superuser":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Superuser"}},"type":"object","title":"UserUpdate"},"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"},"VehicleAccidentHistoryResponse":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_display_name":{"type":"string","title":"Vehicle Display Name"},"items":{"items":{"$ref":"#/components/schemas/AccidentSummaryItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["vehicle_id","vehicle_display_name","items","total","limit","offset"],"title":"VehicleAccidentHistoryResponse"},"VehicleAccidentSummaryResponse":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_display_name":{"type":"string","title":"Vehicle Display Name"},"current_open_accidents":{"items":{"$ref":"#/components/schemas/AccidentSummaryItemResponse"},"type":"array","title":"Current Open Accidents"},"latest_accident":{"anyOf":[{"$ref":"#/components/schemas/AccidentSummaryItemResponse"},{"type":"null"}]},"history_preview":{"items":{"$ref":"#/components/schemas/AccidentSummaryItemResponse"},"type":"array","title":"History Preview"},"history_count":{"type":"integer","title":"History Count","default":0}},"type":"object","required":["vehicle_id","vehicle_display_name"],"title":"VehicleAccidentSummaryResponse"},"VehicleAttachmentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"asset_type":{"type":"string","enum":["photo","document"],"title":"Asset Type"},"original_filename":{"type":"string","title":"Original Filename"},"stored_filename":{"type":"string","title":"Stored Filename"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"file_size_bytes":{"type":"integer","title":"File Size Bytes"},"file_path":{"type":"string","title":"File Path"}},"type":"object","required":["id","created_at","updated_at","is_active","vehicle_id","asset_type","original_filename","stored_filename","file_size_bytes","file_path"],"title":"VehicleAttachmentResponse"},"VehicleCategoryCreate":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"acriss_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acriss Code"},"priority":{"type":"integer","maximum":999.0,"minimum":1.0,"title":"Priority","default":1},"color_hex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color Hex"},"show_in_wizard":{"type":"boolean","title":"Show In Wizard","default":true},"size_class":{"type":"string","enum":["small","medium","large"],"title":"Size Class","default":"medium"}},"type":"object","required":["code","name"],"title":"VehicleCategoryCreate"},"VehicleCategoryResponse":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"acriss_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acriss Code"},"priority":{"type":"integer","maximum":999.0,"minimum":1.0,"title":"Priority","default":1},"color_hex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color Hex"},"show_in_wizard":{"type":"boolean","title":"Show In Wizard","default":true},"size_class":{"type":"string","enum":["small","medium","large"],"title":"Size Class","default":"medium"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["code","name","id","created_at","updated_at","is_active"],"title":"VehicleCategoryResponse"},"VehicleCategoryUpdate":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"acriss_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acriss Code"},"priority":{"anyOf":[{"type":"integer","maximum":999.0,"minimum":1.0},{"type":"null"}],"title":"Priority"},"color_hex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color Hex"},"show_in_wizard":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show In Wizard"},"size_class":{"anyOf":[{"type":"string","enum":["small","medium","large"]},{"type":"null"}],"title":"Size Class"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"VehicleCategoryUpdate"},"VehicleCreate":{"properties":{"code":{"type":"string","maxLength":32,"minLength":1,"title":"Code"},"plate_number":{"type":"string","maxLength":32,"minLength":1,"title":"Plate Number"},"brand":{"type":"string","maxLength":64,"minLength":1,"title":"Brand"},"model":{"type":"string","maxLength":64,"minLength":1,"title":"Model"},"category_id":{"type":"string","format":"uuid","title":"Category Id"},"vin":{"type":"string","maxLength":64,"minLength":1,"title":"Vin"},"transmission":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transmission"},"fuel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel Type"},"seats":{"anyOf":[{"type":"integer","maximum":99.0,"minimum":1.0},{"type":"null"}],"title":"Seats"},"doors":{"anyOf":[{"type":"integer","maximum":9.0,"minimum":1.0},{"type":"null"}],"title":"Doors"},"luggage":{"anyOf":[{"type":"integer","maximum":99.0,"minimum":0.0},{"type":"null"}],"title":"Luggage"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"year":{"anyOf":[{"type":"integer","maximum":2027.0,"minimum":1900.0},{"type":"null"}],"title":"Year"},"first_registration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Registration Date"},"purchase_value":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Purchase Value"},"engine_cc":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Engine Cc"},"tire_dimensions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tire Dimensions"},"current_odometer_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Current Odometer Km"},"actual_odometer_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Actual Odometer Km"},"service_interval_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Service Interval Km"},"fuel_level_eighths":{"anyOf":[{"type":"integer","maximum":8.0,"minimum":0.0},{"type":"null"}],"title":"Fuel Level Eighths"},"fuel_consumption_per_100km":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Fuel Consumption Per 100Km"},"parking_location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parking Location"},"parking_spot":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parking Spot"},"has_used_tires":{"type":"boolean","title":"Has Used Tires","default":false},"used_tire_change_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Used Tire Change Km"},"engine_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine Number"},"immobilizer_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Immobilizer Code"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"ownership_end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Ownership End Date"},"is_rented":{"type":"boolean","title":"Is Rented","default":false},"proposed":{"type":"boolean","title":"Proposed","default":false},"is_dirty":{"type":"boolean","title":"Is Dirty","default":false},"buyback_enabled":{"type":"boolean","title":"Buyback Enabled","default":false},"buyback_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Buyback Date"},"buyback_company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyback Company"},"last_service_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Last Service Km"},"last_service_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Service Date"},"last_tire_change_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Last Tire Change Km"},"last_tire_change_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Tire Change Date"},"last_oil_change_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Last Oil Change Km"},"last_oil_change_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Oil Change Date"},"last_emissions_test_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Emissions Test Date"},"next_emissions_test_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Emissions Test Date"},"last_inspection_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Inspection Date"},"next_inspection_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Inspection Date"},"status":{"type":"string","enum":["active","inactive","maintenance","unavailable"],"title":"Status","default":"active"},"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"},"daily_price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Daily Price"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["code","plate_number","brand","model","category_id","vin"],"title":"VehicleCreate"},"VehicleInsuranceCurrentAssignmentResponse":{"properties":{"assignment_id":{"type":"string","format":"uuid","title":"Assignment Id"},"effective_from":{"type":"string","format":"date","title":"Effective From"},"effective_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective To"},"policy_id":{"type":"string","format":"uuid","title":"Policy Id"},"policy_number":{"type":"string","title":"Policy Number"},"policy_status":{"type":"string","enum":["draft","active","expired","cancelled"],"title":"Policy Status"},"policy_start_date":{"type":"string","format":"date","title":"Policy Start Date"},"policy_end_date":{"type":"string","format":"date","title":"Policy End Date"},"insurer_id":{"type":"string","format":"uuid","title":"Insurer Id"},"insurer_name":{"type":"string","title":"Insurer Name"},"expiry":{"$ref":"#/components/schemas/VehicleInsuranceExpiryResponse"}},"type":"object","required":["assignment_id","effective_from","policy_id","policy_number","policy_status","policy_start_date","policy_end_date","insurer_id","insurer_name","expiry"],"title":"VehicleInsuranceCurrentAssignmentResponse"},"VehicleInsuranceExpiryResponse":{"properties":{"is_expired":{"type":"boolean","title":"Is Expired"},"expires_in_days":{"type":"integer","title":"Expires In Days"},"is_expiring_soon":{"type":"boolean","title":"Is Expiring Soon"},"expiry_state":{"type":"string","enum":["ok","expiring_soon","expired"],"title":"Expiry State"}},"type":"object","required":["is_expired","expires_in_days","is_expiring_soon","expiry_state"],"title":"VehicleInsuranceExpiryResponse"},"VehicleInsuranceHistoryPreviewItemResponse":{"properties":{"assignment_id":{"type":"string","format":"uuid","title":"Assignment Id"},"policy_id":{"type":"string","format":"uuid","title":"Policy Id"},"policy_number":{"type":"string","title":"Policy Number"},"insurer_name":{"type":"string","title":"Insurer Name"},"effective_from":{"type":"string","format":"date","title":"Effective From"},"effective_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective To"},"is_current":{"type":"boolean","title":"Is Current"}},"type":"object","required":["assignment_id","policy_id","policy_number","insurer_name","effective_from","is_current"],"title":"VehicleInsuranceHistoryPreviewItemResponse"},"VehicleInsurancePolicyAssignmentClose":{"properties":{"effective_to":{"type":"string","format":"date","title":"Effective To"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["effective_to"],"title":"VehicleInsurancePolicyAssignmentClose"},"VehicleInsurancePolicyAssignmentCreate":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"effective_from":{"type":"string","format":"date","title":"Effective From"},"effective_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective To"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["vehicle_id","effective_from"],"title":"VehicleInsurancePolicyAssignmentCreate"},"VehicleInsurancePolicyAssignmentListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/VehicleInsurancePolicyAssignmentResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"policy_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Policy Id"},"vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Id"}},"type":"object","required":["items","total"],"title":"VehicleInsurancePolicyAssignmentListResponse"},"VehicleInsurancePolicyAssignmentReplaceCurrent":{"properties":{"new_policy_id":{"type":"string","format":"uuid","title":"New Policy Id"},"new_effective_from":{"type":"string","format":"date","title":"New Effective From"},"close_current_effective_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Close Current Effective To"},"new_assignment_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Assignment Notes"}},"type":"object","required":["new_policy_id","new_effective_from"],"title":"VehicleInsurancePolicyAssignmentReplaceCurrent"},"VehicleInsurancePolicyAssignmentReplaceResponse":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_display_name":{"type":"string","title":"Vehicle Display Name"},"closed_assignment":{"anyOf":[{"$ref":"#/components/schemas/VehicleInsurancePolicyAssignmentResponse"},{"type":"null"}]},"new_assignment":{"$ref":"#/components/schemas/VehicleInsurancePolicyAssignmentResponse"}},"type":"object","required":["vehicle_id","vehicle_display_name","new_assignment"],"title":"VehicleInsurancePolicyAssignmentReplaceResponse"},"VehicleInsurancePolicyAssignmentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"vehicle_insurance_policy_id":{"type":"string","format":"uuid","title":"Vehicle Insurance Policy Id"},"policy_number":{"type":"string","title":"Policy Number"},"policy_status":{"type":"string","enum":["draft","active","expired","cancelled"],"title":"Policy Status"},"insurer_id":{"type":"string","format":"uuid","title":"Insurer Id"},"insurer_name":{"type":"string","title":"Insurer Name"},"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_code":{"type":"string","title":"Vehicle Code"},"vehicle_plate_number":{"type":"string","title":"Vehicle Plate Number"},"vehicle_display_name":{"type":"string","title":"Vehicle Display Name"},"effective_from":{"type":"string","format":"date","title":"Effective From"},"effective_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective To"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_current":{"type":"boolean","title":"Is Current"}},"type":"object","required":["id","created_at","updated_at","is_active","vehicle_insurance_policy_id","policy_number","policy_status","insurer_id","insurer_name","vehicle_id","vehicle_code","vehicle_plate_number","vehicle_display_name","effective_from","is_current"],"title":"VehicleInsurancePolicyAssignmentResponse"},"VehicleInsurancePolicyCreate":{"properties":{"insurer_id":{"type":"string","format":"uuid","title":"Insurer Id"},"policy_number":{"type":"string","maxLength":120,"minLength":1,"title":"Policy Number"},"start_date":{"type":"string","format":"date","title":"Start Date"},"end_date":{"type":"string","format":"date","title":"End Date"},"status":{"type":"string","enum":["draft","active","expired","cancelled"],"title":"Status","default":"draft"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["insurer_id","policy_number","start_date","end_date"],"title":"VehicleInsurancePolicyCreate"},"VehicleInsurancePolicyDocumentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"vehicle_insurance_policy_id":{"type":"string","format":"uuid","title":"Vehicle Insurance Policy Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"original_filename":{"type":"string","title":"Original Filename"},"stored_filename":{"type":"string","title":"Stored Filename"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"file_size_bytes":{"type":"integer","title":"File Size Bytes"},"file_path":{"type":"string","title":"File Path"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","created_at","updated_at","is_active","vehicle_insurance_policy_id","original_filename","stored_filename","file_size_bytes","file_path"],"title":"VehicleInsurancePolicyDocumentResponse"},"VehicleInsurancePolicyListItemResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"insurer_id":{"type":"string","format":"uuid","title":"Insurer Id"},"insurer_name":{"type":"string","title":"Insurer Name"},"policy_number":{"type":"string","title":"Policy Number"},"start_date":{"type":"string","format":"date","title":"Start Date"},"end_date":{"type":"string","format":"date","title":"End Date"},"status":{"type":"string","enum":["draft","active","expired","cancelled"],"title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"assignment_count":{"type":"integer","title":"Assignment Count"},"current_assignment_count":{"type":"integer","title":"Current Assignment Count"},"document_count":{"type":"integer","title":"Document Count"},"is_date_expired":{"type":"boolean","title":"Is Date Expired"},"expires_in_days":{"type":"integer","title":"Expires In Days"},"is_expiring_soon":{"type":"boolean","title":"Is Expiring Soon"},"expiry_state":{"type":"string","enum":["ok","expiring_soon","expired"],"title":"Expiry State"}},"type":"object","required":["id","created_at","updated_at","is_active","insurer_id","insurer_name","policy_number","start_date","end_date","status","assignment_count","current_assignment_count","document_count","is_date_expired","expires_in_days","is_expiring_soon","expiry_state"],"title":"VehicleInsurancePolicyListItemResponse"},"VehicleInsurancePolicyListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/VehicleInsurancePolicyListItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"VehicleInsurancePolicyListResponse"},"VehicleInsurancePolicyResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"insurer_id":{"type":"string","format":"uuid","title":"Insurer Id"},"insurer_name":{"type":"string","title":"Insurer Name"},"policy_number":{"type":"string","title":"Policy Number"},"start_date":{"type":"string","format":"date","title":"Start Date"},"end_date":{"type":"string","format":"date","title":"End Date"},"status":{"type":"string","enum":["draft","active","expired","cancelled"],"title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"assignment_count":{"type":"integer","title":"Assignment Count"},"current_assignment_count":{"type":"integer","title":"Current Assignment Count"},"document_count":{"type":"integer","title":"Document Count"},"is_date_expired":{"type":"boolean","title":"Is Date Expired"},"expires_in_days":{"type":"integer","title":"Expires In Days"},"is_expiring_soon":{"type":"boolean","title":"Is Expiring Soon"},"expiry_state":{"type":"string","enum":["ok","expiring_soon","expired"],"title":"Expiry State"}},"type":"object","required":["id","created_at","updated_at","is_active","insurer_id","insurer_name","policy_number","start_date","end_date","status","assignment_count","current_assignment_count","document_count","is_date_expired","expires_in_days","is_expiring_soon","expiry_state"],"title":"VehicleInsurancePolicyResponse"},"VehicleInsurancePolicyStatusUpdate":{"properties":{"status":{"type":"string","enum":["draft","active","expired","cancelled"],"title":"Status"}},"type":"object","required":["status"],"title":"VehicleInsurancePolicyStatusUpdate"},"VehicleInsurancePolicyUpdate":{"properties":{"insurer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Insurer Id"},"policy_number":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Policy Number"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"VehicleInsurancePolicyUpdate"},"VehicleInsuranceSummaryResponse":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_display_name":{"type":"string","title":"Vehicle Display Name"},"as_of_date":{"type":"string","format":"date","title":"As Of Date"},"current_assignment":{"anyOf":[{"$ref":"#/components/schemas/VehicleInsuranceCurrentAssignmentResponse"},{"type":"null"}]},"history_preview":{"items":{"$ref":"#/components/schemas/VehicleInsuranceHistoryPreviewItemResponse"},"type":"array","title":"History Preview"},"history_count":{"type":"integer","title":"History Count","default":0}},"type":"object","required":["vehicle_id","vehicle_display_name","as_of_date"],"title":"VehicleInsuranceSummaryResponse"},"VehicleRepairHistoryResponse":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_display_name":{"type":"string","title":"Vehicle Display Name"},"items":{"items":{"$ref":"#/components/schemas/RepairVehicleHistoryItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["vehicle_id","vehicle_display_name","items","total","limit","offset"],"title":"VehicleRepairHistoryResponse"},"VehicleRepairSummaryResponse":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"vehicle_display_name":{"type":"string","title":"Vehicle Display Name"},"is_currently_unavailable_for_repair":{"type":"boolean","title":"Is Currently Unavailable For Repair"},"current_open_repairs":{"items":{"$ref":"#/components/schemas/RepairVehicleHistoryItemResponse"},"type":"array","title":"Current Open Repairs"},"latest_repair":{"anyOf":[{"$ref":"#/components/schemas/RepairVehicleHistoryItemResponse"},{"type":"null"}]},"history_preview":{"items":{"$ref":"#/components/schemas/RepairVehicleHistoryItemResponse"},"type":"array","title":"History Preview"},"history_count":{"type":"integer","title":"History Count","default":0}},"type":"object","required":["vehicle_id","vehicle_display_name","is_currently_unavailable_for_repair"],"title":"VehicleRepairSummaryResponse"},"VehicleResponse":{"properties":{"code":{"type":"string","maxLength":32,"minLength":1,"title":"Code"},"plate_number":{"type":"string","maxLength":32,"minLength":1,"title":"Plate Number"},"brand":{"type":"string","maxLength":64,"minLength":1,"title":"Brand"},"model":{"type":"string","maxLength":64,"minLength":1,"title":"Model"},"category_id":{"type":"string","format":"uuid","title":"Category Id"},"vin":{"type":"string","maxLength":64,"minLength":1,"title":"Vin"},"transmission":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transmission"},"fuel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel Type"},"seats":{"anyOf":[{"type":"integer","maximum":99.0,"minimum":1.0},{"type":"null"}],"title":"Seats"},"doors":{"anyOf":[{"type":"integer","maximum":9.0,"minimum":1.0},{"type":"null"}],"title":"Doors"},"luggage":{"anyOf":[{"type":"integer","maximum":99.0,"minimum":0.0},{"type":"null"}],"title":"Luggage"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"year":{"anyOf":[{"type":"integer","maximum":2027.0,"minimum":1900.0},{"type":"null"}],"title":"Year"},"first_registration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Registration Date"},"purchase_value":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Purchase Value"},"engine_cc":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Engine Cc"},"tire_dimensions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tire Dimensions"},"current_odometer_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Current Odometer Km"},"actual_odometer_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Actual Odometer Km"},"service_interval_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Service Interval Km"},"fuel_level_eighths":{"anyOf":[{"type":"integer","maximum":8.0,"minimum":0.0},{"type":"null"}],"title":"Fuel Level Eighths"},"fuel_consumption_per_100km":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Fuel Consumption Per 100Km"},"parking_location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parking Location"},"parking_spot":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parking Spot"},"has_used_tires":{"type":"boolean","title":"Has Used Tires","default":false},"used_tire_change_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Used Tire Change Km"},"engine_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine Number"},"immobilizer_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Immobilizer Code"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"ownership_end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Ownership End Date"},"is_rented":{"type":"boolean","title":"Is Rented","default":false},"proposed":{"type":"boolean","title":"Proposed","default":false},"is_dirty":{"type":"boolean","title":"Is Dirty","default":false},"buyback_enabled":{"type":"boolean","title":"Buyback Enabled","default":false},"buyback_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Buyback Date"},"buyback_company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyback Company"},"last_service_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Last Service Km"},"last_service_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Service Date"},"last_tire_change_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Last Tire Change Km"},"last_tire_change_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Tire Change Date"},"last_oil_change_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Last Oil Change Km"},"last_oil_change_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Oil Change Date"},"last_emissions_test_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Emissions Test Date"},"next_emissions_test_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Emissions Test Date"},"last_inspection_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Inspection Date"},"next_inspection_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Inspection Date"},"status":{"type":"string","enum":["active","inactive","maintenance","unavailable"],"title":"Status","default":"active"},"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"},"daily_price":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Daily Price"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["code","plate_number","brand","model","category_id","vin","id","created_at","updated_at","is_active"],"title":"VehicleResponse"},"VehicleStatusUpdate":{"properties":{"status":{"type":"string","enum":["active","inactive","maintenance","unavailable"],"title":"Status"}},"type":"object","required":["status"],"title":"VehicleStatusUpdate"},"VehicleUpdate":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"plate_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate Number"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin"},"transmission":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transmission"},"fuel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel Type"},"seats":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats"},"doors":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Doors"},"luggage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Luggage"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year"},"first_registration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Registration Date"},"purchase_value":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Purchase Value"},"engine_cc":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Engine Cc"},"tire_dimensions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tire Dimensions"},"current_odometer_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Odometer Km"},"actual_odometer_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Actual Odometer Km"},"service_interval_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Interval Km"},"fuel_level_eighths":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fuel Level Eighths"},"fuel_consumption_per_100km":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Fuel Consumption Per 100Km"},"parking_location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parking Location"},"parking_spot":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parking Spot"},"has_used_tires":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Used Tires"},"used_tire_change_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Used Tire Change Km"},"engine_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine Number"},"immobilizer_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Immobilizer Code"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"ownership_end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Ownership End Date"},"is_rented":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Rented"},"proposed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Proposed"},"is_dirty":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Dirty"},"buyback_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Buyback Enabled"},"buyback_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Buyback Date"},"buyback_company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyback Company"},"last_service_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Service Km"},"last_service_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Service Date"},"last_tire_change_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Tire Change Km"},"last_tire_change_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Tire Change Date"},"last_oil_change_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Oil Change Km"},"last_oil_change_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Oil Change Date"},"last_emissions_test_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Emissions Test Date"},"next_emissions_test_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Emissions Test Date"},"last_inspection_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Inspection Date"},"next_inspection_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Inspection Date"},"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"},"daily_price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Daily Price"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"VehicleUpdate"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}