module SponsoredBenefits
  module BenefitApplications
    class AcaShopCcaBenefitApplication < BenefitApplication
      include SponsoredBenefits::Concerns::AcaRatingAreaConfigConcern
      include SponsoredBenefits::Concerns::AcaShopBenefitApplicationConcern

      # Move CCA-specific PlanYear code here. e.g. Employer Attestation, SIC codes, etc

      # SIC code, frozen when the plan year is published,
      # otherwise comes from employer_profile
      field :recorded_sic_code,     type: String
      field :recorded_rating_area,  type: String

      validates_inclusion_of :recorded_rating_area, :in => market_rating_areas, :allow_nil => true
    end
  end
end
