summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-11-28 11:41:56 +0100
committerFlorian Dold <florian@dold.me>2023-11-28 11:41:56 +0100
commit629cb08490adf1be26a811d743d8152de48a3c2a (patch)
tree0c72b93627e2f167efd2b168214aff290d7f0bea /packages/taler-wallet-core/src
parent7d562e7ee1172f14e4d304d0fbf39b1f9a524550 (diff)
downloadwallet-core-629cb08490adf1be26a811d743d8152de48a3c2a.tar.gz
wallet-core-629cb08490adf1be26a811d743d8152de48a3c2a.tar.bz2
wallet-core-629cb08490adf1be26a811d743d8152de48a3c2a.zip
-more consistent naming
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r--packages/taler-wallet-core/src/db.ts4
-rw-r--r--packages/taler-wallet-core/src/operations/transactions.ts2
-rw-r--r--packages/taler-wallet-core/src/operations/withdraw.ts10
-rw-r--r--packages/taler-wallet-core/src/wallet.ts2
4 files changed, 9 insertions, 9 deletions
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<WithdrawalAccountInfo[]> {
+): Promise<WithdrawalExchangeAccountDetails[]> {
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<Op extends WalletApiOperation>(
paytoUris: wi.exchangePaytoUris,
tosAccepted: wi.termsOfServiceAccepted,
ageRestrictionOptions: wi.ageRestrictionOptions,
- withdrawalAccountList: wi.withdrawalAccountList,
+ withdrawalAccountList: wi.exchangeCreditAccountDetails,
numCoins,
};
return resp;