Skip to content

Refactor: introduce ClientBase and update client usage#1754

Merged
StuartFerguson merged 4 commits into
masterfrom
task/various_codacy_fixes
May 4, 2026
Merged

Refactor: introduce ClientBase and update client usage#1754
StuartFerguson merged 4 commits into
masterfrom
task/various_codacy_fixes

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

Add abstract ClientBase for reusable HTTP logic with generic methods for all HTTP verbs, error handling, and custom headers. Refactor TransactionProcessorClient to inherit from ClientBase and use its methods, replacing SendHttp*Request calls. Serialization is now handled via injected delegates using Newtonsoft.Json, improving maintainability and consistency.

Add abstract ClientBase for reusable HTTP logic with generic methods for all HTTP verbs, error handling, and custom headers. Refactor TransactionProcessorClient to inherit from ClientBase and use its methods, replacing SendHttp*Request calls. Serialization is now handled via injected delegates using Newtonsoft.Json, improving maintainability and consistency.
@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented May 3, 2026

Up to standards ✅

🟢 Issues 1 minor

Results:
1 new issue

Category Results
CodeStyle 1 minor

View in Codacy

🟢 Metrics 6 complexity · 21 duplication

Metric Results
Complexity 6
Duplication 21

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

- Remove all references to messagingService scope, resource, and client from feature files and generated code
- Update transaction tables to leave CustomerEmailAddress empty for some transactions
- Comment out receipt resend scenario in feature and generated files
- Send empty StringContent in ProcessSettlement POST request
- Add result success assertion in settlement processing step
- Rename table variables in generated code for clarity
- Ensure only transactionProcessor scope is used in test setup and data
@StuartFerguson StuartFerguson merged commit 13189b7 into master May 4, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant