From ba8b40c9150586982e42e76d364d76202627bd6f Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 10 Feb 2023 09:51:37 -0300 Subject: business account --- packages/demobank-ui/src/declaration.d.ts | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'packages/demobank-ui/src/declaration.d.ts') diff --git a/packages/demobank-ui/src/declaration.d.ts b/packages/demobank-ui/src/declaration.d.ts index cf3eb5774..c46fcc9ed 100644 --- a/packages/demobank-ui/src/declaration.d.ts +++ b/packages/demobank-ui/src/declaration.d.ts @@ -70,7 +70,6 @@ interface WireTransferRequestType { amount?: string; } - type HashCode = string; type EddsaPublicKey = string; type EddsaSignature = string; @@ -101,7 +100,6 @@ type UUID = string; type Integer = number; namespace SandboxBackend { - export interface Config { // Name of this API, always "circuit". name: string; @@ -126,7 +124,6 @@ namespace SandboxBackend { error: SandboxErrorDetail; } interface SandboxErrorDetail { - // String enum classifying the error. type: ErrorType; @@ -147,13 +144,12 @@ namespace SandboxBackend { * Sandbox and Nexus, therefore the actual meaning * must be carried by the error 'message' field. */ - UtilError = "util-error" + UtilError = "util-error", } namespace Access { - interface PublicAccountsResponse { - publicAccounts: PublicAccount[] + publicAccounts: PublicAccount[]; } interface PublicAccount { iban: string; @@ -213,7 +209,6 @@ namespace SandboxBackend { } interface BankAccountTransactionInfo { - creditorIban: string; creditorBic: string; // Optional creditorName: string; @@ -233,7 +228,6 @@ namespace SandboxBackend { date: string; // milliseconds since the Unix epoch } interface CreateBankAccountTransactionCreate { - // Address in the Payto format of the wire transfer receiver. // It needs at least the 'message' query string parameter. paytoUri: string; @@ -250,7 +244,6 @@ namespace SandboxBackend { password: string; } - } namespace Circuit { @@ -281,7 +274,6 @@ namespace SandboxBackend { internal_iban?: string; } interface CircuitContactData { - // E-Mail address email?: string; @@ -289,7 +281,6 @@ namespace SandboxBackend { phone?: string; } interface CircuitAccountReconfiguration { - // Addresses where to send the TAN. contact_data: CircuitContactData; @@ -300,7 +291,6 @@ namespace SandboxBackend { cashout_address: string; } interface AccountPasswordChange { - // New password. new_password: string; } @@ -314,7 +304,6 @@ namespace SandboxBackend { // Legal subject owning the account. name: string; - } interface CircuitAccountData { @@ -336,10 +325,9 @@ namespace SandboxBackend { enum TanChannel { SMS = "sms", EMAIL = "email", - FILE = "file" + FILE = "file", } interface CashoutRequest { - // Optional subject to associate to the // cashout operation. This data will appear // as the incoming wire transfer subject in @@ -370,7 +358,6 @@ namespace SandboxBackend { uuid: string; } interface CashoutConfirm { - // the TAN that confirms $cashoutId. tan: string; } @@ -398,7 +385,6 @@ namespace SandboxBackend { cashouts: string[]; } interface CashoutStatusResponse { - status: CashoutStatus; // Amount debited to the circuit bank account. amount_debit: Amount; @@ -415,7 +401,6 @@ namespace SandboxBackend { confirmation_time?: number | null; // milliseconds since the Unix epoch } enum CashoutStatus { - // The payment was initiated after a valid // TAN was received by the bank. CONFIRMED = "confirmed", @@ -425,5 +410,4 @@ namespace SandboxBackend { PENDING = "pending", } } - } -- cgit v1.2.3