taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit a7ec09cd8e0d6cf80d2f714c9310d58f19673541
parent 42b4ce49a39536500f6ae19590e2171a769fed98
Author: Florian Dold <florian@dold.me>
Date:   Wed,  6 Dec 2023 17:38:49 +0100

wallet-core: return exchange base URL in PreparePeerPushCreditResponse

Diffstat:
MAPI_CHANGES.md | 2++
Mpackages/taler-util/src/wallet-types.ts | 2++
Mpackages/taler-wallet-core/src/operations/pay-peer-push-credit.ts | 2++
3 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/API_CHANGES.md b/API_CHANGES.md @@ -9,3 +9,5 @@ This files contains all the API changes for the current release: - added WithdrawalExchangeAccountDetails.currencySpecification about the transferAmount currency - 2023-12-05 dold: added WithdrawalExchangeAccountDetails.{status,conversionError} to inform the client about errors with a particular conversion account instead of failing the whole withdrawal(-info) request. +- 2023-12-06 dold: added the exchangeBaseUrl to PreparePeerPushCreditResponse, allowing the UI + to check the exchange status for the peer push credit. diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts @@ -2494,6 +2494,8 @@ export interface PreparePeerPushCreditResponse { peerPushCreditId: string; transactionId: string; + + exchangeBaseUrl: string; } export interface PreparePeerPullDebitResponse { diff --git a/packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts b/packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts @@ -135,6 +135,7 @@ export async function preparePeerPushCredit( tag: TransactionType.PeerPushCredit, peerPushCreditId: existing.existingPushInc.peerPushCreditId, }), + exchangeBaseUrl: existing.existingPushInc.exchangeBaseUrl, }; } @@ -229,6 +230,7 @@ export async function preparePeerPushCredit( tag: TransactionType.PeerPushCredit, peerPushCreditId, }), + exchangeBaseUrl, }; }