commit 8ef723b60e62c978916c6c46005bee38861d2911
parent e9ffab25a0d659f11798331bcda2008b55659654
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Tue, 4 Jul 2017 15:12:24 +0200
First steps of #5087.
Diffstat:
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/src/lib/test_merchant_api.c b/src/lib/test_merchant_api.c
@@ -654,6 +654,23 @@ struct Command
*/
struct TALER_MERCHANT_RefundLookupOperation *rlo;
+ /**
+ * Used to retrieve the asked refund amount.
+ * This information helps the callback to mock a GET /refund
+ * response and match it against what the backend actually
+ * responded.
+ */
+ char *increase_ref;
+
+ /**
+ * Used to retrieve the number and denomination of coins
+ * used to pay for the related contract.
+ * This information helps the callback to mock a GET /refund
+ * response and match it against what the backend actually
+ * responded.
+ */
+ char *pay_ref;
+
} refund_lookup;
} details;
@@ -2569,7 +2586,9 @@ run (void *cls)
},
{ .oc = OC_REFUND_LOOKUP,
.label = "refund-lookup-1",
- .details.refund_lookup.order_id = "1"
+ .details.refund_lookup.order_id = "1",
+ .details.refund_lookup.increase_ref = "refund-increase-1",
+ .details.refund_lookup.pay_ref = "deposit-simple-1"
},
/* end of testcase */
{ .oc = OC_END }