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

export class InAppPaymentReceiptDto {
  @ApiProperty({ example: true })
  success!: boolean;

  @ApiProperty({ example: 'TELEBIRR' })
  provider!: string;

  @ApiProperty({ example: 'TB-BK-2026-000123-1717584000000' })
  providerRef!: string;

  @ApiProperty({ example: 15000 })
  amount!: number;

  @ApiProperty({ example: 'ETB' })
  currency!: string;

  @ApiProperty({ example: '2026-06-05T12:00:00.000Z' })
  paidAt!: string;
}

export class PayBookingResponseDto {
  @ApiProperty({ type: InAppPaymentReceiptDto })
  paymentReceipt!: InAppPaymentReceiptDto;
}
