Skip to content

Commit

Permalink
Update to Plaid v1.617.1
Browse files Browse the repository at this point in the history
  • Loading branch information
viceroypenguin committed Feb 7, 2025
1 parent 438d9cc commit 04f6d90
Show file tree
Hide file tree
Showing 12 changed files with 148 additions and 30 deletions.
2 changes: 1 addition & 1 deletion plaid-openapi
Submodule plaid-openapi updated 2 files
+125 −27 2020-09-14.yml
+109 −97 CHANGELOG.md
2 changes: 1 addition & 1 deletion src/Plaid/Cra/CraCheckReportCreateRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public partial class CraCheckReportCreateRequest : RequestBase
public int? DaysRequired { get; set; } = default!;

/// <summary>
/// <para>Specifies a list of products that will be eagerly generated when creating the report. These products will be made available before a success webhook is sent. Use this option if you know which products you want in the report up-front, in order to optimize latency. The <c>cra_base_report</c> product will always be generated and needs not be specified here.</para>
/// <para>Specifies a list of products that will be eagerly generated when creating the report. These products will be made available before a success webhook is sent. Use this option to minimize response latency for product <c>/get</c> endpoints.</para>
/// </summary>
[JsonPropertyName("products")]
public IReadOnlyList<Entity.Products>? Products { get; set; } = default!;
Expand Down
2 changes: 1 addition & 1 deletion src/Plaid/Entity/AssetReportUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Going.Plaid.Entity;
public class AssetReportUser
{
/// <summary>
/// <para>An identifier you determine and submit for the user.</para>
/// <para>An identifier you determine and submit for the user. If using the Credit Dashboard, Customers should pass in the <c>user_token</c> created in <c>/user/create</c>.</para>
/// </summary>
[JsonPropertyName("client_user_id")]
public string? ClientUserId { get; set; } = default!;
Expand Down
27 changes: 3 additions & 24 deletions src/Plaid/Entity/BaseReportAccountInsights.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@ public record BaseReportAccountInsights
public decimal? AverageDaysBetweenTransactions { get; init; } = default!;

/// <summary>
/// <para>Deprecated; use <c>longest_gaps_between_transactions</c> instead. Longest gap between sequential transactions</para>
/// </summary>
[JsonPropertyName("longest_gap_between_transactions")]
[Obsolete]
public IReadOnlyList<Entity.BaseReportLongestGapInsights>? LongestGapBetweenTransactions { get; init; } = default!;

/// <summary>
/// <para>Customers must transition from <c>longest_gap_between_transactions</c> by January 31st 2025. Longest gap between sequential transactions in a time period. This array can include multiple time periods.</para>
/// <para>Longest gap between sequential transactions in a time period. This array can include multiple time periods.</para>
/// </summary>
[JsonPropertyName("longest_gaps_between_transactions")]
public IReadOnlyList<Entity.BaseReportLongestGapInsights>? LongestGapsBetweenTransactions { get; init; } = default!;
Expand All @@ -49,14 +42,7 @@ public record BaseReportAccountInsights
public IReadOnlyList<Entity.BaseReportNumberFlowInsights>? NumberOfInflows { get; init; } = default!;

/// <summary>
/// <para>Deprecated; use <c>average_inflow_amounts</c> instead. Average amount of debit transactions into the account. This array will be empty for non-depository accounts. This field only takes into account USD transactions from the account.</para>
/// </summary>
[JsonPropertyName("average_inflow_amount")]
[Obsolete]
public IReadOnlyList<Entity.BaseReportAverageFlowInsights>? AverageInflowAmount { get; init; } = default!;

/// <summary>
/// <para>Customers must transition from <c>average_inflow_amount</c> by January 31st 2025. Average amount of debit transactions into the account in a time period. This array will be empty for non-depository accounts. This field only takes into account USD transactions from the account.</para>
/// <para>Average amount of debit transactions into the account in a time period. This array will be empty for non-depository accounts. This field only takes into account USD transactions from the account.</para>
/// </summary>
[JsonPropertyName("average_inflow_amounts")]
public IReadOnlyList<Entity.BaseReportAverageFlowInsights>? AverageInflowAmounts { get; init; } = default!;
Expand All @@ -68,14 +54,7 @@ public record BaseReportAccountInsights
public IReadOnlyList<Entity.BaseReportNumberFlowInsights>? NumberOfOutflows { get; init; } = default!;

/// <summary>
/// <para>Deprecated; use <c>average_outflow_amounts</c> instead. Average amount of transactions out of the account. This array will be empty for non-depository accounts. This field only takes into account USD transactions from the account.</para>
/// </summary>
[JsonPropertyName("average_outflow_amount")]
[Obsolete]
public IReadOnlyList<Entity.BaseReportAverageFlowInsights>? AverageOutflowAmount { get; init; } = default!;

/// <summary>
/// <para>Customers must transition from <c>average_outflow_amount</c> by January 31st 2025. Average amount of transactions out of the account in a time period. This array will be empty for non-depository accounts. This field only takes into account USD transactions from the account.</para>
/// <para>Average amount of transactions out of the account in a time period. This array will be empty for non-depository accounts. This field only takes into account USD transactions from the account.</para>
/// </summary>
[JsonPropertyName("average_outflow_amounts")]
public IReadOnlyList<Entity.BaseReportAverageFlowInsights>? AverageOutflowAmounts { get; init; } = default!;
Expand Down
3 changes: 1 addition & 2 deletions src/Plaid/Entity/ConsumerReportUserIdentity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ public class ConsumerReportUserIdentity

/// <summary>
/// <para>To be provided in the format "yyyy-mm-dd".</para>
/// <para>This field is required for any clients who became Plaid Check customers on or after Oct 1, 2024.</para>
/// <para>This field will be required for all Plaid Check customers as of Feb 1, 2025.</para>
/// <para>This field is required for all Plaid Check customers.</para>
/// </summary>
[JsonPropertyName("date_of_birth")]
public DateOnly? DateOfBirth { get; set; } = default!;
Expand Down
50 changes: 50 additions & 0 deletions src/Plaid/Entity/InvestmentsAuth401kContributionDetails.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
namespace Going.Plaid.Entity;

/// <summary>
/// <para>Object containing information on contribution transactions for the 401k account.</para>
/// </summary>
public record InvestmentsAuth401kContributionDetails
{
/// <summary>
/// <para>A list of the most recent contribution transactions for the 401k account. Includes all contributions made on the same day.</para>
/// </summary>
[JsonPropertyName("last_contribution_transactions")]
public IReadOnlyList<Entity.InvestmentTransaction> LastContributionTransactions { get; init; } = default!;

/// <summary>
/// <para>Number of contribution transactions on this account, for the past month.</para>
/// </summary>
[JsonPropertyName("contribution_count_1m")]
public int ContributionCount1m { get; init; } = default!;

/// <summary>
/// <para>Sum of the contribution transactions on this account, for the past month.</para>
/// </summary>
[JsonPropertyName("contribution_amount_1m")]
public decimal ContributionAmount1m { get; init; } = default!;

/// <summary>
/// <para>Number of contribution transactions on this account, for the past 6 months.</para>
/// </summary>
[JsonPropertyName("contribution_count_6m")]
public int ContributionCount6m { get; init; } = default!;

/// <summary>
/// <para>Sum of the contribution transactions on this account, for the past 6 months.</para>
/// </summary>
[JsonPropertyName("contribution_amount_6m")]
public decimal ContributionAmount6m { get; init; } = default!;

/// <summary>
/// <para>Number of contribution transactions on this account, for the past 12 months.</para>
/// </summary>
[JsonPropertyName("contribution_count_12m")]
public int ContributionCount12m { get; init; } = default!;

/// <summary>
/// <para>Sum of the contribution transactions on this account, for the past 12 months.</para>
/// </summary>
[JsonPropertyName("contribution_amount_12m")]
public decimal ContributionAmount12m { get; init; } = default!;

}
20 changes: 20 additions & 0 deletions src/Plaid/Entity/InvestmentsAuth401kFeeDetails.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
namespace Going.Plaid.Entity;

/// <summary>
/// <para>Object containing information on account fee transactions for the 401k account.</para>
/// </summary>
public record InvestmentsAuth401kFeeDetails
{
/// <summary>
/// <para>Number of account fee transactions on this account, for the past 12 months.</para>
/// </summary>
[JsonPropertyName("account_fee_count_12m")]
public int AccountFeeCount12m { get; init; } = default!;

/// <summary>
/// <para>Sum of account fee transactions on this account, for the past 12 months.</para>
/// </summary>
[JsonPropertyName("account_fee_amount_12m")]
public decimal AccountFeeAmount12m { get; init; } = default!;

}
26 changes: 26 additions & 0 deletions src/Plaid/Entity/InvestmentsAuthAccountDetails401k.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
namespace Going.Plaid.Entity;

/// <summary>
/// <para>Additional account fee and contribution information for 401k type accounts.</para>
/// </summary>
public record InvestmentsAuthAccountDetails401k
{
/// <summary>
/// <para>The ID of the 401k account.</para>
/// </summary>
[JsonPropertyName("account_id")]
public string? AccountId { get; init; } = default!;

/// <summary>
/// <para>Object containing information on account fee transactions for the 401k account.</para>
/// </summary>
[JsonPropertyName("fee_details")]
public Entity.InvestmentsAuth401kFeeDetails? FeeDetails { get; init; } = default!;

/// <summary>
/// <para>Object containing information on contribution transactions for the 401k account.</para>
/// </summary>
[JsonPropertyName("contribution_details")]
public Entity.InvestmentsAuth401kContributionDetails? ContributionDetails { get; init; } = default!;

}
32 changes: 32 additions & 0 deletions src/Plaid/Entity/OriginatingFundSource.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
namespace Going.Plaid.Entity;

/// <summary>
/// <para>The original source of the funds. This field is required by local regulation for certain businesses (e.g. money remittance) to send payouts to recipients in the EU and UK.</para>
/// </summary>
public class OriginatingFundSource
{
/// <summary>
/// <para>The full name associated with the source of the funds.</para>
/// </summary>
[JsonPropertyName("full_name")]
public string FullName { get; set; } = default!;

/// <summary>
/// <para>The optional address of the payment recipient's bank account. Required by most institutions outside of the UK.</para>
/// </summary>
[JsonPropertyName("address")]
public Entity.PaymentInitiationAddress? Address { get; set; } = default!;

/// <summary>
/// <para>The account number from which the funds are sourced.</para>
/// </summary>
[JsonPropertyName("account_number")]
public string AccountNumber { get; set; } = default!;

/// <summary>
/// <para>The Business Identifier Code, also known as SWIFT code, for this bank account.</para>
/// </summary>
[JsonPropertyName("bic")]
public string Bic { get; set; } = default!;

}
6 changes: 6 additions & 0 deletions src/Plaid/Investments/InvestmentsAuthGetResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ public record InvestmentsAuthGetResponse : ResponseBase
[JsonPropertyName("data_sources")]
public Entity.InvestmentsAuthDataSources DataSources { get; init; } = default!;

/// <summary>
/// <para>Additional information for accounts of 401k subtype.</para>
/// </summary>
[JsonPropertyName("account_details_401k")]
public IReadOnlyList<Entity.InvestmentsAuthAccountDetails401k>? AccountDetails401k { get; init; } = default!;

/// <summary>
/// <para>Metadata about the Item.</para>
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Plaid/Link/LinkTokenCreateResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public record LinkTokenCreateResponse : ResponseBase
public string LinkToken { get; init; } = default!;

/// <summary>
/// <para>The expiration date for the <c>link_token</c>, in <a href="https://wikipedia.org/wiki/ISO_8601">ISO 8601</a> format. By default, a <c>link_token</c> created to generate a <c>public_token</c> that will be exchanged for a new <c>access_token</c> expires after 4 hours, and a <c>link_token</c> created for an existing Item (such as when updating an existing <c>access_token</c> by launching Link in update mode) expires after 30 minutes. If using <a href="https://plaid.com/docs/link/hosted-link/">Hosted Link</a>, the <c>link_token</c> will expire at the same time as the Hosted Link URL, and you can customize the duration using the <c>hosted_link.url_lifetime_seconds</c> option in the request. If using Link Delivery (beta), the <c>link_token</c> will expire by default after 24 hours if sent via SMS and after 7 days if sent via email.</para>
/// <para>The expiration date and time for the <c>link_token</c>, in <a href="https://wikipedia.org/wiki/ISO_8601">ISO 8601</a> format. By default, a <c>link_token</c> created to generate a <c>public_token</c> that will be exchanged for a new <c>access_token</c> expires after 4 hours, and a <c>link_token</c> created for an existing Item (such as when updating an existing <c>access_token</c> by launching Link in update mode) expires after 30 minutes. If using <a href="https://plaid.com/docs/link/hosted-link/">Hosted Link</a>, the <c>link_token</c> will expire at the same time as the Hosted Link URL, and you can customize the duration using the <c>hosted_link.url_lifetime_seconds</c> option in the request. If using Link Delivery (beta), the <c>link_token</c> will expire by default after 24 hours if sent via SMS and after 7 days if sent via email. If using Identity Verification, Link token expiration will not be enforced; an Identity Verification Link session can be created with an expired Link token.</para>
/// </summary>
[JsonPropertyName("expiration")]
public DateTimeOffset Expiration { get; init; } = default!;
Expand Down
6 changes: 6 additions & 0 deletions src/Plaid/Wallet/WalletTransactionExecuteRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,10 @@ public partial class WalletTransactionExecuteRequest : RequestBase
[JsonPropertyName("reference")]
public string Reference { get; set; } = default!;

/// <summary>
/// <para>The original source of the funds. This field is required by local regulation for certain businesses (e.g. money remittance) to send payouts to recipients in the EU and UK.</para>
/// </summary>
[JsonPropertyName("originating_fund_source")]
public Entity.OriginatingFundSource? OriginatingFundSource { get; set; } = default!;

}

0 comments on commit 04f6d90

Please sign in to comment.