diff --git a/library/include/mobilisis/configuration.h b/library/include/mobilisis/configuration.h index 6b1ccea..44de256 100644 --- a/library/include/mobilisis/configuration.h +++ b/library/include/mobilisis/configuration.h @@ -63,10 +63,12 @@ public: /// Returns operation status bool (OK | FAIL) bool ParseJson(Configuration* cfg, const char* json); - ATBPaymentOption &getPaymentOptions(); - ATBPaymentOption const &getPaymentOptions() const; + ATBPaymentOption &getPaymentOptions(int paymentOptionsIndex=0); + ATBPaymentOption const &getPaymentOptions(int paymentOptionsIndex=0) const; QVector &getAllPaymentOptions(); QVector const &getAllPaymentOptions() const; + int getCurrentPaymentOptionIndex(QDateTime const &dt) const; + bool isHoliday(QDateTime const &dt) const; std::optional> getPaymentRateForAllKeys() const; std::optional> getPaymentRateForKey(int key) const; std::optional> getDailyTicketsForAllKeys() const;