import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsNumber, IsString } from 'class-validator';

export class CreateFeeDto {
	@ApiProperty()
	@IsString()
	@IsNotEmpty()
	name: string;

	@ApiProperty()
	@IsString()
	@IsNotEmpty()
	description: string;

	@ApiProperty()
	@IsNotEmpty()
	@IsNumber()
	amount: number;

	@ApiProperty()
	@IsNotEmpty()
	@IsString()
	modifier: string;

	@ApiProperty()
	@IsNotEmpty()
	taxable: boolean;

	@ApiProperty()
	@IsNotEmpty()
	@IsString()
	type: string;
}
