diff options
author | Florian Dold <florian@dold.me> | 2023-12-05 18:51:58 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-12-05 18:51:58 +0100 |
commit | fef7985be3ac1440d02f9ddc9f5aa141586a5259 (patch) | |
tree | 4d86ea823aab3e823dc519c70a54a79531c736b9 /packages/taler-util/src | |
parent | cc11b46b351ed524ff460643edb0fcc17b473cb2 (diff) | |
download | wallet-core-fef7985be3ac1440d02f9ddc9f5aa141586a5259.tar.xz |
wallet-core: make conversion more robust against errors
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index 8e72a4949..f19a0dd10 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -2783,6 +2783,16 @@ export interface WithdrawalExchangeAccountDetails { paytoUri: string; /** + * Status that indicates whether the account can be used + * by the user to send funds for a withdrawal. + * + * ok: account should be shown to the user + * error: account should not be shown to the user, UIs might render the error (in conversionError), + * especially in dev mode. + */ + status: "ok" | "error"; + + /** * Transfer amount. Might be in a different currency than the requested * amount for withdrawal. * @@ -2804,4 +2814,9 @@ export interface WithdrawalExchangeAccountDetails { * exchange. */ creditRestrictions?: AccountRestriction[]; + + /** + * Error that happened when attempting to request the conversion rate. + */ + conversionError?: TalerErrorDetail; } |