-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename liveness to video * Split IdentityVerificationReport.cs into multiple files * Added IdentityVerificationReportVideo.Document * Added Type to IdentityVerification and IdentityVerificationCreateRequest * Rename checks to options * Rename LiveCapture to Live * Added IdentityVerificationOptionsForSelfie and IdentityVerificationOptionsForVideo * Update README.md
- Loading branch information
1 parent
a40ce43
commit c92c45c
Showing
13 changed files
with
313 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/FaluSdk/IdentityVerificationReports/AbstractIdentityVerificationReportCheck.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace Falu.IdentityVerificationReports; | ||
|
||
/// | ||
public abstract class AbstractIdentityVerificationReportCheck | ||
{ | ||
/// <summary> | ||
/// Details on the verification error. | ||
/// Present when not verified. | ||
/// </summary> | ||
public IdentityVerificationReportError? Error { get; set; } | ||
|
||
/// <summary> | ||
/// Whether the check resulted in a successful verification. | ||
/// </summary> | ||
public bool Verified { get; set; } | ||
} |
22 changes: 22 additions & 0 deletions
22
src/FaluSdk/IdentityVerificationReports/IdentityVerificationConsent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace Falu.IdentityVerificationReports; | ||
|
||
/// | ||
public class IdentityVerificationConsent | ||
{ | ||
/// <summary> | ||
/// The timestamp marking when the user gave consent for the identity verification to be done. | ||
/// </summary> | ||
public DateTimeOffset Date { get; set; } | ||
|
||
/// <summary> | ||
/// The IP address from which the user gave consent for the identity verification to be done. | ||
/// </summary> | ||
/// <example>::ffff:127.0.0.1</example> | ||
public string? IP { get; set; } | ||
|
||
/// <summary> | ||
/// The user agent of the browser from which the user gave consent for the identity verification to be done. | ||
/// </summary> | ||
/// <example>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36</example> | ||
public string? UserAgent { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 86 additions & 0 deletions
86
src/FaluSdk/IdentityVerificationReports/IdentityVerificationReportDocument.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
using Falu.Core; | ||
|
||
namespace Falu.IdentityVerificationReports; | ||
|
||
/// | ||
public class IdentityVerificationReportDocument : AbstractIdentityVerificationReportCheck | ||
{ | ||
/// <summary> | ||
/// Expiry date of the document. | ||
/// </summary> | ||
public DateTimeOffset? Expiry { get; set; } | ||
|
||
/// <summary> | ||
/// Issued date of the document. | ||
/// </summary> | ||
public DateTimeOffset? Issued { get; set; } | ||
|
||
/// <summary> | ||
/// Three-letter <see href="https://www.iso.org/iso-3166-country-codes.html">ISO country code</see>, | ||
/// in lowercase, which issued the document. | ||
/// </summary> | ||
/// <example>ken</example> | ||
public string? Issuer { get; set; } | ||
|
||
/// <summary> | ||
/// Three-letter <see href="https://www.iso.org/iso-3166-country-codes.html">ISO country code</see>, | ||
/// in lowercase, where the entity issued the document originates from. | ||
/// </summary> | ||
/// <example>ken</example> | ||
public string? Nationality { get; set; } | ||
|
||
/// <summary> | ||
/// Type of the document. | ||
/// </summary> | ||
public string? Type { get; set; } | ||
|
||
/// <summary> | ||
/// Sub type for the document | ||
/// </summary> | ||
public string? SubType { get; set; } | ||
|
||
/// <summary> | ||
/// Document identification number. | ||
/// </summary> | ||
public string? Number { get; set; } | ||
|
||
/// <summary> | ||
/// Personal number | ||
/// </summary> | ||
public string? PersonalNumber { get; set; } | ||
|
||
/// <summary> | ||
/// First name as it appears in the document. | ||
/// </summary> | ||
public string? FirstName { get; set; } | ||
|
||
/// <summary> | ||
/// Last name as it appears in the document. | ||
/// </summary> | ||
public string? LastName { get; set; } | ||
|
||
/// <summary> | ||
/// Other names as they appear in the document. | ||
/// </summary> | ||
public List<string>? OtherNames { get; set; } | ||
|
||
/// <summary> | ||
/// Sex as it appears on the document | ||
/// </summary> | ||
public string? Sex { get; set; } | ||
|
||
/// <summary> | ||
/// Date of birth as it appears in the document. | ||
/// </summary> | ||
public DateTimeOffset? Birthday { get; set; } | ||
|
||
/// <summary> | ||
/// Address as it appears in the document. | ||
/// </summary> | ||
public PhysicalAddress? Address { get; set; } | ||
|
||
/// <summary> | ||
/// Unique identifiers of the files containing images for this document. | ||
/// </summary> | ||
public List<string> Files { get; set; } = new List<string>(); | ||
} |
16 changes: 16 additions & 0 deletions
16
src/FaluSdk/IdentityVerificationReports/IdentityVerificationReportError.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace Falu.IdentityVerificationReports; | ||
|
||
/// | ||
public class IdentityVerificationReportError | ||
{ | ||
/// <summary> | ||
/// A short machine-readable string giving the reason for the verification failure. | ||
/// </summary> | ||
public string? Code { get; set; } | ||
|
||
/// <summary> | ||
/// A human-readable message giving the reason for the failure. | ||
/// These message can be shown to your user. | ||
/// </summary> | ||
public string? Description { get; set; } | ||
} |
Oops, something went wrong.