import { BaseStatusDto } from 'src/core/modules/infrastructure/dto/base-status.dto';
import { TermConditionEntity } from '../../domain/entities/term-condition.entity';
import { ApiProperty } from '@nestjs/swagger';
import { IsString } from 'class-validator';
import { Exclude } from 'class-transformer';

export class TermConditionDto
  extends BaseStatusDto
  implements TermConditionEntity
{
  @Exclude()
  sort_order: number;

  @ApiProperty({
    type: String,
    required: true,
    example: 'Booking',
  })
  @IsString()
  title: string;

  @ApiProperty({
    type: String,
    required: false,
    example: 'Booking descs',
  })
  description: string;
}
