From 629cb08490adf1be26a811d743d8152de48a3c2a Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 28 Nov 2023 11:41:56 +0100 Subject: -more consistent naming --- packages/taler-wallet-core/src/db.ts | 4 ++-- packages/taler-wallet-core/src/operations/transactions.ts | 2 +- packages/taler-wallet-core/src/operations/withdraw.ts | 10 +++++----- packages/taler-wallet-core/src/wallet.ts | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'packages/taler-wallet-core') diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index 279b75bf5..0af04f80f 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -56,7 +56,7 @@ import { TransactionIdStr, UnblindedSignature, WireInfo, - WithdrawalAccountInfo, + WithdrawalExchangeAccountDetails, codecForAny, } from "@gnu-taler/taler-util"; import { DbRetryInfo, TaskIdentifiers } from "./operations/common.js"; @@ -1386,7 +1386,7 @@ export interface WgInfoBankManual { /** * Info about withdrawal accounts, possibly including currency conversion. */ - exchangeCreditAccounts?: WithdrawalAccountInfo[]; + exchangeCreditAccounts?: WithdrawalExchangeAccountDetails[]; } export interface WgInfoBankPeerPull { diff --git a/packages/taler-wallet-core/src/operations/transactions.ts b/packages/taler-wallet-core/src/operations/transactions.ts index b294c163e..0ff552916 100644 --- a/packages/taler-wallet-core/src/operations/transactions.ts +++ b/packages/taler-wallet-core/src/operations/transactions.ts @@ -720,7 +720,7 @@ function buildTransactionForManualWithdraw( type: WithdrawalType.ManualTransfer, reservePub: withdrawalGroup.reservePub, exchangePaytoUris, - exchangeCreditAccounts: withdrawalGroup.wgInfo.exchangeCreditAccounts, + exchangeCreditAccountDetails: withdrawalGroup.wgInfo.exchangeCreditAccounts, reserveIsReady: withdrawalGroup.status === WithdrawalGroupStatus.Done || withdrawalGroup.status === WithdrawalGroupStatus.PendingReady, diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index 9dd0f0a3f..c7a44bf0f 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -56,7 +56,7 @@ import { URL, UnblindedSignature, WithdrawUriInfoResponse, - WithdrawalAccountInfo, + WithdrawalExchangeAccountDetails, addPaytoQueryParams, canonicalizeBaseUrl, codecForBankWithdrawalOperationPostResponse, @@ -1873,7 +1873,7 @@ export async function getExchangeWithdrawalInfo( earliestDepositExpiration, exchangePaytoUris: paytoUris, exchangeWireAccounts, - withdrawalAccountList, + exchangeCreditAccountDetails: withdrawalAccountList, exchangeVersion: exchangeDetails.protocolVersionRange || "unknown", numOfferedDenoms: possibleDenoms.length, selectedDenoms, @@ -2584,9 +2584,9 @@ async function fetchWithdrawalAccountInfo( instructedAmount: AmountJson; reservePub?: string; }, -): Promise { +): Promise { const { exchangeDetails, instructedAmount } = req; - const withdrawalAccounts: WithdrawalAccountInfo[] = []; + const withdrawalAccounts: WithdrawalExchangeAccountDetails[] = []; for (let acct of exchangeDetails.wireInfo.accounts) { let paytoUri: string; let transferAmount: AmountString; @@ -2617,7 +2617,7 @@ async function fetchWithdrawalAccountInfo( message: `Taler Withdrawal ${req.reservePub}`, }); } - const acctInfo: WithdrawalAccountInfo = { + const acctInfo: WithdrawalExchangeAccountDetails = { paytoUri, transferAmount, creditRestrictions: acct.credit_restrictions, diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index ebdab97d1..6b9e960ce 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -1215,7 +1215,7 @@ async function dispatchRequestInternal( paytoUris: wi.exchangePaytoUris, tosAccepted: wi.termsOfServiceAccepted, ageRestrictionOptions: wi.ageRestrictionOptions, - withdrawalAccountList: wi.withdrawalAccountList, + withdrawalAccountList: wi.exchangeCreditAccountDetails, numCoins, }; return resp; -- cgit v1.2.3