data-validator-js
Version:
Validation Methods for all types of Data
13 lines (12 loc) • 439 B
TypeScript
import { Customer, Product } from './index';
export default class Transaction {
id: string;
products: Product[];
totalAmount: number;
paidWith: string;
dueAmount: number;
customerId: string;
customer: Customer;
transactionDate: Date;
constructor(id: string, products: Product[], totalAmount: number, paidWith: string, dueAmount: number, customerId: string, customer: Customer, transactionDate: Date);
}