components/financial_assistance/app/domain/financial_assistance/operations/transformers/family_to/cv3_family.rb
def transform_family_members(family_members)
            family_members.collect do |member|
              {
                hbx_id: member.hbx_id,
                is_primary_applicant: member.is_primary_applicant,
                # foreign_keys
                is_consent_applicant: member.is_consent_applicant,
                is_coverage_applicant: member.is_coverage_applicant,
                is_active: member.is_active,
                # magi_medicaid_application_applicants: transform_applicants(member.magi_medicaid_application_applicants),
                person: transform_person(member.person),
                timestamp: {created_at: member.created_at.to_datetime, modified_at: member.updated_at.to_datetime}
              }
            end
          end
# Constructs cv3 payload including family and FA Application
Constructs cv3 payload including family and FA Application
Constructs cv3 payload including family and FA Application
def transform_family_members(family_members)
            family_members.collect do |member|
              {
                hbx_id: member.hbx_id,
                is_primary_applicant: member.is_primary_applicant,
                is_consent_applicant: member.is_consent_applicant,
                is_coverage_applicant: member.is_coverage_applicant,
                is_active: member.is_active,
                person: transform_person(member.person),
                timestamp: {created_at: member.created_at.to_datetime, modified_at: member.updated_at.to_datetime}
              }
            end
          end
def transform_family_members ( family_members ) family_members . collect do | member | { hbx_id : member . hbx_id , is_primary_applicant : member . is_primary_applicant , is_consent_applicant : member . is_consent_applicant , is_coverage_applicant : member . is_coverage_applicant , is_active : member . is_active , person : transform_person ( member . person ) , timestamp : { created_at : member . created_at . to_datetime , modified_at : member . updated_at . to_datetime } } end end
Constructs cv3 payload including family and FA Application
Constructs cv3 payload including family and FA Application
# foreign_keys # magi_medicaid_application_applicants: transform_applicants(member.magi_medicaid_application_applicants),
family_members