export interface Voucher {
  voucher_code: string
  name: string
  phone_number: string
  is_winner: boolean
}

export interface VoucherRow {
  row_number: number
  vouchers: Voucher[]
}

export interface VoucherRowsResponse {
  rows: VoucherRow[]
  total_rows: number
  total_vouchers: number
}

export interface VoucherApiResponse {
  success: boolean
  data: VoucherRowsResponse
  errors: any
}

export interface VoucherType {
  id: number
  code: string
  type: 'discount' | 'cashback' | 'free_shipping' | 'product'
  discountType?: 'fixed' | 'percent'
  discountValue?: number
  minPurchase?: number
  validFrom: string
  validUntil: string
  isActive: boolean
}
