import { BaseStatusDto } from 'src/core/modules/infrastructure/dto/base-status.dto';
import { TaxEntity } from '../../domain/entities/tax.entity';
import { ApiProperty } from '@nestjs/swagger';
import { IsNumber, IsString } from 'class-validator';

export class TaxDto extends BaseStatusDto implements TaxEntity {
  @ApiProperty({
    type: String,
    required: true,
    example: 'PPN',
  })
  @IsString()
  name: string;

  @ApiProperty({
    type: Number,
    required: true,
    example: 10,
  })
  @IsNumber()
  value: number;
}
