Skip to content

Everybody loves to pay taxes! [-_-] This library lets you calculate Italian fiscal code with ease. It also reverts it to go back from the code to every (possible) original info. --- Calcola il codice fiscale a partire dai dati personali e viceversa.

License

mattmezza/italianTaxCode

Repository files navigation

italianTaxCode

Everybody loves to pay taxes! [-_-]

This is a library to calculate Italian tax code. It can calculate a tax code from data (name, surname, sex, birth date, birth place) and data (sex, birth date, birth place) from code.

Questa libreria Java ti può essere utile se devi implementare il calcolo del codice fiscale. Supporta il calcolo del codice fiscale a partire dai dati (nome, cognome, sesso, data di nascita, luogo di nascita) e dei dati (sesso, data di nascita, luogo di nascita) a partire dal codice fiscale.

Usage

Clone or download this repository and then add the .jar provided into the building path of your java application.

Clona o scarica questa repository e poi aggiungi il .jar fornito nel building path della tua applicazione java.

Usage with gradle

compile 'me.matteomerola:codicefiscale:0.1.1' with jcenter() in the repositories

FiscalCodeCalculator fcc = new FiscalCodeCalculator();
try {
  String fiscalCode = fcc.calculateFC("Mario", "Rossi", 'M', new Date(1979, 2, 31), "Pozzilli");
  System.out.println(fiscalCode);
  System.out.println("tryin to reverse now...");
  Object[] response = fcc.reverseFC(fiscalCode);
  for(Object o : response) {
    System.out.println(o);
  }
} catch(NotSuchCityException e) {}
Trovato un bug 💩? Una funzionalità mancante 👍? Questo codice non sarà mica perfetto 😏 ! Crea una issue qui 👈!
Found a bug 💩? A missing feature 👍? This code is not perfect for sure 😏 ! Fill up an issue here 👈!

============= Matteo Merola

About

Everybody loves to pay taxes! [-_-] This library lets you calculate Italian fiscal code with ease. It also reverts it to go back from the code to every (possible) original info. --- Calcola il codice fiscale a partire dai dati personali e viceversa.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages