Skip to content

VCST-3963: Enhance Capture and Refund classes with auditable fields#470

Merged
OlegoO merged 3 commits intodevfrom
feat/VCST-3963
Oct 8, 2025
Merged

VCST-3963: Enhance Capture and Refund classes with auditable fields#470
OlegoO merged 3 commits intodevfrom
feat/VCST-3963

Conversation

@OlegoO
Copy link
Contributor

@OlegoO OlegoO commented Oct 1, 2025

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

feat:  Enhance Capture and Refund classes with auditable fields.
@OlegoO OlegoO requested a review from Copilot October 1, 2025 15:38
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Contributor

@vc-ci vc-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.929
Timestamp: 01-10-2025T15:59:59

Copy link
Contributor

@vc-ci vc-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.39
Timestamp: 02-10-2025T10:32:06

@OlegoO OlegoO merged commit e2cf85b into dev Oct 8, 2025
1 of 2 checks passed
@OlegoO OlegoO deleted the feat/VCST-3963 branch October 8, 2025 08:47
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 8, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants