From 66b71d98d38f5d55f9bc86535d65ad25437badf6 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 7 Mar 2017 17:59:17 +0100 Subject: we don't use 'offer' anymore --- api/api-merchant.rst | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'api') diff --git a/api/api-merchant.rst b/api/api-merchant.rst index a8a54b45..41f1c365 100644 --- a/api/api-merchant.rst +++ b/api/api-merchant.rst @@ -32,7 +32,7 @@ The Frontend HTTP API --------------------- Please refer to the `glossary `_ for terms - like `offer`, `proposal`, `contract`, and others. + like `order`, `proposal`, `contract`, and others. .. http:get:: proposal_url @@ -45,7 +45,7 @@ The Frontend HTTP API **Request:** :query nonce: Any string value. This value will be - included in the offer, so that when the wallet receives the proposal it can + included in the proposal, so that when the wallet receives the proposal it can easily check whether it was the genuine receiver of the proposal it got. This value is needed to avoid proposals' replications. @@ -155,6 +155,7 @@ The following API are made available by the merchant's `backend` to the merchant * `auditors` * `H_wire` * `merchant_pub` + * `timestamp` The following fields from :ref:`ProposalData`_ are optional and will be filled in by the backend if not present: @@ -439,14 +440,15 @@ The proposal ------------ The `proposal` is obtained by filling some missing information -in the `offer`, and then by signing it. See below. +in the `order`, and then by signing it. See below. .. _tsref-type-Proposal: .. code-block:: tsref interface Proposal { - // The offer - offer: Offer; + // The proposal data, effectively the frontend's order with some data filled in + // by the merchant backend. + data: ProposalData; // Contract's hash, provided as a convenience. All components that do // not fully trust the merchant must verify this field. @@ -466,12 +468,12 @@ in the `offer`, and then by signing it. See below. documentation `_. -The `offer` must have the following structure: +The `proposal data` must have the following structure: - .. _tsref-type-Offer: + .. _tsref-type-ProposalData: .. code-block:: tsref - interface Offer { + interface ProposalData { // Human-readable description of the whole purchase // NOTE: still not implemented summary: string; -- cgit v1.2.3