diff options
author | Florian Dold <florian@dold.me> | 2024-09-09 11:18:30 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-09-09 11:18:30 +0200 |
commit | e0f7f23b16358ff7c2e0663fcda10e9e0cc1601d (patch) | |
tree | f9dab0a6549f16396f8ce6bd994e4749c411c2ce | |
parent | 845ce1ecc305f3fcc6fd18d17da8776f6c727fba (diff) |
-complete rename
-rw-r--r-- | packages/taler-wallet-core/src/wallet-api-types.ts | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/packages/taler-wallet-core/src/wallet-api-types.ts b/packages/taler-wallet-core/src/wallet-api-types.ts index 6927fce45..f652dd83d 100644 --- a/packages/taler-wallet-core/src/wallet-api-types.ts +++ b/packages/taler-wallet-core/src/wallet-api-types.ts @@ -42,6 +42,8 @@ import { BalancesResponse, CanonicalizeBaseUrlRequest, CanonicalizeBaseUrlResponse, + CheckDepositRequest, + CheckDepositResponse, CheckPayTemplateReponse, CheckPayTemplateRequest, CheckPeerPullCreditRequest, @@ -109,8 +111,6 @@ import { ListKnownBankAccountsRequest, PrepareBankIntegratedWithdrawalRequest, PrepareBankIntegratedWithdrawalResponse, - CheckDepositRequest, - CheckDepositResponse, PreparePayRequest, PreparePayResult, PreparePayTemplateRequest, @@ -235,8 +235,6 @@ export enum WalletApiOperation { ExportBackupRecovery = "exportBackupRecovery", ImportBackupRecovery = "importBackupRecovery", GetBackupInfo = "getBackupInfo", - // Deprecated alias - PrepareDeposit = "prepareDeposit", CheckDeposit = "checkDeposit", GetVersion = "getVersion", GenerateDepositGroupTxId = "generateDepositGroupTxId", @@ -292,6 +290,11 @@ export enum WalletApiOperation { StartExchangeWalletKyc = "startExchangeWalletKyc", TestingWaitExchangeWalletKyc = "testingWaitWalletKyc", HintApplicationResumed = "hintApplicationResumed", + + /** + * @deprecated use checkDeposit instead + */ + PrepareDeposit = "prepareDeposit", } // group: Initialization @@ -837,7 +840,15 @@ export type CreateDepositGroupOp = { response: CreateDepositGroupResponse; }; -// FIXME: Rename to checkDeposit, as it does not create a transaction, just computes fees! +export type CheckDepositOp = { + op: WalletApiOperation.CheckDeposit; + request: CheckDepositRequest; + response: CheckDepositResponse; +}; + +/** + * @deprecated use CheckDepositOp instead + */ export type PrepareDepositOp = { op: WalletApiOperation.PrepareDeposit; request: CheckDepositRequest; @@ -1347,7 +1358,7 @@ export type WalletOperations = { [WalletApiOperation.GetExchangeDetailedInfo]: GetExchangeDetailedInfoOp; [WalletApiOperation.GetExchangeEntryByUrl]: GetExchangeEntryByUrlOp; [WalletApiOperation.PrepareDeposit]: PrepareDepositOp; - [WalletApiOperation.CheckDeposit]: PrepareDepositOp; + [WalletApiOperation.CheckDeposit]: CheckDepositOp; [WalletApiOperation.GenerateDepositGroupTxId]: GenerateDepositGroupTxIdOp; [WalletApiOperation.CreateDepositGroup]: CreateDepositGroupOp; [WalletApiOperation.SetWalletDeviceId]: SetWalletDeviceIdOp; |