pricing - swagger + revert UserService changes
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
"bearerAuth": []
}
],
- "description": "Get Pricing Definitions",
+ "description": "Get pricing definitions",
"parameters": [
{
"$ref": "#/components/parameters/EntityID"
],
"responses": {
"200": {
- "description": "Return the pricing definitions",
+ "description": "Return pricing definitions",
"content": {
"application/json": {
"schema": {
"bearerAuth": []
}
],
- "description": "Get Pricing Definition by id",
+ "description": "Get pricing definition by id",
"parameters": [
{
"$ref": "#/components/parameters/pricingDefinitionID"
],
"responses": {
"200": {
- "description": "Returns a pricing definition",
+ "description": "Return pricing definition",
"content": {
"application/json": {
"schema": {
"bearerAuth": []
}
],
- "description": "Resolves the pricing context and returns tariffs",
+ "description": "Resolve pricing context",
"parameters": [
{
"$ref": "#/components/parameters/ChargingStationID"
],
"responses": {
"200": {
- "description": "Returns the tariffs matching the pricing context",
+ "description": "Return tariffs matching a pricing context",
"content": {
"application/json": {
"schema": {

MODIFY
src/server/rest/v1/service/UserService.ts
src/server/rest/v1/service/UserService.ts
@@ -86,7 +86,7 @@ export default class UserService {
// TODO - The ChargingStationID is optional but only for backward compatibility reasons - make it mandatory as soon as possible
const chargingStation = await ChargingStationStorage.getChargingStation(req.tenant, filteredRequest.ChargingStationID,
{ withSiteArea: true },
- ['id', 'companyID', 'siteID', 'siteAreaID', 'coordinates', 'siteArea.accessControl']);
+ ['id', 'siteArea.id', 'siteArea.accessControl']);
if (!chargingStation.siteArea.accessControl) {
// The access control is switched off - so billing checks are useless
withBillingChecks = false;

pricing - swagger + revert UserService changes