summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations
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/operations
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/operations')
-rw-r--r--packages/taler-wallet-core/src/operations/transactions.ts2
-rw-r--r--packages/taler-wallet-core/src/operations/withdraw.ts10
2 files changed, 6 insertions, 6 deletions
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,