mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 21:08:12 +00:00
60 lines
2.0 KiB
TypeScript
60 lines
2.0 KiB
TypeScript
// src/modules/customers/dto/response-customer.dto.ts
|
|
import { Customer } from '../entities/customer.entity';
|
|
|
|
export class ResponseCustomerDto {
|
|
//UserId: string;
|
|
firstName: string;
|
|
lastName: string;
|
|
email: string;
|
|
phone: string;
|
|
companyName: string;
|
|
companyEmail: string;
|
|
companyPhone: string;
|
|
companyLocation: string;
|
|
companyAddress: string;
|
|
contactPersonName: string;
|
|
contactPersonPhone: string;
|
|
tinNumber: string;
|
|
vatNumber?: string;
|
|
fanNumber: string;
|
|
generalManagerName: string;
|
|
generalManagerEmail: string;
|
|
generalManagerPhone: string;
|
|
poaName?: string;
|
|
poaPhone?: string;
|
|
poaAddress?: string;
|
|
poaEmail?: string;
|
|
poaLocation?: string;
|
|
notes?: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
|
|
constructor(customer: Customer) {
|
|
//this.UserId = customer.userId;
|
|
this.firstName = customer.firstName;
|
|
this.lastName = customer.lastName;
|
|
this.email = customer.email;
|
|
this.phone = customer.phone;
|
|
this.companyName = customer.companyName;
|
|
this.companyEmail = customer.companyEmail;
|
|
this.companyPhone = customer.companyPhone;
|
|
this.companyLocation = customer.companyLocation;
|
|
this.companyAddress = customer.companyAddress;
|
|
this.contactPersonName = customer.contactPersonName;
|
|
this.contactPersonPhone = customer.contactPersonPhone;
|
|
this.tinNumber = customer.tinNumber;
|
|
this.vatNumber = customer.vatNumber ?? undefined;
|
|
this.fanNumber = customer.fanNumber;
|
|
this.generalManagerName = customer.generalManagerName;
|
|
this.generalManagerEmail = customer.generalManagerEmail;
|
|
this.generalManagerPhone = customer.generalManagerPhone;
|
|
this.poaName = customer.poaName ?? '';
|
|
this.poaPhone = customer.poaPhone ?? '';
|
|
this.poaAddress = customer.poaAddress ?? '';
|
|
this.poaEmail = customer.poaEmail ?? '';
|
|
this.poaLocation = customer.poaLocation ?? '';
|
|
this.notes = customer.notes ?? '';
|
|
this.createdAt = customer.createdAt;
|
|
this.updatedAt = customer.updatedAt;
|
|
}
|
|
} |