[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-api] branch master updated: proposal format
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-api] branch master updated: proposal format |
Date: |
Wed, 08 Mar 2017 03:16:38 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository api.
The following commit(s) were added to refs/heads/master by this push:
new 1618db5 proposal format
1618db5 is described below
commit 1618db53416dcf0340e0bbde52f09464d6dcc925
Author: Florian Dold <address@hidden>
AuthorDate: Wed Mar 8 03:16:33 2017 +0100
proposal format
---
api/api-merchant.rst | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/api/api-merchant.rst b/api/api-merchant.rst
index f104268..470f306 100644
--- a/api/api-merchant.rst
+++ b/api/api-merchant.rst
@@ -148,7 +148,7 @@ The following API are made available by the merchant's
`backend` to the merchant
.. _proposal:
- The backend expects an `order` as input. The sketch is an
:ref:`ProposalData`_
+ The backend expects an `order` as input. The order is a :ref:`ProposalData`_
object **without** the fields:
* `exchanges`
@@ -161,6 +161,9 @@ The following API are made available by the merchant's
`backend` to the merchant
in by the backend if not present:
* `merchant.instance` (default instance will be used)
+ * `order_id` (random alphanumeric identifier will be used)
+ * `refund_deadline` (instance's default will be used)
+ * `pay_deadline` (instance's default will be used)
**Response**
@@ -517,9 +520,6 @@ The `proposal data` must have the following structure:
// invalid and also interpreted as 1.
wire_fee_amortization: Integer;
- // A free-form identifier for this transaction.
- transaction_id: string;
-
// List of products that are part of the purchase (see `below
<Product>`_)
products: Product[];
@@ -551,10 +551,14 @@ The `proposal data` must have the following structure:
// Map from labels to locations
locations: { [label: string]: [location: Location], ... };
+ // Nonce generated by the wallet and echoed by the merchant
+ // in this field when the proposal is generated.
+ nonce: string;
+
// Extra data that is only interpreted by the merchant frontend.
// Useful when the merchant needs to store extra information on a
// contract without storing it separately in their database.
- extra: any;
+ extra?: any;
}
The wallet must select a exchange that either the mechant accepts directly by
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-api] branch master updated: proposal format,
gnunet <=