@cranberry-money/shared-types
Version:
Shared TypeScript type definitions for Blueberry platform
36 lines • 956 B
TypeScript
import type { CURRENCY_CODES } from '@cranberry-money/shared-constants';
export type CurrencyCode = typeof CURRENCY_CODES.AUD | typeof CURRENCY_CODES.USD;
export interface CashAccount {
uuid: string;
account: string;
accountNumber: string;
bsb?: string;
payid?: string;
currency: CurrencyCode;
balance: string;
}
export interface CashAccountQueryParams {
account?: string;
currency?: CurrencyCode;
min_balance?: number;
max_balance?: number;
order_by?: string;
}
export interface CashAccountTransaction {
uuid: string;
cashAccount: string;
amount: string;
date: string;
transactionType: string;
reference: string;
}
export interface CashAccountTransactionQueryParams {
cash_account?: string;
transaction_type?: string;
start_date?: string;
end_date?: string;
min_amount?: number;
max_amount?: number;
order_by?: string;
}
//# sourceMappingURL=cash.d.ts.map