diff options
Diffstat (limited to 'packages/taler-wallet-core/src/operations/transactions.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/transactions.ts | 40 |
1 files changed, 36 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/operations/transactions.ts b/packages/taler-wallet-core/src/operations/transactions.ts index 1bd024d28..6fe0f1390 100644 --- a/packages/taler-wallet-core/src/operations/transactions.ts +++ b/packages/taler-wallet-core/src/operations/transactions.ts @@ -117,10 +117,38 @@ import { suspendWithdrawalTransaction, computeWithdrawalTransactionActions, } from "./withdraw.js"; -import { computePeerPullCreditTransactionState, computePeerPullCreditTransactionActions, suspendPeerPullCreditTransaction, failPeerPullCreditTransaction, resumePeerPullCreditTransaction, abortPeerPullCreditTransaction } from "./pay-peer-pull-credit.js"; -import { computePeerPullDebitTransactionState, computePeerPullDebitTransactionActions, suspendPeerPullDebitTransaction, failPeerPullDebitTransaction, resumePeerPullDebitTransaction, abortPeerPullDebitTransaction } from "./pay-peer-pull-debit.js"; -import { computePeerPushCreditTransactionState, computePeerPushCreditTransactionActions, suspendPeerPushCreditTransaction, failPeerPushCreditTransaction, resumePeerPushCreditTransaction, abortPeerPushCreditTransaction } from "./pay-peer-push-credit.js"; -import { computePeerPushDebitTransactionState, computePeerPushDebitTransactionActions, suspendPeerPushDebitTransaction, failPeerPushDebitTransaction, resumePeerPushDebitTransaction, abortPeerPushDebitTransaction } from "./pay-peer-push-debit.js"; +import { + computePeerPullCreditTransactionState, + computePeerPullCreditTransactionActions, + suspendPeerPullCreditTransaction, + failPeerPullCreditTransaction, + resumePeerPullCreditTransaction, + abortPeerPullCreditTransaction, +} from "./pay-peer-pull-credit.js"; +import { + computePeerPullDebitTransactionState, + computePeerPullDebitTransactionActions, + suspendPeerPullDebitTransaction, + failPeerPullDebitTransaction, + resumePeerPullDebitTransaction, + abortPeerPullDebitTransaction, +} from "./pay-peer-pull-debit.js"; +import { + computePeerPushCreditTransactionState, + computePeerPushCreditTransactionActions, + suspendPeerPushCreditTransaction, + failPeerPushCreditTransaction, + resumePeerPushCreditTransaction, + abortPeerPushCreditTransaction, +} from "./pay-peer-push-credit.js"; +import { + computePeerPushDebitTransactionState, + computePeerPushDebitTransactionActions, + suspendPeerPushDebitTransaction, + failPeerPushDebitTransaction, + resumePeerPushDebitTransaction, + abortPeerPushDebitTransaction, +} from "./pay-peer-push-debit.js"; const logger = new Logger("taler-wallet-core:transactions.ts"); @@ -510,6 +538,7 @@ function buildTransactionForPeerPullCredit( tag: TransactionType.PeerPullCredit, pursePub: pullCredit.pursePub, }), + kycUrl: pullCredit.kycUrl, ...(wsrOrt?.lastError ? { error: silentWithdrawalErrorForInvoice @@ -541,6 +570,7 @@ function buildTransactionForPeerPullCredit( tag: TransactionType.PeerPullCredit, pursePub: pullCredit.pursePub, }), + kycUrl: pullCredit.kycUrl, ...(pullCreditOrt?.lastError ? { error: pullCreditOrt.lastError } : {}), }; } @@ -573,6 +603,7 @@ function buildTransactionForPeerPushCredit( tag: TransactionType.PeerPushCredit, peerPushPaymentIncomingId: pushInc.peerPushPaymentIncomingId, }), + kycUrl: pushInc.kycUrl, ...(wsrOrt?.lastError ? { error: wsrOrt.lastError } : {}), }; } @@ -589,6 +620,7 @@ function buildTransactionForPeerPushCredit( expiration: peerContractTerms.purse_expiration, summary: peerContractTerms.summary, }, + kycUrl: pushInc.kycUrl, timestamp: pushInc.timestamp, transactionId: constructTransactionIdentifier({ tag: TransactionType.PeerPushCredit, |