summaryrefslogtreecommitdiff
path: root/core/api-merchant.rst
diff options
context:
space:
mode:
Diffstat (limited to 'core/api-merchant.rst')
-rw-r--r--core/api-merchant.rst19
1 files changed, 13 insertions, 6 deletions
diff --git a/core/api-merchant.rst b/core/api-merchant.rst
index f3801cbf..0b0e0b87 100644
--- a/core/api-merchant.rst
+++ b/core/api-merchant.rst
@@ -350,11 +350,6 @@ Making the payment
// The coins used to make the payment.
coins: CoinPaySig[];
- // Index of the selected choice within the ``choices`` array of
- // the contract terms.
- // @since protocol **vSUBSCRIBE**
- choice_index?: Integer;
-
// Input tokens required by choice indicated by ``choice_index``.
// @since protocol **vSUBSCRIBE**
tokens?: TokenUseSig[];
@@ -365,7 +360,7 @@ Making the payment
tokens_evs?: TokenEnvelope[];
// Custom inputs from the wallet for the contract.
- wallet_data?: Object;
+ wallet_data?: PayWalletData;
// The session for which the payment is made (or replayed).
// Only set for session-based payments.
@@ -373,6 +368,18 @@ Making the payment
}
+ .. ts:def:: PayWalletData
+
+ interface PayWalletData {
+ // Index of the selected choice within the ``choices`` array of
+ // the contract terms.
+ // @since protocol **vSUBSCRIBE**
+ choice_index?: Integer;
+
+ // Output commitment. Hash over output token envelopes.
+ h_outputs?: HashCode;
+ }
+
.. ts:def:: CoinPaySig
export interface CoinPaySig {