10 lines
253 B
TypeScript
10 lines
253 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsNotEmpty, IsString } from 'class-validator';
|
|
|
|
export class ApplyCouponDto {
|
|
@ApiProperty({ description: 'Coupon code', example: 'DISCOUNT10' })
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
code!: string;
|
|
}
|