No description
Find a file
2021-04-10 21:05:06 +02:00
.circleci Deploy step in circle-ci 2021-01-28 09:15:53 +01:00
flexibee-core [maven-release-plugin] prepare for next development iteration 2021-04-09 16:20:03 +02:00
.gitignore Internal document started 2017-11-03 10:41:59 +01:00
.settings.xml Add some fields to invoice and use Instant instead of Date 2017-02-14 10:23:45 +01:00
LICENSE.txt README and LICENCE created and deployment to ossrh 2017-02-11 12:40:01 +01:00
pom.xml [maven-release-plugin] prepare for next development iteration 2021-04-09 16:20:03 +02:00
README.md Fix a typo in README.md (#34) 2020-11-20 09:38:22 +01:00
settings.xml Deploy step in circle-ci 2021-01-28 09:36:15 +01:00

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 snipped:

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).