diff options
author | Florian Dold <florian@dold.me> | 2022-10-15 21:26:36 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-10-15 21:26:36 +0200 |
commit | fbb7dd9e7e7fe4cf0611f5827f0bd250634dc29f (patch) | |
tree | b6fb1fc37c67f72e8d2333d76fd1588931d261cb /packages/taler-wallet-core/src/wallet-api-types.ts | |
parent | d98d49aa58d59e6d428e5d024ba3f6ea0352ae2a (diff) | |
download | wallet-core-fbb7dd9e7e7fe4cf0611f5827f0bd250634dc29f.tar.gz wallet-core-fbb7dd9e7e7fe4cf0611f5827f0bd250634dc29f.tar.bz2 wallet-core-fbb7dd9e7e7fe4cf0611f5827f0bd250634dc29f.zip |
wallet-core, wallet-cli: add status to exchange list, add detail query to CLI
Diffstat (limited to 'packages/taler-wallet-core/src/wallet-api-types.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet-api-types.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/wallet-api-types.ts b/packages/taler-wallet-core/src/wallet-api-types.ts index 63d960f81..3841bd8d3 100644 --- a/packages/taler-wallet-core/src/wallet-api-types.ts +++ b/packages/taler-wallet-core/src/wallet-api-types.ts @@ -48,6 +48,7 @@ import { CreateDepositGroupRequest, CreateDepositGroupResponse, DeleteTransactionRequest, + ExchangeDetailedResponse, ExchangesListResponse, ForceRefreshRequest, GetExchangeTosRequest, @@ -109,6 +110,7 @@ export enum WalletApiOperation { ApplyRefund = "applyRefund", AcceptBankIntegratedWithdrawal = "acceptBankIntegratedWithdrawal", GetExchangeTos = "getExchangeTos", + GetExchangeDetailedInfo = "getExchangeDetailedInfo", RetryPendingNow = "retryPendingNow", AbortFailedPayWithRefund = "abortFailedPayWithRefund", ConfirmPay = "confirmPay", @@ -334,6 +336,15 @@ export type GetExchangeTosOp = { }; /** + * Get the current terms of a service of an exchange. + */ +export type GetExchangeDetailedInfoOp = { + op: WalletApiOperation.GetExchangeDetailedInfo; + request: AddExchangeRequest; + response: ExchangeDetailedResponse; +}; + +/** * List currencies known to the wallet. */ export type ListCurrenciesOp = { @@ -661,6 +672,7 @@ export type WalletOperations = { [WalletApiOperation.AddExchange]: AddExchangeOp; [WalletApiOperation.SetExchangeTosAccepted]: SetExchangeTosAcceptedOp; [WalletApiOperation.GetExchangeTos]: GetExchangeTosOp; + [WalletApiOperation.GetExchangeDetailedInfo]: GetExchangeDetailedInfoOp; [WalletApiOperation.TrackDepositGroup]: TrackDepositGroupOp; [WalletApiOperation.CreateDepositGroup]: CreateDepositGroupOp; [WalletApiOperation.SetWalletDeviceId]: SetWalletDeviceIdOp; |