module BenefitSponsors
  module Organizations
    class AcaShopDcEmployerProfile < BenefitSponsors::Organizations::Profile
      # include BenefitSponsors::Employers::EmployerHelper
      # include BenefitSponsors::Concerns::EmployerProfileConcern

      def rating_area
        # FIX this
      end

      def sic_code
        # Fix this
      end

      def active_plan_year
      end

      # def census_employees
      #   CensusEmployee.find_by_employer_profile(self)
      # end

      private

      def site
        return @site if defined? @site
        @site = BenefitSponsors::Site.by_site_key(:dc).first
      end

      def initialize_profile
        if is_benefit_sponsorship_eligible.blank?
          write_attribute(:is_benefit_sponsorship_eligible, true)
          @is_benefit_sponsorship_eligible = true
        end

        self
      end

      def build_nested_models
        build_inbox if inbox.blank?
        #TODO: After migration uncomment the lines below to get Welcome message for Initial Inbox creation
        # welcome_subject = "Welcome to #{Settings.site.short_name}"
        # welcome_body = "#{Settings.site.short_name} is the #{Settings.aca.state_name}'s online marketplace where benefit sponsors may select and offer products that meet their member's needs and budget."
        # inbox.messages.new(subject: welcome_subject, body: welcome_body)
      end
    end
  end
end
