summaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/declaration.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/demobank-ui/src/declaration.d.ts')
-rw-r--r--packages/demobank-ui/src/declaration.d.ts41
1 files changed, 19 insertions, 22 deletions
diff --git a/packages/demobank-ui/src/declaration.d.ts b/packages/demobank-ui/src/declaration.d.ts
index 0c083a939..8d729c1f7 100644
--- a/packages/demobank-ui/src/declaration.d.ts
+++ b/packages/demobank-ui/src/declaration.d.ts
@@ -194,28 +194,25 @@ namespace SandboxBackend {
}
interface BankAccountTransactionInfo {
- creditorIban: string;
- creditorBic: string; // Optional
- creditorName: string;
+ creditor_payto_uri: string;
+ debtor_payto_uri: string;
- debtorIban: string;
- debtorBic: string;
- debtorName: string;
+ amount: Amount;
+ direction: "debit" | "credit";
- amount: number;
- currency: string;
subject: string;
// Transaction unique ID. Matches
// $transaction_id from the URI.
- uid: string;
- direction: "DBIT" | "CRDT";
- date: string; // milliseconds since the Unix epoch
+ row_id: number;
+ date: number;
+ // date: Timestamp;
}
+
interface CreateBankAccountTransactionCreate {
// Address in the Payto format of the wire transfer receiver.
// It needs at least the 'message' query string parameter.
- paytoUri: string;
+ payto_uri: string;
// Transaction amount (in the $currency:x.y format), optional.
// However, when not given, its value must occupy the 'amount'
@@ -326,32 +323,32 @@ namespace SandboxBackend {
interface AccountMinimalData {
// Username
username: string;
-
+
// Legal name of the account owner.
name: string;
-
+
// current balance of the account
balance: Balance;
-
+
// Number indicating the max debit allowed for the requesting user.
debit_threshold: Amount;
}
-
+
interface AccountData {
// Legal name of the account owner.
name: string;
-
+
// Available balance on the account.
balance: Balance;
-
+
// payto://-URI of the account.
payto_uri: string;
-
+
// Number indicating the max debit allowed for the requesting user.
debit_threshold: Amount;
-
+
contact_data?: ChallengeContactData;
-
+
// 'payto' address pointing the bank account
// where to send cashouts. This field is optional
// because not all the accounts are required to participate
@@ -360,7 +357,7 @@ namespace SandboxBackend {
// be done via the access API.
cashout_payto_uri?: string;
}
-
+
}
namespace Circuit {