diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-31 18:06:57 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-31 18:06:57 +0200 |
commit | 45caef4717630cd4de4076ea47487a9ba8b12ca1 (patch) | |
tree | 31ec1a38939bb68c9acf1b85c8c297c91e1ecf0b /api-exchange.rst | |
parent | 8b207ec7f040bb5eafadb49ccd78d22aa575ccbf (diff) | |
parent | 272c03472a08ea30c788d3250a9df22ae33b09db (diff) | |
download | docs-45caef4717630cd4de4076ea47487a9ba8b12ca1.tar.gz docs-45caef4717630cd4de4076ea47487a9ba8b12ca1.tar.bz2 docs-45caef4717630cd4de4076ea47487a9ba8b12ca1.zip |
Merge branch 'master' of git+ssh://taler.net/var/git/api
Diffstat (limited to 'api-exchange.rst')
-rw-r--r-- | api-exchange.rst | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/api-exchange.rst b/api-exchange.rst index 07d681b0..86e33714 100644 --- a/api-exchange.rst +++ b/api-exchange.rst @@ -302,7 +302,7 @@ exchange. .. note:: The client currently does not have to demonstrate knowledge of the private key of the reserve to make this request, which makes the reserve's public - key privliged information known only to the client, their bank, and the + key privileged information known only to the client, their bank, and the exchange. In future, we might wish to revisit this decision to improve security, such as by having the client EdDSA-sign an ECDHE key to be used to derive a symmetric key to encrypt the response. This would be useful if @@ -343,8 +343,11 @@ exchange. // The amount that was withdrawn or deposited. amount: Amount; - // Wiring details, only present if type is "DEPOSIT". - wire?: any; + // Sender account details, only present if type is "DEPOSIT". + sender_account_details?: any; + + // Transfer details uniquely identifying the transfer, only present if type is "DEPOSIT". + transfer_details?: any; // binary encoding of the transaction data as a `TALER_WithdrawRequestPS` // struct described in :ref:`Signatures`, only present if the `type` was @@ -514,7 +517,7 @@ denomination. // indicative time by which the exchange undertakes to transfer the funds to // the merchant, in case of successful payment. - edate: Timestamp; + pay_deadline: Timestamp; // 64-bit transaction id for the transaction between merchant and customer transaction_id: number; @@ -1026,7 +1029,7 @@ typically also view the balance.) Provide the wire transfer identifier associated with an (existing) deposit operation. - **Request:** The request body most be a `WtidRequest`_ JSON object. + **Request:** The request body must be a `WtidRequest`_ JSON object. **Response:** @@ -1263,8 +1266,22 @@ Administrative API: Bank transactions // When was the transaction executed execution_date: Timestamp; - // Wire details - wire: any; + // Sender's wire account details, so that the exchange knows from whom the + // money comes from (and can possibly refund it). The details + // given here must be in a wire format supported by the exchange. + sender_account_details: any; + + // The wire details given here should include an unique identifier + // for each transaction. The exchange will check that the details + // given are unique, and if the wire details are identical to previous + // wire details will treat the request as a duplicate and not actually + // do any update. This is true even if the amount or execution date + // differs. + // + // Note that the exchange does not interpret these details in any + // way, other than for "being unique". They are stored for diagnostics + // and auditing. + transfer_details: any; } **Response:** |