Table of Contents

Class SocureDocumentVerificationEnrichmentParser

Namespace
SEBT.Portal.Core.Services.Socure
Assembly
SEBT.Portal.Core.dll

Parses Socure DocV fields from evaluation/webhook enrichment responses. Prefers the configured enrichment_provider, then falls back to any enrichment whose response contains documentVerification.

public static class SocureDocumentVerificationEnrichmentParser
Inheritance
object
SocureDocumentVerificationEnrichmentParser

Methods

ExtractDocumentDecisionValue(JsonElement)

public static string? ExtractDocumentDecisionValue(JsonElement enrichmentResponse)

Parameters

enrichmentResponse JsonElement

Returns

string

ExtractReasonCodes(JsonElement)

public static IReadOnlyList<string> ExtractReasonCodes(JsonElement enrichmentResponse)

Parameters

enrichmentResponse JsonElement

Returns

IReadOnlyList<string>

HasDocumentVerification(JsonElement)

public static bool HasDocumentVerification(JsonElement response)

Parameters

response JsonElement

Returns

bool

TryGetEnrichmentResponse(IEnumerable<SocureEnrichmentResponseRef>, string)

public static JsonElement? TryGetEnrichmentResponse(IEnumerable<SocureEnrichmentResponseRef> enrichments, string docvEnrichmentProviderName)

Parameters

enrichments IEnumerable<SocureEnrichmentResponseRef>
docvEnrichmentProviderName string

Returns

JsonElement?