summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-12-12 21:48:06 +0100
committerFlorian Dold <florian@dold.me>2023-12-12 21:48:06 +0100
commit272868277415383dc80671657f158c5c08c7c6d5 (patch)
treeaf1b37f60c40396ba00b3933b6aff4f8d7cffd2a
parent387416f02dec4a7f948ba96e918e3cacaf92639e (diff)
downloadwallet-core-272868277415383dc80671657f158c5c08c7c6d5.tar.gz
wallet-core-272868277415383dc80671657f158c5c08c7c6d5.tar.bz2
wallet-core-272868277415383dc80671657f158c5c08c7c6d5.zip
-rename type
-rw-r--r--packages/taler-util/src/wallet-types.ts2
-rw-r--r--packages/taler-wallet-core/src/wallet-api-types.ts4
-rw-r--r--packages/taler-wallet-core/src/wallet.ts4
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<Op extends WalletApiOperation>(
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,