-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
25ca4d3
commit 438d9cc
Showing
31 changed files
with
426 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace Going.Plaid.Cra; | ||
|
||
/// <summary> | ||
/// <para>CraCheckReportCashflowInsightsGetRequest defines the request schema for <c>/cra/check_report/cashflow_insights/get</c>.</para> | ||
/// </summary> | ||
public partial class CraCheckReportCashflowInsightsGetRequest : RequestBase | ||
{ | ||
/// <summary> | ||
/// <para>The user token associated with the User data is being requested for.</para> | ||
/// </summary> | ||
[JsonPropertyName("user_token")] | ||
public string? UserToken { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The third-party user token associated with the requested User data.</para> | ||
/// </summary> | ||
[JsonPropertyName("third_party_user_token")] | ||
public string? ThirdPartyUserToken { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Defines configuration options to generate Cashflow Insights</para> | ||
/// </summary> | ||
[JsonPropertyName("options")] | ||
public Entity.CraCheckReportCashflowInsightsGetOptions? Options { get; set; } = default!; | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
src/Plaid/Cra/CraCheckReportCashflowInsightsGetResponse.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,14 @@ | ||
namespace Going.Plaid.Cra; | ||
|
||
/// <summary> | ||
/// <para>CraCheckReportCashflowInsightsGetResponse defines the response schema for <c>/cra/check_report/cashflow_insights/get</c>.</para> | ||
/// </summary> | ||
public record CraCheckReportCashflowInsightsGetResponse : ResponseBase | ||
{ | ||
/// <summary> | ||
/// <para>Contains data for the CRA Cashflow Insights Report.</para> | ||
/// </summary> | ||
[JsonPropertyName("report")] | ||
public Entity.CraCashflowInsightsReport Report { 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
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
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,8 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>A map of cashflow attributes, where the key is a string, and the value is a float, int, or boolean.</para> | ||
/// </summary> | ||
public record CashflowAttributes | ||
{ | ||
} |
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,32 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>Contains data for the CRA Cashflow Insights Report.</para> | ||
/// </summary> | ||
public record CraCashflowInsightsReport | ||
{ | ||
/// <summary> | ||
/// <para>The unique identifier associated with the Network Attributes report object.</para> | ||
/// </summary> | ||
[JsonPropertyName("report_id")] | ||
public string ReportId { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The time when the Network Attributes Report was generated.</para> | ||
/// </summary> | ||
[JsonPropertyName("generated_time")] | ||
public DateTimeOffset GeneratedTime { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The results of the Plaid Check score</para> | ||
/// </summary> | ||
[JsonPropertyName("plaid_check_score")] | ||
public Entity.PlaidCheckScore? PlaidCheckScore { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>A map of cashflow attributes, where the key is a string, and the value is a float, int, or boolean.</para> | ||
/// </summary> | ||
[JsonPropertyName("attributes")] | ||
public Entity.CashflowAttributes? Attributes { get; init; } = default!; | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
src/Plaid/Entity/CraCheckReportCashflowInsightsGetOptions.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,20 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>Defines configuration options to generate Cashflow Insights</para> | ||
/// </summary> | ||
public class CraCheckReportCashflowInsightsGetOptions | ||
{ | ||
/// <summary> | ||
/// <para>The version of the Plaid Check score to return</para> | ||
/// </summary> | ||
[JsonPropertyName("plaid_check_score_version")] | ||
public string? PlaidCheckScoreVersion { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The versions of cashflow attributes</para> | ||
/// </summary> | ||
[JsonPropertyName("attributes_version")] | ||
public Entity.CashflowAttributesVersion? AttributesVersion { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>Defines configuration options to generate a Base Report</para> | ||
/// </summary> | ||
public class CraCheckReportCreateBaseReportOptions | ||
{ | ||
/// <summary> | ||
/// <para>Client-generated identifier, which can be used by lenders to track loan applications.</para> | ||
/// </summary> | ||
[JsonPropertyName("client_report_id")] | ||
public string? ClientReportId { 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,26 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>Identifying information for transferring holdings from a 401k account to another 401k account or IRA via the manual 401k rollover process.</para> | ||
/// </summary> | ||
public record NumbersRetirement401k | ||
{ | ||
/// <summary> | ||
/// <para>The Plaid account ID associated with the account numbers</para> | ||
/// </summary> | ||
[JsonPropertyName("account_id")] | ||
public string AccountId { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The plan number for the employer's 401k retirement plan</para> | ||
/// </summary> | ||
[JsonPropertyName("plan")] | ||
public string? Plan { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The full account number for the account</para> | ||
/// </summary> | ||
[JsonPropertyName("account")] | ||
public string? Account { 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
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,26 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>The results of the Plaid Check score</para> | ||
/// </summary> | ||
public record PlaidCheckScore | ||
{ | ||
/// <summary> | ||
/// <para>The score returned by the Plaid Check Score model.</para> | ||
/// </summary> | ||
[JsonPropertyName("score")] | ||
public decimal? Score { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The reasons for an individual having risk according to the Plaid Check score.</para> | ||
/// </summary> | ||
[JsonPropertyName("reason_codes")] | ||
public IReadOnlyList<string>? ReasonCodes { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Human-readable description of why the Plaid Check score could not be computed.</para> | ||
/// </summary> | ||
[JsonPropertyName("error_reason")] | ||
public string? ErrorReason { 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
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,32 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>The recommendation result for that date.</para> | ||
/// </summary> | ||
public enum RecommendationString | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
[EnumMember(Value = "RECOMMENDED")] | ||
Recommended, | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
[EnumMember(Value = "NOT_RECOMMENDED")] | ||
NotRecommended, | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
[EnumMember(Value = "UNKNOWN")] | ||
Unknown, | ||
|
||
/// <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, | ||
|
||
} |
Oops, something went wrong.