From cd74475f4d7a6c9818021c36ab6f9f703c9fab9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20S=C3=A1nchez?= Date: Mon, 11 Sep 2023 20:04:26 +0200 Subject: [PATCH] Keep decimals --- .../05-interfaces-and-endpoints.md | 6 +- .../04-sessions/06-object-description.md | 4 +- .../05-cdrs/06-object-description.md | 12 +- .../06-tariffs/05-interfaces-and-endpoints.md | 4 +- .../06-tariffs/06-object-description.md | 140 +++++++++--------- .../06-modules/06-tariffs/07-data-types.md | 34 ++--- website/docs/ocpi/examples/cdr_example.json | 12 +- .../session_example_1_simple_start.json | 2 +- .../session_example_2_short_finished.json | 2 +- ...session_patch_example_charging_period.json | 4 +- .../session_patch_example_total_cost.json | 2 +- .../tariff_10_025kwh_parking_start.json | 10 +- .../tariff_11_not_possible_alt_text.json | 6 +- .../examples/tariff_12_025kwh_min_price.json | 4 +- .../tariff_13_simple_3hour_5parking.json | 8 +- .../ocpi/examples/tariff_14_step_size.json | 10 +- ...tariff_15_reservation_5_euro_per_hour.json | 10 +- ...eservation_2_euro_fee_5_euro_per_hour.json | 14 +- ...tariff_17_reservation_with_expire_fee.json | 14 +- ...ariff_18_reservation_with_expire_time.json | 14 +- .../ocpi/examples/tariff_1_simple_2hour.json | 4 +- .../docs/ocpi/examples/tariff_2_alt_text.json | 2 +- .../docs/ocpi/examples/tariff_3_alt_url.json | 6 +- .../docs/ocpi/examples/tariff_4_complex.json | 28 ++-- .../examples/tariff_5_free_of_charge.json | 2 +- .../tariff_6_025kwh_start_max_price.json | 10 +- .../ocpi/examples/tariff_8_simple_025kwh.json | 2 +- .../ocpi/examples/tariff_9_025kwh_start.json | 6 +- .../ocpi/examples/tariff_put_example.json | 4 +- ...ariffrestriction_example_max_duration.json | 10 +- .../tariffrestriction_example_max_power.json | 14 +- 31 files changed, 200 insertions(+), 200 deletions(-) diff --git a/website/docs/ocpi/06-modules/04-sessions/05-interfaces-and-endpoints.md b/website/docs/ocpi/06-modules/04-sessions/05-interfaces-and-endpoints.md index e3b6be7..79d08ae 100644 --- a/website/docs/ocpi/06-modules/04-sessions/05-interfaces-and-endpoints.md +++ b/website/docs/ocpi/06-modules/04-sessions/05-interfaces-and-endpoints.md @@ -224,7 +224,7 @@ PATCH https://www.server.com/ocpi/cpo/2.2.1/sessions/NL/TNM/101 { "total_cost": { - "excl_vat": 0.6, + "excl_vat": 0.60, "incl_vat": 0.66 }, "last_updated": "2019-06-23T08:11:00Z" @@ -240,7 +240,7 @@ Session and updating all related fields. PATCH https://www.server.com/ocpi/cpo/2.2.1/sessions/NL/TNM/101 { - "kwh": 15, + "kwh": 15.00, "charging_periods": [ { "start_date_time": "2019-06-23T08:16:02Z", @@ -253,7 +253,7 @@ PATCH https://www.server.com/ocpi/cpo/2.2.1/sessions/NL/TNM/101 } ], "total_cost": { - "excl_vat": 0.8, + "excl_vat": 0.80, "incl_vat": 0.88 }, "last_updated": "2019-06-23T08:16:02Z" diff --git a/website/docs/ocpi/06-modules/04-sessions/06-object-description.md b/website/docs/ocpi/06-modules/04-sessions/06-object-description.md index c775ef6..7e95dd9 100644 --- a/website/docs/ocpi/06-modules/04-sessions/06-object-description.md +++ b/website/docs/ocpi/06-modules/04-sessions/06-object-description.md @@ -71,7 +71,7 @@ authorization](/docs/ocpi/06-modules/07-tokens/04-flow-and-lifecycle.md#real-tim "party_id": "STK", "id": "101", "start_date_time": "2020-03-09T10:17:09Z", - "kwh": 0, + "kwh": 0.0, "cdr_token": { "country_code": "NL", "party_id": "TST", @@ -153,7 +153,7 @@ authorization](/docs/ocpi/06-modules/07-tokens/04-flow-and-lifecycle.md#real-tim } ], "total_cost": { - "excl_vat": 8.5, + "excl_vat": 8.50, "incl_vat": 9.35 }, "status": "COMPLETED", diff --git a/website/docs/ocpi/06-modules/05-cdrs/06-object-description.md b/website/docs/ocpi/06-modules/05-cdrs/06-object-description.md index e616576..ad7342b 100644 --- a/website/docs/ocpi/06-modules/05-cdrs/06-object-description.md +++ b/website/docs/ocpi/06-modules/05-cdrs/06-object-description.md @@ -206,8 +206,8 @@ the CPO could send a CDR where the `start_date_time` and/or `end_date_time` are "price_components": [ { "type": "TIME", - "price": 2, - "vat": 10, + "price": 2.00, + "vat": 10.0, "step_size": 300 } ] @@ -229,14 +229,14 @@ the CPO could send a CDR where the `start_date_time` and/or `end_date_time` are } ], "total_cost": { - "excl_vat": 4, - "incl_vat": 4.4 + "excl_vat": 4.00, + "incl_vat": 4.40 }, "total_energy": 15.342, "total_time": 1.973, "total_time_cost": { - "excl_vat": 4, - "incl_vat": 4.4 + "excl_vat": 4.00, + "incl_vat": 4.40 }, "last_updated": "2015-06-29T22:01:13Z" } diff --git a/website/docs/ocpi/06-modules/06-tariffs/05-interfaces-and-endpoints.md b/website/docs/ocpi/06-modules/06-tariffs/05-interfaces-and-endpoints.md index 11d8edc..bbc57ce 100644 --- a/website/docs/ocpi/06-modules/06-tariffs/05-interfaces-and-endpoints.md +++ b/website/docs/ocpi/06-modules/06-tariffs/05-interfaces-and-endpoints.md @@ -154,8 +154,8 @@ PUT To URL: https://www.server.com/ocpi/emsp/2.2.1/tariffs/NL/TNM/12 "price_components": [ { "type": "TIME", - "price": 2, - "vat": 10, + "price": 2.00, + "vat": 10.0, "step_size": 300 } ] diff --git a/website/docs/ocpi/06-modules/06-tariffs/06-object-description.md b/website/docs/ocpi/06-modules/06-tariffs/06-object-description.md index 5957391..6068e45 100644 --- a/website/docs/ocpi/06-modules/06-tariffs/06-object-description.md +++ b/website/docs/ocpi/06-modules/06-tariffs/06-object-description.md @@ -121,7 +121,7 @@ This tariff will result in costs of € 5.00 (excl. VAT) or € 5.50 (incl. VAT) { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 1 } ] @@ -154,14 +154,14 @@ This tariff will result in total cost of € 5.50 (excl. VAT) or € 6.10 (incl. "price_components": [ { "type": "FLAT", - "price": 0.5, - "vat": 20, + "price": 0.50, + "vat": 20.0, "step_size": 1 }, { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 1 } ] @@ -193,7 +193,7 @@ This is different from a start fee as can be seen when compared to the example a "id": "20", "currency": "EUR", "min_price": { - "excl_vat": 0.5, + "excl_vat": 0.50, "incl_vat": 0.55 }, "elements": [ @@ -202,7 +202,7 @@ This is different from a start fee as can be seen when compared to the example a { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 1 } ] @@ -242,20 +242,20 @@ charging. "price_components": [ { "type": "FLAT", - "price": 0.5, - "vat": 20, + "price": 0.50, + "vat": 20.0, "step_size": 1 }, { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 1 }, { "type": "PARKING_TIME", - "price": 2, - "vat": 20, + "price": 2.00, + "vat": 20.0, "step_size": 900 } ] @@ -295,22 +295,22 @@ VAT), as the start fee combined with the energy costs would be lower than the de "id": "16", "currency": "EUR", "max_price": { - "excl_vat": 10, - "incl_vat": 11 + "excl_vat": 10.00, + "incl_vat": 11.00 }, "elements": [ { "price_components": [ { "type": "FLAT", - "price": 0.5, - "vat": 20, + "price": 0.50, + "vat": 20.0, "step_size": 1 }, { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 1 } ] @@ -346,8 +346,8 @@ For a charging session of 2.5 hours, this tariff will result in costs of € 5.0 "price_components": [ { "type": "TIME", - "price": 2, - "vat": 10, + "price": 2.00, + "vat": 10.0, "step_size": 60 } ] @@ -387,14 +387,14 @@ the driver has to pay for 45 minutes of parking even though they left 42 minutes "price_components": [ { "type": "TIME", - "price": 3, - "vat": 10, + "price": 3.00, + "vat": 10.0, "step_size": 60 }, { "type": "PARKING_TIME", - "price": 5, - "vat": 20, + "price": 5.00, + "vat": 20.0, "step_size": 300 } ] @@ -439,7 +439,7 @@ For a charging session of 2.5 hours, this tariff will result in costs of € 4.7 "price_components": [ { "type": "TIME", - "price": 1.9, + "price": 1.90, "vat": 5.2, "step_size": 300 } @@ -479,13 +479,13 @@ discount in the final CDR of € 0.25, nobody is likely to complain. The `tariff "price_components": [ { "type": "FLAT", - "price": 0.4, - "vat": 25, + "price": 0.40, + "vat": 25.0, "step_size": 1 }, { "type": "TIME", - "price": 1.9, + "price": 1.90, "vat": 5.2, "step_size": 300 } @@ -554,14 +554,14 @@ as follows: "price_components": [ { "type": "FLAT", - "price": 0.5, - "vat": 20, + "price": 0.50, + "vat": 20.0, "step_size": 1 }, { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 100 } ] @@ -647,8 +647,8 @@ The charging time is again not affected by step_size because it is followed by p "price_components": [ { "type": "FLAT", - "price": 2.5, - "vat": 15, + "price": 2.50, + "vat": 15.0, "step_size": 1 } ] @@ -657,26 +657,26 @@ The charging time is again not affected by step_size because it is followed by p "price_components": [ { "type": "TIME", - "price": 1, - "vat": 20, + "price": 1.00, + "vat": 20.0, "step_size": 900 } ], "restrictions": { - "max_current": 32 + "max_current": 32.00 } }, { "price_components": [ { "type": "TIME", - "price": 2, - "vat": 20, + "price": 2.00, + "vat": 20.0, "step_size": 600 } ], "restrictions": { - "min_current": 32, + "min_current": 32.00, "day_of_week": [ "MONDAY", "TUESDAY", @@ -691,12 +691,12 @@ The charging time is again not affected by step_size because it is followed by p { "type": "TIME", "price": 1.25, - "vat": 20, + "vat": 20.0, "step_size": 600 } ], "restrictions": { - "min_current": 32, + "min_current": 32.00, "day_of_week": [ "SATURDAY", "SUNDAY" @@ -707,8 +707,8 @@ The charging time is again not affected by step_size because it is followed by p "price_components": [ { "type": "PARKING_TIME", - "price": 5, - "vat": 10, + "price": 5.00, + "vat": 10.0, "step_size": 300 } ], @@ -728,8 +728,8 @@ The charging time is again not affected by step_size because it is followed by p "price_components": [ { "type": "PARKING_TIME", - "price": 6, - "vat": 10, + "price": 6.00, + "vat": 10.0, "step_size": 300 } ], @@ -762,7 +762,7 @@ case though and it is of course permitted to add a VAT, even if the `price` is s "price_components": [ { "type": "FLAT", - "price": 0, + "price": 0.00, "step_size": 0 } ] @@ -809,8 +809,8 @@ A breakdown is as follows: "price_components": [ { "type": "TIME", - "price": 5, - "vat": 20, + "price": 5.00, + "vat": 20.0, "step_size": 60 } ], @@ -822,14 +822,14 @@ A breakdown is as follows: "price_components": [ { "type": "FLAT", - "price": 0.5, - "vat": 20, + "price": 0.50, + "vat": 20.0, "step_size": 1 }, { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 1 } ] @@ -880,14 +880,14 @@ A breakdown is as follows: "price_components": [ { "type": "FLAT", - "price": 2, - "vat": 20, + "price": 2.00, + "vat": 20.0, "step_size": 1 }, { "type": "TIME", - "price": 5, - "vat": 20, + "price": 5.00, + "vat": 20.0, "step_size": 300 } ], @@ -899,14 +899,14 @@ A breakdown is as follows: "price_components": [ { "type": "FLAT", - "price": 0.5, - "vat": 20, + "price": 0.50, + "vat": 20.0, "step_size": 1 }, { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 1 } ] @@ -975,8 +975,8 @@ A breakdown of this scenario is as follows: "price_components": [ { "type": "FLAT", - "price": 4, - "vat": 20, + "price": 4.00, + "vat": 20.0, "step_size": 1 } ], @@ -988,8 +988,8 @@ A breakdown of this scenario is as follows: "price_components": [ { "type": "TIME", - "price": 2, - "vat": 20, + "price": 2.00, + "vat": 20.0, "step_size": 600 } ], @@ -1001,14 +1001,14 @@ A breakdown of this scenario is as follows: "price_components": [ { "type": "FLAT", - "price": 0.5, - "vat": 20, + "price": 0.50, + "vat": 20.0, "step_size": 1 }, { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 1 } ] @@ -1074,8 +1074,8 @@ A breakdown of this scenario is as follows: "price_components": [ { "type": "TIME", - "price": 6, - "vat": 20, + "price": 6.00, + "vat": 20.0, "step_size": 600 } ], @@ -1087,8 +1087,8 @@ A breakdown of this scenario is as follows: "price_components": [ { "type": "TIME", - "price": 3, - "vat": 20, + "price": 3.00, + "vat": 20.0, "step_size": 600 } ], @@ -1100,14 +1100,14 @@ A breakdown of this scenario is as follows: "price_components": [ { "type": "FLAT", - "price": 0.5, - "vat": 20, + "price": 0.50, + "vat": 20.0, "step_size": 1 }, { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 1 } ] diff --git a/website/docs/ocpi/06-modules/06-tariffs/07-data-types.md b/website/docs/ocpi/06-modules/06-tariffs/07-data-types.md index e80bc6a..e6fe2b9 100644 --- a/website/docs/ocpi/06-modules/06-tariffs/07-data-types.md +++ b/website/docs/ocpi/06-modules/06-tariffs/07-data-types.md @@ -76,12 +76,12 @@ Element](/docs/ocpi/06-modules/06-tariffs/07-data-types.md#tariffelement-class) "price_components": [ { "type": "TIME", - "price": 1.2, + "price": 1.20, "step_size": 1800 }, { "type": "PARKING_TIME", - "price": 1, + "price": 1.00, "step_size": 900 } ], @@ -94,12 +94,12 @@ Element](/docs/ocpi/06-modules/06-tariffs/07-data-types.md#tariffelement-class) "price_components": [ { "type": "TIME", - "price": 2.4, + "price": 2.40, "step_size": 900 }, { "type": "PARKING_TIME", - "price": 1, + "price": 1.00, "step_size": 900 } ], @@ -112,7 +112,7 @@ Element](/docs/ocpi/06-modules/06-tariffs/07-data-types.md#tariffelement-class) "price_components": [ { "type": "TIME", - "price": 2.4, + "price": 2.40, "step_size": 900 } ], @@ -280,13 +280,13 @@ following components: "price_components": [ { "type": "ENERGY", - "price": 0.2, - "vat": 20, + "price": 0.20, + "vat": 20.0, "step_size": 1 } ], "restrictions": { - "max_power": 16 + "max_power": 16.00 } }, { @@ -294,20 +294,20 @@ following components: { "type": "ENERGY", "price": 0.35, - "vat": 20, + "vat": 20.0, "step_size": 1 } ], "restrictions": { - "max_power": 32 + "max_power": 32.00 } }, { "price_components": [ { "type": "ENERGY", - "price": 0.5, - "vat": 20, + "price": 0.50, + "vat": 20.0, "step_size": 1 } ] @@ -347,8 +347,8 @@ composed of the following components: "price_components": [ { "type": "ENERGY", - "price": 0, - "vat": 20, + "price": 0.00, + "vat": 20.0, "step_size": 1 } ], @@ -361,7 +361,7 @@ composed of the following components: { "type": "ENERGY", "price": 0.25, - "vat": 20, + "vat": 20.0, "step_size": 1 } ], @@ -373,8 +373,8 @@ composed of the following components: "price_components": [ { "type": "ENERGY", - "price": 0.4, - "vat": 20, + "price": 0.40, + "vat": 20.0, "step_size": 1 } ] diff --git a/website/docs/ocpi/examples/cdr_example.json b/website/docs/ocpi/examples/cdr_example.json index 1f523cc..721509d 100644 --- a/website/docs/ocpi/examples/cdr_example.json +++ b/website/docs/ocpi/examples/cdr_example.json @@ -42,8 +42,8 @@ "price_components": [ { "type": "TIME", - "price": 2, - "vat": 10, + "price": 2.00, + "vat": 10.0, "step_size": 300 } ] @@ -65,14 +65,14 @@ } ], "total_cost": { - "excl_vat": 4, - "incl_vat": 4.4 + "excl_vat": 4.00, + "incl_vat": 4.40 }, "total_energy": 15.342, "total_time": 1.973, "total_time_cost": { - "excl_vat": 4, - "incl_vat": 4.4 + "excl_vat": 4.00, + "incl_vat": 4.40 }, "last_updated": "2015-06-29T22:01:13Z" } diff --git a/website/docs/ocpi/examples/session_example_1_simple_start.json b/website/docs/ocpi/examples/session_example_1_simple_start.json index 4cb089d..92fdb8d 100644 --- a/website/docs/ocpi/examples/session_example_1_simple_start.json +++ b/website/docs/ocpi/examples/session_example_1_simple_start.json @@ -3,7 +3,7 @@ "party_id": "STK", "id": "101", "start_date_time": "2020-03-09T10:17:09Z", - "kwh": 0, + "kwh": 0.0, "cdr_token": { "country_code": "NL", "party_id": "TST", diff --git a/website/docs/ocpi/examples/session_example_2_short_finished.json b/website/docs/ocpi/examples/session_example_2_short_finished.json index 905d0ea..3edee30 100644 --- a/website/docs/ocpi/examples/session_example_2_short_finished.json +++ b/website/docs/ocpi/examples/session_example_2_short_finished.json @@ -56,7 +56,7 @@ } ], "total_cost": { - "excl_vat": 8.5, + "excl_vat": 8.50, "incl_vat": 9.35 }, "status": "COMPLETED", diff --git a/website/docs/ocpi/examples/session_patch_example_charging_period.json b/website/docs/ocpi/examples/session_patch_example_charging_period.json index e84860c..67f25d1 100644 --- a/website/docs/ocpi/examples/session_patch_example_charging_period.json +++ b/website/docs/ocpi/examples/session_patch_example_charging_period.json @@ -1,5 +1,5 @@ { - "kwh": 15, + "kwh": 15.00, "charging_periods": [ { "start_date_time": "2019-06-23T08:16:02Z", @@ -12,7 +12,7 @@ } ], "total_cost": { - "excl_vat": 0.8, + "excl_vat": 0.80, "incl_vat": 0.88 }, "last_updated": "2019-06-23T08:16:02Z" diff --git a/website/docs/ocpi/examples/session_patch_example_total_cost.json b/website/docs/ocpi/examples/session_patch_example_total_cost.json index 5be2287..cd695e5 100644 --- a/website/docs/ocpi/examples/session_patch_example_total_cost.json +++ b/website/docs/ocpi/examples/session_patch_example_total_cost.json @@ -1,6 +1,6 @@ { "total_cost": { - "excl_vat": 0.6, + "excl_vat": 0.60, "incl_vat": 0.66 }, "last_updated": "2019-06-23T08:11:00Z" diff --git a/website/docs/ocpi/examples/tariff_10_025kwh_parking_start.json b/website/docs/ocpi/examples/tariff_10_025kwh_parking_start.json index 4eb1481..591cb69 100644 --- a/website/docs/ocpi/examples/tariff_10_025kwh_parking_start.json +++ b/website/docs/ocpi/examples/tariff_10_025kwh_parking_start.json @@ -8,20 +8,20 @@ "price_components": [ { "type": "FLAT", - "price": 0.5, - "vat": 20, + "price": 0.50, + "vat": 20.0, "step_size": 1 }, { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 1 }, { "type": "PARKING_TIME", - "price": 2, - "vat": 20, + "price": 2.00, + "vat": 20.0, "step_size": 900 } ] diff --git a/website/docs/ocpi/examples/tariff_11_not_possible_alt_text.json b/website/docs/ocpi/examples/tariff_11_not_possible_alt_text.json index 9301d4b..1f4a802 100644 --- a/website/docs/ocpi/examples/tariff_11_not_possible_alt_text.json +++ b/website/docs/ocpi/examples/tariff_11_not_possible_alt_text.json @@ -19,13 +19,13 @@ "price_components": [ { "type": "FLAT", - "price": 0.4, - "vat": 25, + "price": 0.40, + "vat": 25.0, "step_size": 1 }, { "type": "TIME", - "price": 1.9, + "price": 1.90, "vat": 5.2, "step_size": 300 } diff --git a/website/docs/ocpi/examples/tariff_12_025kwh_min_price.json b/website/docs/ocpi/examples/tariff_12_025kwh_min_price.json index 1ee2db3..aedcf49 100644 --- a/website/docs/ocpi/examples/tariff_12_025kwh_min_price.json +++ b/website/docs/ocpi/examples/tariff_12_025kwh_min_price.json @@ -4,7 +4,7 @@ "id": "20", "currency": "EUR", "min_price": { - "excl_vat": 0.5, + "excl_vat": 0.50, "incl_vat": 0.55 }, "elements": [ @@ -13,7 +13,7 @@ { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 1 } ] diff --git a/website/docs/ocpi/examples/tariff_13_simple_3hour_5parking.json b/website/docs/ocpi/examples/tariff_13_simple_3hour_5parking.json index b62f76d..1b605a3 100644 --- a/website/docs/ocpi/examples/tariff_13_simple_3hour_5parking.json +++ b/website/docs/ocpi/examples/tariff_13_simple_3hour_5parking.json @@ -8,14 +8,14 @@ "price_components": [ { "type": "TIME", - "price": 3, - "vat": 10, + "price": 3.00, + "vat": 10.0, "step_size": 60 }, { "type": "PARKING_TIME", - "price": 5, - "vat": 20, + "price": 5.00, + "vat": 20.0, "step_size": 300 } ] diff --git a/website/docs/ocpi/examples/tariff_14_step_size.json b/website/docs/ocpi/examples/tariff_14_step_size.json index 83f0981..aa0b4c5 100644 --- a/website/docs/ocpi/examples/tariff_14_step_size.json +++ b/website/docs/ocpi/examples/tariff_14_step_size.json @@ -8,12 +8,12 @@ "price_components": [ { "type": "TIME", - "price": 1.2, + "price": 1.20, "step_size": 1800 }, { "type": "PARKING_TIME", - "price": 1, + "price": 1.00, "step_size": 900 } ], @@ -26,12 +26,12 @@ "price_components": [ { "type": "TIME", - "price": 2.4, + "price": 2.40, "step_size": 900 }, { "type": "PARKING_TIME", - "price": 1, + "price": 1.00, "step_size": 900 } ], @@ -44,7 +44,7 @@ "price_components": [ { "type": "TIME", - "price": 2.4, + "price": 2.40, "step_size": 900 } ], diff --git a/website/docs/ocpi/examples/tariff_15_reservation_5_euro_per_hour.json b/website/docs/ocpi/examples/tariff_15_reservation_5_euro_per_hour.json index 38759bf..42f6fe3 100644 --- a/website/docs/ocpi/examples/tariff_15_reservation_5_euro_per_hour.json +++ b/website/docs/ocpi/examples/tariff_15_reservation_5_euro_per_hour.json @@ -8,8 +8,8 @@ "price_components": [ { "type": "TIME", - "price": 5, - "vat": 20, + "price": 5.00, + "vat": 20.0, "step_size": 60 } ], @@ -21,14 +21,14 @@ "price_components": [ { "type": "FLAT", - "price": 0.5, - "vat": 20, + "price": 0.50, + "vat": 20.0, "step_size": 1 }, { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 1 } ] diff --git a/website/docs/ocpi/examples/tariff_16_reservation_2_euro_fee_5_euro_per_hour.json b/website/docs/ocpi/examples/tariff_16_reservation_2_euro_fee_5_euro_per_hour.json index 5dcdf7d..19f26a2 100644 --- a/website/docs/ocpi/examples/tariff_16_reservation_2_euro_fee_5_euro_per_hour.json +++ b/website/docs/ocpi/examples/tariff_16_reservation_2_euro_fee_5_euro_per_hour.json @@ -8,14 +8,14 @@ "price_components": [ { "type": "FLAT", - "price": 2, - "vat": 20, + "price": 2.00, + "vat": 20.0, "step_size": 1 }, { "type": "TIME", - "price": 5, - "vat": 20, + "price": 5.00, + "vat": 20.0, "step_size": 300 } ], @@ -27,14 +27,14 @@ "price_components": [ { "type": "FLAT", - "price": 0.5, - "vat": 20, + "price": 0.50, + "vat": 20.0, "step_size": 1 }, { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 1 } ] diff --git a/website/docs/ocpi/examples/tariff_17_reservation_with_expire_fee.json b/website/docs/ocpi/examples/tariff_17_reservation_with_expire_fee.json index b6cfb51..6848718 100644 --- a/website/docs/ocpi/examples/tariff_17_reservation_with_expire_fee.json +++ b/website/docs/ocpi/examples/tariff_17_reservation_with_expire_fee.json @@ -8,8 +8,8 @@ "price_components": [ { "type": "FLAT", - "price": 4, - "vat": 20, + "price": 4.00, + "vat": 20.0, "step_size": 1 } ], @@ -21,8 +21,8 @@ "price_components": [ { "type": "TIME", - "price": 2, - "vat": 20, + "price": 2.00, + "vat": 20.0, "step_size": 600 } ], @@ -34,14 +34,14 @@ "price_components": [ { "type": "FLAT", - "price": 0.5, - "vat": 20, + "price": 0.50, + "vat": 20.0, "step_size": 1 }, { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 1 } ] diff --git a/website/docs/ocpi/examples/tariff_18_reservation_with_expire_time.json b/website/docs/ocpi/examples/tariff_18_reservation_with_expire_time.json index 19ccc1a..941fb46 100644 --- a/website/docs/ocpi/examples/tariff_18_reservation_with_expire_time.json +++ b/website/docs/ocpi/examples/tariff_18_reservation_with_expire_time.json @@ -8,8 +8,8 @@ "price_components": [ { "type": "TIME", - "price": 6, - "vat": 20, + "price": 6.00, + "vat": 20.0, "step_size": 600 } ], @@ -21,8 +21,8 @@ "price_components": [ { "type": "TIME", - "price": 3, - "vat": 20, + "price": 3.00, + "vat": 20.0, "step_size": 600 } ], @@ -34,14 +34,14 @@ "price_components": [ { "type": "FLAT", - "price": 0.5, - "vat": 20, + "price": 0.50, + "vat": 20.0, "step_size": 1 }, { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 1 } ] diff --git a/website/docs/ocpi/examples/tariff_1_simple_2hour.json b/website/docs/ocpi/examples/tariff_1_simple_2hour.json index 014ec7c..2ab7b04 100644 --- a/website/docs/ocpi/examples/tariff_1_simple_2hour.json +++ b/website/docs/ocpi/examples/tariff_1_simple_2hour.json @@ -8,8 +8,8 @@ "price_components": [ { "type": "TIME", - "price": 2, - "vat": 10, + "price": 2.00, + "vat": 10.0, "step_size": 60 } ] diff --git a/website/docs/ocpi/examples/tariff_2_alt_text.json b/website/docs/ocpi/examples/tariff_2_alt_text.json index 4c237ae..d5f909e 100644 --- a/website/docs/ocpi/examples/tariff_2_alt_text.json +++ b/website/docs/ocpi/examples/tariff_2_alt_text.json @@ -19,7 +19,7 @@ "price_components": [ { "type": "TIME", - "price": 1.9, + "price": 1.90, "vat": 5.2, "step_size": 300 } diff --git a/website/docs/ocpi/examples/tariff_3_alt_url.json b/website/docs/ocpi/examples/tariff_3_alt_url.json index a7df486..e06371e 100644 --- a/website/docs/ocpi/examples/tariff_3_alt_url.json +++ b/website/docs/ocpi/examples/tariff_3_alt_url.json @@ -10,14 +10,14 @@ "price_components": [ { "type": "FLAT", - "price": 0.5, - "vat": 20, + "price": 0.50, + "vat": 20.0, "step_size": 1 }, { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 100 } ] diff --git a/website/docs/ocpi/examples/tariff_4_complex.json b/website/docs/ocpi/examples/tariff_4_complex.json index 51af2b6..8d5d543 100644 --- a/website/docs/ocpi/examples/tariff_4_complex.json +++ b/website/docs/ocpi/examples/tariff_4_complex.json @@ -10,8 +10,8 @@ "price_components": [ { "type": "FLAT", - "price": 2.5, - "vat": 15, + "price": 2.50, + "vat": 15.0, "step_size": 1 } ] @@ -20,26 +20,26 @@ "price_components": [ { "type": "TIME", - "price": 1, - "vat": 20, + "price": 1.00, + "vat": 20.0, "step_size": 900 } ], "restrictions": { - "max_current": 32 + "max_current": 32.00 } }, { "price_components": [ { "type": "TIME", - "price": 2, - "vat": 20, + "price": 2.00, + "vat": 20.0, "step_size": 600 } ], "restrictions": { - "min_current": 32, + "min_current": 32.00, "day_of_week": [ "MONDAY", "TUESDAY", @@ -54,12 +54,12 @@ { "type": "TIME", "price": 1.25, - "vat": 20, + "vat": 20.0, "step_size": 600 } ], "restrictions": { - "min_current": 32, + "min_current": 32.00, "day_of_week": [ "SATURDAY", "SUNDAY" @@ -70,8 +70,8 @@ "price_components": [ { "type": "PARKING_TIME", - "price": 5, - "vat": 10, + "price": 5.00, + "vat": 10.0, "step_size": 300 } ], @@ -91,8 +91,8 @@ "price_components": [ { "type": "PARKING_TIME", - "price": 6, - "vat": 10, + "price": 6.00, + "vat": 10.0, "step_size": 300 } ], diff --git a/website/docs/ocpi/examples/tariff_5_free_of_charge.json b/website/docs/ocpi/examples/tariff_5_free_of_charge.json index a352120..e0b0722 100644 --- a/website/docs/ocpi/examples/tariff_5_free_of_charge.json +++ b/website/docs/ocpi/examples/tariff_5_free_of_charge.json @@ -8,7 +8,7 @@ "price_components": [ { "type": "FLAT", - "price": 0, + "price": 0.00, "step_size": 0 } ] diff --git a/website/docs/ocpi/examples/tariff_6_025kwh_start_max_price.json b/website/docs/ocpi/examples/tariff_6_025kwh_start_max_price.json index a1d62be..9d11ccb 100644 --- a/website/docs/ocpi/examples/tariff_6_025kwh_start_max_price.json +++ b/website/docs/ocpi/examples/tariff_6_025kwh_start_max_price.json @@ -4,22 +4,22 @@ "id": "16", "currency": "EUR", "max_price": { - "excl_vat": 10, - "incl_vat": 11 + "excl_vat": 10.00, + "incl_vat": 11.00 }, "elements": [ { "price_components": [ { "type": "FLAT", - "price": 0.5, - "vat": 20, + "price": 0.50, + "vat": 20.0, "step_size": 1 }, { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 1 } ] diff --git a/website/docs/ocpi/examples/tariff_8_simple_025kwh.json b/website/docs/ocpi/examples/tariff_8_simple_025kwh.json index 3d6e4e8..8fc1240 100644 --- a/website/docs/ocpi/examples/tariff_8_simple_025kwh.json +++ b/website/docs/ocpi/examples/tariff_8_simple_025kwh.json @@ -9,7 +9,7 @@ { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 1 } ] diff --git a/website/docs/ocpi/examples/tariff_9_025kwh_start.json b/website/docs/ocpi/examples/tariff_9_025kwh_start.json index e75eb33..c379a49 100644 --- a/website/docs/ocpi/examples/tariff_9_025kwh_start.json +++ b/website/docs/ocpi/examples/tariff_9_025kwh_start.json @@ -8,14 +8,14 @@ "price_components": [ { "type": "FLAT", - "price": 0.5, - "vat": 20, + "price": 0.50, + "vat": 20.0, "step_size": 1 }, { "type": "ENERGY", "price": 0.25, - "vat": 10, + "vat": 10.0, "step_size": 1 } ] diff --git a/website/docs/ocpi/examples/tariff_put_example.json b/website/docs/ocpi/examples/tariff_put_example.json index bae4cfc..2f3ed4b 100644 --- a/website/docs/ocpi/examples/tariff_put_example.json +++ b/website/docs/ocpi/examples/tariff_put_example.json @@ -8,8 +8,8 @@ "price_components": [ { "type": "TIME", - "price": 2, - "vat": 10, + "price": 2.00, + "vat": 10.0, "step_size": 300 } ] diff --git a/website/docs/ocpi/examples/tariffrestriction_example_max_duration.json b/website/docs/ocpi/examples/tariffrestriction_example_max_duration.json index 8950c8b..0115648 100644 --- a/website/docs/ocpi/examples/tariffrestriction_example_max_duration.json +++ b/website/docs/ocpi/examples/tariffrestriction_example_max_duration.json @@ -9,8 +9,8 @@ "price_components": [ { "type": "ENERGY", - "price": 0, - "vat": 20, + "price": 0.00, + "vat": 20.0, "step_size": 1 } ], @@ -23,7 +23,7 @@ { "type": "ENERGY", "price": 0.25, - "vat": 20, + "vat": 20.0, "step_size": 1 } ], @@ -35,8 +35,8 @@ "price_components": [ { "type": "ENERGY", - "price": 0.4, - "vat": 20, + "price": 0.40, + "vat": 20.0, "step_size": 1 } ] diff --git a/website/docs/ocpi/examples/tariffrestriction_example_max_power.json b/website/docs/ocpi/examples/tariffrestriction_example_max_power.json index 3bb9e5b..e448e5f 100644 --- a/website/docs/ocpi/examples/tariffrestriction_example_max_power.json +++ b/website/docs/ocpi/examples/tariffrestriction_example_max_power.json @@ -9,13 +9,13 @@ "price_components": [ { "type": "ENERGY", - "price": 0.2, - "vat": 20, + "price": 0.20, + "vat": 20.0, "step_size": 1 } ], "restrictions": { - "max_power": 16 + "max_power": 16.00 } }, { @@ -23,20 +23,20 @@ { "type": "ENERGY", "price": 0.35, - "vat": 20, + "vat": 20.0, "step_size": 1 } ], "restrictions": { - "max_power": 32 + "max_power": 32.00 } }, { "price_components": [ { "type": "ENERGY", - "price": 0.5, - "vat": 20, + "price": 0.50, + "vat": 20.0, "step_size": 1 } ]