Added parsing of pop_product_id and pop_product_name.

This commit is contained in:
Gerhard Hoffmann 2024-07-24 17:34:28 +02:00
parent 7d452c82b7
commit 4d7e5263ee

View File

@ -582,6 +582,13 @@ bool Configuration::ParseJson(Configuration* cfg, const char* json)
this->currentPaymentOptions.last().pop_id = k->value.GetInt(); this->currentPaymentOptions.last().pop_id = k->value.GetInt();
} else if (strcmp(inner_obj_name, "pop_label") == 0) { } else if (strcmp(inner_obj_name, "pop_label") == 0) {
this->currentPaymentOptions.last().pop_label = k->value.GetString(); this->currentPaymentOptions.last().pop_label = k->value.GetString();
} else if (strcmp(inner_obj_name, "pop_product_id") == 0) {
this->currentPaymentOptions.last().pop_product_id = k->value.GetInt();
} else if (strcmp(inner_obj_name, "pop_product_name") == 0) {
if (k->value.IsString()) {
QString const &s = QString::fromStdString(k->value.GetString());
this->currentPaymentOptions.last().pop_product_name = s;
}
} 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) {