Skip to content

Commit

Permalink
add constants to avoid code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
giulia-tremolada committed Jan 13, 2025
1 parent 7e98fa8 commit 2642952
Showing 1 changed file with 31 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,27 +64,37 @@ public class ContractServiceDefault implements ContractService {

private final String logoPath;

private static final String INSTITUTION_DESCRIPTION_HEADER = "Ragione Sociale";
private static final String PEC_HEADER = "PEC";
private static final String FISCAL_CODE_HEADER = "Codice Fiscale";
private static final String PIVA_HEADER = "P.IVA";
private static final String REGISTERED_OFFICE_ADDRESS = "Sede legale - Indirizzo";
private static final String REGISTERED_OFFICE_CITY = "Sede legale - Citta'";
private static final String REGISTERED_OFFICE_COUNTY = "Sede legale - Provincia (Sigla)";



private static final String[] CSV_HEADERS_IO = {
"Ragione Sociale",
"PEC",
"Codice Fiscale",
"P.IVA",
"Sede legale - Indirizzo",
"Sede legale - Citta'",
"Sede legale - Provincia (Sigla)",
INSTITUTION_DESCRIPTION_HEADER,
PEC_HEADER,
FISCAL_CODE_HEADER,
PIVA_HEADER,
REGISTERED_OFFICE_ADDRESS,
REGISTERED_OFFICE_CITY,
REGISTERED_OFFICE_COUNTY,
"Codice IPA",
"AOO/UO",
"Codice Univoco"
};

private static final String[] CSV_HEADERS_PAGOPA = {
"Ragione Sociale",
"PEC",
"Codice Fiscale",
"P.IVA",
"Sede legale - Indirizzo",
"Sede legale - Citta'",
"Sede legale - Provincia (Sigla)",
INSTITUTION_DESCRIPTION_HEADER,
PEC_HEADER,
FISCAL_CODE_HEADER,
PIVA_HEADER,
REGISTERED_OFFICE_ADDRESS,
REGISTERED_OFFICE_CITY,
REGISTERED_OFFICE_COUNTY,
"Ragione Sociale Partener Tecnologico",
"Codice Fiscale Partner Tecnologico",
"IBAN",
Expand All @@ -93,14 +103,14 @@ public class ContractServiceDefault implements ContractService {
};

private static final String[] CSV_HEADERS_SEND = {
"Ragione Sociale",
"PEC",
"Codice Fiscale",
"P.IVA",
INSTITUTION_DESCRIPTION_HEADER,
PEC_HEADER,
FISCAL_CODE_HEADER,
PIVA_HEADER,
"Codice SDI",
"Sede legale - Indirizzo",
"Sede legale - Citta'",
"Sede legale - Provincia (Sigla)",
REGISTERED_OFFICE_ADDRESS,
REGISTERED_OFFICE_CITY,
REGISTERED_OFFICE_COUNTY,
"Codice IPA",
"AOO/UO",
"Codice Univoco",
Expand Down

0 comments on commit 2642952

Please sign in to comment.