Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop22 committed Aug 19, 2024
1 parent fbd1a39 commit a893f14
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
45 changes: 45 additions & 0 deletions ocpi-tariffs/test_data/multiple_flat_fees/cdr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"country_code": "BE",
"start_date_time": "2015-06-29T15:00:00Z",
"end_date_time": "2015-06-29T16:30:00Z",
"currency": "EUR",
"tariffs": [],
"cdr_location": {
"country": "NLD"
},
"charging_periods": [
{
"start_date_time": "2015-06-29T15:00:00Z",
"dimensions": [{
"type": "TIME",
"volume": 0.5
}]
},
{
"start_date_time": "2015-06-29T15:30:00Z",
"dimensions": [{
"type": "TIME",
"volume": 0.5
}]
},
{
"start_date_time": "2015-06-29T16:00:00Z",
"dimensions": [{
"type": "TIME",
"volume": 0.5
}]
}
],
"total_fixed_cost": {
"excl_vat": 1.0,
"incl_vat": 1.0
},
"total_cost": {
"excl_vat": 1.0,
"incl_vat": 1.0
},
"total_energy": 0,
"total_time": 1.5,
"total_parking_time": 0,
"last_updated": "2015-06-29T22:01:13Z"
}
15 changes: 15 additions & 0 deletions ocpi-tariffs/test_data/multiple_flat_fees/tariff.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"country_code": "DE",
"party_id": "ALL",
"id": "12",
"currency": "EUR",
"elements": [{
"price_components": [{
"type": "FLAT",
"price": 1.00,
"vat": 0.0,
"step_size": 0
}]
}],
"last_updated": "2015-06-29T20:39:09Z"
}

0 comments on commit a893f14

Please sign in to comment.