import type { PaymentMethod, ShippingMethod } from './order';

export interface CheckoutCustomerData {
  name: string;
  document: string;
  email: string;
  phone: string;
}

export interface CheckoutAddress {
  zipCode: string;
  street: string;
  number: string;
  complement?: string;
  district: string;
  city: string;
  state: string;
}

export interface CheckoutPayload {
  customer: CheckoutCustomerData;
  address: CheckoutAddress;
  shippingMethod: ShippingMethod;
  paymentMethod: PaymentMethod;
  couponCode?: string;
}

export interface PixCharge {
  qrCodeImage: string;    // data url (mocked)
  copyPasteCode: string;
  amount: number;
  status: 'aguardando' | 'pago';
  expiresAt: string;
}
