add tariffID in OCPI settings
MODIFY
src/server/rest/v1/service/security/SettingSecurity.ts
src/server/rest/v1/service/security/SettingSecurity.ts
@@ -104,6 +104,9 @@ export default class SettingSecurity {
if (Utils.objectHasProperty(request.content.ocpi, 'currency')) {
settings.content.ocpi.currency = request.content.ocpi.currency;
}
+ if (Utils.objectHasProperty(request.content.ocpi, 'tariffID')) {
+ settings.content.ocpi.tariffID = request.content.ocpi.tariffID;
+ }
break;
case RoamingSettingsType.OICP:
settings.content.oicp = {} as OicpSetting;

MODIFY
src/types/Setting.ts
src/types/Setting.ts
@@ -107,6 +107,7 @@ export interface OcpiSetting {
emsp: OcpiIdentifier;
currency: string;
businessDetails: OcpiBusinessDetails;
+ tariffID?: string;
}
export interface OicpSetting {

add tariffID in OCPI settings