import { FFClient, FFClientRelationship } from '../entities/ff-client.entity';

export class ResponseFFClientDto {
  id: string;
  forwarderCompanyId: string;
  clientCompanyId: string;
  relationshipType: FFClientRelationship;
  canBookOnBehalf: boolean;
  canViewDocuments: boolean;
  createdAt: Date;
  updatedAt: Date;

  constructor(client: FFClient) {
    this.id = client.id;
    this.forwarderCompanyId = client.forwarderCompanyId;
    this.clientCompanyId = client.clientCompanyId;
    this.relationshipType = client.relationshipType;
    this.canBookOnBehalf = client.canBookOnBehalf;
    this.canViewDocuments = client.canViewDocuments;
    this.createdAt = client.createdAt;
    this.updatedAt = client.updatedAt;
  }
}
