Re-implement accessors for payment-option(s).
This commit is contained in:
parent
17968082f1
commit
3a6a47725f
@ -452,12 +452,18 @@ bool Configuration::ParseJson(Configuration* cfg, const char* json)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ATBPaymentOption const &Configuration::getPaymentOptions() const {
|
ATBPaymentOption const &Configuration::getPaymentOptions() const {
|
||||||
return this->currentPaymentOptions;
|
return this->currentPaymentOptions.at(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
ATBPaymentOption &Configuration::getPaymentOptions() {
|
ATBPaymentOption &Configuration::getPaymentOptions() {
|
||||||
|
return this->currentPaymentOptions[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
QVector<ATBPaymentOption> const &Configuration::getAllPaymentOptions() const {
|
||||||
|
return this->currentPaymentOptions;
|
||||||
|
}
|
||||||
|
|
||||||
|
QVector<ATBPaymentOption> &Configuration::getAllPaymentOptions() {
|
||||||
return this->currentPaymentOptions;
|
return this->currentPaymentOptions;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user