Skip to content

Latest commit

 

History

426 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flexibee CircleCI Maven Central

It's unofficial Java library for Flexibee.eu. The library offers a set of Flexibee API objects for creating invoices via its REST API.

Usage

Maven

<dependency>
    <groupId>com.adleritech</groupId>
    <artifactId>flexibee</artifactId>
    <version>0.0.12</version>
</dependency>

Gradle

compile "com.adleritech:flexibee:0.0.12"

To create an invoice and send it to Flexibee, you can use the following code snippet:

WinstromRequest request = WinstromRequest.builder()
        .issuedInvoice(IssuedInvoice.builder()
                .company("code:ABCFIRM1#")
                .documentType("code:FAKTURA")
                .items(Arrays.asList(
                        IssuedInvoiceItem.builder()
                                .name("Invoice line")
                                .amount(1)
                                .unitPrice(128_140.96)
                                .vatRate(21d).build()
                ))
                .build()).build();

FlexibeeClient flexibeeClient = new FlexibeeClient("winstrom", "winstrom", "demo");
WinstromResponse response = flexibeeClient.createInvoice(request);

For more examples please check tests.

Dev

Troubleshooting

Before package release you might have to run export GPG_TTY=$(tty).

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

13 watching

Forks

Releases

Packages

Used by

Contributors

Languages