Fixes to OCA OCPP 2.0.1 JSON schemas
[e-mobility-charging-stations-simulator.git] / src / assets / json-schemas / ocpp / 2.0 / CostUpdatedRequest.json
1 {
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "$id": "urn:OCPP:Cp:2:2020:3:CostUpdatedRequest",
4 "$comment": "OCPP 2.0.1 FINAL",
5 "definitions": {
6 "CustomDataType": {
7 "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.",
8 "javaType": "CustomData",
9 "type": "object",
10 "properties": {
11 "vendorId": {
12 "type": "string",
13 "maxLength": 255
14 }
15 },
16 "required": ["vendorId"]
17 }
18 },
19 "type": "object",
20 "additionalProperties": false,
21 "properties": {
22 "customData": {
23 "$ref": "#/definitions/CustomDataType"
24 },
25 "totalCost": {
26 "description": "Current total cost, based on the information known by the CSMS, of the transaction including taxes. In the currency configured with the configuration Variable: [<<configkey-currency, Currency>>]\r\n\r\n",
27 "type": "number"
28 },
29 "transactionId": {
30 "description": "Transaction Id of the transaction the current cost are asked for.\r\n\r\n",
31 "type": "string",
32 "maxLength": 36
33 }
34 },
35 "required": ["totalCost", "transactionId"]
36 }