Module ocpi_tariffs::pricer

source ·
Expand description

Module containing the functionality to price charge sessions with provided tariffs.

Structs

  • A report for a single dimension during a single period.
  • A structure containing a report for each dimension.
  • A report for a single period that occurred during a session.
  • Pricer that encapsulates a single charge-session and a list of tariffs. To run the pricer call build_report. The resulting report contains the totals, subtotals and a breakdown of the calculation.
  • Structure containing the charge session priced according to the specified tariff. The fields prefixed total correspond to CDR fields with the same name.