Class fITALIANFISCALTOOLS


  • public class fITALIANFISCALTOOLS
    extends Object
    italian fiscal tools functions
    • Constructor Detail

      • fITALIANFISCALTOOLS

        public fITALIANFISCALTOOLS()
    • Method Detail

      • CalculateItalianFiscalCode

        public static String CalculateItalianFiscalCode​(String xFirstName,
                                                        String xLastName,
                                                        String xBirthDate,
                                                        String xBirthTownCode,
                                                        String xSex)
                                                 throws Exception
        returns the italian fiscal code (codice fiscale italiano)
        Parameters:
        xFirstName - the firs tname
        xLastName - the last name
        xBirthDate - the birth date ("dd/mm/yyyy")
        xBirthTownCode - the birth town code (locality code or country code for italian fiscal agency)
        xSex - the sex (F = female, M = male)
        Throws:
        Exception
      • CheckItalianFiscalCode

        public static int CheckItalianFiscalCode​(String xItalianFiscalCode)
        check the italian fiscal code (codice fiscale italiano)
        Parameters:
        xItalianFiscalCode - the italian fiscal code to be verified returns 0 = OK, 1 = length 0, 2 = incorrect length, 3 = illegal character, 4 = control code not match
      • CheckItalianVATID

        public static int CheckItalianVATID​(String xVATID)
        check the italian VAT ID (partita IVA italiana)
        Parameters:
        xVATID - the VAT ID to be verified returns 0 = OK, 1 = length 0, 2 = incorrect length, 3 = illegal character, 4 = control code not match