diff options
author | Florian Dold <florian@dold.me> | 2023-12-11 10:40:13 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-12-11 10:40:13 +0100 |
commit | 3c2e2aeba979dbafaed6c4ed749175da0ef93426 (patch) | |
tree | dc7b66e6f203eaa2e7453a87a9863be3ef3a012b | |
parent | ed05a19bb477f331f3b0933cd1daf7b3eed4bce2 (diff) | |
download | wallet-core-3c2e2aeba979dbafaed6c4ed749175da0ef93426.tar.xz |
wallet-core: add exchangeBaseUrl to the checkPeerPushDebit response
-rw-r--r-- | API_CHANGES.md | 1 | ||||
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 1 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/API_CHANGES.md b/API_CHANGES.md index 3705aca3f..d497e4d08 100644 --- a/API_CHANGES.md +++ b/API_CHANGES.md @@ -21,3 +21,4 @@ This files contains all the API changes for the current release: request the ToS status separately via a getExchangeEntryForUri request. - 2023-12-07 dold: Add the prepareWithdrawExchange request for withdrawals via a taler://withdraw-exchange URI. +- 2023-12-11 dold: Add exchangeBaseUrl to the checkPeerPushDebit response.
\ No newline at end of file diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index d0bf5006d..77800857c 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -2470,6 +2470,7 @@ export const codecForCheckPeerPushDebitRequest = export interface CheckPeerPushDebitResponse { amountRaw: AmountString; amountEffective: AmountString; + exchangeBaseUrl: string; } export interface InitiatePeerPushDebitRequest { diff --git a/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts b/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts index 6cbd6bf47..0608ec763 100644 --- a/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts +++ b/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts @@ -103,6 +103,7 @@ export async function checkPeerPushDebit( coinSelRes.result.coins, ); return { + exchangeBaseUrl: coinSelRes.result.exchangeBaseUrl, amountEffective: Amounts.stringify(totalAmount), amountRaw: req.amount, }; |