Early stage of project, byt for simple case sales invoice it can create valid FA(2) from Json.
- almost all annotations (except
P_18) are hardcoded in converter - only sales invoices are supported
- conversion of the invoice type was not consulted with a tax advisors (and still, only standard VAT invoice is supported)
- only payment by bank transfer and card is now supported
Sample input: gobl-ksef-converter/src/test/resources/invoice.json
Gobl gobl = new Gobl();
Invoice invoice = gobl.parseInvoice(Path.of("src/test/resources/invoice.json"));
InvoiceMapper mapper = Mappers.getMapper(InvoiceMapper.class);
Faktura faktura = mapper.invoiceToFaktura(invoice);
FakturaSerializer fakturaSerializer = new FakturaSerializer();
System.out.println(fakturaSerializer.toString(faktura, false));The project can be built on JDK17+.
Building the API client library requires:
- Java 17+
- Maven