summaryrefslogtreecommitdiff
path: root/src/include/taler_merchant_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-04-23 22:57:55 +0200
committerChristian Grothoff <christian@grothoff.org>2023-04-23 22:57:55 +0200
commit154f964aab5df00cbadaa015474c2b323161aa96 (patch)
tree084f300e664fb96d0693baf73434ed245ef56641 /src/include/taler_merchant_service.h
parent889595f986d922ffbcdcd746fdfad7f1a0e53595 (diff)
downloadmerchant-154f964aab5df00cbadaa015474c2b323161aa96.tar.gz
merchant-154f964aab5df00cbadaa015474c2b323161aa96.tar.bz2
merchant-154f964aab5df00cbadaa015474c2b323161aa96.zip
API change for #6363
Diffstat (limited to 'src/include/taler_merchant_service.h')
-rw-r--r--src/include/taler_merchant_service.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/include/taler_merchant_service.h b/src/include/taler_merchant_service.h
index 92e18335..723f1b07 100644
--- a/src/include/taler_merchant_service.h
+++ b/src/include/taler_merchant_service.h
@@ -492,6 +492,30 @@ typedef void
/**
+ * Information about an account of the merchant.
+ */
+struct TALER_MERCHANT_AccountConfig
+{
+ /**
+ * Payto URI of the account.
+ */
+ const char *payto_uri;
+
+ /**
+ * Optional credit facade for the account.
+ * Can be NULL.
+ */
+ const char *credit_facade_url;
+
+ /**
+ * Credit facade credentials for the account.
+ * Can be NULL.
+ */
+ json_t *credit_facade_credentials;
+
+};
+
+/**
* Setup an new instance in the backend.
*
* @param ctx the context
@@ -520,7 +544,7 @@ TALER_MERCHANT_instances_post (
const char *backend_url,
const char *instance_id,
unsigned int accounts_length,
- const char *payto_uris[],
+ const struct TALER_MERCHANT_AccountConfig accounts[],
const char *name,
enum TALER_KYCLOGIC_KycUserType ut,
const json_t *address,
@@ -594,7 +618,7 @@ TALER_MERCHANT_instance_patch (
const char *backend_url,
const char *instance_id,
unsigned int accounts_length,
- const char *payto_uris[],
+ const struct TALER_MERCHANT_AccountConfig accounts[],
const char *name,
enum TALER_KYCLOGIC_KycUserType ut,
const json_t *address,