feat/working on update card control

This commit is contained in:
Abdalhamid Alhamad
2025-07-14 11:57:51 +03:00
parent 038b8ef6e3
commit 5a780eeb17
15 changed files with 263 additions and 28 deletions

View File

@ -58,6 +58,24 @@ export class CustomerResponseDto {
@ApiProperty()
waitingNumber!: number;
@ApiProperty()
country!: string | null;
@ApiProperty()
region!: string | null;
@ApiProperty()
city!: string | null;
@ApiProperty()
neighborhood!: string | null;
@ApiProperty()
street!: string | null;
@ApiProperty()
building!: string | null;
@ApiPropertyOptional({ type: DocumentMetaResponseDto })
profilePicture!: DocumentMetaResponseDto | null;
@ -80,7 +98,12 @@ export class CustomerResponseDto {
this.isJunior = customer.isJunior;
this.isGuardian = customer.isGuardian;
this.waitingNumber = customer.waitingNumber;
this.country = customer.country;
this.region = customer.region;
this.city = customer.city;
this.neighborhood = customer.neighborhood;
this.street = customer.street;
this.building = customer.building;
this.profilePicture = customer.profilePicture ? new DocumentMetaResponseDto(customer.profilePicture) : null;
}
}