diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-05-06 21:41:59 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-05-06 21:41:59 +0200 |
commit | 02faacad3cd56e3266be625980920e420f61250f (patch) | |
tree | 87cdea74319d0fe822e0cabe481114409973791a /src/include | |
parent | c84339de2d37076cfd114ae1a097cf084d36b7a0 (diff) | |
download | merchant-02faacad3cd56e3266be625980920e420f61250f.tar.gz merchant-02faacad3cd56e3266be625980920e420f61250f.tar.bz2 merchant-02faacad3cd56e3266be625980920e420f61250f.zip |
db work for POST /transfers
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_merchantdb_plugin.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/include/taler_merchantdb_plugin.h b/src/include/taler_merchantdb_plugin.h index e0f76999..94fe6188 100644 --- a/src/include/taler_merchantdb_plugin.h +++ b/src/include/taler_merchantdb_plugin.h @@ -1199,6 +1199,7 @@ struct TALER_MERCHANTDB_Plugin * Insert information about a wire transfer the merchant has received. * * @param cls closure + * @param instance_id instance to lookup the order from * @param exchange_url which exchange made the transfer * @param wtid identifier of the wire transfer * @param credit_amount how much did we receive @@ -1210,6 +1211,7 @@ struct TALER_MERCHANTDB_Plugin enum GNUNET_DB_QueryStatus (*insert_transfer)( void *cls, + const char *instance_id, const char *exchange_url, const struct TALER_WireTransferIdentifierRawP *wtid, const struct TALER_Amount *credit_amount, @@ -1218,9 +1220,26 @@ struct TALER_MERCHANTDB_Plugin /** + * Lookup account serial by payto URI. + * + * @param cls closure + * @param instance_id instance to lookup the account from + * @param payto_uri what is the merchant's bank account to lookup + * @param[out] account_serial serial number of the account + * @return transaction status + */ + enum GNUNET_DB_QueryStatus + (*lookup_account)(void *cls, + const char *instance_id, + const char *payto_uri, + uint64_t *account_serial); + + + /** * Insert information about a wire transfer the merchant has received. * * @param cls closure + * @param instance_id instance to provide transfer details for * @param exchange_url which exchange made the transfer * @param payto_uri what is the merchant's bank account that received the transfer * @param wtid identifier of the wire transfer @@ -1230,7 +1249,8 @@ struct TALER_MERCHANTDB_Plugin enum GNUNET_DB_QueryStatus (*insert_transfer_details)( void *cls, - const char *exchange_url, // FIXME: do we need the URL? We have exchange_pub! + const char *instance_id, + const char *exchange_url, const char *payto_uri, const struct TALER_WireTransferIdentifierRawP *wtid, const struct TALER_EXCHANGE_TransferData *td); |