-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ba075d
commit cb47d81
Showing
56 changed files
with
455 additions
and
89 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
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
4 changes: 2 additions & 2 deletions
4
...etReportTransactionTransactionTypeEnum.cs → ...laid/Entity/AssetReportTransactionType.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
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
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
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
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,59 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>User information collected outside of Link, most likely via your own onboarding process.</para> | ||
/// <para>Each of the following identity fields are optional:</para> | ||
/// <para><c>email_address</c></para> | ||
/// <para><c>phone_number</c></para> | ||
/// <para><c>date_of_birth</c></para> | ||
/// <para><c>name</c></para> | ||
/// <para><c>address</c></para> | ||
/// <para><c>id_number</c></para> | ||
/// <para>Specifically, these fields are optional in that they can either be fully provided (satisfying every required field in their subschema) or omitted from the request entirely by not providing the key or value.</para> | ||
/// <para>Providing these fields via the API will result in Link skipping the data collection process for the associated user. All verification steps enabled in the associated Identity Verification Template will still be run. Verification steps will either be run immediately, or once the user completes the <c>accept_tos</c> step, depending on the value provided to the <c>gave_consent</c> field.</para> | ||
/// <para>If you are not using the shareable URL feature, you can optionally provide these fields via <c>/link/token/create</c> instead; both <c>/identity_verification/create</c> and <c>/link/token/create</c> are valid ways to provide this information. Note that if you provide a non-<c>null</c> user data object via <c>/identity_verification/create</c>, any user data fields entered via <c>/link/token/create</c> for the same <c>client_user_id</c> will be ignored when prefilling Link.</para> | ||
/// </summary> | ||
public class IdentityVerificationCreateRequestUser | ||
{ | ||
/// <summary> | ||
/// <para>A valid email address.</para> | ||
/// </summary> | ||
[JsonPropertyName("email_address")] | ||
public string? EmailAddress { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>A phone number in E.164 format.</para> | ||
/// </summary> | ||
[JsonPropertyName("phone_number")] | ||
public string? PhoneNumber { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>A date in the format YYYY-MM-DD (RFC 3339 Section 5.6).</para> | ||
/// </summary> | ||
[JsonPropertyName("date_of_birth")] | ||
public DateOnly? DateOfBirth { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>You can use this field to pre-populate the user's legal name; if it is provided here, they will not be prompted to enter their name in the identity verification attempt.</para> | ||
/// </summary> | ||
[JsonPropertyName("name")] | ||
public Entity.IdentityVerificationRequestUserName? Name { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Home address for the user.</para> | ||
/// </summary> | ||
[JsonPropertyName("address")] | ||
public Entity.UserAddress? Address { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>ID number submitted by the user, currently used only for the Identity Verification product. If the user has not submitted this data yet, this field will be <c>null</c>. Otherwise, both fields are guaranteed to be filled.</para> | ||
/// </summary> | ||
[JsonPropertyName("id_number")] | ||
public Entity.UserIDNumber? IdNumber { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Specifying <c>user.client_user_id</c> is deprecated. Please provide <c>client_user_id</c> at the root level instead.</para> | ||
/// </summary> | ||
[JsonPropertyName("client_user_id")] | ||
public string? ClientUserId { get; set; } = default!; | ||
} |
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
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
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,23 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>Result summary object capturing abuse signals related to <c>identity abuse</c>, e.g. stolen and synthetic identity fraud.</para> | ||
/// </summary> | ||
public record RiskCheckIdentityAbuseSignals | ||
{ | ||
/// <summary> | ||
/// <para>Field containing the data used in determining the outcome of the synthetic identity risk check.</para> | ||
/// <para>Contains the following fields:</para> | ||
/// <para><c>score</c> - A score from 0 to 100 indicating the likelihood that the user is a synthetic identity.</para> | ||
/// </summary> | ||
[JsonPropertyName("synthetic_identity")] | ||
public Entity.RiskCheckSyntheticIdentity? SyntheticIdentity { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Field containing the data used in determining the outcome of the stolen identity risk check.</para> | ||
/// <para>Contains the following fields:</para> | ||
/// <para><c>score</c> - A score from 0 to 100 indicating the likelihood that the user is a stolen identity.</para> | ||
/// </summary> | ||
[JsonPropertyName("stolen_identity")] | ||
public Entity.RiskCheckStolenIdentity? StolenIdentity { get; init; } = default!; | ||
} |
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,15 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>Field containing the data used in determining the outcome of the stolen identity risk check.</para> | ||
/// <para>Contains the following fields:</para> | ||
/// <para><c>score</c> - A score from 0 to 100 indicating the likelihood that the user is a stolen identity.</para> | ||
/// </summary> | ||
public record RiskCheckStolenIdentity | ||
{ | ||
/// <summary> | ||
/// <para>A score from 0 to 100 indicating the likelihood that the user is a stolen identity.</para> | ||
/// </summary> | ||
[JsonPropertyName("score")] | ||
public int? Score { get; init; } = default!; | ||
} |
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,15 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>Field containing the data used in determining the outcome of the synthetic identity risk check.</para> | ||
/// <para>Contains the following fields:</para> | ||
/// <para><c>score</c> - A score from 0 to 100 indicating the likelihood that the user is a synthetic identity.</para> | ||
/// </summary> | ||
public record RiskCheckSyntheticIdentity | ||
{ | ||
/// <summary> | ||
/// <para>A score from 0 to 100 indicating the likelihood that the user is a synthetic identity.</para> | ||
/// </summary> | ||
[JsonPropertyName("score")] | ||
public int? Score { get; init; } = default!; | ||
} |
25 changes: 25 additions & 0 deletions
25
src/Plaid/Entity/SandboxBankIncomeWebhookFireRequestWebhookCode.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,25 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>The webhook codes this endpoint can be used to test</para> | ||
/// </summary> | ||
public enum SandboxBankIncomeWebhookFireRequestWebhookCode | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
[EnumMember(Value = "BANK_INCOME_REFRESH_UPDATE")] | ||
BankIncomeRefreshUpdate, | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
[EnumMember(Value = "BANK_INCOME_REFRESH_COMPLETE")] | ||
BankIncomeRefreshComplete, | ||
|
||
/// <summary> | ||
/// <para>Catch-all for unknown values returned by Plaid. If you encounter this, please check if there is a later version of the Going.Plaid library.</para> | ||
/// </summary> | ||
[EnumMember(Value = "undefined")] | ||
Undefined, | ||
} |
19 changes: 19 additions & 0 deletions
19
src/Plaid/Entity/SandboxBankIncomeWebhookFireRequestWebhookFields.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,19 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>Optional fields which will be populated in the simulated webhook</para> | ||
/// </summary> | ||
public class SandboxBankIncomeWebhookFireRequestWebhookFields | ||
{ | ||
/// <summary> | ||
/// <para>The user id to be returned in INCOME webhooks</para> | ||
/// </summary> | ||
[JsonPropertyName("user_id")] | ||
public string UserId { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The result of the bank income refresh report generation</para> | ||
/// </summary> | ||
[JsonPropertyName("bank_income_refresh_complete_result")] | ||
public Entity.BankIncomeRefreshCompleteResult? BankIncomeRefreshCompleteResult { get; set; } = default!; | ||
} |
Oops, something went wrong.