getPaymentOptions(): added default-parameter 'paymentOptionsIndex'

Added getCurrentPaymentOptionIndex() and isHoliday().
This commit is contained in:
Gerhard Hoffmann 2024-04-12 14:22:20 +02:00
parent afa62183fd
commit e210224340

View File

@ -63,10 +63,12 @@ public:
/// <returns>Returns operation status bool (OK | FAIL) </returns>
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<ATBPaymentOption> &getAllPaymentOptions();
QVector<ATBPaymentOption> const &getAllPaymentOptions() const;
int getCurrentPaymentOptionIndex(QDateTime const &dt) const;
bool isHoliday(QDateTime const &dt) const;
std::optional<QVector<ATBPaymentRate>> getPaymentRateForAllKeys() const;
std::optional<QVector<ATBPaymentRate>> getPaymentRateForKey(int key) const;
std::optional<QVector<ATBDailyTicket>> getDailyTicketsForAllKeys() const;