aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-11-28 11:24:31 +0100
committerFlorian Dold <florian@dold.me>2023-11-28 11:24:31 +0100
commit7d562e7ee1172f14e4d304d0fbf39b1f9a524550 (patch)
treef97b08e53809eb9808ec3fd3c7799c6517d2c564 /packages/taler-util
parentf8499a57a80597aad804d57f43a05d39d970e337 (diff)
downloadwallet-core-7d562e7ee1172f14e4d304d0fbf39b1f9a524550.tar.xz
always return WithdrawalAccountInfo instead of using two separate types for the same purpose
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/wallet-types.ts25
1 files changed, 20 insertions, 5 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts
index d8e62dca0..d4d6119fb 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -1463,11 +1463,6 @@ export interface DenomSelectionState {
}[];
}
-export interface WireAccountDetails {
- paytoUri: string;
- creditRestrictions?: AccountRestriction[];
-}
-
/**
* Information about what will happen doing a withdrawal.
*
@@ -2770,6 +2765,26 @@ export interface TestingWaitTransactionRequest {
}
export interface WithdrawalAccountInfo {
+ /**
+ * Payto URI to credit the exchange.
+ *
+ * Depending on whether the (manual!) withdrawal is accepted or just
+ * being checked, this already includes the subject with the
+ * reserve public key.
+ */
paytoUri: string;
+
+ /**
+ * Transfer amount. Might be in a different currency than the requested
+ * amount for withdrawal.
+ *
+ * Redundant with the amount in paytoUri, just included to avoid parsing.
+ */
transferAmount: AmountString;
+
+ /**
+ * Further restrictions for sending money to the
+ * exchange.
+ */
+ creditRestrictions?: AccountRestriction[];
}