aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-09-23 15:17:29 -0300
committerSebastian <sebasjm@gmail.com>2022-09-23 15:18:49 -0300
commitfbf050267244b72afb193e6ab80ea485e0eaf309 (patch)
tree0916c3c7cf3b53ac49dcfa49a3ddf944f1397979 /packages/taler-util
parent22e87bb18f87ae1b34fdf1536f1f5761ff625c37 (diff)
add bank account record
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/walletTypes.ts32
1 files changed, 31 insertions, 1 deletions
diff --git a/packages/taler-util/src/walletTypes.ts b/packages/taler-util/src/walletTypes.ts
index ec14630d2..35cb14837 100644
--- a/packages/taler-util/src/walletTypes.ts
+++ b/packages/taler-util/src/walletTypes.ts
@@ -600,8 +600,15 @@ export interface WalletCoreVersion {
bank: string;
}
+export interface KnownBankAccountsInfo {
+ uri: PaytoUri;
+ kyc_completed: boolean;
+ currency: string;
+ alias: string,
+}
+
export interface KnownBankAccounts {
- accounts: { [payto: string]: PaytoUri };
+ accounts: KnownBankAccountsInfo[];
}
export interface ExchangeTos {
@@ -1077,6 +1084,29 @@ export const codecForListKnownBankAccounts =
.property("currency", codecOptional(codecForString()))
.build("ListKnownBankAccountsRequest");
+export interface AddKnownBankAccountsRequest {
+ payto: string;
+ alias: string;
+ currency: string;
+}
+export const codecForAddKnownBankAccounts =
+ (): Codec<AddKnownBankAccountsRequest> =>
+ buildCodecForObject<AddKnownBankAccountsRequest>()
+ .property("payto", (codecForString()))
+ .property("alias", (codecForString()))
+ .property("currency", (codecForString()))
+ .build("AddKnownBankAccountsRequest");
+
+export interface ForgetKnownBankAccountsRequest {
+ payto: string;
+}
+
+export const codecForForgetKnownBankAccounts =
+ (): Codec<ForgetKnownBankAccountsRequest> =>
+ buildCodecForObject<ForgetKnownBankAccountsRequest>()
+ .property("payto", (codecForString()))
+ .build("ForgetKnownBankAccountsRequest");
+
export interface GetExchangeWithdrawalInfo {
exchangeBaseUrl: string;
amount: AmountJson;