merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit a7c9f6d41af7df37554e3340d673fa3648ccbed5
parent 8b66d457f8404f4ddfcd0be00102f2792e02d1ff
Author: Christian Blättler <blatc2@bfh.ch>
Date:   Wed, 20 Dec 2023 18:53:03 +0100

remove init lines

Diffstat:
Msrc/backend/taler-merchant-httpd_private-post-orders.c | 19++-----------------
1 file changed, 2 insertions(+), 17 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c @@ -1397,22 +1397,8 @@ parse_order (struct OrderContext *oc) const struct TALER_MERCHANTDB_InstanceSettings *settings = &oc->hc->instance->settings; - oc->parse_order.order_id = NULL; - oc->parse_order.summary_i18n = NULL; - oc->parse_order.public_reorder_url = NULL; - oc->parse_order.fulfillment_message = NULL; - oc->parse_order.fulfillment_message_i18n = NULL; - oc->parse_order.fulfillment_url = NULL; - oc->parse_order.merchant_base_url = NULL; - oc->parse_order.timestamp = GNUNET_TIME_UNIT_ZERO_TS; oc->parse_order.refund_deadline = GNUNET_TIME_UNIT_FOREVER_TS; - oc->parse_order.pay_deadline = GNUNET_TIME_UNIT_ZERO_TS; oc->parse_order.wire_deadline = GNUNET_TIME_UNIT_FOREVER_TS; - oc->parse_order.delivery_location = NULL; - oc->parse_order.delivery_date = GNUNET_TIME_UNIT_ZERO_TS; - oc->parse_order.products = NULL; - oc->parse_order.auto_refund = GNUNET_TIME_UNIT_ZERO; - oc->parse_order.extra = NULL; const json_t *jmerchant = NULL; /* auto_refund only needs to be type-checked, @@ -1424,8 +1410,8 @@ parse_order (struct OrderContext *oc) &oc->parse_order.brutto), GNUNET_JSON_spec_string("summary", &oc->parse_order.summary), - GNUNET_JSON_spec_array_const ("products", - &oc->parse_order.products), + GNUNET_JSON_spec_array_const ("products", + &oc->parse_order.products), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_json ("summary_i18n", &oc->parse_order.summary_i18n), @@ -1989,7 +1975,6 @@ merge_inventory (struct OrderContext *oc) static void parse_request (struct OrderContext *oc) { - // TODO: Set default values for optional fields in oc->parse_request const json_t *ip = NULL; const json_t *uuid = NULL; const char *otp_id = NULL;