class Payjunction::CredentialDecorator < ApplicationDecorator
  def path
    if new_record?
      h.new_accounting_payjunction_credential_path
    else
      h.edit_accounting_payjunction_credential_path(self)
    end
  end

  def path_name
    if new_record?
      'Enter API Credentials'
    else
      'Change API Credentials'
    end
  end
end
