update : update variant dto

This commit is contained in:
morteza-mortezai
2025-10-27 19:31:08 +03:30
parent a6e0908576
commit afadc8179d
@@ -136,6 +136,24 @@ export class UpdateVariantDTO {
@IsValidPersianDate()
@ApiProperty({ type: "string", description: "duration for special sale ", example: "1403/08/12" })
specialSale_endDate?: string;
@Expose()
@IsOptional()
@IsNotEmpty()
@ApiProperty({ type: "number", description: "the height of product package in cm", example: 25 })
package_height: number;
@Expose()
@IsOptional()
@IsNotEmpty()
@ApiProperty({ type: "number", description: "the length of product package in cm", example: 45 })
package_length: number;
@Expose()
@IsOptional()
@IsNotEmpty()
@ApiProperty({ type: "number", description: "the width of product package in cm", example: 10 })
package_width: number;
}
export class ActivateVariantDTO {