Files
new-phone-who-dis/typings/bank.ts
T
2021-03-24 19:02:02 +01:00

33 lines
815 B
TypeScript

export interface IBankCredentials {
name: string;
balance: number;
}
export interface Transfer {
id: number;
targetID: number;
source: string;
type: string;
transferAmount: number;
message: string;
}
export interface ITransactions {
source: number;
type: string;
amount: number;
}
export enum BankEvents {
ADD_TRANSFER = 'npwd:addTransfer',
ADD_TRANSFER_SUCCESS = 'npwd:addTransferSuccess',
FETCH_TRANSACTIONS = 'npwd:fetchAllTransactions',
SEND_TRANSFERS = 'npwd:sendTransfers',
TRANSACTION_ALERT = 'npwd:bankTransactionAlert',
TRANSACTION_NOTIFICATION = 'npwd:bankTransactionNotification',
SEND_CREDENTIALS = 'npwd:sendBankCredentials',
GET_CREDENTIALS = 'npwd:getBankCredentials',
SEND_ALERT = 'npwd:sendBankAlert',
SEND_NOTIFICATION = 'npwd:sendBankNotification',
}