StopTransaction.json 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. {
  2. "$schema": "http://json-schema.org/draft-04/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": [
  73. "Raw",
  74. "SignedData"
  75. ]
  76. },
  77. "measurand": {
  78. "type": "string",
  79. "additionalProperties": false,
  80. "enum": [
  81. "Energy.Active.Export.Register",
  82. "Energy.Active.Import.Register",
  83. "Energy.Reactive.Export.Register",
  84. "Energy.Reactive.Import.Register",
  85. "Energy.Active.Export.Interval",
  86. "Energy.Active.Import.Interval",
  87. "Energy.Reactive.Export.Interval",
  88. "Energy.Reactive.Import.Interval",
  89. "Power.Active.Export",
  90. "Power.Active.Import",
  91. "Power.Offered",
  92. "Power.Reactive.Export",
  93. "Power.Reactive.Import",
  94. "Power.Factor",
  95. "Current.Import",
  96. "Current.Export",
  97. "Current.Offered",
  98. "Voltage",
  99. "Frequency",
  100. "Temperature",
  101. "SoC",
  102. "RPM"
  103. ]
  104. },
  105. "phase": {
  106. "type": "string",
  107. "additionalProperties": false,
  108. "enum": [
  109. "L1",
  110. "L2",
  111. "L3",
  112. "N",
  113. "L1-N",
  114. "L2-N",
  115. "L3-N",
  116. "L1-L2",
  117. "L2-L3",
  118. "L3-L1"
  119. ]
  120. },
  121. "location": {
  122. "type": "string",
  123. "additionalProperties": false,
  124. "enum": [
  125. "Cable",
  126. "EV",
  127. "Inlet",
  128. "Outlet",
  129. "Body"
  130. ]
  131. },
  132. "unit": {
  133. "type": "string",
  134. "additionalProperties": false,
  135. "enum": [
  136. "Wh",
  137. "kWh",
  138. "varh",
  139. "kvarh",
  140. "W",
  141. "kW",
  142. "VA",
  143. "kVA",
  144. "var",
  145. "kvar",
  146. "A",
  147. "V",
  148. "K",
  149. "Celcius",
  150. "Fahrenheit",
  151. "Percent"
  152. ]
  153. }
  154. },
  155. "additionalProperties": false,
  156. "required": [
  157. "value"
  158. ]
  159. }
  160. }
  161. },
  162. "additionalProperties": false,
  163. "required": [
  164. "timestamp",
  165. "sampledValue"
  166. ]
  167. }
  168. }
  169. },
  170. "additionalProperties": false,
  171. "required": [
  172. "transactionId",
  173. "timestamp",
  174. "meterStop"
  175. ]
  176. }