ATBTariffCalculator/Utilities/tariff.template.json

89 lines
2.7 KiB
JSON
Raw Permalink Normal View History

2024-03-01 13:38:12 +01:00
{
"Project":"Szeged",
"Version":"1.0.0",
"Date":"01.01.1970",
"Commiter":"",
"Info":"",
"Products" : [
{
"tariff_product_id": 0,
"tariff_product_name": "SHORT_TIME_PARKING"
},
{
"tariff_product_id": 1,
"tariff_product_price_id": 2,
"tariff_product_name": "DAY_TICKET",
"tariff_product_time_ranges" : [100001]
}
],
"TariffAccuracy": [
2024-03-04 16:23:10 +01:00
{
2024-03-01 13:38:12 +01:00
"tariff_accuracy_id": 1,
"tariff_accuracy_label": "computation per minute",
2024-03-04 16:23:10 +01:00
"tariff_accuracy_value": 1,
"comment": "accuracy of tariff computation is individual minutes"
2024-03-01 13:38:12 +01:00
}
],
"TariffType": [
2024-03-04 16:23:10 +01:00
{
2024-03-01 13:38:12 +01:00
"tariff_type_id": 1,
"tariff_type_label": "linear",
2024-03-04 16:23:10 +01:00
"comment": "same price for all computational units, typically minutes"
2024-03-01 13:38:12 +01:00
}
],
"TariffTimeBase": [
2024-03-04 16:23:10 +01:00
{
2024-03-01 13:38:12 +01:00
"tariff_timebase_id": 1,
"tariff_timebase_label": "dynamic-timebase",
2024-03-04 16:23:10 +01:00
"comment": "computation starts at minute 0 (can be any minute during the day)"
2024-03-01 13:38:12 +01:00
},
2024-03-04 16:23:10 +01:00
{
2024-03-01 13:38:12 +01:00
"tariff_timebase_id": 2,
"tariff_timebase_label": "wall-clock-timebase",
2024-03-04 16:23:10 +01:00
"comment": "computation starts at fixed wall-clock time"
2024-03-01 13:38:12 +01:00
}
],
"TariffPriceCustomer": [
2024-03-04 16:23:10 +01:00
{
2024-03-01 13:38:12 +01:00
"tariff_price_customer_id": 1,
"tariff_price_customer": 165,
2024-03-04 16:23:10 +01:00
"editable": true,
2024-03-01 13:38:12 +01:00
"comment": "price per hour as entered by customer"
},
2024-03-04 16:23:10 +01:00
{
2024-03-01 13:38:12 +01:00
"tariff_price_customer_id": 2,
"tariff_price_customer": 990,
2024-03-04 16:23:10 +01:00
"editable": true,
2024-03-01 13:38:12 +01:00
"comment": "price for dayticket as entered by customer"
}
],
2024-03-04 16:23:10 +01:00
"TariffConfig": {
2024-03-01 13:38:12 +01:00
"tariff_config_id": 1,
"tariff_config_label": "Tariff Config 1",
"tariff_config_accuracy": 1,
"tariff_config_type": 1,
2024-03-04 16:23:10 +01:00
"MinimalTime": {
"value": 15,
"editable": true,
"comment": "minimal parking time in minutes (net)"
},
2024-03-01 13:38:12 +01:00
"MaximalTime": {
"value" : 360,
"editable": true,
"comment": "maximal parking time in minutes (net)"
2024-03-04 16:23:10 +01:00
},
2024-03-01 13:38:12 +01:00
"MinimalPrice": {
"value" : 1,
"comment": "price-id of customer entered price (for hour) expressed in minimal time: 15*(165/60) = 41.25"
2024-03-04 16:23:10 +01:00
},
2024-03-01 13:38:12 +01:00
"MaximalPrice": {
"value" : 1,
"comment": "price-id of customer entered price (for hour) expressed in maximal time: 360*(165/60) = 990"
2024-03-04 16:23:10 +01:00
},
2024-03-01 13:38:12 +01:00
"tariff_config_time_base": 1,
"tariff_config_carry_over": true,
"tariff_config_prepaid": true
2024-03-04 16:23:10 +01:00
}
2024-03-01 13:38:12 +01:00
}