summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-06-22 03:20:54 -0400
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-06-22 03:20:54 -0400
commitda6a10eed07b409718eaf069d0d413a4aac82c0a (patch)
tree297cf795ad364baa7f5d200929a2c7cab18fe23e /src/include
parentd4f400ec85410671cf0890d0f7388d9c91a4e414 (diff)
downloadmerchant-da6a10eed07b409718eaf069d0d413a4aac82c0a.tar.gz
merchant-da6a10eed07b409718eaf069d0d413a4aac82c0a.tar.bz2
merchant-da6a10eed07b409718eaf069d0d413a4aac82c0a.zip
deeper checks for GET /private/instances/
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_merchant_testing_lib.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/include/taler_merchant_testing_lib.h b/src/include/taler_merchant_testing_lib.h
index e2cec7be..ff9f785d 100644
--- a/src/include/taler_merchant_testing_lib.h
+++ b/src/include/taler_merchant_testing_lib.h
@@ -1258,6 +1258,63 @@ TALER_TESTING_get_trait_merchant_sig (
unsigned int index,
struct TALER_MerchantSignatureP **merchant_sig);
+
+/**
+ * Obtain merchant address from @a cmd.
+ *
+ * @param cmd command to extract the address from.
+ * @param index index number associate with the address on offer.
+ * @param[out] address where to write the address.
+ * @return #GNUNET_OK on success.
+ */
+int
+TALER_TESTING_get_trait_merchant_address (const struct
+ TALER_TESTING_Command *cmd,
+ unsigned int index,
+ const json_t **address);
+
+
+/**
+ * Offer merchant address in a trait.
+ *
+ * @param index index number associate with the address
+ * on offer.
+ * @param address address to offer.
+ * @return the trait.
+ */
+struct TALER_TESTING_Trait
+TALER_TESTING_make_trait_merchant_address (unsigned int index,
+ const json_t *address);
+
+
+/**
+ * Obtain merchant jurisdiction from @a cmd.
+ *
+ * @param cmd command to extract the jurisdiction from.
+ * @param index index number associate with the jurisdiction on offer.
+ * @param[out] jurisdiction where to write the jurisdiction.
+ * @return #GNUNET_OK on success.
+ */
+int
+TALER_TESTING_get_trait_merchant_jurisdiction (const struct
+ TALER_TESTING_Command *cmd,
+ unsigned int index,
+ const json_t **jurisdiction);
+
+
+/**
+ * Offer merchant jurisdiction in a trait.
+ *
+ * @param index index number associate with the jurisdiction
+ * on offer.
+ * @param jurisdiction jurisdiction to offer.
+ * @return the trait.
+ */
+struct TALER_TESTING_Trait
+TALER_TESTING_make_trait_merchant_jurisdiction (unsigned int index,
+ const json_t *jurisdiction);
+
+
/**
* Obtain a reference to a proposal command. Any command that
* works with proposals, might need to offer their reference to