export interface Invoice {
  id: string;
  amount: number;
  paid: boolean;
  memo: string;
}

export function createInvoice(input: Partial<Invoice> = {}): Invoice {
  return {
    id: input.id ?? '',
    amount: input.amount ?? 0,
    paid: input.paid ?? false,
    memo: input.memo ?? '',
  };
}
