summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-12-06 18:46:51 +0100
committerFlorian Dold <florian@dold.me>2023-12-06 18:46:51 +0100
commit0acafda82911f3d61d4eaa9dec2263ae66863097 (patch)
tree6ec8e7d0efc8d8bcf9641cea39301239438f9f8a
parentdc016078a976e24886173dd81a028b8b3d89a1e2 (diff)
downloadwallet-core-0acafda82911f3d61d4eaa9dec2263ae66863097.tar.gz
wallet-core-0acafda82911f3d61d4eaa9dec2263ae66863097.tar.bz2
wallet-core-0acafda82911f3d61d4eaa9dec2263ae66863097.zip
wallet-core: document API change, don't wrap response
-rw-r--r--API_CHANGES.md5
-rw-r--r--packages/taler-util/src/wallet-types.ts4
-rw-r--r--packages/taler-wallet-core/src/wallet.ts5
3 files changed, 7 insertions, 7 deletions
diff --git a/API_CHANGES.md b/API_CHANGES.md
index 566a17650..8ccce9af6 100644
--- a/API_CHANGES.md
+++ b/API_CHANGES.md
@@ -11,3 +11,8 @@ This files contains all the API changes for the current release:
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.
+- 2023-12-06 dold: added a new getExchangeEntryForUri request, which allows the client to
+ get information about an existing exchange entry with DD48 semantics.
+ The older call "getExchangeDetailedInfo" also computes loads of information
+ for fee comparison and we should eventually rename it to something more appropriate
+ (like getExchangeFeeDetailsForUri).
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts
index 2a5fa0bf8..45e0860b2 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -1636,9 +1636,7 @@ export const codecForGetExchangeEntryByUrlRequest =
.property("exchangeBaseUrl", codecForString())
.build("GetExchangeEntryByUrlRequest");
-export interface GetExchangeEntryByUrlResponse {
- exchangeEntry: ExchangeListItem;
-}
+export type GetExchangeEntryByUrlResponse = ExchangeListItem;
export interface AddExchangeRequest {
exchangeBaseUrl: string;
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index e5e179937..6092830f6 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -1177,10 +1177,7 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>(
opRetryRecord?.lastError,
);
});
- const result: GetExchangeEntryByUrlResponse = {
- exchangeEntry,
- };
- return result;
+ return exchangeEntry;
}
case WalletApiOperation.ListExchangesForScopedCurrency: {
const req =