diff options
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/taler-types.ts | 9 | ||||
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 10 |
2 files changed, 18 insertions, 1 deletions
diff --git a/packages/taler-util/src/taler-types.ts b/packages/taler-util/src/taler-types.ts index 419aeb159..5c0b3d0c1 100644 --- a/packages/taler-util/src/taler-types.ts +++ b/packages/taler-util/src/taler-types.ts @@ -32,7 +32,6 @@ import { buildCodecForUnion, codecForAny, codecForBoolean, - codecForConstNumber, codecForConstString, codecForList, codecForMap, @@ -2305,6 +2304,12 @@ export interface ExchangeWireAccount { // a TALER_MasterWireDetailsPS // with purpose TALER_SIGNATURE_MASTER_WIRE_DETAILS. master_sig: EddsaSignatureString; + + // Display label wallets should use to show this + // bank account. + // Since protocol **v19**. + bank_label?: string; + priority?: number; } export const codecForExchangeWireAccount = (): Codec<ExchangeWireAccount> => @@ -2314,6 +2319,8 @@ export const codecForExchangeWireAccount = (): Codec<ExchangeWireAccount> => .property("debit_restrictions", codecForList(codecForAny())) .property("master_sig", codecForString()) .property("payto_uri", codecForString()) + .property("bank_label", codecOptional(codecForString())) + .property("priority", codecOptional(codecForNumber())) .build("WireAccount"); export type Integer = number; diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index 5916eb968..0b09b0dbf 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -3020,6 +3020,16 @@ export interface WithdrawalExchangeAccountDetails { creditRestrictions?: AccountRestriction[]; /** + * Label given to the account or the account's bank by the exchange. + */ + bankLabel?: string; + + /* + * Display priority assigned to this bank account by the exchange. + */ + priority?: number; + + /** * Error that happened when attempting to request the conversion rate. */ conversionError?: TalerErrorDetail; |