save connector tariffID
MODIFY
src/assets/schemas/chargingstation/chargingstation.json
src/assets/schemas/chargingstation/chargingstation.json
"sanitize": "mongo"
}
}
+ },
+ "tariffID": {
+ "type": "string",
+ "sanitize": "sanitize"
}
},
"required": [

MODIFY
src/server/rest/v1/service/ChargingStationService.ts
src/server/rest/v1/service/ChargingStationService.ts
@@ -224,6 +224,11 @@ export default class ChargingStationService {
connector.numberOfConnectedPhase = filteredConnector.numberOfConnectedPhase;
}
connector.phaseAssignmentToGrid = filteredConnector.phaseAssignmentToGrid;
+ if (filteredRequest.public) {
+ connector.tariffID = filteredConnector.tariffID;
+ } else if (connector.tariffID) {
+ delete connector.tariffID;
+ }
}
}
// Manual Config

MODIFY
src/storage/mongodb/ChargingStationStorage.ts
src/storage/mongodb/ChargingStationStorage.ts
@@ -46,6 +46,7 @@ export interface ConnectorMDB {
currentType: CurrentType;
chargePointID: number;
phaseAssignmentToGrid: PhaseAssignmentToGrid;
+ tariffID?: string;
}
export default class ChargingStationStorage {
@@ -1073,6 +1074,7 @@ export default class ChargingStationStorage {
numberOfConnectedPhase: connector.numberOfConnectedPhase,
currentType: connector.currentType,
chargePointID: connector.chargePointID,
+ tariffID: connector.tariffID,
phaseAssignmentToGrid: connector.phaseAssignmentToGrid &&
{
csPhaseL1: connector.phaseAssignmentToGrid.csPhaseL1,

MODIFY
src/types/requests/HttpChargingStationRequest.ts
src/types/requests/HttpChargingStationRequest.ts
@@ -79,6 +79,7 @@ export interface HttpChargingStationParamsUpdateRequest {
currentType: CurrentType;
numberOfConnectedPhase: number;
phaseAssignmentToGrid: PhaseAssignmentToGrid;
+ tariffID?: string;
}[];
tariffID?: string;
}

save connector tariffID