diff options
author | Florian Dold <florian@dold.me> | 2022-08-24 22:17:19 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-08-24 22:17:19 +0200 |
commit | a11ac57535b0375f152ce115ee541cb8aca98e84 (patch) | |
tree | 95294389598f6d15c0de389a8e5024dc17592b15 /packages/taler-wallet-core/src/operations/withdraw.ts | |
parent | bf516a77e8d38e81ee9816d6ee0ab29bcb878e84 (diff) | |
download | wallet-core-a11ac57535b0375f152ce115ee541cb8aca98e84.tar.xz |
wallet-core: p2p support for transactions list
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 5 |
1 files changed, 5 insertions, 0 deletions
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<WithdrawalGroupRecord> { 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<AcceptManualWithdrawalResult> { const withdrawalGroup = await internalCreateWithdrawalGroup(ws, { amount: Amounts.jsonifyAmount(req.amount), + withdrawalType: WithdrawalRecordType.BankManual, exchangeBaseUrl: req.exchangeBaseUrl, bankInfo: undefined, forcedDenomSel: req.forcedDenomSel, |