Skip to content

Refactor voucher methods to use Result<T> for responses#637

Merged
StuartFerguson merged 1 commit into
masterfrom
refactor/#611_reduce_appsettings_hardcoded_string
Apr 8, 2026
Merged

Refactor voucher methods to use Result<T> for responses#637
StuartFerguson merged 1 commit into
masterfrom
refactor/#611_reduce_appsettings_hardcoded_string

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

@StuartFerguson StuartFerguson commented Apr 8, 2026

Refactored GetVoucher and RedeemVoucher methods (and related interfaces/tests) to return Result instead of direct DTOs, standardizing error handling and success/failure reporting. Updated tests to assert on Result and removed redundant error response helpers. Improved consistency and clarity in service method responses.

closes #611
closes #612

Refactored GetVoucher and RedeemVoucher methods (and related interfaces/tests) to return Result<T> instead of direct DTOs, standardizing error handling and success/failure reporting. Updated tests to assert on Result<T> and removed redundant error response helpers. Improved consistency and clarity in service method responses.
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · -18 duplication

Metric Results
Complexity 0
Duplication -18

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

@StuartFerguson StuartFerguson merged commit 5b27866 into master Apr 8, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant