Skip to content

Add suppressed_screens configuration support to SDK#330

Draft
Copilot wants to merge 2 commits into
feature/SDK-2612-DotNet-idv---support-configuration-for-idv-shortened-flowfrom
copilot/sub-pr-329
Draft

Add suppressed_screens configuration support to SDK#330
Copilot wants to merge 2 commits into
feature/SDK-2612-DotNet-idv---support-configuration-for-idv-shortened-flowfrom
copilot/sub-pr-329

Conversation

Copy link
Copy Markdown

Copilot AI commented Dec 11, 2025

Implements suppressed_screens configuration field to enable shortening IDV flows by omitting specific screens.

Changes

  • SDKConfig struct: Added SuppressedScreens []string field with omitempty JSON tag
  • SdkConfigBuilder: Added WithSuppressedScreens(screens []string) builder method
  • Build method: Refactored to use named field initialization and include suppressed screens
  • Tests: Added example test case demonstrating JSON serialization

Usage

sdkConfig, _ := create.NewSdkConfigBuilder().
    WithAllowsCamera().
    WithSuppressedScreens([]string{"document_selection", "confirmation"}).
    Build()
// Serializes to: {"allowed_capture_methods":"CAMERA","suppressed_screens":["document_selection","confirmation"]}

The implementation maintains backward compatibility through omitempty tag—clients not using this feature see no change in JSON output.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: mehmet-yoti <111424390+mehmet-yoti@users.noreply.github.com>
Copilot AI changed the title [WIP] Add configuration support for IDV shortened flow Add suppressed_screens configuration support to SDK Dec 11, 2025
Copilot AI requested a review from mehmet-yoti December 11, 2025 11:43
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