class FakeDB
  require 'securerandom'

  def initialize
  end

  def insert_adjustment_file_record(period_id, filename)
    SecureRandom.rand(100000)
  end

  def insert(data)
    SecureRandom.rand(100000)
  end

  def insert_abacus_event(period_id, adjustment_file_id)
    SecureRandom.rand(100000)
  end

  def insert_adjustment_file_record(period_id, filename)
    SecureRandom.rand(100000)
  end

  def insert_ledger_adjustment(abacus_event_id, data)
    SecureRandom.rand(100000)
  end

  def insert_ledger_adjustment_detail(data)
    SecureRandom.rand(100000)
  end

  def get_aggregated_expenses(record_ids)
    [{account_id: SecureRandom.rand(100000),
      contract_id: SecureRandom.rand(100000),
      amount: 50,
      currency: 'USD',
      count: 1,
      activity_period_id: 284,
      apply_period_id: 284,
      comment: nil,
      adjustment_type_id: 65,
      ledger_adjustment_detail_ids: "1, 2, 4"}]
  end

  def insert_adjustment_detail_join_records(record_id, ids, count)
  end

  def get_adjustment_type_id(adjustment_type)
    return 1 if adjustment_type == 'Label Earnings'
    return 78  if adjustment_type == 'Physical Coop'
    nil
  end

  def check_period_is_open(period_id)
    return 283 if period_id == 283
    return 284 if period_id == 284
    nil
  end

  def get_period_id(month, year)
    return 283 if month == 8 && year == 2022
    return 284 if month == 9 && year == 2022
    return 282 if month == 7 && year == 2022
    nil
  end

  def verify_account_id(account_id)
    return 21989 if account_id == 21989
    nil
  end

  def verify_contract_id(contract_id, account_id)
    return 500073 if contract_id == 500073 && account_id == 21989
    return 500074 if contract_id == 500074 && account_id == 21989
    nil
  end

  def upc_label_cache_hits

  end

  def contract_label_owns_upc?(contract, upc)
  end

  def check_upc_display_upc_mapping(x, y)

  end

  def check_contract_has_upc_attached_ignore_leading_zero(contract, upc)
  end

  def check_contract_has_upc_attached_ignore_all_leading_zeros(contract, upc)
  end

  def check_contract_has_upc_attached(contract, upc)

  end


end


