From db7fe35095fa56dc592055b6615de8c3b7af274e Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 12 Dec 2023 12:14:54 +0100 Subject: [PATCH] Add some new ideas. --- tariffs/tariff_naz.json | 62 +++++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/tariffs/tariff_naz.json b/tariffs/tariff_naz.json index 861357c..b6fb07e 100644 --- a/tariffs/tariff_naz.json +++ b/tariffs/tariff_naz.json @@ -29,27 +29,27 @@ "pme_label": "steps" } ], - "TimeBasis": [ + "TimeBase": [ { - "tb_id": 1, - "tb_label": "absolute time" + "tbase_type": 0, + "tbase_label": "absolute time" }, { - "tb_id": 2, - "tb_label": "relative time" + "tbase_id": 1, + "tbase_label": "relative time" } ], "Customer": [ { - "cust_id": 1, + "cust_type": 1, "cust_label": "Adult" }, { - "cust_id": 2, + "cust_type": 2, "cust_label": "Child" }, { - "cust_id": 3, + "cust_type": 3, "cust_label": "Teen" } ], @@ -71,19 +71,7 @@ ], "PaymentRate": [ { - "pra_payment_option_id": 1049, - "pra_payment_unit_id": 1, - "pra_price": 900 - }, - { - "pra_payment_option_id": 1049, - "pra_payment_unit_id": 2, - "pra_price": 1500 - }, - { - "pra_payment_option_id": 1049, - "pra_payment_unit_id": 3, - "pra_price": 3000 + "pop_comment":"Unused" } ], "DailyTicket": [ @@ -91,30 +79,44 @@ "daily_ticket_payment_option_id": 1049, "daily_ticket_unit_id": 1, "daily_ticket_price": 400, - "daily_ticket_tb_id": 1, - "daily_ticket_clearance_id": [3], + + "daily_ticket_tbase_type": 0, + "daily_ticket_tbase_type_comment": "0: absolute, 1: relative to offset", + + "daily_ticket_clearance_type": [3], + "daily_ticket_clearance_type_comment": "who is allowed to buy ticket", + "daily_ticket_from_min": "00:00:00", "daily_ticket_to_max": "00:00:00", + "daily_ticket_absolute_comment": "time ranges if time base is absolute", + "daily_ticket_from_offset_min": 0, - "daily_ticket_to_offset_max": 0 + "daily_ticket_to_offset_max": 0, + "daily_ticket_relative_comment": "offsets if time base is realtive" }, { "daily_ticket_payment_option_id": 1049, "daily_ticket_unit_id": 2, "daily_ticket_price": 800, - "daily_ticket_tb_id": 1, - "daily_ticket_clearance_id": [1], + + "daily_ticket_tbase_type": 1, + "daily_ticket_tbase_type_comment": "0: absolute, 1: relative to offset", + + "daily_ticket_clearance_type": [1], + "daily_ticket_clearance_type_comment": "who is allowed to buy ticket", + "daily_ticket_from_min": "00:00:00", "daily_ticket_to_max": "00:00:00", + "daily_ticket_absolute_comment": "time ranges if time base is absolute", + "daily_ticket_from_offset_min": 0, - "daily_ticket_to_offset_max": 0 + "daily_ticket_to_offset_max": 0, + "daily_ticket_relative_comment": "offsets if time base is realtive" } ], "Duration": [ { - "pun_id": 1, - "pun_label": "Tagesticket", - "pun_duration": 720 + "pun_comment":"Unused" } ], "WeekDaysWorktime": [