class Payjunction::ConvenienceFee < ApplicationRecord
  TYPE = {
    fixed: 'Payjunction::FixedFee',
    percent: 'Payjunction::PercentFee'
  }

  belongs_to :account

  has_one :accounting_subcategory

  validates :accounting_subcategory_id, presence: true
  validates :amount, presence: true
end
