import { ApiProperty } from '@nestjs/swagger';

export class PriceLineItemDto {
  @ApiProperty()
  code!: string;

  @ApiProperty()
  description!: string;

  @ApiProperty()
  amount!: number;

  @ApiProperty()
  currency!: string;
}

export class GeneratePriceResponseDto {
  @ApiProperty()
  bookingId!: string;

  @ApiProperty()
  totalAmount!: number;

  @ApiProperty()
  currency!: string;

  @ApiProperty({ type: [PriceLineItemDto] })
  lineItems!: PriceLineItemDto[];

  @ApiProperty({ type: [String] })
  warnings!: string[];
}
