Allow incoming ChangeConfiguration requests before the registration on
[e-mobility-charging-stations-simulator.git] / src / charging-station / ocpp / OCPPResponseService.ts
index 0a1cd0c610a117ad9c7b0af8211c6ef2efe037c5..17bf80650c1e04e615e7b7ddc017f31d43822dc8 100644 (file)
@@ -1,4 +1,5 @@
 import ChargingStation from '../ChargingStation';
+import { JsonType } from '../../types/JsonType';
 import { RequestCommand } from '../../types/ocpp/Requests';
 
 export default abstract class OCPPResponseService {
@@ -8,5 +9,5 @@ export default abstract class OCPPResponseService {
     this.chargingStation = chargingStation;
   }
 
-  public abstract handleResponse(commandName: RequestCommand, payload: Record<string, unknown> | string, requestPayload: Record<string, unknown>): Promise<void>;
+  public abstract handleResponse(commandName: RequestCommand, payload: JsonType | string, requestPayload: JsonType): Promise<void>;
 }