taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit dbdc5063de6013147218e6e6e923c23dc7c4636a
parent 51a1f3a38f80a46e9889be42548276e5626e6135
Author: Florian Dold <florian@dold.me>
Date:   Thu, 17 Oct 2024 21:44:40 +0200

update wallet-core API docs

Diffstat:
Mwallet/wallet-core.md | 46+++++++++++-----------------------------------
1 file changed, 11 insertions(+), 35 deletions(-)

diff --git a/wallet/wallet-core.md b/wallet/wallet-core.md @@ -54,7 +54,6 @@ This file is auto-generated from [wallet-core](https://git.taler.net/wallet-core * [ListExchangesOp](#listexchangesop) * [StartExchangeWalletKycOp](#startexchangewalletkycop) * [TestingWaitExchangeWalletKycOp](#testingwaitexchangewalletkycop) -* [ListExchangesForScopedCurrencyOp](#listexchangesforscopedcurrencyop) * [PrepareWithdrawExchangeOp](#preparewithdrawexchangeop) * [AddExchangeOp](#addexchangeop) * [UpdateExchangeEntryOp](#updateexchangeentryop) @@ -1376,13 +1375,23 @@ export interface RemoveGlobalCurrencyAuditorRequest { */ export type ListExchangesOp = { op: WalletApiOperation.ListExchanges; - request: EmptyObject; + request: ListExchangesRequest; response: ExchangesListResponse; }; // ListExchanges = "listExchanges" ``` ```typescript +export interface ListExchangesRequest { + /** + * Filter results to only include exchanges in the given scope. + */ + filterByScope?: ScopeInfo; + filterByExchangeEntryStatus?: ExchangeEntryStatus; +} + +``` +```typescript export interface ExchangesListResponse { exchanges: ExchangeListItem[]; } @@ -1431,39 +1440,6 @@ export interface TestingWaitWalletKycRequest { ``` -### ListExchangesForScopedCurrencyOp -```typescript -/** - * List exchanges that are available for withdrawing a particular - * scoped currency. - */ -export type ListExchangesForScopedCurrencyOp = { - op: WalletApiOperation.ListExchangesForScopedCurrency; - request: ListExchangesForScopedCurrencyRequest; - response: ExchangesShortListResponse; -}; -// ListExchangesForScopedCurrency = "listExchangesForScopedCurrency" - -``` -```typescript -export interface ListExchangesForScopedCurrencyRequest { - scope: ScopeInfo; -} - -``` -```typescript -export interface ExchangesShortListResponse { - exchanges: ShortExchangeListItem[]; -} - -``` -```typescript -export interface ShortExchangeListItem { - exchangeBaseUrl: string; -} - -``` - ### PrepareWithdrawExchangeOp ```typescript /**