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 construct_payload(application, notice_options, oe_start_on, benchmark_premiums)
              payload = {family_reference: {hbx_id: find_family(application.family_id)&.hbx_assigned_id.to_s},
                         assistance_year: application.assistance_year,
                         aptc_effective_date: application.effective_date,
                         years_to_renew: application.renewal_base_year,
                         renewal_consent_through_year: application.years_to_renew,
                         is_ridp_verified: application.is_ridp_verified.present?,
                         is_renewal_authorized: application.is_renewal_authorized.present?,
                         applicants: applicants(application, benchmark_premiums),
                         relationships: application_relationships(application),
                         tax_households: tax_households(application),
                         us_state: application.us_state,
                         hbx_id: application.hbx_id,
                         oe_start_on: oe_start_on,
                         submitted_at: application.submitted_at,
                         notice_options: notice_options,
                         mitc_households: mitc_households(application),
                         mitc_tax_returns: mitc_tax_returns(application)}
              Success(payload)
            end
def construct_payload ( application , notice_options , oe_start_on , benchmark_premiums ) payload = { family_reference : { hbx_id : find_family ( application . family_id ) &. hbx_assigned_id . to_s } , assistance_year : application . assistance_year , aptc_effective_date : application . effective_date , years_to_renew : application . renewal_base_year , renewal_consent_through_year : application . years_to_renew , is_ridp_verified : application . is_ridp_verified . present? , is_renewal_authorized : application . is_renewal_authorized . present? , applicants : applicants ( application , benchmark_premiums ) , relationships : application_relationships ( application ) , tax_households : tax_households ( application ) , us_state : application . us_state , hbx_id : application . hbx_id , oe_start_on : oe_start_on , submitted_at : application . submitted_at , notice_options : notice_options , mitc_households : mitc_households ( application ) , mitc_tax_returns : mitc_tax_returns ( application ) } Success ( payload ) end
rubocop:disable Metrics/ClassLength
constructs cv3 payload for medicaid gateway.
rubocop : disable Metrics / ClassLength constructs cv3 payload for medicaid gateway .
application
notice_options
oe_start_on
benchmark_premiums