Standardized the quote style to double quotes across all TypeScript files for consistency. This includes ".ts" and ".dto" files.
33 lines
534 B
TypeScript
33 lines
534 B
TypeScript
import { ApiProperty } from "@nestjs/swagger";
|
|
import {
|
|
IsNumber,
|
|
IsPositive,
|
|
IsString,
|
|
Max,
|
|
MaxLength,
|
|
Min,
|
|
MinLength,
|
|
} from "class-validator";
|
|
export class PromoCodeDto {
|
|
@ApiProperty({
|
|
type: String,
|
|
description: "Name of the PromoCOde",
|
|
example: "FILOU10",
|
|
})
|
|
@MinLength(1)
|
|
@MaxLength(50)
|
|
@IsString()
|
|
name: string;
|
|
|
|
@ApiProperty({
|
|
type: Number,
|
|
description: "Dollars given for account creation when promoCode applied",
|
|
example: 100,
|
|
})
|
|
@IsPositive()
|
|
@Min(1)
|
|
@Max(3000)
|
|
@IsNumber()
|
|
value: number;
|
|
}
|