From c5f97c8f493b52f9e083548d0ac71592c56a2b79 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 30 Jan 2024 22:25:54 +0100 Subject: harness: work on otp test --- packages/taler-util/src/merchant-api-types.ts | 38 +++++++++++++++------------ 1 file changed, 21 insertions(+), 17 deletions(-) (limited to 'packages/taler-util/src/merchant-api-types.ts') diff --git a/packages/taler-util/src/merchant-api-types.ts b/packages/taler-util/src/merchant-api-types.ts index 999246597..724e99b55 100644 --- a/packages/taler-util/src/merchant-api-types.ts +++ b/packages/taler-util/src/merchant-api-types.ts @@ -25,29 +25,29 @@ * Imports. */ import { - MerchantContractTerms, - Codec, - buildCodecForObject, - codecForString, - codecOptional, - codecForConstString, - codecForBoolean, - codecForNumber, - codecForMerchantContractTerms, - codecForAny, - buildCodecForUnion, - AmountString, AbsoluteTime, + AmountString, + Codec, CoinPublicKeyString, EddsaPublicKeyString, - codecForAmountString, + ExchangeWireAccount, + FacadeCredentials, + MerchantContractTerms, TalerProtocolDuration, - codecForTimestamp, TalerProtocolTimestamp, - ExchangeWireAccount, + buildCodecForObject, + buildCodecForUnion, + codecForAmountString, + codecForAny, + codecForBoolean, + codecForConstString, codecForExchangeWireAccount, codecForList, - FacadeCredentials, + codecForMerchantContractTerms, + codecForNumber, + codecForString, + codecForTimestamp, + codecOptional, } from "@gnu-taler/taler-util"; export interface MerchantPostOrderRequest { @@ -345,7 +345,7 @@ export interface MerchantTemplateContractDetails { // The price is imposed by the merchant and cannot be changed by the customer. // This parameter is optional. - amount?: AmountString; + amount?: string; // Minimum age buyer must have (in years). Default is 0. minimum_age: number; @@ -369,6 +369,10 @@ export interface MerchantTemplateAddDetails { // Additional information in a separate template. template_contract: MerchantTemplateContractDetails; + + // OTP device ID. + // This parameter is optional. + otp_id?: string; } export interface MerchantReserveCreateConfirmation { -- cgit v1.2.3