Skip to content

jirikapoun/fio-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fio Bank Java Client

A Java SDK for accessing the REST API of Fio Bank.

Usage

The Fio Bank Java Client is available in JitPack Maven repository, to use it from Maven add to pom.xml:

<repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
</repository>
<dependency>
    <groupId>com.github.kapoun</groupId>
    <artifactId>fio-java</artifactId>
    <version>fio-java-0.2.0</version>
</dependency>

Construct the FioClient

FioClient fio = new FioClient("yourtoken");

Get account statement

Get account statement with the given number within the given year:

FioAccountStatement statement = fio.getStatement(2016, 1);

Get account statement within the given period:

FioAccountStatement statement = fio.getStatement(LocalDate.of(2016, 1, 1), LocalDate.of(2016, 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.getStatement(2016, 1, ExportFormat.pdf, outputStream);

Export account statement within the given period:

fio.getStatement(LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 31), ExportFormat.pdf, outputStream);

Export account statement from the last download:

fio.getStatement(ExportFormat.pdf, outputStream);

Set last downloaded statement

Set last downloaded statement by date:

fio.setLast(LocalDate.of(2016, 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.

About

Fio Bank Java Client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%