taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit 989f243fbaf2895b758af3511bd0e95c0780b185
parent 09f0a8331b2c0ca9207138e19f47ac118b1c40ba
Author: Christian Blättler <blatc2@bfh.ch>
Date:   Fri, 26 Apr 2024 09:28:14 +0200

work on pay api

Diffstat:
Mcore/api-merchant.rst | 19+++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)

diff --git 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 {