import { TransactionTypes } from '../enums'; import { ExternalInformation } from './nested/ExternalInformation'; import { BaseModel } from './BaseModel'; import { Payment } from './Payment'; import { Invoice } from './Invoice'; import { Contract } from './Contract'; import { WorkerOrder } from './WorkerOrder'; export interface Transaction extends BaseModel { companyId?: string; dueDate?: Date; extendedDueDate?: Date; externalInformation?: ExternalInformation; history?: string[]; invoice?: string | Invoice; netValue?: number; workerOrders?: WorkerOrder[]; payments?: Payment[]; status?: string; totalValue?: number; type?: TransactionTypes; workerId?: string; contract?: string | Contract; discountValue?: number; migrated?: boolean; processingTriesCount?: number; blocked?: boolean; }