diff --git a/config/key_report_mappings/cof25_eoi_key_report_mapping.py b/config/key_report_mappings/cof25_eoi_key_report_mapping.py new file mode 100644 index 00000000..7fc7d721 --- /dev/null +++ b/config/key_report_mappings/cof25_eoi_key_report_mapping.py @@ -0,0 +1,46 @@ +from config.key_report_mappings.model import extract_postcode +from config.key_report_mappings.model import FormMappingItem +from config.key_report_mappings.model import KeyReportMapping + +COF25_EOI_KEY_REPORT_MAPPING = KeyReportMapping( + round_id="9104d809-0fb0-4144-b514-55e81cc2b6fa", + mapping=[ + FormMappingItem( + form_name="organisation-details-25", + form_name_cy="manylion-y-sefydliad", + key="SMRWjl", + return_field="organisation_name", + ), + FormMappingItem( + form_name="development-support-provider-25", + form_name_cy="darparwr-cymorth-datblygu", + key="xWnVof", + return_field="lead_contact_name", + ), + FormMappingItem( + form_name="about-your-asset-25", + form_name_cy="ynglyn-ach-ased", + key="Ihjjyi", + return_field="asset_type", + ), + FormMappingItem( + form_name="about-your-asset-25", + form_name_cy="ynglyn-ach-ased", + key="dnqIdW", + return_field="geography", + formatter=extract_postcode, + ), + FormMappingItem( + form_name="your-funding-request-25", + form_name_cy="eich-cais-am-gyllid", + key="fZAMFv", + return_field="capital", + ), + FormMappingItem( + form_name="development-support-provider-25", + form_name_cy="darparwr-cymorth-datblygu", + key="NQoGIm", + return_field="applicant_email", + ), + ], +) diff --git a/config/key_report_mappings/cof_eoi_key_report_mapping.py b/config/key_report_mappings/cof_eoi_key_report_mapping.py index 7d9a34c2..5f36ba64 100644 --- a/config/key_report_mappings/cof_eoi_key_report_mapping.py +++ b/config/key_report_mappings/cof_eoi_key_report_mapping.py @@ -3,7 +3,7 @@ from config.key_report_mappings.model import KeyReportMapping COF_EOI_KEY_REPORT_MAPPING = KeyReportMapping( - round_id=["6a47c649-7bac-4583-baed-9c4e7a35c8b3", "9104d809-0fb0-4144-b514-55e81cc2b6fa"], + round_id="6a47c649-7bac-4583-baed-9c4e7a35c8b3", mapping=[ FormMappingItem( form_name="organisation-details", diff --git a/config/key_report_mappings/mappings.py b/config/key_report_mappings/mappings.py index 85beb6fe..12fb60b1 100644 --- a/config/key_report_mappings/mappings.py +++ b/config/key_report_mappings/mappings.py @@ -1,5 +1,8 @@ from collections import defaultdict +from config.key_report_mappings.cof25_eoi_key_report_mapping import ( + COF25_EOI_KEY_REPORT_MAPPING, +) from config.key_report_mappings.cof_eoi_key_report_mapping import ( COF_EOI_KEY_REPORT_MAPPING, ) @@ -25,10 +28,11 @@ { CYP_R1_KEY_REPORT_MAPPING.round_id: CYP_R1_KEY_REPORT_MAPPING.mapping, DPIF_R2_KEY_REPORT_MAPPING.round_id: DPIF_R2_KEY_REPORT_MAPPING.mapping, + COF_EOI_KEY_REPORT_MAPPING.round_id: COF_EOI_KEY_REPORT_MAPPING.mapping, + COF25_EOI_KEY_REPORT_MAPPING.round_id: COF25_EOI_KEY_REPORT_MAPPING.mapping, COF_R2_KEY_REPORT_MAPPING.round_id: COF_R2_KEY_REPORT_MAPPING.mapping, COF_R3W2_KEY_REPORT_MAPPING.round_id: COF_R3W2_KEY_REPORT_MAPPING.mapping, **({key: COF_KEY_REPORT_MAPPING.mapping for key in COF_KEY_REPORT_MAPPING.round_id}), - **({key: COF_EOI_KEY_REPORT_MAPPING.mapping for key in COF_EOI_KEY_REPORT_MAPPING.round_id}), }, )