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

import { PriceLineItemDto } from './generate-price-response.dto';

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

  @ApiProperty()
  status!: string;

  @ApiProperty()
  priceChanged!: boolean;

  @ApiPropertyOptional()
  previousTotalAmount?: number;

  @ApiProperty()
  totalAmount!: number;

  @ApiProperty()
  currency!: string;

  @ApiPropertyOptional({ type: [PriceLineItemDto] })
  lineItems?: PriceLineItemDto[];

  @ApiPropertyOptional()
  message?: string;
}
