Description
Sorry if this is a stupid question (still quite new to the world of OCPI) but is it valid to send a different tariff in the CDR than was originally pushed to the EMSP? I'm working on modelling overstay charging and want to implement something along the lines of "4 hours after the charging stopped, charge £0.05 per minute". As far as I understand the current tariff restrictions, the min_duration
and max_duration
fields apply to the entire charging session not just that element, therefore making it impossible to define this type of rule.
One idea I've had I think will work, but it requires sending a different tariff with the CDR.
If we sent the CDR with the original tariff, but add an additional element into it. This element will have a tariff restriction with a start date/time of the time the charging ended plus 4 hours, and then have a price component that charges £0.05 per minute in there. Because this tariff is generated in a CDR, we know when the charging session finished and the car was left plugged in.
Additionally, what is the implication of specifying a different "total_cost" in the CDR that is different to the tariff calculated total? We're also looking at adding additional charges for things that can't really be modelled with tariffs as easily, but don't know what happens if this amount is different to what the eMSP might calculate based on the times and tariffs