From c0abeb7989edd5c07829f2583b6a9f519d576c5b Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Mon, 4 Nov 2024 10:09:21 +0100 Subject: [PATCH] Add tariff-file with new format, but functional same as tariff01 --- etc/psa_tariff/tariff02.json | 724 +++++++++++++++++++++++++++++++++++ 1 file changed, 724 insertions(+) create mode 100644 etc/psa_tariff/tariff02.json diff --git a/etc/psa_tariff/tariff02.json b/etc/psa_tariff/tariff02.json new file mode 100644 index 0000000..8ad0f67 --- /dev/null +++ b/etc/psa_tariff/tariff02.json @@ -0,0 +1,724 @@ +{ + "Project" : "Neuhauser Kirchdorf", + "Version" : "1.1.0-2024-10-31T09:00:00+02:00", + "Info" : "Zone 1", + "Currency": [ + { + "pcu_id": 2, + "pcu_sign": "€", + "pcu_major": "EUR", + "pcu_minor": "", + "pcu_active": true + } + ], + "PaymentMethod": [ + { + "pme_id": 1, + "pme_label": "progressive" + }, + { + "pme_id": 2, + "pme_label": "degressive" + }, + { + "pme_id": 3, + "pme_label": "linear" + }, + { + "pme_id": 4, + "pme_label": "steps" + }, + { + "pme_id": 5, + "pme_label": "unified", + "comment": "deprecated" + } + ], + "TimeRange" : [ + { + "time_range_id": 1, + "time_range_from": "20:00:00", + "time_range_to": "08:00:00" + }, + { + "time_range_id": 2, + "time_range_from": "08:00:00", + "time_range_to": "20:00:00" + }, + { + "time_range_id": 3, + "time_range_from": "00:00:00", + "time_range_to": "08:00:00" + } + ], + "PaymentOption": [ + { + "pop_id": 1049, + "pop_label": "Zone 1", + "pop_payment_method_id": 5, + "pop_min_time": 30, + "comment_pop_min_time": "30mins -> 30 cent", + "pop_max_time": 90, + "pop_min_price": 30, + "pop_max_price": 150, + "pop_plus_steps": 1, + "pop_minus_steps": 1, + "pop_time_step_config": 1, + "pop_time_step_config_comment": "STATIC", + "pop_allow_overpay": true, + "pop_carry_over": 1, + "pop_business_hours": 0 + } + ], + "PaymentRate": [ + { + "pra_payment_option_id": 1049, + "pra_payment_unit_id": 0, + "pra_price": 0 + }, + { + "pra_payment_option_id": 1049, + "pra_payment_unit_id": 1, + "pra_price": 30 + }, + { + "pra_payment_option_id": 1049, + "pra_payment_unit_id": 2, + "pra_price": 40 + }, + { + "pra_payment_option_id": 1049, + "pra_payment_unit_id": 3, + "pra_price": 50 + }, + { + "pra_payment_option_id": 1049, + "pra_payment_unit_id": 4, + "pra_price": 60 + }, + { + "pra_payment_option_id": 1049, + "pra_payment_unit_id": 5, + "pra_price": 70 + }, + { + "pra_payment_option_id": 1049, + "pra_payment_unit_id": 6, + "pra_price": 80 + }, + { + "pra_payment_option_id": 1049, + "pra_payment_unit_id": 7, + "pra_price": 90 + }, + { + "pra_payment_option_id": 1049, + "pra_payment_unit_id": 8, + "pra_price": 100 + }, + { + "pra_payment_option_id": 1049, + "pra_payment_unit_id": 9, + "pra_price": 110 + }, + { + "pra_payment_option_id": 1049, + "pra_payment_unit_id": 10, + "pra_price": 120 + }, + { + "pra_payment_option_id": 1049, + "pra_payment_unit_id": 11, + "pra_price": 130 + }, + { + "pra_payment_option_id": 1049, + "pra_payment_unit_id": 12, + "pra_price": 140 + }, + { + "pra_payment_option_id": 1049, + "pra_payment_unit_id": 13, + "pra_price": 150 + } + ], + "Duration": [ + { + "pun_duration": 0, + "pun_id": 0, + "pun_label": "0 min" + }, + { + "pun_duration": 30, + "pun_id": 1 + }, + { + "pun_duration": 35, + "pun_id": 2 + }, + { + "pun_duration": 40, + "pun_id": 3 + }, + { + "pun_duration": 45, + "pun_id": 4 + }, + { + "pun_duration": 50, + "pun_id": 5 + }, + { + "pun_duration": 55, + "pun_id": 6 + }, + { + "pun_duration": 60, + "pun_id": 7 + }, + { + "pun_duration": 65, + "pun_id": 8 + }, + { + "pun_duration": 70, + "pun_id": 9 + }, + { + "pun_duration": 75, + "pun_id": 10 + }, + { + "pun_duration": 80, + "pun_id": 11 + }, + { + "pun_duration": 85, + "pun_id": 12 + }, + { + "pun_duration": 90, + "pun_id": 13 + } + ], + "Monday" : [{ + "default" : { + "payment_settings" : [ + { + "min_time" : 30, + "max_time" : 90, + "max_price": 150, + "min_price": 30 + } + ], + "prepaid_settings" : [ + { + "prepaid_ranges" : [ + { + "prepaid_id" : 1, + "prepaid_duration": 480, + "prepaid_start" : "00:00:00", + "prepaid_end": "08:00:00" + }, + { + "prepaid_id" : 2, + "prepaid_duration": 120, + "prepaid_start" : "12:00:00", + "prepaid_end": "14:00:00" + }, + { + "prepaid_id" : 3, + "prepaid_duration": 360, + "prepaid_start" : "18:00:00", + "prepaid_end": "24:00:00" + } + ] + } + ], + "carry_over_settings" : [ + { + "carry_over_ranges" : [ + { + "carry_over_id" : 1, + "carry_over_if": "always", + "carry_over_duration": 480, + "carry_over_start" : "00:00:00", + "carry_over_end": "08:00:00" + }, + { + "carry_over_id" : 2, + "carry_over_if": "always", + "carry_over_duration": 120, + "carry_over_start" : "12:00:00", + "carry_over_end": "14:00:00" + }, + { + "carry_over_id" : 3, + "carry_over_if": "always", + "carry_over_duration": 360, + "carry_over_start" : "18:00:00", + "carry_over_end": "24:00:00" + } + ] + } + ], + "service_settings" : [ + { + "service_ranges" : [ + { + "service_id" : 1, + "service_duration": 240, + "service_start" : "08:00:00", + "service_end": "12:00:00" + }, + { + "service_id" : 2, + "service_duration": 240, + "service_start" : "14:00:00", + "service_end": "18:00:00" + } + ] + } + ], + "out_of_service_settings" : [ + ] + } + }], + "Tuesday" : [{ + "default" : { + "payment_settings" : [ + { + "min_time" : 30, + "max_time" : 90, + "max_price": 150, + "min_price": 30 + } + ], + "prepaid_settings" : [ + { + "prepaid_ranges" : [ + { + "prepaid_id" : 1, + "prepaid_duration": 480, + "prepaid_start" : "00:00:00", + "prepaid_end": "08:00:00" + }, + { + "prepaid_id" : 2, + "prepaid_duration": 120, + "prepaid_start" : "12:00:00", + "prepaid_end": "14:00:00" + }, + { + "prepaid_id" : 3, + "prepaid_duration": 360, + "prepaid_start" : "18:00:00", + "prepaid_end": "24:00:00" + } + ] + } + ], + "carry_over_settings" : [ + { + "carry_over_ranges" : [ + { + "carry_over_id" : 1, + "carry_over_if": "always", + "carry_over_duration": 480, + "carry_over_start" : "00:00:00", + "carry_over_end": "08:00:00" + }, + { + "carry_over_id" : 2, + "carry_over_if": "always", + "carry_over_duration": 120, + "carry_over_start" : "12:00:00", + "carry_over_end": "14:00:00" + }, + { + "carry_over_id" : 3, + "carry_over_if": "always", + "carry_over_duration": 360, + "carry_over_start" : "18:00:00", + "carry_over_end": "24:00:00" + } + ] + } + ], + "service_settings" : [ + { + "service_ranges" : [ + { + "service_id" : 1, + "service_duration": 240, + "service_start" : "08:00:00", + "service_end": "12:00:00" + }, + { + "service_id" : 2, + "service_duration": 240, + "service_start" : "14:00:00", + "service_end": "18:00:00" + } + ] + } + ], + "out_of_service_settings" : [ + ] + } + }], + "Wednesday" : [{ + "default" : { + "payment_settings" : [ + { + "min_time" : 30, + "max_time" : 90, + "max_price": 150, + "min_price": 30 + } + ], + "prepaid_settings" : [ + { + "prepaid_ranges" : [ + { + "prepaid_id" : 1, + "prepaid_duration": 480, + "prepaid_start" : "00:00:00", + "prepaid_end": "08:00:00" + }, + { + "prepaid_id" : 2, + "prepaid_duration": 120, + "prepaid_start" : "12:00:00", + "prepaid_end": "14:00:00" + }, + { + "prepaid_id" : 3, + "prepaid_duration": 360, + "prepaid_start" : "18:00:00", + "prepaid_end": "24:00:00" + } + ] + } + ], + "carry_over_settings" : [ + { + "carry_over_ranges" : [ + { + "carry_over_id" : 1, + "carry_over_if": "always", + "carry_over_duration": 480, + "carry_over_start" : "00:00:00", + "carry_over_end": "08:00:00" + }, + { + "carry_over_id" : 2, + "carry_over_if": "always", + "carry_over_duration": 120, + "carry_over_start" : "12:00:00", + "carry_over_end": "14:00:00" + }, + { + "carry_over_id" : 3, + "carry_over_if": "always", + "carry_over_duration": 360, + "carry_over_start" : "18:00:00", + "carry_over_end": "24:00:00" + } + ] + } + ], + "service_settings" : [ + { + "service_ranges" : [ + { + "service_id" : 1, + "service_duration": 240, + "service_start" : "08:00:00", + "service_end": "12:00:00" + }, + { + "service_id" : 2, + "service_duration": 240, + "service_start" : "14:00:00", + "service_end": "18:00:00" + } + ] + } + ], + "out_of_service_settings" : [ + ] + } + }], + "Thursday" : [{ + "default" : { + "payment_settings" : [ + { + "min_time" : 30, + "max_time" : 90, + "max_price": 150, + "min_price": 30 + } + ], + "prepaid_settings" : [ + { + "prepaid_ranges" : [ + { + "prepaid_id" : 1, + "prepaid_duration": 480, + "prepaid_start" : "00:00:00", + "prepaid_end": "08:00:00" + }, + { + "prepaid_id" : 2, + "prepaid_duration": 120, + "prepaid_start" : "12:00:00", + "prepaid_end": "14:00:00" + }, + { + "prepaid_id" : 3, + "prepaid_duration": 360, + "prepaid_start" : "18:00:00", + "prepaid_end": "24:00:00" + } + ] + } + ], + "carry_over_settings" : [ + { + "carry_over_ranges" : [ + { + "carry_over_id" : 1, + "carry_over_if": "always", + "carry_over_duration": 480, + "carry_over_start" : "00:00:00", + "carry_over_end": "08:00:00" + }, + { + "carry_over_id" : 2, + "carry_over_if": "always", + "carry_over_duration": 120, + "carry_over_start" : "12:00:00", + "carry_over_end": "14:00:00" + }, + { + "carry_over_id" : 3, + "carry_over_if": "always", + "carry_over_duration": 360, + "carry_over_start" : "18:00:00", + "carry_over_end": "24:00:00" + } + ] + } + ], + "service_settings" : [ + { + "service_ranges" : [ + { + "service_id" : 1, + "service_duration": 240, + "service_start" : "08:00:00", + "service_end": "12:00:00" + }, + { + "service_id" : 2, + "service_duration": 240, + "service_start" : "14:00:00", + "service_end": "18:00:00" + } + ] + } + ], + "out_of_service_settings" : [ + ] + } + }], + "Friday" : [{ + "default" : { + "payment_settings" : [ + { + "min_time" : 30, + "max_time" : 90, + "max_price": 150, + "min_price": 30 + } + ], + "prepaid_settings" : [ + { + "prepaid_ranges" : [ + { + "prepaid_id" : 1, + "prepaid_duration": 480, + "prepaid_start" : "00:00:00", + "prepaid_end": "08:00:00" + }, + { + "prepaid_id" : 2, + "prepaid_duration": 120, + "prepaid_start" : "12:00:00", + "prepaid_end": "14:00:00" + }, + { + "prepaid_id" : 3, + "prepaid_duration": 360, + "prepaid_start" : "18:00:00", + "prepaid_end": "24:00:00" + } + ] + } + ], + "carry_over_settings" : [ + { + "carry_over_ranges" : [ + { + "carry_over_id" : 1, + "carry_over_if": "always", + "carry_over_duration": 480, + "carry_over_start" : "00:00:00", + "carry_over_end": "08:00:00" + }, + { + "carry_over_id" : 2, + "carry_over_if": "always", + "carry_over_duration": 120, + "carry_over_start" : "12:00:00", + "carry_over_end": "14:00:00" + }, + { + "carry_over_id" : 3, + "carry_over_if": "always", + "carry_over_duration": 360, + "carry_over_start" : "18:00:00", + "carry_over_end": "24:00:00" + } + ] + } + ], + "service_settings" : [ + { + "service_ranges" : [ + { + "service_id" : 1, + "service_duration": 240, + "service_start" : "08:00:00", + "service_end": "12:00:00" + }, + { + "service_id" : 2, + "service_duration": 240, + "service_start" : "14:00:00", + "service_end": "18:00:00" + } + ] + } + ], + "out_of_service_settings" : [ + ] + } + }], + "Saturday" : [{ + "default" : { + "payment_settings" : [ + { + "min_time" : 30, + "max_time" : 840, + "max_price": 1400, + "min_price": 50 + } + ], + "prepaid_settings" : [ + { + "prepaid_ranges" : [ + { + "prepaid_id" : 1, + "prepaid_duration": 480, + "prepaid_start" : "00:00:00", + "prepaid_end": "08:00:00" + }, + { + "prepaid_id" : 2, + "prepaid_duration": 720, + "prepaid_start" : "12:00:00", + "prepaid_end": "24:00:00" + } + ] + } + ], + "carry_over_settings" : [ + { + "carry_over_ranges" : [ + { + "carry_over_id" : 1, + "carry_over_if": "always", + "carry_over_duration": 480, + "carry_over_start" : "00:00:00", + "carry_over_end": "08:00:00" + }, + { + "carry_over_id" : 2, + "carry_over_if": "always", + "carry_over_duration": 720, + "carry_over_start" : "12:00:00", + "carry_over_end": "24:00:00" + } + ] + } + ], + "service_settings" : [ + { + "service_ranges" : [ + { + "service_id" : 1, + "service_duration": 240, + "service_start" : "08:00:00", + "service_end": "12:00:00" + } + ] + } + ], + "out_of_service_settings" : [ + ] + } + }], + "Sunday" : [{ + "default" : { + "payment_settings" : [ + { + "min_time" : 30, + "max_time" : 840, + "max_price": 1400, + "min_price": 50 + } + ], + "prepaid_settings" : [ + { + "prepaid_ranges" : [ + { + "prepaid_id" : 1, + "prepaid_duration": 1440, + "prepaid_start" : "00:00:00", + "prepaid_end": "24:00:00" + } + ] + } + ], + "carry_over_settings" : [ + { + "carry_over_ranges" : [ + { + "carry_over_id" : 1, + "carry_over_if": "always", + "carry_over_duration": 1440, + "carry_over_start" : "00:00:00", + "carry_over_end": "24:00:00" + } + ] + } + ], + "service_settings" : [ + ], + "out_of_service_settings" : [ + ] + } + }] +}