Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#99 Add QR generator and related tests in ksef-qr module #100

Merged
merged 2 commits into from
Dec 22, 2023
Merged

Conversation

alapierre
Copy link
Owner

This commit introduces a new QR generator in the ksef-qr module that uses Google ZXing library for QR code generation. The generator includes methods for generating a verification link based on the environment, KSeF number, and invoice data, and for generating the actual QR code as an image. It also includes small unit tests to confirm the functionality.

This commit introduces a new QR generator in the ksef-qr module that uses Google ZXing library for QR code generation. The generator includes methods for generating a verification link based on the environment, KSeF number, and invoice data, and for generating the actual QR code as an image. It also includes small unit tests to confirm the functionality.
@karolbryzgiel
Copy link
Collaborator

Opcjonalnie można umieścić przykład wykorzystania kodu generującego link weryfikacyjny oraz kod QR

QR code generation within the QrGenerator class has been refactored to include a new output stream parameter for flexibility in saving generated barcodes. Custom exception 'BarcodeGenerationException' handling has also been introduced to categorize exceptions that occur during the barcode creation process. Furthermore, the previous exceptions have been replaced with this new custom one in the method signatures. In makes code more flexible if in the future, we need to change an underline library used for barcode generation.
Copy link

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

2 New issues
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@alapierre alapierre merged commit 425176f into master Dec 22, 2023
2 of 3 checks passed
@alapierre alapierre deleted the qr-code branch December 22, 2023 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants