entityType and id to pascal case in the request
MODIFY
src/assets/server/rest/v1/schemas/pricing/pricing-definitions-get.json
src/assets/server/rest/v1/schemas/pricing/pricing-definitions-get.json
"title": "Get Pricing Definitions Request",
"type": "object",
"properties": {
- "entityID": {
+ "EntityID": {
"$ref": "pricing-definition#/definitions/entityID"
},
- "entityType": {
+ "EntityType": {
"$ref": "pricing-definition#/definitions/entityType"
},
"Search": {

MODIFY
src/server/rest/v1/service/PricingService.ts
src/server/rest/v1/service/PricingService.ts
@@ -48,8 +48,8 @@ export default class PricingService {
// Get the pricing definitions
const pricingDefinitions = await PricingStorage.getPricingDefinitions(req.tenant,
{
- entityID: filteredRequest.entityID || null,
- entityType: filteredRequest.entityType || null,
+ entityID: filteredRequest.EntityID || null,
+ entityType: filteredRequest.EntityType || null,
withEntityInformation: filteredRequest?.WithEntityInformation,
...authorizationPricingDefinitionsFilter.filters
}, {

MODIFY
src/types/requests/HttpPricingRequest.ts
src/types/requests/HttpPricingRequest.ts
@@ -9,7 +9,7 @@ export interface HttpPricingDefinitionRequest extends HttpByIDRequest {
export interface HttpPricingDefinitionsRequest extends HttpDatabaseRequest {
ID?: string;
Search?: string;
- entityID?: string;
- entityType?: string;
+ EntityID?: string;
+ EntityType?: string;
WithEntityInformation?: boolean;
}

entityType and id to pascal case in the request