export type Finance = {
  id: number;
  payment_code: string;
  reference_number: string;
  transaction_type: string;
  party: FinanceParty;
  payment_date: string;
  created_at: string;
  payment_method: string;
  bank: FinanceBank;
  expense_amount: number;
  income_amount: number;
  nominal: number;
  notes: string;
};

export type FinanceParty = {
  id: number;
  name: string;
  type: string;
  account_number: string;
};
export type FinanceBank = {
  id: number;
  name: string;
  alias: string;
  owner: string;
  account_number: string;
};
export type CreateFinancePayment = {
  party_id: number;
  party_type: string;
  payment_date: string;
  payment_method: string;
  bank_id: number;
  reference_number: string;
  nominal: number;
  notes: string;
};

export type UpdateFinancePayment = CreateFinancePayment;
export type CreateInitialBalance = {
  party_type: string;
  party_id: number;
  bank_id: number;
  reference_number: string;
  initial_balance_type: string;
  nominal: number;
  note: string;
};

export type UpdateInitialBalance = CreateInitialBalance;
export type CreateInjection = {
  bank_id: number;
  adjustment_date: string;
  nominal: number;
  notes: string;
};

export type UpdateInjection = CreateInjection;
