diff options
Diffstat (limited to 'src/include/taler_merchant_service.h')
-rw-r--r-- | src/include/taler_merchant_service.h | 28 |
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, |