import { FormControl, FormGroup } from '@angular/forms';

export type PaymentMethod = 'qr' | 'transfer';
export type TransferField = 'cvu' | 'alias';
export type QrPaymentStatus = 'idle' | 'waiting' | 'timed_out' | 'failed';
export type TransferValidationStatus = 'idle' | 'checking' | 'error';

export interface PaymentMethodOption {
  id: PaymentMethod;
  label: string;
}

export interface TransferAccount {
  titular: string;
  entidad: string;
  cvu: string;
  alias: string;
}

export type CheckoutForm = FormGroup<{
  nombre: FormControl<string>;
  email: FormControl<string>;
  dni: FormControl<string>;
  telefono: FormControl<string>;
}>;
