aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util/src/wallet-types.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-util/src/wallet-types.ts')
-rw-r--r--packages/taler-util/src/wallet-types.ts24
1 files changed, 22 insertions, 2 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts
index 148117673..346528029 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -52,6 +52,7 @@ import { PaytoUri } from "./payto.js";
import { AgeCommitmentProof } from "./taler-crypto.js";
import { TalerErrorCode } from "./taler-error-codes.js";
import {
+ AccountRestriction,
AmountString,
AuditorDenomSig,
CoinEnvelope,
@@ -78,8 +79,6 @@ import {
} from "./time.js";
import {
OrderShortInfo,
- TransactionMajorState,
- TransactionMinorState,
TransactionState,
TransactionType,
} from "./transactions-types.js";
@@ -1387,6 +1386,8 @@ export interface AcceptManualWithdrawalResult {
*/
reservePub: string;
+ withdrawalAccountsList: WithdrawalAccountInfo[];
+
transactionId: TransactionIdStr;
}
@@ -1416,10 +1417,17 @@ export interface ManualWithdrawalDetails {
/**
* Ways to pay the exchange.
+ *
+ * @deprecated in favor of withdrawalAccountList
*/
paytoUris: string[];
/**
+ * Ways to pay the exchange, including
+ */
+ withdrawalAccountList: WithdrawalAccountInfo[];
+
+ /**
* If the exchange supports age-restricted coins it will return
* the array of ages.
*/
@@ -1438,6 +1446,11 @@ export interface DenomSelectionState {
}[];
}
+export interface WireAccountDetails {
+ paytoUri: string;
+ creditRestrictions?: AccountRestriction[];
+}
+
/**
* Information about what will happen doing a withdrawal.
*
@@ -1451,6 +1464,8 @@ export interface ExchangeWithdrawalDetails {
*/
exchangeWireAccounts: string[];
+ withdrawalAccountList: WithdrawalAccountInfo[];
+
/**
* Selected denominations for withdraw.
*/
@@ -2736,3 +2751,8 @@ export interface TestingWaitTransactionRequest {
transactionId: string;
txState: TransactionState;
}
+
+export interface WithdrawalAccountInfo {
+ paytoUri: string;
+ transferAmount: AmountString;
+}