From 2dfe5cf9d2ba6acb39e0b2da13f9de5c143ac204 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Sun, 25 Feb 2024 20:09:12 +0100 Subject: [PATCH] draft --- etc/psa_tariff/tariff.json | 219 +++++++++++++++++++++++++++++++++++++ 1 file changed, 219 insertions(+) create mode 100644 etc/psa_tariff/tariff.json diff --git a/etc/psa_tariff/tariff.json b/etc/psa_tariff/tariff.json new file mode 100644 index 0000000..f84ca94 --- /dev/null +++ b/etc/psa_tariff/tariff.json @@ -0,0 +1,219 @@ +{ + "Project":"Szeged", + "Version":"1.0.0", + "Date":"01.01.1970", + "Commiter":"", + "Info":"", + + "TariffPrices": [ + { + "tariff_price_id": 0, + "tariff_price": 0 + }, + { + "tariff_price_id": 1, + "tariff_price": 1000, + "tariff_price_comment": "1000 corresponds to 165/60" + }, + { + "tariff_price_id": 2, + "tariff_price": 360000, + "tariff_price_comment": "360000 corresponds to (165/60)*360=990" + } + ], + "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] + } + ], + "TariffOption": [ + "tariff_option_id": 1, + "tariff_option_label": "Tariff Option 1", + "tariff_option_conversion_factor": 0.00275, + "tariff_option_conversion_factori_comment": "(165/60)/1000", + "tariff_option_minimal_time": 15, + "tariff_option_maximal_time": 360, + "tariff_option_minimal_price": 15000, + "tariff_option_maximal_price": 360000, + "tariff_option_time_base": 1, + "tariff_option_time_base_comment_1": "0: start with wall-clock time", + "tariff_option_time_base_comment_2": "1: start with minute 0", + "tariff_option_carry_over": 1, + "tariff_option_prepaid": 1 + ], + "TimeRanges" : [ + { + "time_range_id": 0, + "time_range_start": "08:00:00", + "time_range_end": "08:01:00", + "time_range_start_minute": 0, + "time_range_end_minute": 1, + "time_range_price_id": 1, + "time_range_comment": "[ 08:00-08:01 [" + }, + { + "time_range_id": 1, + "time_range_start": "08:01:00", + "time_range_end": "08:02:00", + "time_range_start_minute": 1, + "time_range_end_minute": 2, + "time_range_price_id": 1, + "time_range_comment": "[ 08:01-08:02 [" + }, + { + "time_range_id": 100000, + "time_range_label": "FREE-TIME-RANGE", + "time_range_start": "00:00:00", + "time_range_end": "00:00:00", + "time_range_start_minute": 0, + "time_range_end_minute": 1440, + "time_range_price_id": 0, + "time_range_comment": "[ 00:00-00:00 [ = [ 00:00-24:00 [" + }, + { + "time_range_id": 100001, + "time_range_start": "00:00:00", + "time_range_end": "00:00:00", + "time_range_start_minute": 0, + "time_range_end_minute": 1440, + "time_range_price_id": 2, + "time_range_comment": "[ 00:00-00:00 [ = [ 00:00-24:00 [" + }, + { + "time_range_id": 100002, + "time_range_start": "00:00:00", + "time_range_end": "00:80:00", + "time_range_start_minute": 0, + "time_range_end_minute": 480, + "time_range_price_id": 0, + "time_range_comment": "[ 00:00-08:00 [" + }, + { + "time_range_id": 100003, + "time_range_start": "18:00:00", + "time_range_end": "00:00:00", + "time_range_start_minute": 1080, + "time_range_end_minute": 1440, + "time_range_price_id": 0, + "time_range_comment": "[ 18:00-00:00 [ = [ 18:00-24:00 [" + } + ], + "DateRanges" : [ + { + "date_range_id":0, + "date_range_label": "1st quarter", + "date_range_from": "0000-01-01-0000-03-31" + }, + { + "date_range_id":1, + "date_range_label": "2nd quarter", + "date_range_from": "0000-04-01-0000-06-30" + }, + { + "date_range_id":2, + "date_range_label": "3rd quarter", + "date_range_from": "0000-07-01-0000-09-30" + }, + { + "date_range_id":3, + "date_range_label": "4th quarter", + "date_range_from": "0000-10-01-0000-12-31" + }, + { + "date_range_id":4, + "date_range_label": "1st half-year", + "date_range_from": "0000-01-01-0000-06-30" + }, + { + "date_range_id":5, + "date_range_label": "2nd half-year", + "date_range_from": "0000-07-01-0000-12-31" + }, + { + "date_range_id":6, + "date_range_label": "whole year", + "date_range_from": "0000-01-01-0000-12-31" + } + ], + "DayConfigurations": [ + "DayConfig_1": { + "day_config_id": 0, + "day_config_date_range": 6, + "day_config_product_ids": [0, 1], + "day_config_day_time_ranges": [ + { + "day_time_ranges_short_time_parking":" [ + 100002, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12 , 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 + 100003 + ] + }, + { + "day_time_ranges_day_ticket":" [100001] + } + ] + }, + "DayConfig_2": { + "day_config_id": 1, + "day_config_date_range": 6, + "day_config_product_ids": [1], + "day_config_day_time_ranges": [ + { + "day_time_ranges_day_ticket":" [100001] + } + ] + } + ], + "TariffDays": [ + "Mon": { + "day_id": 1, + "day_config_id": 0 + }, + "Tue": { + "day_id": 2, + "day_config_id": 0 + }, + "Wed": { + "day_id": 3, + "day_config_id": 0 + }, + "Thu": { + "day_id": 4, + "day_config_id": 0 + }, + "Fri": { + "day_id": 5, + "day_config_id": 0 + }, + "Sat": { + "day_id": 6, + "day_config_id": 0 + }, + "Sun": { + "day_id": 7, + "day_config_id": 0 + }, + "Christmas_1st_day": { + "day_id": 8, + "day_config_id": 1, + "day_date": "2025-12-25", + "day_date_fixed": 1 + }, + "Christmas_2nd_day": { + "day_id": 9, + "day_config_id": 1, + "day_date": "2025-12-26", + "day_date_fixed": 1 + } + ] + ] +}