diff --git a/backend/app.hopps.az-document-ai/src/main/java/app/hopps/AzureAiService.java b/backend/app.hopps.az-document-ai/src/main/java/app/hopps/AzureAiService.java index 1f04f05d..2697cbac 100644 --- a/backend/app.hopps.az-document-ai/src/main/java/app/hopps/AzureAiService.java +++ b/backend/app.hopps.az-document-ai/src/main/java/app/hopps/AzureAiService.java @@ -85,7 +85,10 @@ private Document scanDocument(String modelId, URL documentUrl) { private byte[] fetchDocument(URL documentUrl) { try { FinRestClientImpl finRestClient = new FinRestClientImpl(documentUrl); - String accessToken = tokensHelper.getTokens(oidcClient).await().atMost(Duration.ofSeconds(3)).getAccessToken(); + String accessToken = tokensHelper.getTokens(oidcClient) + .await() + .atMost(Duration.ofSeconds(3)) + .getAccessToken(); return finRestClient.getDocumentBase64(accessToken); } catch (URISyntaxException e) { diff --git a/backend/app.hopps.zugferd/src/main/java/app/hopps/zugferd/model/AddressHelper.java b/backend/app.hopps.zugferd/src/main/java/app/hopps/zugferd/model/AddressHelper.java index 2357921d..9b1f591b 100644 --- a/backend/app.hopps.zugferd/src/main/java/app/hopps/zugferd/model/AddressHelper.java +++ b/backend/app.hopps.zugferd/src/main/java/app/hopps/zugferd/model/AddressHelper.java @@ -8,6 +8,7 @@ private AddressHelper() { } public static Address fromZugferd(Invoice invoice) { - return new Address(invoice.getOwnCountry(), invoice.getOwnZIP(), null, invoice.getOwnLocation(), invoice.getOwnStreet(), null); + return new Address(invoice.getOwnCountry(), invoice.getOwnZIP(), null, invoice.getOwnLocation(), + invoice.getOwnStreet(), null); } }