{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/easee/json-schema/easee-easee-cloud-api-charger-dto2-schema.json",
  "title": "Easee_Cloud_API_ChargerDTO2",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/easee-site-api-openapi.yml#/components/schemas/Easee_Cloud_API_ChargerDTO2",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "color": {
      "oneOf": [
        {
          "$ref": "#/$defs/Easee_Cloud_API_ChargerColorType2"
        }
      ]
    },
    "createdOn": {
      "type": "string",
      "format": "date-time"
    },
    "updatedOn": {
      "type": "string",
      "format": "date-time"
    },
    "backPlate": {
      "oneOf": [
        {
          "$ref": "#/$defs/Easee_Cloud_API_BackPlateDto"
        }
      ]
    },
    "levelOfAccess": {
      "oneOf": [
        {
          "$ref": "#/$defs/Easee_Cloud_API_LevelOfAccess2"
        }
      ]
    },
    "productCode": {
      "oneOf": [
        {
          "$ref": "#/$defs/Easee_Cloud_API_ProductType2"
        }
      ]
    },
    "userRole": {
      "oneOf": [
        {
          "$ref": "#/$defs/Easee_Cloud_API_SiteUserRole"
        }
      ]
    },
    "isTemporary": {
      "type": "boolean"
    }
  },
  "$defs": {
    "Easee_Cloud_API_BackPlateDto": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "masterBackPlateId": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "variant": {
          "type": [
            "string",
            "null"
          ]
        },
        "backplateType": {
          "$ref": "#/$defs/Easee_Cloud_API_BackplateType"
        },
        "features": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Easee_Cloud_API_BackPlateFeature2"
          }
        },
        "createdOn": {
          "type": "string",
          "format": "date-time"
        },
        "installedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "Easee_Cloud_API_BackPlateFeature2": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "UkOffpeak",
        "UkRandomStartDelay",
        "FrPermaTether"
      ],
      "enum": [
        0,
        1,
        2
      ]
    },
    "Easee_Cloud_API_BackplateType": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Normal",
        "Factory"
      ],
      "enum": [
        0,
        1
      ]
    },
    "Easee_Cloud_API_ChargerColorType2": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Black",
        "Red",
        "Blue",
        "White",
        "Anthracite"
      ],
      "enum": [
        1,
        2,
        3,
        4,
        5
      ]
    },
    "Easee_Cloud_API_LevelOfAccess2": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Open",
        "EaseeAccounts",
        "SpecificUsers"
      ],
      "enum": [
        1,
        2,
        3
      ]
    },
    "Easee_Cloud_API_ProductType2": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "EaseeHome",
        "EaseeCharge",
        "Equalizer"
      ],
      "enum": [
        1,
        100,
        1000
      ]
    },
    "Easee_Cloud_API_SiteUserRole": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Owner",
        "Admin",
        "BasicUser",
        "ChargerUser"
      ],
      "enum": [
        1,
        2,
        3,
        20
      ]
    }
  }
}