components/financial_assistance/app/domain/financial_assistance/operations/transfers/medicaid_gateway/account_transfer_out.rb
def construct_payload(family, application)
            result = FinancialAssistance::Operations::Transformers::FamilyTo::Cv3Family.new.call(family)
            return result unless result.success?
            family_hash = result.value!
            app_hash = family_hash[:magi_medicaid_applications].find{ |a| a[:hbx_id] == application.hbx_id }
            family_hash[:magi_medicaid_applications] = app_hash || {}
            fam = {family: family_hash}
            Success(fam)
          end
# Sends the account transfer of application and family to the Medicaid Gateway
Sends the account transfer of application and family to the Medicaid Gateway
Sends the account transfer of application and family to the Medicaid Gateway
def construct_payload(family, application)
            result = FinancialAssistance::Operations::Transformers::FamilyTo::Cv3Family.new.call(family)
            return result unless result.success?
            family_hash = result.value!
            app_hash = family_hash[:magi_medicaid_applications].find{ |a| a[:hbx_id] == application.hbx_id }
            family_hash[:magi_medicaid_applications] = app_hash || {}
            fam = {family: family_hash}
            Success(fam)
          end
def construct_payload ( family , application ) result = FinancialAssistance :: Operations :: Transformers :: FamilyTo :: Cv3Family . new . call ( family ) return result unless result . success? family_hash = result . value! app_hash = family_hash [ :magi_medicaid_applications ] . find { | a | a [ :hbx_id ] == application . hbx_id } family_hash [ :magi_medicaid_applications ] = app_hash || { } fam = { family : family_hash } Success ( fam ) end
Sends the account transfer of application and family to the Medicaid Gateway
Sends the account transfer of application and family to the Medicaid Gateway
family
application