Skip to content

Commit

Permalink
🎨 (#195): formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Klaus committed Dec 29, 2024
1 parent 01dc878 commit cb12ede
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit cb12ede

Please sign in to comment.