Skip to content

Commit

Permalink
Keep decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
aasanchez committed Sep 11, 2023
1 parent a422a43 commit cd74475
Show file tree
Hide file tree
Showing 31 changed files with 200 additions and 200 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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",
Expand All @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
12 changes: 6 additions & 6 deletions website/docs/ocpi/06-modules/05-cdrs/06-object-description.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
Expand All @@ -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"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
Expand Down
Loading

0 comments on commit cd74475

Please sign in to comment.