summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorChristian Blättler <blatc2@bfh.ch>2024-04-26 09:28:14 +0200
committerChristian Blättler <blatc2@bfh.ch>2024-04-26 09:28:18 +0200
commit989f243fbaf2895b758af3511bd0e95c0780b185 (patch)
tree08bd127efb52ee69fbdf435f9a421944bbce49ec /core
parent09f0a8331b2c0ca9207138e19f47ac118b1c40ba (diff)
downloaddocs-989f243fbaf2895b758af3511bd0e95c0780b185.tar.gz
docs-989f243fbaf2895b758af3511bd0e95c0780b185.tar.bz2
docs-989f243fbaf2895b758af3511bd0e95c0780b185.zip
work on pay api
Diffstat (limited to 'core')
-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 {