taler-docs

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

commit 65ff207d2a7a856417a1175f1088bea88b555341
parent fe011d77d9928f7da96e5203a23bdbca2fd1b1fa
Author: Iván Ávalos <avalos@disroot.org>
Date:   Thu, 31 Jul 2025 18:12:25 +0200

merchant api: add choice description to v1 contract/order

Diffstat:
Mcore/api-merchant.rst | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/core/api-merchant.rst b/core/api-merchant.rst @@ -3053,6 +3053,13 @@ Creating orders // fees from that amount before transferring it to the merchant. amount: Amount; + // Human readable description of the semantics of the choice + // within the contract to be shown to the user at payment. + description?: string; + + // Map from IETF 47 language tags to localized descriptions. + description_i18n?: { [lang_tag: string]: string }; + // Inputs that must be provided by the customer, if this choice is selected. // Defaults to empty array if not specified. inputs?: OrderInput[]; @@ -5151,6 +5158,13 @@ The contract terms must have the following structure: // before transferring it to the merchant. amount: Amount; + // Human readable description of the semantics of the choice + // within the contract to be shown to the user at payment. + description?: string; + + // Map from IETF 47 language tags to localized descriptions. + description_i18n?: { [lang_tag: string]: string }; + // List of inputs the wallet must provision (all of them) to // satisfy the conditions for the contract. inputs: ContractInput[];