aboutsummaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/declaration.d.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-02-10 09:51:37 -0300
committerSebastian <sebasjm@gmail.com>2023-02-10 09:52:02 -0300
commitba8b40c9150586982e42e76d364d76202627bd6f (patch)
treeebeed7551aad62a03954945de72320b6c1bc1f01 /packages/demobank-ui/src/declaration.d.ts
parent53af8b486fd8a538c1f54a2ce66ed5f74b2b46ed (diff)
downloadwallet-core-ba8b40c9150586982e42e76d364d76202627bd6f.tar.xz
business account
Diffstat (limited to 'packages/demobank-ui/src/declaration.d.ts')
-rw-r--r--packages/demobank-ui/src/declaration.d.ts22
1 files changed, 3 insertions, 19 deletions
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",
}
}
-
}