Skip to content

Commit 04f6d90

Browse files
Update to Plaid v1.617.1
1 parent 438d9cc commit 04f6d90

12 files changed

+148
-30
lines changed

src/Plaid/Cra/CraCheckReportCreateRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public partial class CraCheckReportCreateRequest : RequestBase
3030
public int? DaysRequired { get; set; } = default!;
3131

3232
/// <summary>
33-
/// <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>
33+
/// <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>
3434
/// </summary>
3535
[JsonPropertyName("products")]
3636
public IReadOnlyList<Entity.Products>? Products { get; set; } = default!;

src/Plaid/Entity/AssetReportUser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Going.Plaid.Entity;
66
public class AssetReportUser
77
{
88
/// <summary>
9-
/// <para>An identifier you determine and submit for the user.</para>
9+
/// <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>
1010
/// </summary>
1111
[JsonPropertyName("client_user_id")]
1212
public string? ClientUserId { get; set; } = default!;

src/Plaid/Entity/BaseReportAccountInsights.cs

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,7 @@ public record BaseReportAccountInsights
3030
public decimal? AverageDaysBetweenTransactions { get; init; } = default!;
3131

3232
/// <summary>
33-
/// <para>Deprecated; use <c>longest_gaps_between_transactions</c> instead. Longest gap between sequential transactions</para>
34-
/// </summary>
35-
[JsonPropertyName("longest_gap_between_transactions")]
36-
[Obsolete]
37-
public IReadOnlyList<Entity.BaseReportLongestGapInsights>? LongestGapBetweenTransactions { get; init; } = default!;
38-
39-
/// <summary>
40-
/// <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>
33+
/// <para>Longest gap between sequential transactions in a time period. This array can include multiple time periods.</para>
4134
/// </summary>
4235
[JsonPropertyName("longest_gaps_between_transactions")]
4336
public IReadOnlyList<Entity.BaseReportLongestGapInsights>? LongestGapsBetweenTransactions { get; init; } = default!;
@@ -49,14 +42,7 @@ public record BaseReportAccountInsights
4942
public IReadOnlyList<Entity.BaseReportNumberFlowInsights>? NumberOfInflows { get; init; } = default!;
5043

5144
/// <summary>
52-
/// <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>
53-
/// </summary>
54-
[JsonPropertyName("average_inflow_amount")]
55-
[Obsolete]
56-
public IReadOnlyList<Entity.BaseReportAverageFlowInsights>? AverageInflowAmount { get; init; } = default!;
57-
58-
/// <summary>
59-
/// <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>
45+
/// <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>
6046
/// </summary>
6147
[JsonPropertyName("average_inflow_amounts")]
6248
public IReadOnlyList<Entity.BaseReportAverageFlowInsights>? AverageInflowAmounts { get; init; } = default!;
@@ -68,14 +54,7 @@ public record BaseReportAccountInsights
6854
public IReadOnlyList<Entity.BaseReportNumberFlowInsights>? NumberOfOutflows { get; init; } = default!;
6955

7056
/// <summary>
71-
/// <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>
72-
/// </summary>
73-
[JsonPropertyName("average_outflow_amount")]
74-
[Obsolete]
75-
public IReadOnlyList<Entity.BaseReportAverageFlowInsights>? AverageOutflowAmount { get; init; } = default!;
76-
77-
/// <summary>
78-
/// <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>
57+
/// <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>
7958
/// </summary>
8059
[JsonPropertyName("average_outflow_amounts")]
8160
public IReadOnlyList<Entity.BaseReportAverageFlowInsights>? AverageOutflowAmounts { get; init; } = default!;

src/Plaid/Entity/ConsumerReportUserIdentity.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ public class ConsumerReportUserIdentity
3737

3838
/// <summary>
3939
/// <para>To be provided in the format "yyyy-mm-dd".</para>
40-
/// <para>This field is required for any clients who became Plaid Check customers on or after Oct 1, 2024.</para>
41-
/// <para>This field will be required for all Plaid Check customers as of Feb 1, 2025.</para>
40+
/// <para>This field is required for all Plaid Check customers.</para>
4241
/// </summary>
4342
[JsonPropertyName("date_of_birth")]
4443
public DateOnly? DateOfBirth { get; set; } = default!;
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
namespace Going.Plaid.Entity;
2+
3+
/// <summary>
4+
/// <para>Object containing information on contribution transactions for the 401k account.</para>
5+
/// </summary>
6+
public record InvestmentsAuth401kContributionDetails
7+
{
8+
/// <summary>
9+
/// <para>A list of the most recent contribution transactions for the 401k account. Includes all contributions made on the same day.</para>
10+
/// </summary>
11+
[JsonPropertyName("last_contribution_transactions")]
12+
public IReadOnlyList<Entity.InvestmentTransaction> LastContributionTransactions { get; init; } = default!;
13+
14+
/// <summary>
15+
/// <para>Number of contribution transactions on this account, for the past month.</para>
16+
/// </summary>
17+
[JsonPropertyName("contribution_count_1m")]
18+
public int ContributionCount1m { get; init; } = default!;
19+
20+
/// <summary>
21+
/// <para>Sum of the contribution transactions on this account, for the past month.</para>
22+
/// </summary>
23+
[JsonPropertyName("contribution_amount_1m")]
24+
public decimal ContributionAmount1m { get; init; } = default!;
25+
26+
/// <summary>
27+
/// <para>Number of contribution transactions on this account, for the past 6 months.</para>
28+
/// </summary>
29+
[JsonPropertyName("contribution_count_6m")]
30+
public int ContributionCount6m { get; init; } = default!;
31+
32+
/// <summary>
33+
/// <para>Sum of the contribution transactions on this account, for the past 6 months.</para>
34+
/// </summary>
35+
[JsonPropertyName("contribution_amount_6m")]
36+
public decimal ContributionAmount6m { get; init; } = default!;
37+
38+
/// <summary>
39+
/// <para>Number of contribution transactions on this account, for the past 12 months.</para>
40+
/// </summary>
41+
[JsonPropertyName("contribution_count_12m")]
42+
public int ContributionCount12m { get; init; } = default!;
43+
44+
/// <summary>
45+
/// <para>Sum of the contribution transactions on this account, for the past 12 months.</para>
46+
/// </summary>
47+
[JsonPropertyName("contribution_amount_12m")]
48+
public decimal ContributionAmount12m { get; init; } = default!;
49+
50+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
namespace Going.Plaid.Entity;
2+
3+
/// <summary>
4+
/// <para>Object containing information on account fee transactions for the 401k account.</para>
5+
/// </summary>
6+
public record InvestmentsAuth401kFeeDetails
7+
{
8+
/// <summary>
9+
/// <para>Number of account fee transactions on this account, for the past 12 months.</para>
10+
/// </summary>
11+
[JsonPropertyName("account_fee_count_12m")]
12+
public int AccountFeeCount12m { get; init; } = default!;
13+
14+
/// <summary>
15+
/// <para>Sum of account fee transactions on this account, for the past 12 months.</para>
16+
/// </summary>
17+
[JsonPropertyName("account_fee_amount_12m")]
18+
public decimal AccountFeeAmount12m { get; init; } = default!;
19+
20+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
namespace Going.Plaid.Entity;
2+
3+
/// <summary>
4+
/// <para>Additional account fee and contribution information for 401k type accounts.</para>
5+
/// </summary>
6+
public record InvestmentsAuthAccountDetails401k
7+
{
8+
/// <summary>
9+
/// <para>The ID of the 401k account.</para>
10+
/// </summary>
11+
[JsonPropertyName("account_id")]
12+
public string? AccountId { get; init; } = default!;
13+
14+
/// <summary>
15+
/// <para>Object containing information on account fee transactions for the 401k account.</para>
16+
/// </summary>
17+
[JsonPropertyName("fee_details")]
18+
public Entity.InvestmentsAuth401kFeeDetails? FeeDetails { get; init; } = default!;
19+
20+
/// <summary>
21+
/// <para>Object containing information on contribution transactions for the 401k account.</para>
22+
/// </summary>
23+
[JsonPropertyName("contribution_details")]
24+
public Entity.InvestmentsAuth401kContributionDetails? ContributionDetails { get; init; } = default!;
25+
26+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
namespace Going.Plaid.Entity;
2+
3+
/// <summary>
4+
/// <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>
5+
/// </summary>
6+
public class OriginatingFundSource
7+
{
8+
/// <summary>
9+
/// <para>The full name associated with the source of the funds.</para>
10+
/// </summary>
11+
[JsonPropertyName("full_name")]
12+
public string FullName { get; set; } = default!;
13+
14+
/// <summary>
15+
/// <para>The optional address of the payment recipient's bank account. Required by most institutions outside of the UK.</para>
16+
/// </summary>
17+
[JsonPropertyName("address")]
18+
public Entity.PaymentInitiationAddress? Address { get; set; } = default!;
19+
20+
/// <summary>
21+
/// <para>The account number from which the funds are sourced.</para>
22+
/// </summary>
23+
[JsonPropertyName("account_number")]
24+
public string AccountNumber { get; set; } = default!;
25+
26+
/// <summary>
27+
/// <para>The Business Identifier Code, also known as SWIFT code, for this bank account.</para>
28+
/// </summary>
29+
[JsonPropertyName("bic")]
30+
public string Bic { get; set; } = default!;
31+
32+
}

src/Plaid/Investments/InvestmentsAuthGetResponse.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ public record InvestmentsAuthGetResponse : ResponseBase
4141
[JsonPropertyName("data_sources")]
4242
public Entity.InvestmentsAuthDataSources DataSources { get; init; } = default!;
4343

44+
/// <summary>
45+
/// <para>Additional information for accounts of 401k subtype.</para>
46+
/// </summary>
47+
[JsonPropertyName("account_details_401k")]
48+
public IReadOnlyList<Entity.InvestmentsAuthAccountDetails401k>? AccountDetails401k { get; init; } = default!;
49+
4450
/// <summary>
4551
/// <para>Metadata about the Item.</para>
4652
/// </summary>

src/Plaid/Link/LinkTokenCreateResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public record LinkTokenCreateResponse : ResponseBase
1212
public string LinkToken { get; init; } = default!;
1313

1414
/// <summary>
15-
/// <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>
15+
/// <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>
1616
/// </summary>
1717
[JsonPropertyName("expiration")]
1818
public DateTimeOffset Expiration { get; init; } = default!;

src/Plaid/Wallet/WalletTransactionExecuteRequest.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,10 @@ public partial class WalletTransactionExecuteRequest : RequestBase
3737
[JsonPropertyName("reference")]
3838
public string Reference { get; set; } = default!;
3939

40+
/// <summary>
41+
/// <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>
42+
/// </summary>
43+
[JsonPropertyName("originating_fund_source")]
44+
public Entity.OriginatingFundSource? OriginatingFundSource { get; set; } = default!;
45+
4046
}

0 commit comments

Comments
 (0)