@citrineos/base
Version:
The base module for OCPP v2.0.1 including all interfaces. This module is not intended to be used directly, but rather as a dependency for other modules.
56 lines (55 loc) • 2.23 kB
JSON
{
"$id": "StatusNotificationRequest",
"comment": "OCPP 2.1 Edition 1 (c) OCA, Creative Commons Attribution-NoDerivatives 4.0 International Public License",
"definitions": {
"ConnectorStatusEnumType": {
"description": "This contains the current status of the Connector.\r\n",
"javaType": "ConnectorStatusEnum",
"type": "string",
"additionalProperties": false,
"enum": ["Available", "Occupied", "Reserved", "Unavailable", "Faulted"],
"tsEnumNames": ["Available", "Occupied", "Reserved", "Unavailable", "Faulted"]
},
"CustomDataType": {
"description": "This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.",
"javaType": "CustomData",
"type": "object",
"properties": {
"vendorId": {
"type": "string",
"maxLength": 255
}
},
"required": ["vendorId"]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"timestamp": {
"description": "The time for which the status is reported.\r\n",
"type": "string",
"format": "date-time",
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+\\-]\\d{2}:\\d{2})$"
},
"connectorStatus": {
"$ref": "#/definitions/ConnectorStatusEnumType"
},
"evseId": {
"description": "The id of the EVSE to which the connector belongs for which the the status is reported.\r\n",
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"connectorId": {
"description": "The id of the connector within the EVSE for which the status is reported.\r\n",
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": ["timestamp", "connectorStatus", "evseId", "connectorId"]
}