From 272868277415383dc80671657f158c5c08c7c6d5 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 12 Dec 2023 21:48:06 +0100 Subject: -rename type --- packages/taler-util/src/wallet-types.ts | 2 +- packages/taler-wallet-core/src/wallet-api-types.ts | 4 ++-- packages/taler-wallet-core/src/wallet.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index 3b4bc6a29..b25b3e406 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -1415,7 +1415,7 @@ export interface AcceptManualWithdrawalResult { transactionId: TransactionIdStr; } -export interface ManualWithdrawalDetails { +export interface WithdrawalDetailsForAmount { /** * Did the user accept the current version of the exchange's * terms of service? diff --git a/packages/taler-wallet-core/src/wallet-api-types.ts b/packages/taler-wallet-core/src/wallet-api-types.ts index b83813874..a4be0f448 100644 --- a/packages/taler-wallet-core/src/wallet-api-types.ts +++ b/packages/taler-wallet-core/src/wallet-api-types.ts @@ -82,7 +82,7 @@ import { KnownBankAccounts, ListExchangesForScopedCurrencyRequest, ListKnownBankAccountsRequest, - ManualWithdrawalDetails, + WithdrawalDetailsForAmount, PrepareDepositRequest, PrepareDepositResponse, PreparePayRequest, @@ -448,7 +448,7 @@ export type ResumeTransactionOp = { export type GetWithdrawalDetailsForAmountOp = { op: WalletApiOperation.GetWithdrawalDetailsForAmount; request: GetWithdrawalDetailsForAmountRequest; - response: ManualWithdrawalDetails; + response: WithdrawalDetailsForAmount; }; /** diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 580b30864..94d55806e 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -41,7 +41,7 @@ import { KnownBankAccounts, KnownBankAccountsInfo, Logger, - ManualWithdrawalDetails, + WithdrawalDetailsForAmount, MerchantUsingTemplateDetails, NotificationType, PrepareWithdrawExchangeRequest, @@ -1053,7 +1053,7 @@ async function dispatchRequestInternal( numCoins += x.count; } const amt = Amounts.parseOrThrow(req.amount); - const resp: ManualWithdrawalDetails = { + const resp: WithdrawalDetailsForAmount = { amountRaw: req.amount, amountEffective: Amounts.stringify(wi.selectedDenoms.totalCoinValue), paytoUris: wi.exchangePaytoUris, -- cgit v1.2.3