summaryrefslogtreecommitdiff
path: root/packages/taler-util/src/taler-types.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-03-25 12:06:57 +0100
committerFlorian Dold <florian@dold.me>2024-03-25 12:06:57 +0100
commite9bdeb71b7e66d2fbbeab869b3115de88b626890 (patch)
tree879791d46fe7dbcd710840d7319a760143c3af8f /packages/taler-util/src/taler-types.ts
parentbc29fc73aed60c83b4e508754a40c1deed798cbd (diff)
downloadwallet-core-e9bdeb71b7e66d2fbbeab869b3115de88b626890.tar.gz
wallet-core-e9bdeb71b7e66d2fbbeab869b3115de88b626890.tar.bz2
wallet-core-e9bdeb71b7e66d2fbbeab869b3115de88b626890.zip
wallet-core: pass extended bank account info to UI
Also pre-sort accounts by priority
Diffstat (limited to 'packages/taler-util/src/taler-types.ts')
-rw-r--r--packages/taler-util/src/taler-types.ts9
1 files changed, 8 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;