neptune-back/src/promoCode/dto/promoCode.dto.ts
Mathis 8ea217fe9f
Normalize quote usage in imports
Standardized the quote style to double quotes across all TypeScript files for consistency. This includes ".ts" and ".dto" files.
2024-11-12 13:37:29 +01:00

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;
}