Network Function Endpoint Handlers

Charging Function (CHF) implementations define multiple network function endpoints to associate with one or more handlers. To use Response Generator, a Response Generator handler must be defined and associated with one or more endpoints. This allows the URLs that use Response Generator to be configurable. This also means that different Response Generator configurations are applied to different URLs. Only one Response Generator can be associated with a single endpoint.

The following endpoints are available by default:

  • chargingDataCreate
  • chargingDataUpdate
  • chargingDataDelete
  • spendingLimitCreate
  • spendingLimitUpdate
  • spendingLimitDelete

A Response Generator handler specifies the fields extracted from the message, the rules used for the comparison of those extracted field values, and details for how matching messages are enriched. This information is discussed in more detail in the following sections.

Response Generator Handler Properties describes the other configuration properties of the handler.

Table 1. Response Generator Handler Properties
Properties Description
responseGenerator.handlers.handle_name.requestMessageType The type of message this handler expects to receive. Because this value is related to the name of the OpenAPI object definition, valid values are ChargingDataRequest or SpendingLimitContext.
responseGenerator.handlers.handle_name.responseMessageType The type of message this handler creates. Because this value is related to the name of the OpenAPI object definition, valid values are ChargingDataResponse or SpendingLimitStatus.
responseGenerator.handlers.handle_name.responseMappingFileName The mapping configuration file used to create the response message from the request. A default file is provided for each message type in /opt/mtx/conf/mapping/spec_version: Backstop-ChargingDataResponse-mapping.yaml and Backstop-SpendingLimitResponse-mapping.yaml.
responseGenerator.handlers.handle_name.validate (Optional) When set to true (the default), the incoming message is validated.

When using this with a downstream system, sometimes validation is already performed, and validation at this stage can be disabled.

responseGenerator.handlers.handle_name.endpoints A list of associated endpoint names related to the handler, such as the following:
endpoints:
 - chargingDataCreate
 - chargingDataUpdate
 - chargingDataDelete