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

Including changes from Cloud RT Device #380

Merged
merged 13 commits into from
Jan 28, 2025
Merged

Conversation

StefanKert
Copy link
Member

@StefanKert StefanKert commented Jan 22, 2025

Fixes #387 #386

Refactored `EpsonRTPrinterSCU` to improve design and maintainability:
- Reordered and updated `using` directives.
- Replaced `HttpClient` with `IEpsonFpMateClient` interface.
- Updated constructor to accept `IEpsonFpMateClient`.
- Removed `_serialnr` field, using local variables instead.
- Refactored methods to use `IEpsonFpMateClient` and new response models.
- Added `SetReceiptResponse` method for handling printer responses.
- Removed `FiscalReceiptResponse` class, integrated functionality.
- Added `IEpsonFpMateClient` interface and `LocalEpsonFpMateClient` implementation.
- Updated `SoapSerializer` for additional XML element replacements.

These changes enhance modularity, testability, and code clarity.
@StefanKert StefanKert requested a review from a team as a code owner January 22, 2025 06:50
StefanKert and others added 11 commits January 22, 2025 07:50
Refactored ReceiptResponseHelper and EpsonRTPrinterSCU to reduce code duplication by introducing new helper methods for setting receipt response errors and adding warning signature items. Simplified EpsonRTPrinterSCU by removing redundant methods and delegating tasks to EpsonCommandFactory. Added new methods in EpsonCommandFactory for handling charge items, unspecified protocol receipts, and generating XML commands. Moved EpsonPrinterDepartmentConfiguration to its own file for better organization.
@StefanKert StefanKert enabled auto-merge January 27, 2025 17:04
@StefanKert StefanKert disabled auto-merge January 28, 2025 07:15
@StefanKert StefanKert merged commit 269a126 into main Jan 28, 2025
13 checks passed
@StefanKert StefanKert deleted the user/ske/epson_update branch January 28, 2025 07:15
@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add warning SignaturItem for paper running out
2 participants