{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/silvercar/json-schema/silvercar-admin-customer-response-schema.json",
  "title": "AdminCustomerResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/silvercar-customers-api-openapi.yml#/components/schemas/AdminCustomerResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "amount_due": {
      "type": "string"
    },
    "complete_profile": {
      "type": "boolean"
    },
    "email": {
      "type": [
        "string",
        "null"
      ]
    },
    "first_name": {
      "type": "string"
    },
    "language": {
      "type": "string",
      "enum": [
        "en",
        "fr"
      ],
      "description": "The preferred language"
    },
    "last_name": {
      "type": "string"
    },
    "permitted_to_rent": {
      "type": "boolean"
    },
    "phone_number": {
      "type": "string"
    },
    "ccpa": {
      "type": "boolean"
    },
    "links": {
      "type": "object",
      "properties": {
        "dealership": {
          "$ref": "#/$defs/HypermediaLink"
        }
      }
    },
    "has_ongoing_contracts": {
      "type": "boolean"
    }
  },
  "$defs": {
    "HypermediaLink": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "ID of the associated resource"
        },
        "href": {
          "type": "string",
          "description": "Link to the associated resource"
        }
      }
    }
  }
}