Skip to content

SDK-2737: Expose IDV breakdown process property in .NET SDK#549

Open
mehmet-yoti wants to merge 2 commits into
developmentfrom
SDK-2737-expose-idv-breakdown-process-property
Open

SDK-2737: Expose IDV breakdown process property in .NET SDK#549
mehmet-yoti wants to merge 2 commits into
developmentfrom
SDK-2737-expose-idv-breakdown-process-property

Conversation

@mehmet-yoti

Copy link
Copy Markdown
Contributor

Description

This PR exposes the process property on IDV breakdown items retrieved from session reports, enabling clients to query whether a breakdown was processed through AUTOMATED or EXPERT_REVIEW channels.

Changes

  • Model Update: Added Process property to BreakdownResponse.cs with JSON mapping to the process field from API responses
  • Test Coverage: Updated CheckResponseTests with:
    • Process field in breakdown fixture
    • Assertion validation for parsed process values
    • Additional test case for EXPERT_REVIEW process value

Motivation

The process field was already exposed in Java and PHP SDKs but missing from the .NET SDK. This change brings parity across SDKs and allows developers to distinguish between automated and expert-reviewed breakdown decisions.

API Contract

The process field is optional in the IDV session report response. Supported values:

  • AUTOMATED - Automated processing
  • EXPERT_REVIEW - Expert review processing

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for the optional process field on Doc Scan session report breakdown items, allowing SDK consumers to distinguish whether a breakdown was processed via AUTOMATED or EXPERT_REVIEW.

Changes:

  • Added Process to BreakdownResponse with JSON mapping to the process field.
  • Updated CheckResponseTests fixtures/assertions and added a test for the EXPERT_REVIEW value.
  • Added *.lscache to .gitignore, but also (accidentally) committed multiple *.csproj.lscache cache files.

Reviewed changes

Copilot reviewed 8 out of 10 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/Yoti.Auth/DocScan/Session/Retrieve/BreakdownResponse.cs Exposes the process field on breakdown items via a new Process property.
test/Yoti.Auth.Tests/DocScan/Session/Retrieve/Check/CheckResponseTests.cs Extends breakdown parsing tests to cover process values (including EXPERT_REVIEW).
.gitignore Ignores *.lscache going forward.
test/Yoti.Auth.Tests/Yoti.Auth.Tests.csproj.lscache Editor cache file added to PR; should be removed from source control.
test/Yoti.Auth.Tests.Common/Yoti.Auth.Tests.Common.csproj.lscache Editor cache file added to PR; should be removed from source control.
src/Yoti.Auth/Yoti.Auth.csproj.lscache Editor cache file added to PR; should be removed from source control.
src/Examples/Profile/CoreExample/CoreExample.csproj.lscache Editor cache file added to PR; should be removed from source control.
src/Examples/DocScan/DocScanExample/DocScanExample.csproj.lscache Editor cache file added to PR; should be removed from source control.
src/Examples/DigitalIdentity/DigitalIdentity/DigitalIdentityExample.csproj.lscache Editor cache file added to PR; should be removed from source control.
src/Examples/Aml/AmlExample/AmlExample.csproj.lscache Editor cache file added to PR; should be removed from source control.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +5
version=1

# This file caches language service data to improve the performance of C# Dev Kit.
# It is not intended for manual editing. It can safely be deleted and will be
# regenerated automatically. For more information, see https://aka.ms/lscache
Comment on lines +1 to +5
version=1

# This file caches language service data to improve the performance of C# Dev Kit.
# It is not intended for manual editing. It can safely be deleted and will be
# regenerated automatically. For more information, see https://aka.ms/lscache
Comment on lines +1 to +5
version=1

# This file caches language service data to improve the performance of C# Dev Kit.
# It is not intended for manual editing. It can safely be deleted and will be
# regenerated automatically. For more information, see https://aka.ms/lscache
Comment on lines +1 to +5
version=1

# This file caches language service data to improve the performance of C# Dev Kit.
# It is not intended for manual editing. It can safely be deleted and will be
# regenerated automatically. For more information, see https://aka.ms/lscache
Comment on lines +1 to +5
version=1

# This file caches language service data to improve the performance of C# Dev Kit.
# It is not intended for manual editing. It can safely be deleted and will be
# regenerated automatically. For more information, see https://aka.ms/lscache
Comment on lines +1 to +5
version=1

# This file caches language service data to improve the performance of C# Dev Kit.
# It is not intended for manual editing. It can safely be deleted and will be
# regenerated automatically. For more information, see https://aka.ms/lscache
Comment on lines +1 to +5
version=1

# This file caches language service data to improve the performance of C# Dev Kit.
# It is not intended for manual editing. It can safely be deleted and will be
# regenerated automatically. For more information, see https://aka.ms/lscache
@@ -106,6 +106,24 @@ public void CheckBreakdownResponseIsParsed()
AssertBreakdownResponseValuesCorrect(breakdownResponse, response);
}

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.

2 participants