Debian Codegraph @

ocpp/v201/schemas/TransactionEventResponse.json

raw
1 {
2 "$schema": "http://json-schema.org/draft-06/schema#",
3 "comment": "OCPP 2.0.1 FINAL",
4 "definitions": {
5 "CustomDataType": {
6 "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.",
7 "javaType": "CustomData",
8 "type": "object",
9 "properties": {
10 "vendorId": {
11 "type": "string",
12 "maxLength": 255
13 }
14 },
15 "required": [
16 "vendorId"
17 ]
18 },
19 "AuthorizationStatusEnumType": {
20 "description": "ID_ Token. Status. Authorization_ Status\r\nurn:x-oca:ocpp:uid:1:569372\r\nCurrent status of the ID Token.\r\n",
21 "javaType": "AuthorizationStatusEnum",
22 "type": "string",
23 "additionalProperties": false,
24 "enum": [
25 "Accepted",
26 "Blocked",
27 "ConcurrentTx",
28 "Expired",
29 "Invalid",
30 "NoCredit",
31 "NotAllowedTypeEVSE",
32 "NotAtThisLocation",
33 "NotAtThisTime",
34 "Unknown"
35 ]
36 },
37 "IdTokenEnumType": {
38 "description": "Enumeration of possible idToken types.\r\n",
39 "javaType": "IdTokenEnum",
40 "type": "string",
41 "additionalProperties": false,
42 "enum": [
43 "Central",
44 "eMAID",
45 "ISO14443",
46 "ISO15693",
47 "KeyCode",
48 "Local",
49 "MacAddress",
50 "NoAuthorization"
51 ]
52 },
53 "MessageFormatEnumType": {
54 "description": "Message_ Content. Format. Message_ Format_ Code\r\nurn:x-enexis:ecdm:uid:1:570848\r\nFormat of the message.\r\n",
55 "javaType": "MessageFormatEnum",
56 "type": "string",
57 "additionalProperties": false,
58 "enum": [
59 "ASCII",
60 "HTML",
61 "URI",
62 "UTF8"
63 ]
64 },
65 "AdditionalInfoType": {
66 "description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n",
67 "javaType": "AdditionalInfo",
68 "type": "object",
69 "additionalProperties": false,
70 "properties": {
71 "customData": {
72 "$ref": "#/definitions/CustomDataType"
73 },
74 "additionalIdToken": {
75 "description": "This field specifies the additional IdToken.\r\n",
76 "type": "string",
77 "maxLength": 36
78 },
79 "type": {
80 "description": "This defines the type of the additionalIdToken. This is a custom type, so the implementation needs to be agreed upon by all involved parties.\r\n",
81 "type": "string",
82 "maxLength": 50
83 }
84 },
85 "required": [
86 "additionalIdToken",
87 "type"
88 ]
89 },
90 "IdTokenInfoType": {
91 "description": "ID_ Token\r\nurn:x-oca:ocpp:uid:2:233247\r\nContains status information about an identifier.\r\nIt is advised to not stop charging for a token that expires during charging, as ExpiryDate is only used for caching purposes. If ExpiryDate is not given, the status has no end date.\r\n",
92 "javaType": "IdTokenInfo",
93 "type": "object",
94 "additionalProperties": false,
95 "properties": {
96 "customData": {
97 "$ref": "#/definitions/CustomDataType"
98 },
99 "status": {
100 "$ref": "#/definitions/AuthorizationStatusEnumType"
101 },
102 "cacheExpiryDateTime": {
103 "description": "ID_ Token. Expiry. Date_ Time\r\nurn:x-oca:ocpp:uid:1:569373\r\nDate and Time after which the token must be considered invalid.\r\n",
104 "type": "string",
105 "format": "date-time"
106 },
107 "chargingPriority": {
108 "description": "Priority from a business point of view. Default priority is 0, The range is from -9 to 9. Higher values indicate a higher priority. The chargingPriority in <<transactioneventresponse,TransactionEventResponse>> overrules this one. \r\n",
109 "type": "integer"
110 },
111 "language1": {
112 "description": "ID_ Token. Language1. Language_ Code\r\nurn:x-oca:ocpp:uid:1:569374\r\nPreferred user interface language of identifier user. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>.\r\n\r\n",
113 "type": "string",
114 "maxLength": 8
115 },
116 "evseId": {
117 "description": "Only used when the IdToken is only valid for one or more specific EVSEs, not for the entire Charging Station.\r\n\r\n",
118 "type": "array",
119 "additionalItems": false,
120 "items": {
121 "type": "integer"
122 },
123 "minItems": 1
124 },
125 "groupIdToken": {
126 "$ref": "#/definitions/IdTokenType"
127 },
128 "language2": {
129 "description": "ID_ Token. Language2. Language_ Code\r\nurn:x-oca:ocpp:uid:1:569375\r\nSecond preferred user interface language of identifier user. Don’t use when language1 is omitted, has to be different from language1. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>.\r\n",
130 "type": "string",
131 "maxLength": 8
132 },
133 "personalMessage": {
134 "$ref": "#/definitions/MessageContentType"
135 }
136 },
137 "required": [
138 "status"
139 ]
140 },
141 "IdTokenType": {
142 "description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n",
143 "javaType": "IdToken",
144 "type": "object",
145 "additionalProperties": false,
146 "properties": {
147 "customData": {
148 "$ref": "#/definitions/CustomDataType"
149 },
150 "additionalInfo": {
151 "type": "array",
152 "additionalItems": false,
153 "items": {
154 "$ref": "#/definitions/AdditionalInfoType"
155 },
156 "minItems": 1
157 },
158 "idToken": {
159 "description": "IdToken is case insensitive. Might hold the hidden id of an RFID tag, but can for example also contain a UUID.\r\n",
160 "type": "string",
161 "maxLength": 36
162 },
163 "type": {
164 "$ref": "#/definitions/IdTokenEnumType"
165 }
166 },
167 "required": [
168 "idToken",
169 "type"
170 ]
171 },
172 "MessageContentType": {
173 "description": "Message_ Content\r\nurn:x-enexis:ecdm:uid:2:234490\r\nContains message details, for a message to be displayed on a Charging Station.\r\n\r\n",
174 "javaType": "MessageContent",
175 "type": "object",
176 "additionalProperties": false,
177 "properties": {
178 "customData": {
179 "$ref": "#/definitions/CustomDataType"
180 },
181 "format": {
182 "$ref": "#/definitions/MessageFormatEnumType"
183 },
184 "language": {
185 "description": "Message_ Content. Language. Language_ Code\r\nurn:x-enexis:ecdm:uid:1:570849\r\nMessage language identifier. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>.\r\n",
186 "type": "string",
187 "maxLength": 8
188 },
189 "content": {
190 "description": "Message_ Content. Content. Message\r\nurn:x-enexis:ecdm:uid:1:570852\r\nMessage contents.\r\n\r\n",
191 "type": "string",
192 "maxLength": 512
193 }
194 },
195 "required": [
196 "format",
197 "content"
198 ]
199 }
200 },
201 "type": "object",
202 "additionalProperties": false,
203 "properties": {
204 "customData": {
205 "$ref": "#/definitions/CustomDataType"
206 },
207 "totalCost": {
208 "description": "SHALL only be sent when charging has ended. Final total cost of this transaction, including taxes. In the currency configured with the Configuration Variable: <<configkey-currency,`Currency`>>. When omitted, the transaction was NOT free. To indicate a free transaction, the CSMS SHALL send 0.00.\r\n\r\n",
209 "type": "number"
210 },
211 "chargingPriority": {
212 "description": "Priority from a business point of view. Default priority is 0, The range is from -9 to 9. Higher values indicate a higher priority. The chargingPriority in <<transactioneventresponse,TransactionEventResponse>> is temporarily, so it may not be set in the <<cmn_idtokeninfotype,IdTokenInfoType>> afterwards. Also the chargingPriority in <<transactioneventresponse,TransactionEventResponse>> overrules the one in <<cmn_idtokeninfotype,IdTokenInfoType>>. \r\n",
213 "type": "integer"
214 },
215 "idTokenInfo": {
216 "$ref": "#/definitions/IdTokenInfoType"
217 },
218 "updatedPersonalMessage": {
219 "$ref": "#/definitions/MessageContentType"
220 }
221 }
222 }