import { ICollectionAuditedEntity } from './Common'; export interface ICreditor extends ICollectionAuditedEntity { name: string; legalName?: string; taxId?: string; externalReferences?: { system: string; externalId: string; }[]; enabled: boolean; } export interface IDebtPortfolio extends ICollectionAuditedEntity { creditorId: string; name: string; description?: string; currency: string; decimalPlaces: number; enabled: boolean; defaultAssignedGroupId?: string; interestConfigurationId?: string; paymentPlanFailurePolicyId?: string; promiseMonitoringPolicyId?: string; commissionRuleSetId?: string; } export declare enum DebtBatchStatus { PENDING = "PENDING", PROCESSING = "PROCESSING", COMPLETED = "COMPLETED", COMPLETED_WITH_ERRORS = "COMPLETED_WITH_ERRORS", FAILED = "FAILED", CANCELLED = "CANCELLED" } export interface IDebtBatchError { rowNumber?: number; externalRowId?: string; fieldName?: string; code: string; message: string; } export interface IDebtBatch extends ICollectionAuditedEntity { portfolioId: string; name: string; referencePeriod?: string; status: DebtBatchStatus; sourceFileAttachmentId?: string; totalRows: number; acceptedRows: number; rejectedRows: number; errors?: IDebtBatchError[]; processingStartedAt?: Date; processingCompletedAt?: Date; }