{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/silvercar/json-schema/silvercar-admin-fleet-settings-request-schema.json",
  "title": "AdminFleetSettingsRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/silvercar-fleet-settings-api-openapi.yml#/components/schemas/AdminFleetSettingsRequest",
  "type": "object",
  "properties": {
    "dealer_code": {
      "type": "string"
    },
    "default_infleet_group": {
      "type": "boolean"
    },
    "drive_protection": {
      "$ref": "#/$defs/AdminFleetSettingsDriveProtection"
    },
    "external_availability_group": {
      "type": "boolean"
    },
    "exclude_rate": {
      "type": "boolean"
    },
    "minimum_age": {
      "type": "integer"
    },
    "geofence_charges": {
      "$ref": "#/$defs/AdminFleetSettingsGeofenceCharges"
    },
    "program_type": {
      "type": "string"
    },
    "view_vehicles_under_contract": {
      "type": "boolean"
    },
    "require_insurance_sufficiency": {
      "type": "string",
      "enum": [
        "none",
        "loaner",
        "rental",
        "loaner_rental"
      ],
      "description": "Specifies when insurance sufficiency checks are required (none, loaner, rental, or loaner_rental)"
    },
    "rented_vehicle_buffer_minutes": {
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "$defs": {
    "AdminFleetSettingsDriveProtection": {
      "type": "object",
      "required": [
        "taxable"
      ],
      "additionalProperties": false,
      "properties": {
        "collision_damage_warranty": {
          "type": "boolean",
          "description": "Legacy CDW setting. It must remain disabled."
        },
        "loss_damage_warranty": {
          "type": "boolean"
        },
        "renters_contingent_liability_insurance": {
          "type": "boolean"
        },
        "supplemental_liability_insurance": {
          "type": "boolean"
        },
        "taxable": {
          "type": "boolean"
        }
      }
    },
    "AdminFleetSettingsGeofenceCharge": {
      "type": "object",
      "required": [
        "name",
        "enabled_for_rented_vehicles",
        "vehicle_exits"
      ],
      "additionalProperties": false,
      "properties": {
        "name": {
          "type": "string",
          "description": "Fence display name. This is owned by geofence configuration events and is preserved during settings\nupdates when the fence already exists in mob-api.\n"
        },
        "enabled_for_rented_vehicles": {
          "type": "boolean",
          "description": "Whether the fence applies to rented vehicles. This is owned by geofence configuration events and is\npreserved during settings updates when the fence already exists in mob-api.\n"
        },
        "vehicle_exits": {
          "type": "boolean",
          "description": "Whether this fence charges when the vehicle exits the geofence. This is owned by geofence configuration\nevents and is preserved during settings updates when the fence already exists in mob-api.\n"
        },
        "penalty": {
          "type": [
            "object",
            "null"
          ],
          "allOf": [
            {
              "$ref": "#/$defs/AdminFleetSettingsGeofencePenaltyCharge"
            }
          ],
          "description": "Optional charge configuration. Omitted, null, or a valid charge object are accepted."
        }
      }
    },
    "AdminFleetSettingsGeofenceCharges": {
      "type": "object",
      "description": "Geofence charge settings keyed by geofence id.",
      "additionalProperties": {
        "$ref": "#/$defs/AdminFleetSettingsGeofenceCharge"
      }
    },
    "AdminFleetSettingsGeofencePenaltyCharge": {
      "type": "object",
      "required": [
        "price",
        "taxable",
        "customer_sms",
        "auto_charge"
      ],
      "additionalProperties": false,
      "properties": {
        "price": {
          "type": "number",
          "format": "float"
        },
        "taxable": {
          "type": "boolean"
        },
        "customer_sms": {
          "type": "boolean"
        },
        "auto_charge": {
          "type": "boolean"
        }
      }
    }
  }
}