diff options
Diffstat (limited to 'src/lib/merchant_api_post_orders.c')
-rw-r--r-- | src/lib/merchant_api_post_orders.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/lib/merchant_api_post_orders.c b/src/lib/merchant_api_post_orders.c index 9c45ad2c..56de86d1 100644 --- a/src/lib/merchant_api_post_orders.c +++ b/src/lib/merchant_api_post_orders.c @@ -92,12 +92,12 @@ handle_post_order_finished (void *cls, .hr.reply = json }; struct TALER_ClaimTokenP token = {0}; - + po->job = NULL; switch (response_code) { case 0: - por.hr.ec = TALER_EC_INVALID_RESPONSE; + por.hr.ec = TALER_EC_GENERIC_INVALID_RESPONSE; break; case MHD_HTTP_OK: { @@ -109,7 +109,7 @@ handle_post_order_finished (void *cls, &token)), GNUNET_JSON_spec_end () }; - + if (GNUNET_OK != GNUNET_JSON_parse (json, spec, @@ -117,7 +117,7 @@ handle_post_order_finished (void *cls, { GNUNET_break_op (0); por.hr.http_status = 0; - por.hr.ec = TALER_EC_PROPOSAL_REPLY_MALFORMED; + por.hr.ec = TALER_EC_GENERIC_REPLY_MALFORMED; } else { @@ -157,21 +157,21 @@ handle_post_order_finished (void *cls, struct GNUNET_JSON_Specification spec[] = { GNUNET_JSON_spec_string ( - "product_id", - &por.details.gone.product_id), + "product_id", + &por.details.gone.product_id), GNUNET_JSON_spec_uint64 ( - "requested_quantity", - &por.details.gone.requested_quantity), + "requested_quantity", + &por.details.gone.requested_quantity), GNUNET_JSON_spec_uint64 ( - "available_quantity", - &por.details.gone.available_quantity), + "available_quantity", + &por.details.gone.available_quantity), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_absolute_time ( - "restock_expected", - &por.details.gone.restock_expected)), + "restock_expected", + &por.details.gone.restock_expected)), GNUNET_JSON_spec_end () }; - + if (GNUNET_OK != GNUNET_JSON_parse (json, spec, @@ -179,7 +179,7 @@ handle_post_order_finished (void *cls, { GNUNET_break_op (0); por.hr.http_status = 0; - por.hr.ec = TALER_EC_PROPOSAL_REPLY_MALFORMED; + por.hr.ec = TALER_EC_GENERIC_REPLY_MALFORMED; } break; } |