-
-
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
e0b863f
commit 445f950
Showing
46 changed files
with
693 additions
and
33 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,14 @@ | ||
namespace Going.Plaid.Cra; | ||
|
||
/// <summary> | ||
/// <para>CraPartnerInsightsGetRequest defines the request schema for <c>/cra/partner_insights/get</c>.</para> | ||
/// </summary> | ||
public partial class CraPartnerInsightsGetRequest : 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!; | ||
|
||
} |
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>CraPartnerInsightsGetResponse defines the response schema for <c>/cra/partner_insights/get</c>.</para> | ||
/// </summary> | ||
public record CraPartnerInsightsGetResponse : ResponseBase | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
[JsonPropertyName("report")] | ||
public IReadOnlyList<Entity.CraPartnerInsights>? 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,32 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>The partner insights report of the bank data for an end user.</para> | ||
/// </summary> | ||
public record CraPartnerInsights | ||
{ | ||
/// <summary> | ||
/// <para>A unique identifier associated with the Partner Insights object.</para> | ||
/// </summary> | ||
[JsonPropertyName("report_id")] | ||
public string? ReportId { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The time when the partner insights report was generated.</para> | ||
/// </summary> | ||
[JsonPropertyName("generated_time")] | ||
public DateTimeOffset? GeneratedTime { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The Prism insights for the user.</para> | ||
/// </summary> | ||
[JsonPropertyName("prism")] | ||
public Entity.CraPartnerInsightsPrism? Prism { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The list of Items used in the report along with the associated metadata about the Item.</para> | ||
/// </summary> | ||
[JsonPropertyName("items")] | ||
public IReadOnlyList<Entity.CraPartnerInsightsItem>? Items { 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,32 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>The details and metadata for an end user's Item.</para> | ||
/// </summary> | ||
public record CraPartnerInsightsItem | ||
{ | ||
/// <summary> | ||
/// <para>The ID for the institution that the user linked.</para> | ||
/// </summary> | ||
[JsonPropertyName("institution_id")] | ||
public string? InstitutionId { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The name of the institution the user linked.</para> | ||
/// </summary> | ||
[JsonPropertyName("institution_name")] | ||
public string? InstitutionName { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The identifier for the item.</para> | ||
/// </summary> | ||
[JsonPropertyName("item_id")] | ||
public string? ItemId { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>A list of accounts in the item</para> | ||
/// </summary> | ||
[JsonPropertyName("accounts")] | ||
public IReadOnlyList<Entity.CraPartnerInsightsItemAccount>? Accounts { 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,46 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>Account data corresponding to the item from which Partner Insights were generated from</para> | ||
/// </summary> | ||
public record CraPartnerInsightsItemAccount | ||
{ | ||
/// <summary> | ||
/// <para>The last 2-4 alphanumeric characters of an account's official account number.</para> | ||
/// <para>Note that the mask may be non-unique between an Item's accounts, and it may also</para> | ||
/// <para>not match the mask that the bank displays to the user.</para> | ||
/// </summary> | ||
[JsonPropertyName("mask")] | ||
public string? Mask { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The name of the account</para> | ||
/// </summary> | ||
[JsonPropertyName("name")] | ||
public string Name { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The official name of the bank account.</para> | ||
/// </summary> | ||
[JsonPropertyName("official_name")] | ||
public string? OfficialName { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Valid account subtypes for depository accounts. For a list containing descriptions of each subtype, see [Account schemas](https://plaid.com/docs/api/accounts/#StandaloneAccountType-depository).</para> | ||
/// </summary> | ||
[JsonPropertyName("subtype")] | ||
public Entity.DepositoryAccountSubtype Subtype { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The account type. This will always be <c>depository</c>.</para> | ||
/// </summary> | ||
[JsonPropertyName("type")] | ||
public Entity.CreditBankIncomeAccountType Type { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Data returned by the financial institution about the account owner or owners. Identity information is optional, so field may return an empty array.</para> | ||
/// </summary> | ||
[JsonPropertyName("owners")] | ||
public IReadOnlyList<Entity.Owner> Owners { 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,32 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>The Prism insights for the user.</para> | ||
/// </summary> | ||
public record CraPartnerInsightsPrism | ||
{ | ||
/// <summary> | ||
/// <para>The data from the Insights product returned by Prism.</para> | ||
/// </summary> | ||
[JsonPropertyName("insights")] | ||
public Entity.PrismInsights? Insights { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The data from the Cash Score product returned by Prism.</para> | ||
/// </summary> | ||
[JsonPropertyName("cash_score")] | ||
public Entity.PrismCashScore? CashScore { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The data from the Detect product returned by Prism.</para> | ||
/// </summary> | ||
[JsonPropertyName("detect")] | ||
public Entity.PrismDetect? Detect { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Details on whether the Prism attributes succeeded or failed to be generated.</para> | ||
/// </summary> | ||
[JsonPropertyName("status")] | ||
public string Status { 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
Oops, something went wrong.