From 809df536584c2545fe7683f705383f7c26aab3c1 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 30 Jan 2024 10:16:16 +0100 Subject: [PATCH] Add reset() --- library/include/mobilisis/payment_opt.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/library/include/mobilisis/payment_opt.h b/library/include/mobilisis/payment_opt.h index cd16ff1..c3976ba 100644 --- a/library/include/mobilisis/payment_opt.h +++ b/library/include/mobilisis/payment_opt.h @@ -6,6 +6,23 @@ class ATBPaymentOption public: ATBPaymentOption() = default; + void reset() { + pop_id = 0; + pop_label = ""; + pop_payment_method_id = 0; + pop_day_end_time = ""; + pop_day_night_end_time = ""; + pop_price_night = 0; + pop_min_time = 0; + pop_max_time = 0; + pop_min_price = 0; + pop_carry_over = -1; + pop_carry_over_time_range_id = -1; + pop_daily_card_price = -1; + pop_business_hours = -1; + pop_time_step_config = -1; + } + int pop_id; std::string pop_label; int pop_payment_method_id;