VCST-3963: Enhance Capture and Refund classes with auditable fields#470
VCST-3963: Enhance Capture and Refund classes with auditable fields#470
Conversation
feat: Enhance Capture and Refund classes with auditable fields.
There was a problem hiding this comment.
Pull Request Overview
Adds auditable tracking to Capture and Refund operations and refactors change logging to centralize auditable property processing.
- Adds [Auditable] attributes to selected properties in Capture and Refund models.
- Refactors LogChangesOrderChangedEventHandler to extract auditable property resolution and difference calculation into dedicated methods.
- Extends change tracking to include Capture and Refund types in difference evaluation.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/VirtoCommerce.OrdersModule.Data/Handlers/LogChangesOrderChangedEventHandler.cs | Refactored logging logic: extracted auditable property retrieval and difference computation; added handling for Capture and Refund differences. |
| src/VirtoCommerce.OrdersModule.Core/Model/Refund.cs | Marked key properties with [Auditable] to enable change logging. |
| src/VirtoCommerce.OrdersModule.Core/Model/Capture.cs | Marked key properties with [Auditable] (amount, vendor, transaction, close flag). |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
src/VirtoCommerce.OrdersModule.Data/Handlers/LogChangesOrderChangedEventHandler.cs
Show resolved
Hide resolved
src/VirtoCommerce.OrdersModule.Data/Handlers/LogChangesOrderChangedEventHandler.cs
Show resolved
Hide resolved
src/VirtoCommerce.OrdersModule.Data/Handlers/LogChangesOrderChangedEventHandler.cs
Show resolved
Hide resolved
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.929
Timestamp: 01-10-2025T15:59:59
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.39
Timestamp: 02-10-2025T10:32:06
|



Description
feat: Enhance Capture and Refund classes with auditable fields.
References
QA-test:
Jira-link:
https://virtocommerce.atlassian.net/browse/VCST-3963
Artifact URL:
https://vc3prerelease.blob.core.windows.net/packages/VirtoCommerce.Orders_3.860.0-pr-470-1475.zip