diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-22 22:09:10 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-22 22:09:10 +0200 |
commit | 92165381bb6fef4e97214e16686015292367b474 (patch) | |
tree | 363c8354e0e8ef03435024d87df4c140a02c6b79 /src/include | |
parent | 3469026f7abc9ff640d3b7b194e067695c01de69 (diff) |
add cmd for POST /instances
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_merchant_testing_lib.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/include/taler_merchant_testing_lib.h b/src/include/taler_merchant_testing_lib.h index 059aa24b..5f7f2dd3 100644 --- a/src/include/taler_merchant_testing_lib.h +++ b/src/include/taler_merchant_testing_lib.h @@ -97,6 +97,65 @@ TALER_TESTING_cmd_merchant_get_instances (const char *label, /** + * Define a "POST /instances" CMD, simple version + * + * @param label command label. + * @param merchant_url base URL of the merchant serving the + * POST /instances request. + * @param instance_id the ID of the instance to create + * @param payto_uri payment URI to use + * @param currency currency to use for default fees + * @param http_status expected HTTP response code. + * @return the command. + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_merchant_post_instances (const char *label, + const char *merchant_url, + const char *instance_id, + const char *payto_uri, + const char *currency, + unsigned int http_status); + + +/** + * Define a "POST /instances" CMD. Comprehensive version. + * + * @param label command label. + * @param merchant_url base URL of the merchant serving the + * POST /instances request. + * @param instance_id the ID of the instance to query + * @param payto_uris_length length of the @a accounts array + * @param payto_uris URIs of the bank accounts of the merchant instance + * @param name name of the merchant instance + * @param address physical address of the merchant instance + * @param jurisdiction jurisdiction of the merchant instance + * @param default_max_wire_fee default maximum wire fee merchant is willing to fully pay + * @param default_wire_fee_amortization default amortization factor for excess wire fees + * @param default_max_deposit_fee default maximum deposit fee merchant is willing to pay + * @param default_wire_transfer_delay default wire transfer delay merchant will ask for + * @param default_pay_delay default validity period for offers merchant makes + * @param http_status expected HTTP response code. + * @return the command. + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_merchant_post_instances2 ( + const char *label, + const char *merchant_url, + const char *instance_id, + unsigned int accounts_length, + const char *payto_uris[], + const char *name, + json_t *address, + json_t *jurisdiction, + const struct TALER_Amount *default_max_wire_fee, + uint32_t default_wire_fee_amortization, + const struct TALER_Amount *default_max_deposit_fee, + struct GNUNET_TIME_Relative default_wire_transfer_delay, + struct GNUNET_TIME_Relative default_pay_delay, + unsigned int http_status); + + +/** * Define a "GET instance" CMD. * * @param label command label. |