class CdsImporter
  class EntityMapper
    class MeasureActionDescriptionMapper < BaseMapper
      self.entity_class = "MeasureActionDescription".freeze

      self.mapping_root = "MeasureAction".freeze

      self.mapping_path = "measureActionDescription".freeze

      self.exclude_mapping = ["validityStartDate", "validityEndDate", "metainfo.origin"].freeze

      self.entity_mapping = base_mapping.merge(
        "actionCode" => :action_code,
        "#{mapping_path}.language.languageId" => :language_id,
        "#{mapping_path}.description" => :description
      ).freeze

      self.entity_mapping_key_as_array = mapping_with_key_as_array.freeze

      self.entity_mapping_keys_to_parse = mapping_keys_to_parse.freeze
    end
  end
end
