From 75fdf6137fb465d6c6c72b997bc899459f3de66e Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 5 Jun 2023 10:58:24 -0300 Subject: move kycurl to commons, make webex aware --- packages/taler-util/src/transactions-types.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'packages/taler-util/src/transactions-types.ts') diff --git a/packages/taler-util/src/transactions-types.ts b/packages/taler-util/src/transactions-types.ts index 82d847e80..3f3fe8ac0 100644 --- a/packages/taler-util/src/transactions-types.ts +++ b/packages/taler-util/src/transactions-types.ts @@ -50,7 +50,6 @@ import { TransactionIdStr, } from "./wallet-types.js"; - export interface TransactionsRequest { /** * return only transactions in the given currency @@ -174,6 +173,12 @@ export interface TransactionCommon { amountEffective: AmountString; error?: TalerErrorDetail; + + /** + * If the transaction minor state is in KycRequired this field is going to + * have the location where the user need to go to complete KYC information. + */ + kycUrl?: string; } export type Transaction = @@ -282,13 +287,13 @@ export interface TransactionWithdrawal extends TransactionCommon { /** * Internal withdrawal operation, only reported on request. - * + * * Some transactions (peer-*-credit) internally do a withdrawal, * but only the peer-*-credit transaction is reported. - * + * * The internal withdrawal transaction allows to access the details of * the underlying withdrawal for testing/debugging. - * + * * It is usually not reported, so that amounts of transactions properly * add up, since the amountEffecive of the withdrawal is already reported * in the peer-*-credit transaction. @@ -345,8 +350,6 @@ export interface TransactionPeerPullCredit extends TransactionCommon { * URI to send to the other party. */ talerUri: string; - - kycUrl: string | undefined; } /** @@ -415,8 +418,6 @@ export interface TransactionPeerPushCredit extends TransactionCommon { * Amount that actually was (or will be) added to the wallet's balance. */ amountEffective: AmountString; - - kycUrl: string | undefined; } export enum PaymentStatus { -- cgit v1.2.3