| 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "$id": "urn:OCPP:1.6:2019:12:StopTransactionRequest", |
| 4 | "title": "StopTransactionRequest", |
| 5 | "type": "object", |
| 6 | "properties": { |
| 7 | "idTag": { |
| 8 | "type": "string", |
| 9 | "maxLength": 20 |
| 10 | }, |
| 11 | "meterStop": { |
| 12 | "type": "integer" |
| 13 | }, |
| 14 | "timestamp": { |
| 15 | "type": "string", |
| 16 | "format": "date-time" |
| 17 | }, |
| 18 | "transactionId": { |
| 19 | "type": "integer" |
| 20 | }, |
| 21 | "reason": { |
| 22 | "type": "string", |
| 23 | "additionalProperties": false, |
| 24 | "enum": [ |
| 25 | "EmergencyStop", |
| 26 | "EVDisconnected", |
| 27 | "HardReset", |
| 28 | "Local", |
| 29 | "Other", |
| 30 | "PowerLoss", |
| 31 | "Reboot", |
| 32 | "Remote", |
| 33 | "SoftReset", |
| 34 | "UnlockCommand", |
| 35 | "DeAuthorized" |
| 36 | ] |
| 37 | }, |
| 38 | "transactionData": { |
| 39 | "type": "array", |
| 40 | "items": { |
| 41 | "type": "object", |
| 42 | "properties": { |
| 43 | "timestamp": { |
| 44 | "type": "string", |
| 45 | "format": "date-time" |
| 46 | }, |
| 47 | "sampledValue": { |
| 48 | "type": "array", |
| 49 | "items": { |
| 50 | "type": "object", |
| 51 | "properties": { |
| 52 | "value": { |
| 53 | "type": "string" |
| 54 | }, |
| 55 | "context": { |
| 56 | "type": "string", |
| 57 | "additionalProperties": false, |
| 58 | "enum": [ |
| 59 | "Interruption.Begin", |
| 60 | "Interruption.End", |
| 61 | "Sample.Clock", |
| 62 | "Sample.Periodic", |
| 63 | "Transaction.Begin", |
| 64 | "Transaction.End", |
| 65 | "Trigger", |
| 66 | "Other" |
| 67 | ] |
| 68 | }, |
| 69 | "format": { |
| 70 | "type": "string", |
| 71 | "additionalProperties": false, |
| 72 | "enum": ["Raw", "SignedData"] |
| 73 | }, |
| 74 | "measurand": { |
| 75 | "type": "string", |
| 76 | "additionalProperties": false, |
| 77 | "enum": [ |
| 78 | "Energy.Active.Export.Register", |
| 79 | "Energy.Active.Import.Register", |
| 80 | "Energy.Reactive.Export.Register", |
| 81 | "Energy.Reactive.Import.Register", |
| 82 | "Energy.Active.Export.Interval", |
| 83 | "Energy.Active.Import.Interval", |
| 84 | "Energy.Reactive.Export.Interval", |
| 85 | "Energy.Reactive.Import.Interval", |
| 86 | "Power.Active.Export", |
| 87 | "Power.Active.Import", |
| 88 | "Power.Offered", |
| 89 | "Power.Reactive.Export", |
| 90 | "Power.Reactive.Import", |
| 91 | "Power.Factor", |
| 92 | "Current.Import", |
| 93 | "Current.Export", |
| 94 | "Current.Offered", |
| 95 | "Voltage", |
| 96 | "Frequency", |
| 97 | "Temperature", |
| 98 | "SoC", |
| 99 | "RPM" |
| 100 | ] |
| 101 | }, |
| 102 | "phase": { |
| 103 | "type": "string", |
| 104 | "additionalProperties": false, |
| 105 | "enum": ["L1", "L2", "L3", "N", "L1-N", "L2-N", "L3-N", "L1-L2", "L2-L3", "L3-L1"] |
| 106 | }, |
| 107 | "location": { |
| 108 | "type": "string", |
| 109 | "additionalProperties": false, |
| 110 | "enum": ["Cable", "EV", "Inlet", "Outlet", "Body"] |
| 111 | }, |
| 112 | "unit": { |
| 113 | "type": "string", |
| 114 | "additionalProperties": false, |
| 115 | "enum": [ |
| 116 | "Wh", |
| 117 | "kWh", |
| 118 | "varh", |
| 119 | "kvarh", |
| 120 | "W", |
| 121 | "kW", |
| 122 | "VA", |
| 123 | "kVA", |
| 124 | "var", |
| 125 | "kvar", |
| 126 | "A", |
| 127 | "V", |
| 128 | "K", |
| 129 | "Celcius", |
| 130 | "Fahrenheit", |
| 131 | "Percent" |
| 132 | ] |
| 133 | } |
| 134 | }, |
| 135 | "additionalProperties": false, |
| 136 | "required": ["value"] |
| 137 | } |
| 138 | } |
| 139 | }, |
| 140 | "additionalProperties": false, |
| 141 | "required": ["timestamp", "sampledValue"] |
| 142 | } |
| 143 | } |
| 144 | }, |
| 145 | "additionalProperties": false, |
| 146 | "required": ["transactionId", "timestamp", "meterStop"] |
| 147 | } |