Expand description
Parse a CDR and price the result with a tariff.
Structs§
- Parse
Report - A report of calling
parse_with_version. - Unversioned
- A
json::Elementthat has been parsed by the either theparse_with_versionorparsefunctions and was determined to not be one of the supportedVersions. - Versioned
- A
json::Elementthat has been parsed by the either theparse_with_versionorparsefunctions and was determined to be one of the supportedVersions.
Functions§
- parse
- Parse the JSON and try guess the
Versionbased on fields defined in the OCPI v2.1.1[^spec-v211] and v2.2.1[^spec-v221] CDR spec. - parse_
and_ report - Guess the
Versionof the given CDR JSON and report on any unexpected fields. - parse_
with_ version - Parse a
&strinto aVersionedCDR using a schema for the givenVersionto check for any unexpected fields. - price
- Price a single
CDRand return aReport.