diff options
author | Florian Dold <florian@dold.me> | 2023-12-06 17:38:49 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-12-06 17:38:49 +0100 |
commit | a7ec09cd8e0d6cf80d2f714c9310d58f19673541 (patch) | |
tree | e5d0a422135dee5c622c7f3f87bb0a9a28a943ac | |
parent | 42b4ce49a39536500f6ae19590e2171a769fed98 (diff) |
wallet-core: return exchange base URL in PreparePeerPushCreditResponse
-rw-r--r-- | API_CHANGES.md | 2 | ||||
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 2 | ||||
-rw-r--r-- | packages/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 index 5ec48a1b7..566a17650 100644 --- 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 index f19a0dd10..8e436bc75 100644 --- 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 index 38328171d..690edf2e7 100644 --- 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, }; } |