diff options
Diffstat (limited to 'packages/taler-wallet-core/src/wallet-api-types.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet-api-types.ts | 39 |
1 files changed, 39 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 3b0d11039..c58ced045 100644 --- a/packages/taler-wallet-core/src/wallet-api-types.ts +++ b/packages/taler-wallet-core/src/wallet-api-types.ts @@ -34,6 +34,7 @@ import { AcceptWithdrawalResponse, AddExchangeRequest, AddKnownBankAccountsRequest, + AmountResponse, ApplyDevExperimentRequest, BackupRecovery, BalancesResponse, @@ -47,6 +48,7 @@ import { ConfirmPayResult, ConfirmPeerPullDebitRequest, ConfirmPeerPushCreditRequest, + ConvertAmountRequest, CreateDepositGroupRequest, CreateDepositGroupResponse, DeleteTransactionRequest, @@ -54,6 +56,7 @@ import { ExchangesListResponse, ForceRefreshRequest, ForgetKnownBankAccountsRequest, + GetAmountRequest, GetBalanceDetailRequest, GetContractTermsDetailsRequest, GetExchangeTosRequest, @@ -146,6 +149,11 @@ export enum WalletApiOperation { GetBalances = "getBalances", GetBalanceDetail = "getBalanceDetail", GetPlanForOperation = "getPlanForOperation", + ConvertDepositAmount = "ConvertDepositAmount", + GetMaxDepositAmount = "GetMaxDepositAmount", + ConvertPeerPushAmount = "ConvertPeerPushAmount", + GetMaxPeerPushAmount = "GetMaxPeerPushAmount", + ConvertWithdrawalAmount = "ConvertWithdrawalAmount", GetUserAttentionRequests = "getUserAttentionRequests", GetUserAttentionUnreadCount = "getUserAttentionUnreadCount", MarkAttentionRequestAsRead = "markAttentionRequestAsRead", @@ -284,6 +292,32 @@ export type GetPlanForOperationOp = { response: GetPlanForOperationResponse; }; +export type ConvertDepositAmountOp = { + op: WalletApiOperation.ConvertDepositAmount; + request: ConvertAmountRequest; + response: AmountResponse; +}; +export type GetMaxDepositAmountOp = { + op: WalletApiOperation.GetMaxDepositAmount; + request: GetAmountRequest; + response: AmountResponse; +}; +export type ConvertPeerPushAmountOp = { + op: WalletApiOperation.ConvertPeerPushAmount; + request: ConvertAmountRequest; + response: AmountResponse; +}; +export type GetMaxPeerPushAmountOp = { + op: WalletApiOperation.GetMaxPeerPushAmount; + request: GetAmountRequest; + response: AmountResponse; +}; +export type ConvertWithdrawalAmountOp = { + op: WalletApiOperation.ConvertWithdrawalAmount; + request: ConvertAmountRequest; + response: AmountResponse; +}; + // group: Managing Transactions /** @@ -949,6 +983,11 @@ export type WalletOperations = { [WalletApiOperation.SuspendTransaction]: SuspendTransactionOp; [WalletApiOperation.ResumeTransaction]: ResumeTransactionOp; [WalletApiOperation.GetBalances]: GetBalancesOp; + [WalletApiOperation.ConvertDepositAmount]: ConvertDepositAmountOp; + [WalletApiOperation.GetMaxDepositAmount]: GetMaxDepositAmountOp; + [WalletApiOperation.ConvertPeerPushAmount]: ConvertPeerPushAmountOp; + [WalletApiOperation.GetMaxPeerPushAmount]: GetMaxPeerPushAmountOp; + [WalletApiOperation.ConvertWithdrawalAmount]: ConvertWithdrawalAmountOp; [WalletApiOperation.GetPlanForOperation]: GetPlanForOperationOp; [WalletApiOperation.GetBalanceDetail]: GetBalancesDetailOp; [WalletApiOperation.GetTransactions]: GetTransactionsOp; |