summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-10-04 21:38:50 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-10-04 21:38:50 +0200
commit5d9997c05dfe492c30eb159c2e27d9a50f109492 (patch)
treeab4f4a7c579474803125dacdbbf12ae42cb547de
parente9d64452bd321c084132a214511009b4a77fc9f1 (diff)
downloaddocs-5d9997c05dfe492c30eb159c2e27d9a50f109492.tar.gz
docs-5d9997c05dfe492c30eb159c2e27d9a50f109492.tar.bz2
docs-5d9997c05dfe492c30eb159c2e27d9a50f109492.zip
TransactionHistory
-rw-r--r--api-common.rst5
-rw-r--r--api-merchant.rst14
2 files changed, 15 insertions, 4 deletions
diff --git a/api-common.rst b/api-common.rst
index 9c1faebb..f4197f19 100644
--- a/api-common.rst
+++ b/api-common.rst
@@ -122,7 +122,12 @@ but also decodes to "V" to make OCR easy. We will still simply use the JSON
type "base32" and the term "Crockford Base32" in the text to refer to the
resulting encoding.
+.. _tsref-type-HashCode:
+Hash codes
+^^^^^^^^^^
+Hashcodes are strings representing base32 encoding of the respective hashed
+data. See `base32`_.
Large numbers
^^^^^^^^^^^^^
diff --git a/api-merchant.rst b/api-merchant.rst
index 02d7b13c..b0e6c243 100644
--- a/api-merchant.rst
+++ b/api-merchant.rst
@@ -295,8 +295,7 @@ The following API are made available by the merchant's `backend` to the merchant
:query date: only transactions *jounger* than this parameter will be returned. It's a timestamp, given in seconds.
**Response**
- :status 200 OK:
- The response is a JSON `array` of `TransactionHistory`_
+ :status 200 OK: The response is a JSON `array` of `TransactionHistory`_.
.. _tsref-type-TransactionHistory:
.. _TransactionHistory:
@@ -307,9 +306,16 @@ The following API are made available by the merchant's `backend` to the merchant
transaction_id: number;
// Hashcode of the relevant contract
- TBD FIXME
-
+ h_contract: HashCode;
+ // Exchange's base URL
+ exchange: string;
+
+ // Transaction's timestamp
+ timestamp: Timestamp;
+
+ // Price payed for this transaction
+ total_amount: Amount;
}
---------