module Vhcs
  class PbProductParticipation < VhcsRecord

    self.table_name = 'PBProductParticipation'

    alias_attribute :pb_product_participation_key, :PBProductParticipationKey
    alias_attribute :pb_affiliation_key, :PBAffiliationKey
    alias_attribute :pb_product_availability_key, :PBProductAvailabilityKey
    alias_attribute :coverage_type_code, :CoverageTypeCode
    alias_attribute :optional_amount, :OptionalAmount
    alias_attribute :in_effect, :InEffect
    alias_attribute :out_of_effect, :OutOfEffect
    alias_attribute :in_effect_reason_code, :InEffectReasonCode
    alias_attribute :out_of_effect_reason_code, :OutOfEffectReasonCode
    alias_attribute :when_last_changed, :WhenLastChanged
    alias_attribute :who_last_changed, :WhoLastChanged
    alias_attribute :user_defined_rate_criteria_value_1, :UserDefinedRateCriteriaValue1
    alias_attribute :user_defined_rate_criteria_value_2, :UserDefinedRateCriteriaValue2
    alias_attribute :user_defined_rate_criteria_value_3, :UserDefinedRateCriteriaValue3
    alias_attribute :user_defined_rate_criteria_record_id_1, :UserDefinedRateCriteriaRecordID1
    alias_attribute :user_defined_rate_criteria_record_id_2, :UserDefinedRateCriteriaRecordID2
    alias_attribute :user_defined_rate_criteria_record_id_3, :UserDefinedRateCriteriaRecordID3
    alias_attribute :optional_amount_record_id, :OptionalAmountRecordID
    alias_attribute :primary_pb_affiliation_key, :PrimaryPBAffiliationKey
    alias_attribute :payment_type_record_id_g_1_7_7, :PaymentTypeRecordID_G177

    def attributes
      rails_like = {
          pb_product_participation_key: self.pb_product_participation_key,
          pb_affiliation_key: self.pb_affiliation_key,
          pb_product_availability_key: self.pb_product_availability_key,
          coverage_type_code: self.coverage_type_code,
          optional_amount: self.optional_amount,
          in_effect: self.in_effect,
          out_of_effect: self.out_of_effect,
          in_effect_reason_code: self.in_effect_reason_code,
          out_of_effect_reason_code: self.out_of_effect_reason_code,
          when_last_changed: self.when_last_changed,
          who_last_changed: self.who_last_changed,
          user_defined_rate_criteria_value_1: self.user_defined_rate_criteria_value_1,
          user_defined_rate_criteria_value_2: self.user_defined_rate_criteria_value_2,
          user_defined_rate_criteria_value_3: self.user_defined_rate_criteria_value_3,
          user_defined_rate_criteria_record_id_1: self.user_defined_rate_criteria_record_id_1,
          user_defined_rate_criteria_record_id_2: self.user_defined_rate_criteria_record_id_2,
          user_defined_rate_criteria_record_id_3: self.user_defined_rate_criteria_record_id_3,
          optional_amount_record_id: self.optional_amount_record_id,
          primary_pb_affiliation_key: self.primary_pb_affiliation_key,
          payment_type_record_id_g_1_7_7: self.payment_type_record_id_g_1_7_7,
      }
      super.merge(rails_like)
    end


  end
end