From a11ac57535b0375f152ce115ee541cb8aca98e84 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 24 Aug 2022 22:17:19 +0200 Subject: wallet-core: p2p support for transactions list --- packages/taler-wallet-core/src/operations/withdraw.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts') diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index 3c4e2d98c..4e350670d 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -74,6 +74,7 @@ import { ReserveRecordStatus, WalletStoresV1, WithdrawalGroupRecord, + WithdrawalRecordType, } from "../db.js"; import { getErrorDetailFromException, @@ -1700,6 +1701,7 @@ export async function internalCreateWithdrawalGroup( forcedDenomSel?: ForcedDenomSel; reserveKeyPair?: EddsaKeypair; restrictAge?: number; + withdrawalType: WithdrawalRecordType; }, ): Promise { const reserveKeyPair = @@ -1745,6 +1747,7 @@ export async function internalCreateWithdrawalGroup( restrictAge: args.restrictAge, senderWire: undefined, timestampFinish: undefined, + withdrawalType: args.withdrawalType, }; const exchangeInfo = await updateExchangeFromUrl(ws, canonExchange); @@ -1819,6 +1822,7 @@ export async function acceptWithdrawalFromUri( const withdrawalGroup = await internalCreateWithdrawalGroup(ws, { amount: withdrawInfo.amount, exchangeBaseUrl: req.selectedExchange, + withdrawalType: WithdrawalRecordType.BankIntegrated, forcedDenomSel: req.forcedDenomSel, reserveStatus: ReserveRecordStatus.RegisteringBank, bankInfo: { @@ -1877,6 +1881,7 @@ export async function createManualWithdrawal( ): Promise { const withdrawalGroup = await internalCreateWithdrawalGroup(ws, { amount: Amounts.jsonifyAmount(req.amount), + withdrawalType: WithdrawalRecordType.BankManual, exchangeBaseUrl: req.exchangeBaseUrl, bankInfo: undefined, forcedDenomSel: req.forcedDenomSel, -- cgit v1.2.3