diff --git a/app/services/exports/organisation_export_constants.rb b/app/services/exports/organisation_export_constants.rb index a7ab2182a..3a1c5fb48 100644 --- a/app/services/exports/organisation_export_constants.rb +++ b/app/services/exports/organisation_export_constants.rb @@ -20,6 +20,8 @@ module Exports::OrganisationExportConstants "deleted_at", "dsa_signed", "dsa_signed_at", - "dpo_email" + "dpo_email", + "profit_status", + "group" ] end diff --git a/app/services/exports/organisation_export_service.rb b/app/services/exports/organisation_export_service.rb index 637f51239..a0cc70d6b 100644 --- a/app/services/exports/organisation_export_service.rb +++ b/app/services/exports/organisation_export_service.rb @@ -62,6 +62,9 @@ module Exports attribute_hash["dsa_signed"] = organisation.data_protection_confirmed? attribute_hash["dsa_signed_at"] = organisation.data_protection_confirmation&.signed_at attribute_hash["dpo_email"] = organisation.data_protection_confirmation&.data_protection_officer_email + attribute_hash["provider_type"] = organisation.provider_type_before_type_cast + attribute_hash["profit_status"] = nil # will need update when we add the field to the org + attribute_hash["group"] = nil # will need update when we add the field to the org attribute_hash end diff --git a/spec/fixtures/exports/organisation.xml b/spec/fixtures/exports/organisation.xml index ed4e02039..8d87da16c 100644 --- a/spec/fixtures/exports/organisation.xml +++ b/spec/fixtures/exports/organisation.xml @@ -4,7 +4,7 @@ {id} MHCLG - LA + 1 2 Marsham Street London SW1P 4DF @@ -20,5 +20,7 @@ true {dsa_signed_at} {dpo_email} + +