parse for pop_allow_overpay

This commit is contained in:
Gerhard Hoffmann 2024-08-21 15:38:06 +02:00
parent 80637260f3
commit 7c173ae292

View File

@ -606,6 +606,10 @@ bool Configuration::ParseJson(Configuration* cfg, const char* json)
if (k->value.IsInt()) { if (k->value.IsInt()) {
this->currentPaymentOptions.last().pop_minus_steps = k->value.GetInt(); this->currentPaymentOptions.last().pop_minus_steps = k->value.GetInt();
} }
} else if (strcmp(inner_obj_name, "pop_allow_overpay") == 0) {
if (k->value.IsBool()) {
this->currentPaymentOptions.last().pop_allow_overpay = k->value.GetBool();
}
} else if (strcmp(inner_obj_name, "pop_payment_method_id") == 0) { } else if (strcmp(inner_obj_name, "pop_payment_method_id") == 0) {
this->currentPaymentOptions.last().pop_payment_method_id = k->value.GetInt(); this->currentPaymentOptions.last().pop_payment_method_id = k->value.GetInt();
} else if (strcmp(inner_obj_name, "pop_day_end_time") == 0) { } else if (strcmp(inner_obj_name, "pop_day_end_time") == 0) {