components/financial_assistance/app/domain/financial_assistance/operations/applications/transformers/application_to/cv3_application.rb
# rubocop:disable Metrics/ClassLength
# constructs cv3 payload for medicaid gateway.
disable Metrics/ClassLength
constructs cv3 payload for medicaid gateway.
disable Metrics / ClassLength constructs cv3 payload for medicaid gateway .
def tax_households(application)
              application.eligibility_determinations.inject([]) do |result, determination|
                result << {hbx_id: (determination.hbx_assigned_id || FinancialAssistance::HbxIdGenerator.generate_member_id).to_s,
                           max_aptc: determination.max_aptc,
                           is_insurance_assistance_eligible: insurance_assistance_eligible_for(determination),
                           annual_tax_household_income: determination.aptc_csr_annual_household_income,
                           tax_household_members: get_thh_member(determination, application)}
              end
            end
def tax_households ( application ) application . eligibility_determinations . inject ( [ ] ) do | result , determination | result << { hbx_id : ( determination . hbx_assigned_id || FinancialAssistance :: HbxIdGenerator . generate_member_id ) . to_s , max_aptc : determination . max_aptc , is_insurance_assistance_eligible : insurance_assistance_eligible_for ( determination ) , annual_tax_household_income : determination . aptc_csr_annual_household_income , tax_household_members : get_thh_member ( determination , application ) } end end
rubocop:disable Metrics/ClassLength
constructs cv3 payload for medicaid gateway.
rubocop : disable Metrics / ClassLength constructs cv3 payload for medicaid gateway .
# TODO: get rid-off the HBX ID generate statement after testing.
application