https://github.com/mattmezza/italiantaxcode
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.
https://github.com/mattmezza/italiantaxcode
code codice codicefiscale fiscal italian tax taxes
Last synced: 21 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/mattmezza/italiantaxcode
- Owner: mattmezza
- License: mit
- Created: 2014-09-16T16:16:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-09-05T21:48:13.000Z (over 5 years ago)
- Last Synced: 2025-03-16T03:22:24.576Z (about 1 month ago)
- Topics: code, codice, codicefiscale, fiscal, italian, tax, taxes
- Language: Java
- Homepage:
- Size: 271 KB
- Stars: 4
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
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`
```java
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](https://github.com/mattmezza/italianTaxCode/issues) ๐!
###### Found a bug ๐ฉ? A missing feature ๐? This code is not perfect for sure ๐ ! Fill up an issue [here](https://github.com/mattmezza/italianTaxCode/issues) ๐!
=============
_Matteo Merola_