From 46bffc250dad95c61a422d417499e139877b0a31 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Fri, 12 May 2023 12:41:37 +0200 Subject: [PATCH 1/9] Fix: includepath for main --- main/main.pro | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/main.pro b/main/main.pro index 11551a4..cb88c34 100644 --- a/main/main.pro +++ b/main/main.pro @@ -7,6 +7,8 @@ QMAKE_CFLAGS = -c -pipe -std=c11 -g -O0 -Wall -Wno-attributes -W -DDEBUG -D_REEN QMAKE_CXX_FLAGS += -std=c11 INCLUDEPATH += $$_PRO_FILE_PWD_/../../MOBILISIS-Calculator/library/include/mobilisis/ +INCLUDEPATH += $$_PRO_FILE_PWD_/../../MOBILISIS-Calculator/library/include/rapidjson/ +INCLUDEPATH += $$_PRO_FILE_PWD_/../../MOBILISIS-Calculator/library/include/ INCLUDEPATH += . unix { From 1069c5ad907236c051d25c6bf349a91582050318 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Fri, 12 May 2023 12:43:07 +0200 Subject: [PATCH 2/9] main: add test for GetDurationFromCost --- main/main.cpp | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/main/main.cpp b/main/main.cpp index c4ed0f5..ffd6e8c 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -27,11 +27,45 @@ extern "C" char* strptime(const char* s, #include #include +#include + +#include +#include +#include "calculator_functions.h" int main() { + std::ifstream input(QDir::homePath().append("/tariff01.json").toStdString()); + std::stringstream sstr; + while(input >> sstr.rdbuf()); + std::string json(sstr.str()); + + Calculator calculator; + Configuration cfg; + + bool isParsed = cfg.ParseJson(&cfg, json.c_str()); + cout << endl; + + char const *startDate = ""; + + if (isParsed) + { + startDate = "2023-05-10T13:52:18.665Z"; + std::string duration = calculator.GetDurationFromCost(&cfg, 3, (char *)startDate, 33, false, true); + cout << "---> startDate " << startDate << " _price_ = " << 33 + << " Total duration is: " << duration << endl; + } + + return 0; + + + + + + + parking_tariff_t *tariff = 0; - if (init_tariff(&tariff, "/etc/psa_tariff/")) { + if (init_tariff(&tariff, "/etc/psa_tariff/")) { struct price_t price; memset(&price, 0x00, sizeof(price)); QDateTime start = QDateTime::currentDateTime(); From c6302edec539a7649ed6c3e24dfdf54779471b89 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Mon, 15 May 2023 16:57:45 +0200 Subject: [PATCH 3/9] Format all json files --- tariffs/tariff01.json | 635 ++++++++++++++++++++++++++++++++++++++++- tariffs/tariff02.json | 635 ++++++++++++++++++++++++++++++++++++++++- tariffs/tariff03.json | 642 +++++++++++++++++++++++++++++++++++++++++- tariffs/tariff04.json | 635 ++++++++++++++++++++++++++++++++++++++++- 4 files changed, 2543 insertions(+), 4 deletions(-) diff --git a/tariffs/tariff01.json b/tariffs/tariff01.json index 3500620..6ef9e9e 100644 --- a/tariffs/tariff01.json +++ b/tariffs/tariff01.json @@ -1 +1,634 @@ -{"Currency":[{"pcu_id":2,"pcu_sign":"Ft","pcu_major":"HUF","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"}],"PaymentOption":[{"pop_id":17,"pop_label":"Zone 1","pop_payment_method_id":3,"pop_day_end_time":"00:00:00","pop_day_night_end_time":"00:00:00","pop_price_night":0,"pop_min_time":15,"pop_max_time":240,"pop_min_price":55,"pop_carry_over":1}],"PaymentRate":[{"pra_payment_option_id":17,"pra_payment_unit_id":3,"pra_price":220}],"Duration":[{"pun_id":1,"pun_label":"1h","pun_duration":60},{"pun_id":2,"pun_label":"1 min","pun_duration":1},{"pun_id":3,"pun_label":"15 min","pun_duration":15},{"pun_id":4,"pun_label":"1d","pun_duration":1440},{"pun_id":6,"pun_label":"2h","pun_duration":120},{"pun_id":7,"pun_label":"3h","pun_duration":180},{"pun_id":11,"pun_label":"4h","pun_duration":240},{"pun_id":17,"pun_label":"30 min","pun_duration":30},{"pun_id":18,"pun_label":"1.5h","pun_duration":90},{"pun_id":20,"pun_label":"10min","pun_duration":10}],"WeekDaysWorktime":[{"pwd_id":540,"pwd_period_week_day_id":32,"pwd_period_day_in_week_id":1,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"},{"pwd_id":541,"pwd_period_week_day_id":32,"pwd_period_day_in_week_id":2,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"},{"pwd_id":542,"pwd_period_week_day_id":32,"pwd_period_day_in_week_id":3,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"},{"pwd_id":543,"pwd_period_week_day_id":32,"pwd_period_day_in_week_id":4,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"},{"pwd_id":544,"pwd_period_week_day_id":32,"pwd_period_day_in_week_id":5,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"}],"PeriodYear":[{"pye_id":1,"pye_label":"Summer","pye_start_month":6,"pye_start_day":1,"pye_end_month":9,"pye_end_day":30},{"pye_id":2,"pye_label":"Winter","pye_start_month":10,"pye_start_day":1,"pye_end_month":5,"pye_end_day":31},{"pye_id":8,"pye_label":"Whole year","pye_start_month":1,"pye_start_day":1,"pye_end_month":12,"pye_end_day":31}],"SpecialDaysWorktime":[{"pedwt_id":2156,"pedwt_period_exc_day_id":2024,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2158,"pedwt_period_exc_day_id":2025,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2160,"pedwt_period_exc_day_id":2026,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2162,"pedwt_period_exc_day_id":2027,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2164,"pedwt_period_exc_day_id":2028,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2170,"pedwt_period_exc_day_id":2030,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2172,"pedwt_period_exc_day_id":2032,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2174,"pedwt_period_exc_day_id":11,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2175,"pedwt_period_exc_day_id":13,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2178,"pedwt_period_exc_day_id":2022,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2179,"pedwt_period_exc_day_id":14,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2180,"pedwt_period_exc_day_id":2017,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2181,"pedwt_period_exc_day_id":2018,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2182,"pedwt_period_exc_day_id":2019,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2183,"pedwt_period_exc_day_id":2020,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2184,"pedwt_period_exc_day_id":2021,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2185,"pedwt_period_exc_day_id":2023,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2188,"pedwt_period_exc_day_id":2031,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2189,"pedwt_period_exc_day_id":2029,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2194,"pedwt_period_exc_day_id":2034,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2196,"pedwt_period_exc_day_id":2035,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2198,"pedwt_period_exc_day_id":2036,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2200,"pedwt_period_exc_day_id":2037,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2202,"pedwt_period_exc_day_id":2038,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2219,"pedwt_period_exc_day_id":2041,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2220,"pedwt_period_exc_day_id":2042,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2221,"pedwt_period_exc_day_id":2043,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2222,"pedwt_period_exc_day_id":2044,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2223,"pedwt_period_exc_day_id":2045,"pedwt_time_from":"00:00:00","pedwt_time_to":"01:00:00","pedwt_price":0},{"pedwt_id":2224,"pedwt_period_exc_day_id":2046,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2226,"pedwt_period_exc_day_id":2016,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0}],"SpecialDays":[{"ped_id":11,"ped_label":"Christmas 1st day","ped_date_start":"2022-12-25","ped_date_end":"2022-12-25","ped_period_special_day_id":2,"ped_year":0},{"ped_id":13,"ped_label":"Christmas 2nd day","ped_date_start":"2022-12-26","ped_date_end":"2022-12-26","ped_period_special_day_id":2,"ped_year":0},{"ped_id":14,"ped_label":"Republic Day (Hungary)","ped_date_start":"2022-10-23","ped_date_end":"2022-10-23","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2016,"ped_label":"Christmas (Sunday)","ped_date_start":"2022-12-24","ped_date_end":"2022-12-24","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2017,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-27","ped_date_end":"2022-12-27","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2018,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-28","ped_date_end":"2022-12-28","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2019,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-29","ped_date_end":"2022-12-29","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2020,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-30","ped_date_end":"2022-12-30","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2021,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-31","ped_date_end":"2022-12-31","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2022,"ped_label":"NewYear","ped_date_start":"2023-01-01","ped_date_end":"2023-01-01","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2023,"ped_label":"Holiday (Hungary)","ped_date_start":"2023-01-02","ped_date_end":"2023-01-02","ped_period_special_day_id":1,"ped_year":2024},{"ped_id":2024,"ped_label":"Good Friday","ped_date_start":"2023-04-07","ped_date_end":"2023-04-07","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2025,"ped_label":"Easter Sunday","ped_date_start":"2023-04-09","ped_date_end":"2023-04-09","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2026,"ped_label":"Easter Monday","ped_date_start":"2023-04-10","ped_date_end":"2023-04-10","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2027,"ped_label":"Whit Sunday","ped_date_start":"2023-05-28","ped_date_end":"2023-05-28","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2028,"ped_label":"Whit Monday","ped_date_start":"2023-05-29","ped_date_end":"2023-05-29","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2029,"ped_label":"Revolution Day (Hungary)","ped_date_start":"2023-03-15","ped_date_end":"2023-03-15","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2030,"ped_label":"Labour Day","ped_date_start":"2023-05-01","ped_date_end":"2023-05-01","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2031,"ped_label":"Saint Stephens Day (Hungary)","ped_date_start":"2023-08-20","ped_date_end":"2023-08-20","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2032,"ped_label":"All Saints Day","ped_date_start":"2023-11-01","ped_date_end":"2023-11-01","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2034,"ped_label":"Good Friday","ped_date_start":"2024-03-29","ped_date_end":"2024-03-29","ped_period_special_day_id":2,"ped_year":2024},{"ped_id":2035,"ped_label":"Easter","ped_date_start":"2024-03-31","ped_date_end":"2024-03-31","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2036,"ped_label":"Easter Monday","ped_date_start":"2024-04-01","ped_date_end":"2024-04-01","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2037,"ped_label":"Whit Monday","ped_date_start":"2024-05-20","ped_date_end":"2024-05-20","ped_period_special_day_id":2,"ped_year":2024},{"ped_id":2038,"ped_label":"Whit Sunday","ped_date_start":"2024-05-19","ped_date_end":"2024-05-19","ped_period_special_day_id":2,"ped_year":2024},{"ped_id":2041,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-27","ped_date_end":"2024-12-27","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2042,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-28","ped_date_end":"2024-12-28","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2043,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-29","ped_date_end":"2024-12-29","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2044,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-30","ped_date_end":"2024-12-30","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2045,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-31","ped_date_end":"2024-12-31","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2046,"ped_label":"Holiday (Hungary)","ped_date_start":"2025-01-02","ped_date_end":"2025-01-02","ped_period_special_day_id":1,"ped_year":2025}]} +{ + "Currency": [ + { + "pcu_id": 2, + "pcu_sign": "Ft", + "pcu_major": "HUF", + "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" + } + ], + "PaymentOption": [ + { + "pop_id": 17, + "pop_label": "Zone 1", + "pop_payment_method_id": 3, + "pop_day_end_time": "00:00:00", + "pop_day_night_end_time": "00:00:00", + "pop_price_night": 0, + "pop_min_time": 15, + "pop_max_time": 240, + "pop_min_price": 55, + "pop_carry_over": 1 + } + ], + "PaymentRate": [ + { + "pra_payment_option_id": 17, + "pra_payment_unit_id": 3, + "pra_price": 220 + } + ], + "Duration": [ + { + "pun_id": 1, + "pun_label": "1h", + "pun_duration": 60 + }, + { + "pun_id": 2, + "pun_label": "1 min", + "pun_duration": 1 + }, + { + "pun_id": 3, + "pun_label": "15 min", + "pun_duration": 15 + }, + { + "pun_id": 4, + "pun_label": "1d", + "pun_duration": 1440 + }, + { + "pun_id": 6, + "pun_label": "2h", + "pun_duration": 120 + }, + { + "pun_id": 7, + "pun_label": "3h", + "pun_duration": 180 + }, + { + "pun_id": 11, + "pun_label": "4h", + "pun_duration": 240 + }, + { + "pun_id": 17, + "pun_label": "30 min", + "pun_duration": 30 + }, + { + "pun_id": 18, + "pun_label": "1.5h", + "pun_duration": 90 + }, + { + "pun_id": 20, + "pun_label": "10min", + "pun_duration": 10 + } + ], + "WeekDaysWorktime": [ + { + "pwd_id": 540, + "pwd_period_week_day_id": 32, + "pwd_period_day_in_week_id": 1, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 541, + "pwd_period_week_day_id": 32, + "pwd_period_day_in_week_id": 2, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 542, + "pwd_period_week_day_id": 32, + "pwd_period_day_in_week_id": 3, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 543, + "pwd_period_week_day_id": 32, + "pwd_period_day_in_week_id": 4, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 544, + "pwd_period_week_day_id": 32, + "pwd_period_day_in_week_id": 5, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + } + ], + "PeriodYear": [ + { + "pye_id": 1, + "pye_label": "Summer", + "pye_start_month": 6, + "pye_start_day": 1, + "pye_end_month": 9, + "pye_end_day": 30 + }, + { + "pye_id": 2, + "pye_label": "Winter", + "pye_start_month": 10, + "pye_start_day": 1, + "pye_end_month": 5, + "pye_end_day": 31 + }, + { + "pye_id": 8, + "pye_label": "Whole year", + "pye_start_month": 1, + "pye_start_day": 1, + "pye_end_month": 12, + "pye_end_day": 31 + } + ], + "SpecialDaysWorktime": [ + { + "pedwt_id": 2156, + "pedwt_period_exc_day_id": 2024, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2158, + "pedwt_period_exc_day_id": 2025, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2160, + "pedwt_period_exc_day_id": 2026, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2162, + "pedwt_period_exc_day_id": 2027, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2164, + "pedwt_period_exc_day_id": 2028, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2170, + "pedwt_period_exc_day_id": 2030, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2172, + "pedwt_period_exc_day_id": 2032, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2174, + "pedwt_period_exc_day_id": 11, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2175, + "pedwt_period_exc_day_id": 13, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2178, + "pedwt_period_exc_day_id": 2022, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2179, + "pedwt_period_exc_day_id": 14, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2180, + "pedwt_period_exc_day_id": 2017, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2181, + "pedwt_period_exc_day_id": 2018, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2182, + "pedwt_period_exc_day_id": 2019, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2183, + "pedwt_period_exc_day_id": 2020, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2184, + "pedwt_period_exc_day_id": 2021, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2185, + "pedwt_period_exc_day_id": 2023, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2188, + "pedwt_period_exc_day_id": 2031, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2189, + "pedwt_period_exc_day_id": 2029, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2194, + "pedwt_period_exc_day_id": 2034, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2196, + "pedwt_period_exc_day_id": 2035, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2198, + "pedwt_period_exc_day_id": 2036, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2200, + "pedwt_period_exc_day_id": 2037, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2202, + "pedwt_period_exc_day_id": 2038, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2219, + "pedwt_period_exc_day_id": 2041, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2220, + "pedwt_period_exc_day_id": 2042, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2221, + "pedwt_period_exc_day_id": 2043, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2222, + "pedwt_period_exc_day_id": 2044, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2223, + "pedwt_period_exc_day_id": 2045, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "01:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2224, + "pedwt_period_exc_day_id": 2046, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2226, + "pedwt_period_exc_day_id": 2016, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + } + ], + "SpecialDays": [ + { + "ped_id": 11, + "ped_label": "Christmas 1st day", + "ped_date_start": "2022-12-25", + "ped_date_end": "2022-12-25", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 13, + "ped_label": "Christmas 2nd day", + "ped_date_start": "2022-12-26", + "ped_date_end": "2022-12-26", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 14, + "ped_label": "Republic Day (Hungary)", + "ped_date_start": "2022-10-23", + "ped_date_end": "2022-10-23", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2016, + "ped_label": "Christmas (Sunday)", + "ped_date_start": "2022-12-24", + "ped_date_end": "2022-12-24", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2017, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-27", + "ped_date_end": "2022-12-27", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2018, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-28", + "ped_date_end": "2022-12-28", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2019, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-29", + "ped_date_end": "2022-12-29", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2020, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-30", + "ped_date_end": "2022-12-30", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2021, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-31", + "ped_date_end": "2022-12-31", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2022, + "ped_label": "NewYear", + "ped_date_start": "2023-01-01", + "ped_date_end": "2023-01-01", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2023, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2023-01-02", + "ped_date_end": "2023-01-02", + "ped_period_special_day_id": 1, + "ped_year": 2024 + }, + { + "ped_id": 2024, + "ped_label": "Good Friday", + "ped_date_start": "2023-04-07", + "ped_date_end": "2023-04-07", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2025, + "ped_label": "Easter Sunday", + "ped_date_start": "2023-04-09", + "ped_date_end": "2023-04-09", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2026, + "ped_label": "Easter Monday", + "ped_date_start": "2023-04-10", + "ped_date_end": "2023-04-10", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2027, + "ped_label": "Whit Sunday", + "ped_date_start": "2023-05-28", + "ped_date_end": "2023-05-28", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2028, + "ped_label": "Whit Monday", + "ped_date_start": "2023-05-29", + "ped_date_end": "2023-05-29", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2029, + "ped_label": "Revolution Day (Hungary)", + "ped_date_start": "2023-03-15", + "ped_date_end": "2023-03-15", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2030, + "ped_label": "Labour Day", + "ped_date_start": "2023-05-01", + "ped_date_end": "2023-05-01", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2031, + "ped_label": "Saint Stephens Day (Hungary)", + "ped_date_start": "2023-08-20", + "ped_date_end": "2023-08-20", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2032, + "ped_label": "All Saints Day", + "ped_date_start": "2023-11-01", + "ped_date_end": "2023-11-01", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2034, + "ped_label": "Good Friday", + "ped_date_start": "2024-03-29", + "ped_date_end": "2024-03-29", + "ped_period_special_day_id": 2, + "ped_year": 2024 + }, + { + "ped_id": 2035, + "ped_label": "Easter", + "ped_date_start": "2024-03-31", + "ped_date_end": "2024-03-31", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2036, + "ped_label": "Easter Monday", + "ped_date_start": "2024-04-01", + "ped_date_end": "2024-04-01", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2037, + "ped_label": "Whit Monday", + "ped_date_start": "2024-05-20", + "ped_date_end": "2024-05-20", + "ped_period_special_day_id": 2, + "ped_year": 2024 + }, + { + "ped_id": 2038, + "ped_label": "Whit Sunday", + "ped_date_start": "2024-05-19", + "ped_date_end": "2024-05-19", + "ped_period_special_day_id": 2, + "ped_year": 2024 + }, + { + "ped_id": 2041, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-27", + "ped_date_end": "2024-12-27", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2042, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-28", + "ped_date_end": "2024-12-28", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2043, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-29", + "ped_date_end": "2024-12-29", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2044, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-30", + "ped_date_end": "2024-12-30", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2045, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-31", + "ped_date_end": "2024-12-31", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2046, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2025-01-02", + "ped_date_end": "2025-01-02", + "ped_period_special_day_id": 1, + "ped_year": 2025 + } + ] +} diff --git a/tariffs/tariff02.json b/tariffs/tariff02.json index 712a28b..ad23be1 100644 --- a/tariffs/tariff02.json +++ b/tariffs/tariff02.json @@ -1 +1,634 @@ -{"Currency":[{"pcu_id":2,"pcu_sign":"Ft","pcu_major":"HUF","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"}],"PaymentOption":[{"pop_id":22,"pop_label":"Zone 2","pop_payment_method_id":3,"pop_day_end_time":"00:00:00","pop_day_night_end_time":"00:00:00","pop_price_night":0,"pop_min_time":15,"pop_max_time":240,"pop_min_price":120,"pop_carry_over":1}],"PaymentRate":[{"pra_payment_option_id":22,"pra_payment_unit_id":3,"pra_price":480}],"Duration":[{"pun_id":1,"pun_label":"1h","pun_duration":60},{"pun_id":2,"pun_label":"1 min","pun_duration":1},{"pun_id":3,"pun_label":"15 min","pun_duration":15},{"pun_id":4,"pun_label":"1d","pun_duration":1440},{"pun_id":6,"pun_label":"2h","pun_duration":120},{"pun_id":7,"pun_label":"3h","pun_duration":180},{"pun_id":11,"pun_label":"4h","pun_duration":240},{"pun_id":17,"pun_label":"30 min","pun_duration":30},{"pun_id":18,"pun_label":"1.5h","pun_duration":90},{"pun_id":20,"pun_label":"10min","pun_duration":10}],"WeekDaysWorktime":[{"pwd_id":540,"pwd_period_week_day_id":32,"pwd_period_day_in_week_id":1,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"},{"pwd_id":541,"pwd_period_week_day_id":32,"pwd_period_day_in_week_id":2,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"},{"pwd_id":542,"pwd_period_week_day_id":32,"pwd_period_day_in_week_id":3,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"},{"pwd_id":543,"pwd_period_week_day_id":32,"pwd_period_day_in_week_id":4,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"},{"pwd_id":544,"pwd_period_week_day_id":32,"pwd_period_day_in_week_id":5,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"}],"PeriodYear":[{"pye_id":1,"pye_label":"Summer","pye_start_month":6,"pye_start_day":1,"pye_end_month":9,"pye_end_day":30},{"pye_id":2,"pye_label":"Winter","pye_start_month":10,"pye_start_day":1,"pye_end_month":5,"pye_end_day":31},{"pye_id":8,"pye_label":"Whole year","pye_start_month":1,"pye_start_day":1,"pye_end_month":12,"pye_end_day":31}],"SpecialDaysWorktime":[{"pedwt_id":2156,"pedwt_period_exc_day_id":2024,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2158,"pedwt_period_exc_day_id":2025,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2160,"pedwt_period_exc_day_id":2026,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2162,"pedwt_period_exc_day_id":2027,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2164,"pedwt_period_exc_day_id":2028,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2170,"pedwt_period_exc_day_id":2030,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2172,"pedwt_period_exc_day_id":2032,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2174,"pedwt_period_exc_day_id":11,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2175,"pedwt_period_exc_day_id":13,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2178,"pedwt_period_exc_day_id":2022,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2179,"pedwt_period_exc_day_id":14,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2180,"pedwt_period_exc_day_id":2017,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2181,"pedwt_period_exc_day_id":2018,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2182,"pedwt_period_exc_day_id":2019,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2183,"pedwt_period_exc_day_id":2020,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2184,"pedwt_period_exc_day_id":2021,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2185,"pedwt_period_exc_day_id":2023,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2188,"pedwt_period_exc_day_id":2031,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2189,"pedwt_period_exc_day_id":2029,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2194,"pedwt_period_exc_day_id":2034,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2196,"pedwt_period_exc_day_id":2035,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2198,"pedwt_period_exc_day_id":2036,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2200,"pedwt_period_exc_day_id":2037,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2202,"pedwt_period_exc_day_id":2038,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2219,"pedwt_period_exc_day_id":2041,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2220,"pedwt_period_exc_day_id":2042,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2221,"pedwt_period_exc_day_id":2043,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2222,"pedwt_period_exc_day_id":2044,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2223,"pedwt_period_exc_day_id":2045,"pedwt_time_from":"00:00:00","pedwt_time_to":"01:00:00","pedwt_price":0},{"pedwt_id":2224,"pedwt_period_exc_day_id":2046,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2226,"pedwt_period_exc_day_id":2016,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0}],"SpecialDays":[{"ped_id":11,"ped_label":"Christmas 1st day","ped_date_start":"2022-12-25","ped_date_end":"2022-12-25","ped_period_special_day_id":2,"ped_year":0},{"ped_id":13,"ped_label":"Christmas 2nd day","ped_date_start":"2022-12-26","ped_date_end":"2022-12-26","ped_period_special_day_id":2,"ped_year":0},{"ped_id":14,"ped_label":"Republic Day (Hungary)","ped_date_start":"2022-10-23","ped_date_end":"2022-10-23","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2016,"ped_label":"Christmas (Sunday)","ped_date_start":"2022-12-24","ped_date_end":"2022-12-24","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2017,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-27","ped_date_end":"2022-12-27","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2018,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-28","ped_date_end":"2022-12-28","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2019,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-29","ped_date_end":"2022-12-29","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2020,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-30","ped_date_end":"2022-12-30","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2021,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-31","ped_date_end":"2022-12-31","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2022,"ped_label":"NewYear","ped_date_start":"2023-01-01","ped_date_end":"2023-01-01","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2023,"ped_label":"Holiday (Hungary)","ped_date_start":"2023-01-02","ped_date_end":"2023-01-02","ped_period_special_day_id":1,"ped_year":2024},{"ped_id":2024,"ped_label":"Good Friday","ped_date_start":"2023-04-07","ped_date_end":"2023-04-07","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2025,"ped_label":"Easter Sunday","ped_date_start":"2023-04-09","ped_date_end":"2023-04-09","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2026,"ped_label":"Easter Monday","ped_date_start":"2023-04-10","ped_date_end":"2023-04-10","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2027,"ped_label":"Whit Sunday","ped_date_start":"2023-05-28","ped_date_end":"2023-05-28","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2028,"ped_label":"Whit Monday","ped_date_start":"2023-05-29","ped_date_end":"2023-05-29","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2029,"ped_label":"Revolution Day (Hungary)","ped_date_start":"2023-03-15","ped_date_end":"2023-03-15","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2030,"ped_label":"Labour Day","ped_date_start":"2023-05-01","ped_date_end":"2023-05-01","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2031,"ped_label":"Saint Stephens Day (Hungary)","ped_date_start":"2023-08-20","ped_date_end":"2023-08-20","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2032,"ped_label":"All Saints Day","ped_date_start":"2023-11-01","ped_date_end":"2023-11-01","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2034,"ped_label":"Good Friday","ped_date_start":"2024-03-29","ped_date_end":"2024-03-29","ped_period_special_day_id":2,"ped_year":2024},{"ped_id":2035,"ped_label":"Easter","ped_date_start":"2024-03-31","ped_date_end":"2024-03-31","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2036,"ped_label":"Easter Monday","ped_date_start":"2024-04-01","ped_date_end":"2024-04-01","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2037,"ped_label":"Whit Monday","ped_date_start":"2024-05-20","ped_date_end":"2024-05-20","ped_period_special_day_id":2,"ped_year":2024},{"ped_id":2038,"ped_label":"Whit Sunday","ped_date_start":"2024-05-19","ped_date_end":"2024-05-19","ped_period_special_day_id":2,"ped_year":2024},{"ped_id":2041,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-27","ped_date_end":"2024-12-27","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2042,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-28","ped_date_end":"2024-12-28","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2043,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-29","ped_date_end":"2024-12-29","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2044,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-30","ped_date_end":"2024-12-30","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2045,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-31","ped_date_end":"2024-12-31","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2046,"ped_label":"Holiday (Hungary)","ped_date_start":"2025-01-02","ped_date_end":"2025-01-02","ped_period_special_day_id":1,"ped_year":2025}]} +{ + "Currency": [ + { + "pcu_id": 2, + "pcu_sign": "Ft", + "pcu_major": "HUF", + "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" + } + ], + "PaymentOption": [ + { + "pop_id": 22, + "pop_label": "Zone 2", + "pop_payment_method_id": 3, + "pop_day_end_time": "00:00:00", + "pop_day_night_end_time": "00:00:00", + "pop_price_night": 0, + "pop_min_time": 15, + "pop_max_time": 240, + "pop_min_price": 120, + "pop_carry_over": 1 + } + ], + "PaymentRate": [ + { + "pra_payment_option_id": 22, + "pra_payment_unit_id": 3, + "pra_price": 480 + } + ], + "Duration": [ + { + "pun_id": 1, + "pun_label": "1h", + "pun_duration": 60 + }, + { + "pun_id": 2, + "pun_label": "1 min", + "pun_duration": 1 + }, + { + "pun_id": 3, + "pun_label": "15 min", + "pun_duration": 15 + }, + { + "pun_id": 4, + "pun_label": "1d", + "pun_duration": 1440 + }, + { + "pun_id": 6, + "pun_label": "2h", + "pun_duration": 120 + }, + { + "pun_id": 7, + "pun_label": "3h", + "pun_duration": 180 + }, + { + "pun_id": 11, + "pun_label": "4h", + "pun_duration": 240 + }, + { + "pun_id": 17, + "pun_label": "30 min", + "pun_duration": 30 + }, + { + "pun_id": 18, + "pun_label": "1.5h", + "pun_duration": 90 + }, + { + "pun_id": 20, + "pun_label": "10min", + "pun_duration": 10 + } + ], + "WeekDaysWorktime": [ + { + "pwd_id": 540, + "pwd_period_week_day_id": 32, + "pwd_period_day_in_week_id": 1, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 541, + "pwd_period_week_day_id": 32, + "pwd_period_day_in_week_id": 2, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 542, + "pwd_period_week_day_id": 32, + "pwd_period_day_in_week_id": 3, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 543, + "pwd_period_week_day_id": 32, + "pwd_period_day_in_week_id": 4, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 544, + "pwd_period_week_day_id": 32, + "pwd_period_day_in_week_id": 5, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + } + ], + "PeriodYear": [ + { + "pye_id": 1, + "pye_label": "Summer", + "pye_start_month": 6, + "pye_start_day": 1, + "pye_end_month": 9, + "pye_end_day": 30 + }, + { + "pye_id": 2, + "pye_label": "Winter", + "pye_start_month": 10, + "pye_start_day": 1, + "pye_end_month": 5, + "pye_end_day": 31 + }, + { + "pye_id": 8, + "pye_label": "Whole year", + "pye_start_month": 1, + "pye_start_day": 1, + "pye_end_month": 12, + "pye_end_day": 31 + } + ], + "SpecialDaysWorktime": [ + { + "pedwt_id": 2156, + "pedwt_period_exc_day_id": 2024, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2158, + "pedwt_period_exc_day_id": 2025, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2160, + "pedwt_period_exc_day_id": 2026, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2162, + "pedwt_period_exc_day_id": 2027, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2164, + "pedwt_period_exc_day_id": 2028, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2170, + "pedwt_period_exc_day_id": 2030, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2172, + "pedwt_period_exc_day_id": 2032, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2174, + "pedwt_period_exc_day_id": 11, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2175, + "pedwt_period_exc_day_id": 13, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2178, + "pedwt_period_exc_day_id": 2022, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2179, + "pedwt_period_exc_day_id": 14, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2180, + "pedwt_period_exc_day_id": 2017, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2181, + "pedwt_period_exc_day_id": 2018, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2182, + "pedwt_period_exc_day_id": 2019, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2183, + "pedwt_period_exc_day_id": 2020, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2184, + "pedwt_period_exc_day_id": 2021, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2185, + "pedwt_period_exc_day_id": 2023, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2188, + "pedwt_period_exc_day_id": 2031, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2189, + "pedwt_period_exc_day_id": 2029, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2194, + "pedwt_period_exc_day_id": 2034, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2196, + "pedwt_period_exc_day_id": 2035, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2198, + "pedwt_period_exc_day_id": 2036, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2200, + "pedwt_period_exc_day_id": 2037, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2202, + "pedwt_period_exc_day_id": 2038, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2219, + "pedwt_period_exc_day_id": 2041, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2220, + "pedwt_period_exc_day_id": 2042, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2221, + "pedwt_period_exc_day_id": 2043, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2222, + "pedwt_period_exc_day_id": 2044, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2223, + "pedwt_period_exc_day_id": 2045, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "01:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2224, + "pedwt_period_exc_day_id": 2046, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2226, + "pedwt_period_exc_day_id": 2016, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + } + ], + "SpecialDays": [ + { + "ped_id": 11, + "ped_label": "Christmas 1st day", + "ped_date_start": "2022-12-25", + "ped_date_end": "2022-12-25", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 13, + "ped_label": "Christmas 2nd day", + "ped_date_start": "2022-12-26", + "ped_date_end": "2022-12-26", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 14, + "ped_label": "Republic Day (Hungary)", + "ped_date_start": "2022-10-23", + "ped_date_end": "2022-10-23", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2016, + "ped_label": "Christmas (Sunday)", + "ped_date_start": "2022-12-24", + "ped_date_end": "2022-12-24", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2017, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-27", + "ped_date_end": "2022-12-27", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2018, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-28", + "ped_date_end": "2022-12-28", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2019, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-29", + "ped_date_end": "2022-12-29", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2020, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-30", + "ped_date_end": "2022-12-30", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2021, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-31", + "ped_date_end": "2022-12-31", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2022, + "ped_label": "NewYear", + "ped_date_start": "2023-01-01", + "ped_date_end": "2023-01-01", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2023, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2023-01-02", + "ped_date_end": "2023-01-02", + "ped_period_special_day_id": 1, + "ped_year": 2024 + }, + { + "ped_id": 2024, + "ped_label": "Good Friday", + "ped_date_start": "2023-04-07", + "ped_date_end": "2023-04-07", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2025, + "ped_label": "Easter Sunday", + "ped_date_start": "2023-04-09", + "ped_date_end": "2023-04-09", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2026, + "ped_label": "Easter Monday", + "ped_date_start": "2023-04-10", + "ped_date_end": "2023-04-10", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2027, + "ped_label": "Whit Sunday", + "ped_date_start": "2023-05-28", + "ped_date_end": "2023-05-28", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2028, + "ped_label": "Whit Monday", + "ped_date_start": "2023-05-29", + "ped_date_end": "2023-05-29", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2029, + "ped_label": "Revolution Day (Hungary)", + "ped_date_start": "2023-03-15", + "ped_date_end": "2023-03-15", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2030, + "ped_label": "Labour Day", + "ped_date_start": "2023-05-01", + "ped_date_end": "2023-05-01", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2031, + "ped_label": "Saint Stephens Day (Hungary)", + "ped_date_start": "2023-08-20", + "ped_date_end": "2023-08-20", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2032, + "ped_label": "All Saints Day", + "ped_date_start": "2023-11-01", + "ped_date_end": "2023-11-01", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2034, + "ped_label": "Good Friday", + "ped_date_start": "2024-03-29", + "ped_date_end": "2024-03-29", + "ped_period_special_day_id": 2, + "ped_year": 2024 + }, + { + "ped_id": 2035, + "ped_label": "Easter", + "ped_date_start": "2024-03-31", + "ped_date_end": "2024-03-31", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2036, + "ped_label": "Easter Monday", + "ped_date_start": "2024-04-01", + "ped_date_end": "2024-04-01", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2037, + "ped_label": "Whit Monday", + "ped_date_start": "2024-05-20", + "ped_date_end": "2024-05-20", + "ped_period_special_day_id": 2, + "ped_year": 2024 + }, + { + "ped_id": 2038, + "ped_label": "Whit Sunday", + "ped_date_start": "2024-05-19", + "ped_date_end": "2024-05-19", + "ped_period_special_day_id": 2, + "ped_year": 2024 + }, + { + "ped_id": 2041, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-27", + "ped_date_end": "2024-12-27", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2042, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-28", + "ped_date_end": "2024-12-28", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2043, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-29", + "ped_date_end": "2024-12-29", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2044, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-30", + "ped_date_end": "2024-12-30", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2045, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-31", + "ped_date_end": "2024-12-31", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2046, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2025-01-02", + "ped_date_end": "2025-01-02", + "ped_period_special_day_id": 1, + "ped_year": 2025 + } + ] +} diff --git a/tariffs/tariff03.json b/tariffs/tariff03.json index b97a710..7b6e7ff 100644 --- a/tariffs/tariff03.json +++ b/tariffs/tariff03.json @@ -1 +1,641 @@ -{"Currency":[{"pcu_id":2,"pcu_sign":"Ft","pcu_major":"HUF","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"}],"PaymentOption":[{"pop_id":23,"pop_label":"Zone 3","pop_payment_method_id":3,"pop_day_end_time":"00:00:00","pop_day_night_end_time":"00:00:00","pop_price_night":0,"pop_min_time":15,"pop_max_time":240,"pop_min_price":120,"pop_carry_over":1}],"PaymentRate":[{"pra_payment_option_id":23,"pra_payment_unit_id":3,"pra_price":480}],"Duration":[{"pun_id":1,"pun_label":"1h","pun_duration":60},{"pun_id":2,"pun_label":"1 min","pun_duration":1},{"pun_id":3,"pun_label":"15 min","pun_duration":15},{"pun_id":4,"pun_label":"1d","pun_duration":1440},{"pun_id":6,"pun_label":"2h","pun_duration":120},{"pun_id":7,"pun_label":"3h","pun_duration":180},{"pun_id":11,"pun_label":"4h","pun_duration":240},{"pun_id":17,"pun_label":"30 min","pun_duration":30},{"pun_id":18,"pun_label":"1.5h","pun_duration":90},{"pun_id":20,"pun_label":"10min","pun_duration":10}],"WeekDaysWorktime":[{"pwd_id":550,"pwd_period_week_day_id":33,"pwd_period_day_in_week_id":1,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"},{"pwd_id":551,"pwd_period_week_day_id":33,"pwd_period_day_in_week_id":2,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"},{"pwd_id":552,"pwd_period_week_day_id":33,"pwd_period_day_in_week_id":3,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"},{"pwd_id":553,"pwd_period_week_day_id":33,"pwd_period_day_in_week_id":4,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"},{"pwd_id":554,"pwd_period_week_day_id":33,"pwd_period_day_in_week_id":5,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"},{"pwd_id":555,"pwd_period_week_day_id":33,"pwd_period_day_in_week_id":6,"pwd_time_from":"08:00:00","pwd_time_to":"12:00:00"}],"PeriodYear":[{"pye_id":1,"pye_label":"Summer","pye_start_month":6,"pye_start_day":1,"pye_end_month":9,"pye_end_day":30},{"pye_id":2,"pye_label":"Winter","pye_start_month":10,"pye_start_day":1,"pye_end_month":5,"pye_end_day":31},{"pye_id":8,"pye_label":"Whole year","pye_start_month":1,"pye_start_day":1,"pye_end_month":12,"pye_end_day":31}],"SpecialDaysWorktime":[{"pedwt_id":2156,"pedwt_period_exc_day_id":2024,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2158,"pedwt_period_exc_day_id":2025,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2160,"pedwt_period_exc_day_id":2026,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2162,"pedwt_period_exc_day_id":2027,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2164,"pedwt_period_exc_day_id":2028,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2170,"pedwt_period_exc_day_id":2030,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2172,"pedwt_period_exc_day_id":2032,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2174,"pedwt_period_exc_day_id":11,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2175,"pedwt_period_exc_day_id":13,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2178,"pedwt_period_exc_day_id":2022,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2179,"pedwt_period_exc_day_id":14,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2180,"pedwt_period_exc_day_id":2017,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2181,"pedwt_period_exc_day_id":2018,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2182,"pedwt_period_exc_day_id":2019,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2183,"pedwt_period_exc_day_id":2020,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2184,"pedwt_period_exc_day_id":2021,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2185,"pedwt_period_exc_day_id":2023,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2188,"pedwt_period_exc_day_id":2031,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2189,"pedwt_period_exc_day_id":2029,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2194,"pedwt_period_exc_day_id":2034,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2196,"pedwt_period_exc_day_id":2035,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2198,"pedwt_period_exc_day_id":2036,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2200,"pedwt_period_exc_day_id":2037,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2202,"pedwt_period_exc_day_id":2038,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2219,"pedwt_period_exc_day_id":2041,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2220,"pedwt_period_exc_day_id":2042,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2221,"pedwt_period_exc_day_id":2043,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2222,"pedwt_period_exc_day_id":2044,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2223,"pedwt_period_exc_day_id":2045,"pedwt_time_from":"00:00:00","pedwt_time_to":"01:00:00","pedwt_price":0},{"pedwt_id":2224,"pedwt_period_exc_day_id":2046,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2226,"pedwt_period_exc_day_id":2016,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0}],"SpecialDays":[{"ped_id":11,"ped_label":"Christmas 1st day","ped_date_start":"2022-12-25","ped_date_end":"2022-12-25","ped_period_special_day_id":2,"ped_year":0},{"ped_id":13,"ped_label":"Christmas 2nd day","ped_date_start":"2022-12-26","ped_date_end":"2022-12-26","ped_period_special_day_id":2,"ped_year":0},{"ped_id":14,"ped_label":"Republic Day (Hungary)","ped_date_start":"2022-10-23","ped_date_end":"2022-10-23","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2016,"ped_label":"Christmas (Sunday)","ped_date_start":"2022-12-24","ped_date_end":"2022-12-24","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2017,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-27","ped_date_end":"2022-12-27","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2018,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-28","ped_date_end":"2022-12-28","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2019,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-29","ped_date_end":"2022-12-29","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2020,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-30","ped_date_end":"2022-12-30","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2021,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-31","ped_date_end":"2022-12-31","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2022,"ped_label":"NewYear","ped_date_start":"2023-01-01","ped_date_end":"2023-01-01","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2023,"ped_label":"Holiday (Hungary)","ped_date_start":"2023-01-02","ped_date_end":"2023-01-02","ped_period_special_day_id":1,"ped_year":2024},{"ped_id":2024,"ped_label":"Good Friday","ped_date_start":"2023-04-07","ped_date_end":"2023-04-07","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2025,"ped_label":"Easter Sunday","ped_date_start":"2023-04-09","ped_date_end":"2023-04-09","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2026,"ped_label":"Easter Monday","ped_date_start":"2023-04-10","ped_date_end":"2023-04-10","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2027,"ped_label":"Whit Sunday","ped_date_start":"2023-05-28","ped_date_end":"2023-05-28","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2028,"ped_label":"Whit Monday","ped_date_start":"2023-05-29","ped_date_end":"2023-05-29","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2029,"ped_label":"Revolution Day (Hungary)","ped_date_start":"2023-03-15","ped_date_end":"2023-03-15","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2030,"ped_label":"Labour Day","ped_date_start":"2023-05-01","ped_date_end":"2023-05-01","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2031,"ped_label":"Saint Stephens Day (Hungary)","ped_date_start":"2023-08-20","ped_date_end":"2023-08-20","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2032,"ped_label":"All Saints Day","ped_date_start":"2023-11-01","ped_date_end":"2023-11-01","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2034,"ped_label":"Good Friday","ped_date_start":"2024-03-29","ped_date_end":"2024-03-29","ped_period_special_day_id":2,"ped_year":2024},{"ped_id":2035,"ped_label":"Easter","ped_date_start":"2024-03-31","ped_date_end":"2024-03-31","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2036,"ped_label":"Easter Monday","ped_date_start":"2024-04-01","ped_date_end":"2024-04-01","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2037,"ped_label":"Whit Monday","ped_date_start":"2024-05-20","ped_date_end":"2024-05-20","ped_period_special_day_id":2,"ped_year":2024},{"ped_id":2038,"ped_label":"Whit Sunday","ped_date_start":"2024-05-19","ped_date_end":"2024-05-19","ped_period_special_day_id":2,"ped_year":2024},{"ped_id":2041,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-27","ped_date_end":"2024-12-27","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2042,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-28","ped_date_end":"2024-12-28","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2043,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-29","ped_date_end":"2024-12-29","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2044,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-30","ped_date_end":"2024-12-30","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2045,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-31","ped_date_end":"2024-12-31","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2046,"ped_label":"Holiday (Hungary)","ped_date_start":"2025-01-02","ped_date_end":"2025-01-02","ped_period_special_day_id":1,"ped_year":2025}]} \ No newline at end of file +{ + "Currency": [ + { + "pcu_id": 2, + "pcu_sign": "Ft", + "pcu_major": "HUF", + "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" + } + ], + "PaymentOption": [ + { + "pop_id": 23, + "pop_label": "Zone 3", + "pop_payment_method_id": 3, + "pop_day_end_time": "00:00:00", + "pop_day_night_end_time": "00:00:00", + "pop_price_night": 0, + "pop_min_time": 15, + "pop_max_time": 240, + "pop_min_price": 120, + "pop_carry_over": 1 + } + ], + "PaymentRate": [ + { + "pra_payment_option_id": 23, + "pra_payment_unit_id": 3, + "pra_price": 480 + } + ], + "Duration": [ + { + "pun_id": 1, + "pun_label": "1h", + "pun_duration": 60 + }, + { + "pun_id": 2, + "pun_label": "1 min", + "pun_duration": 1 + }, + { + "pun_id": 3, + "pun_label": "15 min", + "pun_duration": 15 + }, + { + "pun_id": 4, + "pun_label": "1d", + "pun_duration": 1440 + }, + { + "pun_id": 6, + "pun_label": "2h", + "pun_duration": 120 + }, + { + "pun_id": 7, + "pun_label": "3h", + "pun_duration": 180 + }, + { + "pun_id": 11, + "pun_label": "4h", + "pun_duration": 240 + }, + { + "pun_id": 17, + "pun_label": "30 min", + "pun_duration": 30 + }, + { + "pun_id": 18, + "pun_label": "1.5h", + "pun_duration": 90 + }, + { + "pun_id": 20, + "pun_label": "10min", + "pun_duration": 10 + } + ], + "WeekDaysWorktime": [ + { + "pwd_id": 550, + "pwd_period_week_day_id": 33, + "pwd_period_day_in_week_id": 1, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 551, + "pwd_period_week_day_id": 33, + "pwd_period_day_in_week_id": 2, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 552, + "pwd_period_week_day_id": 33, + "pwd_period_day_in_week_id": 3, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 553, + "pwd_period_week_day_id": 33, + "pwd_period_day_in_week_id": 4, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 554, + "pwd_period_week_day_id": 33, + "pwd_period_day_in_week_id": 5, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 555, + "pwd_period_week_day_id": 33, + "pwd_period_day_in_week_id": 6, + "pwd_time_from": "08:00:00", + "pwd_time_to": "12:00:00" + } + ], + "PeriodYear": [ + { + "pye_id": 1, + "pye_label": "Summer", + "pye_start_month": 6, + "pye_start_day": 1, + "pye_end_month": 9, + "pye_end_day": 30 + }, + { + "pye_id": 2, + "pye_label": "Winter", + "pye_start_month": 10, + "pye_start_day": 1, + "pye_end_month": 5, + "pye_end_day": 31 + }, + { + "pye_id": 8, + "pye_label": "Whole year", + "pye_start_month": 1, + "pye_start_day": 1, + "pye_end_month": 12, + "pye_end_day": 31 + } + ], + "SpecialDaysWorktime": [ + { + "pedwt_id": 2156, + "pedwt_period_exc_day_id": 2024, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2158, + "pedwt_period_exc_day_id": 2025, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2160, + "pedwt_period_exc_day_id": 2026, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2162, + "pedwt_period_exc_day_id": 2027, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2164, + "pedwt_period_exc_day_id": 2028, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2170, + "pedwt_period_exc_day_id": 2030, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2172, + "pedwt_period_exc_day_id": 2032, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2174, + "pedwt_period_exc_day_id": 11, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2175, + "pedwt_period_exc_day_id": 13, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2178, + "pedwt_period_exc_day_id": 2022, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2179, + "pedwt_period_exc_day_id": 14, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2180, + "pedwt_period_exc_day_id": 2017, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2181, + "pedwt_period_exc_day_id": 2018, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2182, + "pedwt_period_exc_day_id": 2019, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2183, + "pedwt_period_exc_day_id": 2020, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2184, + "pedwt_period_exc_day_id": 2021, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2185, + "pedwt_period_exc_day_id": 2023, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2188, + "pedwt_period_exc_day_id": 2031, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2189, + "pedwt_period_exc_day_id": 2029, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2194, + "pedwt_period_exc_day_id": 2034, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2196, + "pedwt_period_exc_day_id": 2035, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2198, + "pedwt_period_exc_day_id": 2036, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2200, + "pedwt_period_exc_day_id": 2037, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2202, + "pedwt_period_exc_day_id": 2038, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2219, + "pedwt_period_exc_day_id": 2041, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2220, + "pedwt_period_exc_day_id": 2042, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2221, + "pedwt_period_exc_day_id": 2043, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2222, + "pedwt_period_exc_day_id": 2044, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2223, + "pedwt_period_exc_day_id": 2045, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "01:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2224, + "pedwt_period_exc_day_id": 2046, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2226, + "pedwt_period_exc_day_id": 2016, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + } + ], + "SpecialDays": [ + { + "ped_id": 11, + "ped_label": "Christmas 1st day", + "ped_date_start": "2022-12-25", + "ped_date_end": "2022-12-25", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 13, + "ped_label": "Christmas 2nd day", + "ped_date_start": "2022-12-26", + "ped_date_end": "2022-12-26", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 14, + "ped_label": "Republic Day (Hungary)", + "ped_date_start": "2022-10-23", + "ped_date_end": "2022-10-23", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2016, + "ped_label": "Christmas (Sunday)", + "ped_date_start": "2022-12-24", + "ped_date_end": "2022-12-24", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2017, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-27", + "ped_date_end": "2022-12-27", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2018, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-28", + "ped_date_end": "2022-12-28", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2019, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-29", + "ped_date_end": "2022-12-29", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2020, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-30", + "ped_date_end": "2022-12-30", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2021, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-31", + "ped_date_end": "2022-12-31", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2022, + "ped_label": "NewYear", + "ped_date_start": "2023-01-01", + "ped_date_end": "2023-01-01", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2023, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2023-01-02", + "ped_date_end": "2023-01-02", + "ped_period_special_day_id": 1, + "ped_year": 2024 + }, + { + "ped_id": 2024, + "ped_label": "Good Friday", + "ped_date_start": "2023-04-07", + "ped_date_end": "2023-04-07", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2025, + "ped_label": "Easter Sunday", + "ped_date_start": "2023-04-09", + "ped_date_end": "2023-04-09", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2026, + "ped_label": "Easter Monday", + "ped_date_start": "2023-04-10", + "ped_date_end": "2023-04-10", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2027, + "ped_label": "Whit Sunday", + "ped_date_start": "2023-05-28", + "ped_date_end": "2023-05-28", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2028, + "ped_label": "Whit Monday", + "ped_date_start": "2023-05-29", + "ped_date_end": "2023-05-29", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2029, + "ped_label": "Revolution Day (Hungary)", + "ped_date_start": "2023-03-15", + "ped_date_end": "2023-03-15", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2030, + "ped_label": "Labour Day", + "ped_date_start": "2023-05-01", + "ped_date_end": "2023-05-01", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2031, + "ped_label": "Saint Stephens Day (Hungary)", + "ped_date_start": "2023-08-20", + "ped_date_end": "2023-08-20", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2032, + "ped_label": "All Saints Day", + "ped_date_start": "2023-11-01", + "ped_date_end": "2023-11-01", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2034, + "ped_label": "Good Friday", + "ped_date_start": "2024-03-29", + "ped_date_end": "2024-03-29", + "ped_period_special_day_id": 2, + "ped_year": 2024 + }, + { + "ped_id": 2035, + "ped_label": "Easter", + "ped_date_start": "2024-03-31", + "ped_date_end": "2024-03-31", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2036, + "ped_label": "Easter Monday", + "ped_date_start": "2024-04-01", + "ped_date_end": "2024-04-01", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2037, + "ped_label": "Whit Monday", + "ped_date_start": "2024-05-20", + "ped_date_end": "2024-05-20", + "ped_period_special_day_id": 2, + "ped_year": 2024 + }, + { + "ped_id": 2038, + "ped_label": "Whit Sunday", + "ped_date_start": "2024-05-19", + "ped_date_end": "2024-05-19", + "ped_period_special_day_id": 2, + "ped_year": 2024 + }, + { + "ped_id": 2041, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-27", + "ped_date_end": "2024-12-27", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2042, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-28", + "ped_date_end": "2024-12-28", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2043, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-29", + "ped_date_end": "2024-12-29", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2044, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-30", + "ped_date_end": "2024-12-30", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2045, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-31", + "ped_date_end": "2024-12-31", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2046, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2025-01-02", + "ped_date_end": "2025-01-02", + "ped_period_special_day_id": 1, + "ped_year": 2025 + } + ] +} diff --git a/tariffs/tariff04.json b/tariffs/tariff04.json index 3500620..6ef9e9e 100644 --- a/tariffs/tariff04.json +++ b/tariffs/tariff04.json @@ -1 +1,634 @@ -{"Currency":[{"pcu_id":2,"pcu_sign":"Ft","pcu_major":"HUF","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"}],"PaymentOption":[{"pop_id":17,"pop_label":"Zone 1","pop_payment_method_id":3,"pop_day_end_time":"00:00:00","pop_day_night_end_time":"00:00:00","pop_price_night":0,"pop_min_time":15,"pop_max_time":240,"pop_min_price":55,"pop_carry_over":1}],"PaymentRate":[{"pra_payment_option_id":17,"pra_payment_unit_id":3,"pra_price":220}],"Duration":[{"pun_id":1,"pun_label":"1h","pun_duration":60},{"pun_id":2,"pun_label":"1 min","pun_duration":1},{"pun_id":3,"pun_label":"15 min","pun_duration":15},{"pun_id":4,"pun_label":"1d","pun_duration":1440},{"pun_id":6,"pun_label":"2h","pun_duration":120},{"pun_id":7,"pun_label":"3h","pun_duration":180},{"pun_id":11,"pun_label":"4h","pun_duration":240},{"pun_id":17,"pun_label":"30 min","pun_duration":30},{"pun_id":18,"pun_label":"1.5h","pun_duration":90},{"pun_id":20,"pun_label":"10min","pun_duration":10}],"WeekDaysWorktime":[{"pwd_id":540,"pwd_period_week_day_id":32,"pwd_period_day_in_week_id":1,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"},{"pwd_id":541,"pwd_period_week_day_id":32,"pwd_period_day_in_week_id":2,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"},{"pwd_id":542,"pwd_period_week_day_id":32,"pwd_period_day_in_week_id":3,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"},{"pwd_id":543,"pwd_period_week_day_id":32,"pwd_period_day_in_week_id":4,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"},{"pwd_id":544,"pwd_period_week_day_id":32,"pwd_period_day_in_week_id":5,"pwd_time_from":"08:00:00","pwd_time_to":"18:00:00"}],"PeriodYear":[{"pye_id":1,"pye_label":"Summer","pye_start_month":6,"pye_start_day":1,"pye_end_month":9,"pye_end_day":30},{"pye_id":2,"pye_label":"Winter","pye_start_month":10,"pye_start_day":1,"pye_end_month":5,"pye_end_day":31},{"pye_id":8,"pye_label":"Whole year","pye_start_month":1,"pye_start_day":1,"pye_end_month":12,"pye_end_day":31}],"SpecialDaysWorktime":[{"pedwt_id":2156,"pedwt_period_exc_day_id":2024,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2158,"pedwt_period_exc_day_id":2025,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2160,"pedwt_period_exc_day_id":2026,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2162,"pedwt_period_exc_day_id":2027,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2164,"pedwt_period_exc_day_id":2028,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2170,"pedwt_period_exc_day_id":2030,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2172,"pedwt_period_exc_day_id":2032,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2174,"pedwt_period_exc_day_id":11,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2175,"pedwt_period_exc_day_id":13,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2178,"pedwt_period_exc_day_id":2022,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2179,"pedwt_period_exc_day_id":14,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2180,"pedwt_period_exc_day_id":2017,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2181,"pedwt_period_exc_day_id":2018,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2182,"pedwt_period_exc_day_id":2019,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2183,"pedwt_period_exc_day_id":2020,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2184,"pedwt_period_exc_day_id":2021,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2185,"pedwt_period_exc_day_id":2023,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2188,"pedwt_period_exc_day_id":2031,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2189,"pedwt_period_exc_day_id":2029,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2194,"pedwt_period_exc_day_id":2034,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2196,"pedwt_period_exc_day_id":2035,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2198,"pedwt_period_exc_day_id":2036,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2200,"pedwt_period_exc_day_id":2037,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2202,"pedwt_period_exc_day_id":2038,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2219,"pedwt_period_exc_day_id":2041,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2220,"pedwt_period_exc_day_id":2042,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2221,"pedwt_period_exc_day_id":2043,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2222,"pedwt_period_exc_day_id":2044,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2223,"pedwt_period_exc_day_id":2045,"pedwt_time_from":"00:00:00","pedwt_time_to":"01:00:00","pedwt_price":0},{"pedwt_id":2224,"pedwt_period_exc_day_id":2046,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0},{"pedwt_id":2226,"pedwt_period_exc_day_id":2016,"pedwt_time_from":"00:00:00","pedwt_time_to":"00:00:00","pedwt_price":0}],"SpecialDays":[{"ped_id":11,"ped_label":"Christmas 1st day","ped_date_start":"2022-12-25","ped_date_end":"2022-12-25","ped_period_special_day_id":2,"ped_year":0},{"ped_id":13,"ped_label":"Christmas 2nd day","ped_date_start":"2022-12-26","ped_date_end":"2022-12-26","ped_period_special_day_id":2,"ped_year":0},{"ped_id":14,"ped_label":"Republic Day (Hungary)","ped_date_start":"2022-10-23","ped_date_end":"2022-10-23","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2016,"ped_label":"Christmas (Sunday)","ped_date_start":"2022-12-24","ped_date_end":"2022-12-24","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2017,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-27","ped_date_end":"2022-12-27","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2018,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-28","ped_date_end":"2022-12-28","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2019,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-29","ped_date_end":"2022-12-29","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2020,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-30","ped_date_end":"2022-12-30","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2021,"ped_label":"Holiday (Hungary)","ped_date_start":"2022-12-31","ped_date_end":"2022-12-31","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2022,"ped_label":"NewYear","ped_date_start":"2023-01-01","ped_date_end":"2023-01-01","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2023,"ped_label":"Holiday (Hungary)","ped_date_start":"2023-01-02","ped_date_end":"2023-01-02","ped_period_special_day_id":1,"ped_year":2024},{"ped_id":2024,"ped_label":"Good Friday","ped_date_start":"2023-04-07","ped_date_end":"2023-04-07","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2025,"ped_label":"Easter Sunday","ped_date_start":"2023-04-09","ped_date_end":"2023-04-09","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2026,"ped_label":"Easter Monday","ped_date_start":"2023-04-10","ped_date_end":"2023-04-10","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2027,"ped_label":"Whit Sunday","ped_date_start":"2023-05-28","ped_date_end":"2023-05-28","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2028,"ped_label":"Whit Monday","ped_date_start":"2023-05-29","ped_date_end":"2023-05-29","ped_period_special_day_id":2,"ped_year":2023},{"ped_id":2029,"ped_label":"Revolution Day (Hungary)","ped_date_start":"2023-03-15","ped_date_end":"2023-03-15","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2030,"ped_label":"Labour Day","ped_date_start":"2023-05-01","ped_date_end":"2023-05-01","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2031,"ped_label":"Saint Stephens Day (Hungary)","ped_date_start":"2023-08-20","ped_date_end":"2023-08-20","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2032,"ped_label":"All Saints Day","ped_date_start":"2023-11-01","ped_date_end":"2023-11-01","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2034,"ped_label":"Good Friday","ped_date_start":"2024-03-29","ped_date_end":"2024-03-29","ped_period_special_day_id":2,"ped_year":2024},{"ped_id":2035,"ped_label":"Easter","ped_date_start":"2024-03-31","ped_date_end":"2024-03-31","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2036,"ped_label":"Easter Monday","ped_date_start":"2024-04-01","ped_date_end":"2024-04-01","ped_period_special_day_id":2,"ped_year":0},{"ped_id":2037,"ped_label":"Whit Monday","ped_date_start":"2024-05-20","ped_date_end":"2024-05-20","ped_period_special_day_id":2,"ped_year":2024},{"ped_id":2038,"ped_label":"Whit Sunday","ped_date_start":"2024-05-19","ped_date_end":"2024-05-19","ped_period_special_day_id":2,"ped_year":2024},{"ped_id":2041,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-27","ped_date_end":"2024-12-27","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2042,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-28","ped_date_end":"2024-12-28","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2043,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-29","ped_date_end":"2024-12-29","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2044,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-30","ped_date_end":"2024-12-30","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2045,"ped_label":"Holiday (Hungary)","ped_date_start":"2024-12-31","ped_date_end":"2024-12-31","ped_period_special_day_id":1,"ped_year":0},{"ped_id":2046,"ped_label":"Holiday (Hungary)","ped_date_start":"2025-01-02","ped_date_end":"2025-01-02","ped_period_special_day_id":1,"ped_year":2025}]} +{ + "Currency": [ + { + "pcu_id": 2, + "pcu_sign": "Ft", + "pcu_major": "HUF", + "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" + } + ], + "PaymentOption": [ + { + "pop_id": 17, + "pop_label": "Zone 1", + "pop_payment_method_id": 3, + "pop_day_end_time": "00:00:00", + "pop_day_night_end_time": "00:00:00", + "pop_price_night": 0, + "pop_min_time": 15, + "pop_max_time": 240, + "pop_min_price": 55, + "pop_carry_over": 1 + } + ], + "PaymentRate": [ + { + "pra_payment_option_id": 17, + "pra_payment_unit_id": 3, + "pra_price": 220 + } + ], + "Duration": [ + { + "pun_id": 1, + "pun_label": "1h", + "pun_duration": 60 + }, + { + "pun_id": 2, + "pun_label": "1 min", + "pun_duration": 1 + }, + { + "pun_id": 3, + "pun_label": "15 min", + "pun_duration": 15 + }, + { + "pun_id": 4, + "pun_label": "1d", + "pun_duration": 1440 + }, + { + "pun_id": 6, + "pun_label": "2h", + "pun_duration": 120 + }, + { + "pun_id": 7, + "pun_label": "3h", + "pun_duration": 180 + }, + { + "pun_id": 11, + "pun_label": "4h", + "pun_duration": 240 + }, + { + "pun_id": 17, + "pun_label": "30 min", + "pun_duration": 30 + }, + { + "pun_id": 18, + "pun_label": "1.5h", + "pun_duration": 90 + }, + { + "pun_id": 20, + "pun_label": "10min", + "pun_duration": 10 + } + ], + "WeekDaysWorktime": [ + { + "pwd_id": 540, + "pwd_period_week_day_id": 32, + "pwd_period_day_in_week_id": 1, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 541, + "pwd_period_week_day_id": 32, + "pwd_period_day_in_week_id": 2, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 542, + "pwd_period_week_day_id": 32, + "pwd_period_day_in_week_id": 3, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 543, + "pwd_period_week_day_id": 32, + "pwd_period_day_in_week_id": 4, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 544, + "pwd_period_week_day_id": 32, + "pwd_period_day_in_week_id": 5, + "pwd_time_from": "08:00:00", + "pwd_time_to": "18:00:00" + } + ], + "PeriodYear": [ + { + "pye_id": 1, + "pye_label": "Summer", + "pye_start_month": 6, + "pye_start_day": 1, + "pye_end_month": 9, + "pye_end_day": 30 + }, + { + "pye_id": 2, + "pye_label": "Winter", + "pye_start_month": 10, + "pye_start_day": 1, + "pye_end_month": 5, + "pye_end_day": 31 + }, + { + "pye_id": 8, + "pye_label": "Whole year", + "pye_start_month": 1, + "pye_start_day": 1, + "pye_end_month": 12, + "pye_end_day": 31 + } + ], + "SpecialDaysWorktime": [ + { + "pedwt_id": 2156, + "pedwt_period_exc_day_id": 2024, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2158, + "pedwt_period_exc_day_id": 2025, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2160, + "pedwt_period_exc_day_id": 2026, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2162, + "pedwt_period_exc_day_id": 2027, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2164, + "pedwt_period_exc_day_id": 2028, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2170, + "pedwt_period_exc_day_id": 2030, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2172, + "pedwt_period_exc_day_id": 2032, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2174, + "pedwt_period_exc_day_id": 11, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2175, + "pedwt_period_exc_day_id": 13, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2178, + "pedwt_period_exc_day_id": 2022, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2179, + "pedwt_period_exc_day_id": 14, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2180, + "pedwt_period_exc_day_id": 2017, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2181, + "pedwt_period_exc_day_id": 2018, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2182, + "pedwt_period_exc_day_id": 2019, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2183, + "pedwt_period_exc_day_id": 2020, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2184, + "pedwt_period_exc_day_id": 2021, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2185, + "pedwt_period_exc_day_id": 2023, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2188, + "pedwt_period_exc_day_id": 2031, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2189, + "pedwt_period_exc_day_id": 2029, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2194, + "pedwt_period_exc_day_id": 2034, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2196, + "pedwt_period_exc_day_id": 2035, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2198, + "pedwt_period_exc_day_id": 2036, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2200, + "pedwt_period_exc_day_id": 2037, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2202, + "pedwt_period_exc_day_id": 2038, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2219, + "pedwt_period_exc_day_id": 2041, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2220, + "pedwt_period_exc_day_id": 2042, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2221, + "pedwt_period_exc_day_id": 2043, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2222, + "pedwt_period_exc_day_id": 2044, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2223, + "pedwt_period_exc_day_id": 2045, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "01:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2224, + "pedwt_period_exc_day_id": 2046, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2226, + "pedwt_period_exc_day_id": 2016, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + } + ], + "SpecialDays": [ + { + "ped_id": 11, + "ped_label": "Christmas 1st day", + "ped_date_start": "2022-12-25", + "ped_date_end": "2022-12-25", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 13, + "ped_label": "Christmas 2nd day", + "ped_date_start": "2022-12-26", + "ped_date_end": "2022-12-26", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 14, + "ped_label": "Republic Day (Hungary)", + "ped_date_start": "2022-10-23", + "ped_date_end": "2022-10-23", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2016, + "ped_label": "Christmas (Sunday)", + "ped_date_start": "2022-12-24", + "ped_date_end": "2022-12-24", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2017, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-27", + "ped_date_end": "2022-12-27", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2018, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-28", + "ped_date_end": "2022-12-28", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2019, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-29", + "ped_date_end": "2022-12-29", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2020, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-30", + "ped_date_end": "2022-12-30", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2021, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2022-12-31", + "ped_date_end": "2022-12-31", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2022, + "ped_label": "NewYear", + "ped_date_start": "2023-01-01", + "ped_date_end": "2023-01-01", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2023, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2023-01-02", + "ped_date_end": "2023-01-02", + "ped_period_special_day_id": 1, + "ped_year": 2024 + }, + { + "ped_id": 2024, + "ped_label": "Good Friday", + "ped_date_start": "2023-04-07", + "ped_date_end": "2023-04-07", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2025, + "ped_label": "Easter Sunday", + "ped_date_start": "2023-04-09", + "ped_date_end": "2023-04-09", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2026, + "ped_label": "Easter Monday", + "ped_date_start": "2023-04-10", + "ped_date_end": "2023-04-10", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2027, + "ped_label": "Whit Sunday", + "ped_date_start": "2023-05-28", + "ped_date_end": "2023-05-28", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2028, + "ped_label": "Whit Monday", + "ped_date_start": "2023-05-29", + "ped_date_end": "2023-05-29", + "ped_period_special_day_id": 2, + "ped_year": 2023 + }, + { + "ped_id": 2029, + "ped_label": "Revolution Day (Hungary)", + "ped_date_start": "2023-03-15", + "ped_date_end": "2023-03-15", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2030, + "ped_label": "Labour Day", + "ped_date_start": "2023-05-01", + "ped_date_end": "2023-05-01", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2031, + "ped_label": "Saint Stephens Day (Hungary)", + "ped_date_start": "2023-08-20", + "ped_date_end": "2023-08-20", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2032, + "ped_label": "All Saints Day", + "ped_date_start": "2023-11-01", + "ped_date_end": "2023-11-01", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2034, + "ped_label": "Good Friday", + "ped_date_start": "2024-03-29", + "ped_date_end": "2024-03-29", + "ped_period_special_day_id": 2, + "ped_year": 2024 + }, + { + "ped_id": 2035, + "ped_label": "Easter", + "ped_date_start": "2024-03-31", + "ped_date_end": "2024-03-31", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2036, + "ped_label": "Easter Monday", + "ped_date_start": "2024-04-01", + "ped_date_end": "2024-04-01", + "ped_period_special_day_id": 2, + "ped_year": 0 + }, + { + "ped_id": 2037, + "ped_label": "Whit Monday", + "ped_date_start": "2024-05-20", + "ped_date_end": "2024-05-20", + "ped_period_special_day_id": 2, + "ped_year": 2024 + }, + { + "ped_id": 2038, + "ped_label": "Whit Sunday", + "ped_date_start": "2024-05-19", + "ped_date_end": "2024-05-19", + "ped_period_special_day_id": 2, + "ped_year": 2024 + }, + { + "ped_id": 2041, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-27", + "ped_date_end": "2024-12-27", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2042, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-28", + "ped_date_end": "2024-12-28", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2043, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-29", + "ped_date_end": "2024-12-29", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2044, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-30", + "ped_date_end": "2024-12-30", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2045, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2024-12-31", + "ped_date_end": "2024-12-31", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2046, + "ped_label": "Holiday (Hungary)", + "ped_date_start": "2025-01-02", + "ped_date_end": "2025-01-02", + "ped_period_special_day_id": 1, + "ped_year": 2025 + } + ] +} From 1146db743c3ad715594a1c6a313f6bf8b3b6fb0e Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Mon, 15 May 2023 16:58:28 +0200 Subject: [PATCH 4/9] Add explaining comments --- library/src/calculate_price.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/src/calculate_price.cpp b/library/src/calculate_price.cpp index 69730ca..a2fdb15 100644 --- a/library/src/calculate_price.cpp +++ b/library/src/calculate_price.cpp @@ -192,8 +192,8 @@ CalcState CALCULATE_LIBRARY_API compute_price_for_parking_ticket( QString cs = start_parking_time.toString(Qt::ISODate); double cost = calculator.GetCostFromDuration( tariff, PaymentOption::Option1, - cs.toLocal8Bit().constData(), - duration, false, true); + cs.toLocal8Bit().constData(), // starting time + duration, false, true); // duration, minutes, netto double minCost = tariff->PaymentOption.find(PaymentOption::Option1)->second.pop_min_price; if (cost < minCost) { calcState.setDesc(QString("minCost=%1, cost=%2").arg(minCost, cost)); From b8753cc2ed8f174fde41b8142ab30aa4f8178657 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Mon, 15 May 2023 17:06:57 +0200 Subject: [PATCH 5/9] Update tariff config for test --- tariffs/tariff01.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tariffs/tariff01.json b/tariffs/tariff01.json index 6ef9e9e..1fb348d 100644 --- a/tariffs/tariff01.json +++ b/tariffs/tariff01.json @@ -35,8 +35,8 @@ "pop_day_night_end_time": "00:00:00", "pop_price_night": 0, "pop_min_time": 15, - "pop_max_time": 240, - "pop_min_price": 55, + "pop_max_time": 10000, + "pop_min_price": 0, "pop_carry_over": 1 } ], @@ -44,7 +44,7 @@ { "pra_payment_option_id": 17, "pra_payment_unit_id": 3, - "pra_price": 220 + "pra_price": 150 } ], "Duration": [ From 73f5eca6568084043c576a388f86abc88f25c6a8 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Mon, 15 May 2023 17:23:10 +0200 Subject: [PATCH 6/9] Tariff config: add day ticket --- tariffs/tariff01.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tariffs/tariff01.json b/tariffs/tariff01.json index 1fb348d..d708b2b 100644 --- a/tariffs/tariff01.json +++ b/tariffs/tariff01.json @@ -37,7 +37,8 @@ "pop_min_time": 15, "pop_max_time": 10000, "pop_min_price": 0, - "pop_carry_over": 1 + "pop_carry_over": 1, + "pop_daily_card_price": 900 } ], "PaymentRate": [ From 3097819c0182fc861a051537a4467b1b1085a7f0 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Tue, 16 May 2023 11:07:21 +0200 Subject: [PATCH 7/9] Update interface for 'compute_duration_for_daily_ticket() --- library/include/mobilisis/calculate_price.h | 4 +-- library/src/calculate_price.cpp | 29 ++++++++++++++++++--- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/library/include/mobilisis/calculate_price.h b/library/include/mobilisis/calculate_price.h index fabd009..0c6a733 100644 --- a/library/include/mobilisis/calculate_price.h +++ b/library/include/mobilisis/calculate_price.h @@ -135,8 +135,8 @@ CalcState CALCULATE_LIBRARY_API compute_duration_for_parking_ticket( CalcState CALCULATE_LIBRARY_API compute_duration_for_daily_ticket( parking_tariff_t *tariff, - QString const &start_parking_time, - uint8_t paymentMethod); + QDateTime const &start_parking_time, + QDateTime &ticketEndTime); //#ifdef __cplusplus //} // extern "C" //#endif diff --git a/library/src/calculate_price.cpp b/library/src/calculate_price.cpp index 5945b9f..42a75cb 100644 --- a/library/src/calculate_price.cpp +++ b/library/src/calculate_price.cpp @@ -249,7 +249,8 @@ CalcState CALCULATE_LIBRARY_API compute_duration_for_parking_ticket( parking_tariff_t *tariff, QDateTime const &start_parking_time, double price, - QDateTime &ticketEndTime) { + QDateTime &ticketEndTime) +{ CalcState calcState; if (start_parking_time.isValid()) { QString cs = start_parking_time.toString(Qt::ISODate); @@ -275,11 +276,31 @@ CalcState CALCULATE_LIBRARY_API compute_duration_for_parking_ticket( return calcState.set(CalcState::State::SUCCESS); } -CalcState CALCULATE_LIBRARY_API compute_duration_for_daily_ticket(parking_tariff_t *tariff, QString const &start_parking_time,uint8_t paymentMethod) +CalcState CALCULATE_LIBRARY_API compute_duration_for_daily_ticket(parking_tariff_t *tariff, QDateTime const &start_parking_time, QDateTime &ticketEndTime) { CalcState calcState; - QString result = calculator.GetDailyTicketDuration(tariff, start_parking_time, PaymentOption::Option1,false); - qDebug() << "DailyTicket() => " + result; + if (start_parking_time.isValid()) { + QString cs = start_parking_time.toString(Qt::ISODate); + + QString endTime = calculator.GetDailyTicketDuration(tariff, + cs.toLocal8Bit().constData(), + PaymentOption::Option1, + false); // carry over + ticketEndTime = QDateTime::fromString(endTime,Qt::ISODate); + + // DEBUG + qCritical() << "compute_duration_for_daily_ticket(): "; + qCritical() << " endTime: " << endTime; + qCritical() << " ticketEndTime: " << ticketEndTime; + + if (!ticketEndTime.isValid()) { + calcState.setDesc(QString("ticketEndTime=%1").arg(endTime)); + return calcState.set(CalcState::State::WRONG_ISO_TIME_FORMAT); + } + + } else { + return calcState.set(CalcState::State::INVALID_START_DATE); + } return calcState.set(CalcState::State::SUCCESS); } From 88a0b6ebe2f704d04c2cb3ca245dd62ce025e342 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Tue, 16 May 2023 11:10:49 +0200 Subject: [PATCH 8/9] Make main.c compile again --- main/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/main.cpp b/main/main.cpp index c2fd3da..2bc05e9 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -31,6 +31,7 @@ extern "C" char* strptime(const char* s, #include #include #include "calculator_functions.h" +#include int main() { @@ -87,7 +88,7 @@ int main() { } // Daily ticket - compute_duration_for_daily_ticket(tariff,start.toString(Qt::ISODate),3); + //compute_duration_for_daily_ticket(tariff,start.toString(Qt::ISODate),3); //Configuration* cfg, QString start_datetime, uint8_t payment_option, bool carry_over // // tests From eef94a3fb31e9e0561aa6fe4dcdef0bb1cf26aee Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Tue, 16 May 2023 15:31:53 +0200 Subject: [PATCH 9/9] Change interface: use QDateTime - use QDateTime instead of char*-string - GetCostFromDuration: add end_datetime as a return value --- library/include/mobilisis/calculate_price.h | 11 +++--- .../include/mobilisis/calculator_functions.h | 3 +- library/src/calculate_price.cpp | 39 ++++++++++--------- library/src/calculator_functions.cpp | 19 +++++---- 4 files changed, 40 insertions(+), 32 deletions(-) diff --git a/library/include/mobilisis/calculate_price.h b/library/include/mobilisis/calculate_price.h index 0c6a733..66638f5 100644 --- a/library/include/mobilisis/calculate_price.h +++ b/library/include/mobilisis/calculate_price.h @@ -109,7 +109,7 @@ CalcState CALCULATE_LIBRARY_API init_tariff(parking_tariff_t **tariff, void CALCULATE_LIBRARY_API free_tariff(parking_tariff_t *tariff); int CALCULATE_LIBRARY_API get_zone_nr(int zone = -1); -CalcState CALCULATE_LIBRARY_API compute_price_for_parking_ticket( +CalcState CALCULATE_LIBRARY_API compute_price_for_parking_ticket( // deprecated parking_tariff_t *tariff, time_t start_parking_time, time_t end_parking_time, @@ -118,10 +118,11 @@ CalcState CALCULATE_LIBRARY_API compute_price_for_parking_ticket( CalcState CALCULATE_LIBRARY_API compute_price_for_parking_ticket( parking_tariff_t *tariff, QDateTime const &start_parking_time, - QDateTime const &end_parking_time, - struct price_t *price); + int netto_parking_time, + QDateTime &end_parking_time, // return value + struct price_t *price); // return value -CalcState CALCULATE_LIBRARY_API compute_duration_for_parking_ticket( +CalcState CALCULATE_LIBRARY_API compute_duration_for_parking_ticket( // deprecated parking_tariff_t *tariff, time_t start_parking_time, double cost, @@ -131,7 +132,7 @@ CalcState CALCULATE_LIBRARY_API compute_duration_for_parking_ticket( parking_tariff_t *tariff, QDateTime const &start_parking_time, double cost, - QDateTime &ticketEndTime); + QDateTime &ticketEndTime); // return value CalcState CALCULATE_LIBRARY_API compute_duration_for_daily_ticket( parking_tariff_t *tariff, diff --git a/library/include/mobilisis/calculator_functions.h b/library/include/mobilisis/calculator_functions.h index 33c0514..1fc9743 100644 --- a/library/include/mobilisis/calculator_functions.h +++ b/library/include/mobilisis/calculator_functions.h @@ -23,9 +23,10 @@ public: /// Pointer to configuration /// Type of vehicle /// Date/time of payment to be conducted in ISO8601 format (e.g. 2022-12-25T08:00:00Z) + /// Date/time of park end to be conducted in ISO8601 format (e.g. 2022-12-25T08:00:00Z) /// Duration of parking in minutes /// Returns cost (data type: double) - double GetCostFromDuration(Configuration* cfg, uint8_t vehicle_type, char const* start_datetime, double durationMin, bool nextDay = false, bool prepaid = false); + double GetCostFromDuration(Configuration* cfg, uint8_t vehicle_type, const QDateTime start_datetime, QDateTime & end_datetime, double durationMin, bool nextDay = false, bool prepaid = false); // Daily ticket QString GetDailyTicketDuration(Configuration* cfg, QString start_datetime, uint8_t payment_option, bool carry_over); diff --git a/library/src/calculate_price.cpp b/library/src/calculate_price.cpp index 42a75cb..caed186 100644 --- a/library/src/calculate_price.cpp +++ b/library/src/calculate_price.cpp @@ -92,10 +92,12 @@ void CALCULATE_LIBRARY_API free_tariff(parking_tariff_t *tariff) { } } + +// this is currently not used CalcState CALCULATE_LIBRARY_API compute_price_for_parking_ticket( parking_tariff_t *tariff, time_t start_parking_time, // in minutes - time_t end_parking_time, // in minutes + time_t end_parking_time, // netto time in minutes struct price_t *price) { CalcState calcState; double minMin = tariff->PaymentOption.find(PaymentOption::Option1)->second.pop_min_time; @@ -129,11 +131,12 @@ CalcState CALCULATE_LIBRARY_API compute_price_for_parking_ticket( QTime const t(0, 0, 0); QDateTime start(d, t, Qt::UTC); start = start.toLocalTime().addSecs(start_parking_time * 60); + QDateTime end(start); if (start.isValid()) { - QString cs = start.toString(Qt::ISODate); double cost = calculator.GetCostFromDuration( tariff, PaymentOption::Option1, - cs.toLocal8Bit().constData(), + start, + end, duration, false, true); double minCost = tariff->PaymentOption.find(PaymentOption::Option1)->second.pop_min_price; if (cost < minCost) { @@ -152,8 +155,10 @@ CalcState CALCULATE_LIBRARY_API compute_price_for_parking_ticket( CalcState CALCULATE_LIBRARY_API compute_price_for_parking_ticket( parking_tariff_t *tariff, QDateTime const &start_parking_time, - QDateTime const &end_parking_time, - struct price_t *price) { + int netto_parking_time, + QDateTime &end_parking_time, + struct price_t *price) +{ CalcState calcState; double minMin = tariff->PaymentOption.find(PaymentOption::Option1)->second.pop_min_time; double maxMin = tariff->PaymentOption.find(PaymentOption::Option1)->second.pop_max_time; @@ -161,39 +166,37 @@ CalcState CALCULATE_LIBRARY_API compute_price_for_parking_ticket( // DEBUG qCritical() << "compute_price_for_parking_ticket() " << endl << " start_parking_time: " << start_parking_time << endl - << " end_parking_time: " << end_parking_time << endl + << " netto_parking_time: " << netto_parking_time << endl << " minMin: " << minMin << endl << " maxMin: " << maxMin; - int const duration = (end_parking_time.toSecsSinceEpoch() - - start_parking_time.toSecsSinceEpoch()) / 60; - - if (duration < 0) { + if (netto_parking_time < 0) { calcState.setDesc(QString("end=%1, start=%2") .arg(end_parking_time.toString(Qt::ISODate), start_parking_time.toString(Qt::ISODate))); return calcState.set(CalcState::State::NEGATIVE_PARING_TIME); } - if (duration > maxMin) { - calcState.setDesc(QString("duration=%1, maxMin=%2").arg(duration, maxMin)); + if (netto_parking_time > maxMin) { + calcState.setDesc(QString("duration=%1, maxMin=%2").arg(netto_parking_time).arg(maxMin)); return calcState.set(CalcState::State::ABOVE_MAX_PARKING_TIME); } - if (duration < minMin) { - calcState.setDesc(QString("duration=%1, minMin=%2").arg(duration, minMin)); + if (netto_parking_time < minMin) { + calcState.setDesc(QString("duration=%1, minMin=%2").arg(netto_parking_time).arg(minMin)); return calcState.set(CalcState::State::BELOW_MIN_PARKING_TIME); } - if (duration == 0) { + if (netto_parking_time == 0) { memset(price, 0x00, sizeof(*price)); return calcState.set(CalcState::State::SUCCESS); } if (start_parking_time.isValid()) { - QString cs = start_parking_time.toString(Qt::ISODate); double cost = calculator.GetCostFromDuration( tariff, PaymentOption::Option1, - cs.toLocal8Bit().constData(), // starting time - duration, false, true); // duration, minutes, netto + start_parking_time, // starting time + end_parking_time, // return value: end time + netto_parking_time, // minutes, netto + false, true); double minCost = tariff->PaymentOption.find(PaymentOption::Option1)->second.pop_min_price; if (cost < minCost) { calcState.setDesc(QString("minCost=%1, cost=%2").arg(minCost, cost)); diff --git a/library/src/calculator_functions.cpp b/library/src/calculator_functions.cpp index a6c03fe..2ffceaa 100644 --- a/library/src/calculator_functions.cpp +++ b/library/src/calculator_functions.cpp @@ -318,7 +318,7 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg, } if(price >= min_price && total_duration_min >= minMin) - qDebug() << "Valid until: " << inputDate.toString(Qt::ISODate); + qDebug() << "GetDurationFromCost(): Valid until: " << inputDate.toString(Qt::ISODate); else { qDebug() << "Parking not allowed"; @@ -337,10 +337,10 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg, /////////////////////////////////////// /// -double Calculator::GetCostFromDuration(Configuration* cfg, uint8_t payment_option, const char* start_datetime, double durationMin, bool nextDay, bool prepaid) +double Calculator::GetCostFromDuration(Configuration* cfg, uint8_t payment_option, const QDateTime start_datetime, QDateTime & end_datetime, double durationMin, bool nextDay, bool prepaid) { // Get input date - QDateTime inputDate = QDateTime::fromString(start_datetime,Qt::ISODate); + QDateTime inputDate = start_datetime; // Get day of week int weekdayId = 0; @@ -422,7 +422,7 @@ double Calculator::GetCostFromDuration(Configuration* cfg, uint8_t payment_optio { LOG_DEBUG("- No workday found, trying to find next available day"); inputDate = inputDate.addDays(1); - return floor(GetCostFromDuration(cfg, payment_option, inputDate.toString(Qt::ISODate).toStdString().c_str(), durationMin, true, prepaid)); + return floor(GetCostFromDuration(cfg, payment_option, inputDate, end_datetime, durationMin, true, prepaid)); } worktime_from = QTime::fromString(cfg->WeekDaysWorktime.find(weekdayId)->second.pwd_time_from.c_str()); worktime_to = QTime::fromString(cfg->WeekDaysWorktime.find(weekdayId)->second.pwd_time_to.c_str()); @@ -435,7 +435,7 @@ double Calculator::GetCostFromDuration(Configuration* cfg, uint8_t payment_optio { inputDate = inputDate.addDays(1); inputDate.setTime(worktime_from); - return GetCostFromDuration(cfg, payment_option, inputDate.toString(Qt::ISODate).toStdString().c_str(), durationMin, true, prepaid); + return GetCostFromDuration(cfg, payment_option, inputDate, end_datetime, durationMin, true, prepaid); } // If overtime flag is set @@ -465,7 +465,7 @@ double Calculator::GetCostFromDuration(Configuration* cfg, uint8_t payment_optio { LOG_DEBUG(" *** PREPAID *** Current time is past the time range end, searching for next available day"); inputDate = inputDate.addDays(1); - return GetCostFromDuration(cfg, payment_option, inputDate.toString(Qt::ISODate).toStdString().c_str(), durationMin, true, prepaid); + return GetCostFromDuration(cfg, payment_option, inputDate, end_datetime, durationMin, true, prepaid); } } @@ -516,7 +516,7 @@ double Calculator::GetCostFromDuration(Configuration* cfg, uint8_t payment_optio LOG_DEBUG("Reached end of worktime, searching for the next working day"); inputDate = inputDate.addDays(1); overtime = true; - return GetCostFromDuration(cfg, payment_option, inputDate.toString(Qt::ISODate).toStdString().c_str(), total_duration_min); + return GetCostFromDuration(cfg, payment_option, inputDate, end_datetime, total_duration_min); } // Increment input date minutes for each monetary unit @@ -525,7 +525,10 @@ double Calculator::GetCostFromDuration(Configuration* cfg, uint8_t payment_optio total_cost += price_per_unit; } - qDebug() << "Valid until:" << inputDate.toString(Qt::ISODate).toStdString().c_str(); + qDebug() << "GetCostFromDuration(): Valid until:" << inputDate.toString(Qt::ISODate).toStdString().c_str(); + + end_datetime = inputDate; + double ret_val = total_cost; total_cost = 0.0f; return ceil(ret_val);