GitHub - martiner/fio-java: Fio Bank Java Client
A Java SDK for accessing the REST API of Fio Bank.
Usage
The Fio Bank Java Client is available in Maven Central Repository, to use it from Maven add to pom.xml:
<dependency> <groupId>cz.geek</groupId> <artifactId>fio-java</artifactId> <version>0.5.1</version> </dependency>
Spring Boot autoconfiguration
The provided autoconfiguration will create the FioClient bean with the fio.client.token property.
Construct the FioClient manually
FioClient fio = new FioClient("yourtoken");
Get account statement
Get account statement with the given number within the given year:
FioAccountStatement statement = fio.getStatement(2026, 1);
Get account statement within the given period:
FioAccountStatement statement = fio.getStatement(LocalDate.of(2026, 1, 1), LocalDate.of(2026, 1, 31));
Get account statement from the last download:
FioAccountStatement statement = fio.getStatement();
Export account statement
Export account statement with the given number within the given year:
fio.exportStatement(2026, 1, ExportFormat.pdf, outputStream);
Export account statement within the given period:
fio.exportStatement(LocalDate.of(2026, 1, 1), LocalDate.of(2026, 1, 31), ExportFormat.pdf, outputStream);
Export account statement from the last download:
fio.exportStatement(ExportFormat.pdf, outputStream);
Set last downloaded statement
Set last downloaded statement by date:
fio.setLast(LocalDate.of(2026, 1, 1));
Set last downloaded statement by transaction id:
fio.setLast("1147608198");
Documentation
XML Schemas
License
The Fio Bank Java Client is free and open-source software under BSD License.
Development
Run unit tests
Run integration tests (against the live API with a real token)
export TOKEN=$(cat) ./mvnw verify
Releasing
export TOKEN=$(cat) export GPG_TTY=$(tty) ./mvnw release:prepare sleep 30 # prevent too many requests on FIO API ./mvnw release:perform