Class SocureDocumentVerificationEnrichmentParser
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
-
objectSocureDocumentVerificationEnrichmentParser
Methods
ExtractDocumentDecisionValue(JsonElement)
public static string? ExtractDocumentDecisionValue(JsonElement enrichmentResponse)
Parameters
enrichmentResponseJsonElement
Returns
- string
ExtractReasonCodes(JsonElement)
public static IReadOnlyList<string> ExtractReasonCodes(JsonElement enrichmentResponse)
Parameters
enrichmentResponseJsonElement
Returns
- IReadOnlyList<string>
HasDocumentVerification(JsonElement)
public static bool HasDocumentVerification(JsonElement response)
Parameters
responseJsonElement
Returns
- bool
TryGetEnrichmentResponse(IEnumerable<SocureEnrichmentResponseRef>, string)
public static JsonElement? TryGetEnrichmentResponse(IEnumerable<SocureEnrichmentResponseRef> enrichments, string docvEnrichmentProviderName)
Parameters
enrichmentsIEnumerable<SocureEnrichmentResponseRef>docvEnrichmentProviderNamestring
Returns
- JsonElement?