diff options
author | Florian Dold <florian@dold.me> | 2023-11-28 11:24:31 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-11-28 11:24:31 +0100 |
commit | 7d562e7ee1172f14e4d304d0fbf39b1f9a524550 (patch) | |
tree | f97b08e53809eb9808ec3fd3c7799c6517d2c564 /packages/taler-util | |
parent | f8499a57a80597aad804d57f43a05d39d970e337 (diff) |
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.ts | 25 |
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[]; } |