Skip to content

Refactor training contract product creation logic#527

Merged
StuartFerguson merged 1 commit intomainfrom
task/#411_refactor_merchant_training_service
Apr 6, 2026
Merged

Refactor training contract product creation logic#527
StuartFerguson merged 1 commit intomainfrom
task/#411_refactor_merchant_training_service

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

Refactored TrainingMerchantService to remove hardcoded product lists. Introduced a Contract record, reusable contract instances, and helper methods to generate contract products by type. This improves code readability, maintainability, and reduces duplication.

closes #411

Refactored TrainingMerchantService to remove hardcoded product lists. Introduced a Contract record, reusable contract instances, and helper methods to generate contract products by type. This improves code readability, maintainability, and reduces duplication.
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 5 complexity · 0 duplication

Metric Results
Complexity 5
Duplication 0

View in Codacy

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

@StuartFerguson StuartFerguson merged commit 2e14559 into main Apr 6, 2026
10 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.

[Complexity] Method TrainingMerchantService::GetContractProducts has 100 lines of code (limit is 50)

1 participant