Skip to content

Commit

Permalink
Update to Plaid v1.556.0
Browse files Browse the repository at this point in the history
  • Loading branch information
viceroypenguin committed Sep 6, 2024
1 parent 326377c commit d6d6e09
Show file tree
Hide file tree
Showing 213 changed files with 1,974 additions and 249 deletions.
2 changes: 1 addition & 1 deletion plaid-openapi
Submodule plaid-openapi updated 2 files
+3,744 −1,412 2020-09-14.yml
+136 −0 CHANGELOG.md
1 change: 0 additions & 1 deletion src/Plaid/Auth/PlaidClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ public sealed partial class PlaidClient
{
/// <summary>
/// <para>The <c>/auth/get</c> endpoint returns the bank account and bank identification numbers (such as routing numbers, for US accounts) associated with an Item's checking and savings accounts, along with high-level account data and balances when available.</para>
/// <para>Note: This request may take some time to complete if <c>auth</c> was not specified as an initial product when creating the Item. This is because Plaid must communicate directly with the institution to retrieve the data.</para>
/// <para>Versioning note: In API version 2017-03-08, the schema of the <c>numbers</c> object returned by this endpoint is substantially different. For details, see <a href="https://plaid.com/docs/api/versioning/#version-2018-05-22">Plaid API versioning</a>.</para>
/// </summary>
/// <remarks><see href="https://plaid.com/docs/api/products/auth/#authget" /></remarks>
Expand Down
2 changes: 1 addition & 1 deletion src/Plaid/Beacon/BeaconReportCreateRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public partial class BeaconReportCreateRequest : RequestBase
/// <para>The type of Beacon Report.</para>
/// </summary>
[JsonPropertyName("type")]
public Entity.BeaconReportType Type { get; set; } = default!;
public Entity.BeaconReportCreateType Type { get; set; } = default!;

/// <summary>
/// <para>A date in the format YYYY-MM-DD (RFC 3339 Section 5.6).</para>
Expand Down
8 changes: 7 additions & 1 deletion src/Plaid/Beacon/BeaconReportCreateResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ public record BeaconReportCreateResponse : ResponseBase
/// <para>A date in the format YYYY-MM-DD (RFC 3339 Section 5.6).</para>
/// </summary>
[JsonPropertyName("fraud_date")]
public DateOnly FraudDate { get; init; } = default!;
public DateOnly? FraudDate { get; init; } = default!;

/// <summary>
/// <para>A date in the format YYYY-MM-DD (RFC 3339 Section 5.6).</para>
/// </summary>
[JsonPropertyName("event_date")]
public DateOnly EventDate { get; init; } = default!;

/// <summary>
/// <para>The amount and currency of the fraud or attempted fraud.</para>
Expand Down
8 changes: 7 additions & 1 deletion src/Plaid/Beacon/BeaconReportGetResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ public record BeaconReportGetResponse : ResponseBase
/// <para>A date in the format YYYY-MM-DD (RFC 3339 Section 5.6).</para>
/// </summary>
[JsonPropertyName("fraud_date")]
public DateOnly FraudDate { get; init; } = default!;
public DateOnly? FraudDate { get; init; } = default!;

/// <summary>
/// <para>A date in the format YYYY-MM-DD (RFC 3339 Section 5.6).</para>
/// </summary>
[JsonPropertyName("event_date")]
public DateOnly EventDate { get; init; } = default!;

/// <summary>
/// <para>The amount and currency of the fraud or attempted fraud.</para>
Expand Down
3 changes: 2 additions & 1 deletion src/Plaid/Beacon/BeaconUserCreateRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ public partial class BeaconUserCreateRequest : RequestBase

/// <summary>
/// <para>A Beacon User's data which is used to check against duplicate records and the Beacon Fraud Network.</para>
/// <para>In order to create a Beacon User, in addition to the <c>name</c>, _either_ the <c>date_of_birth</c> _or_ the <c>depository_accounts</c> field must be provided.</para>
/// </summary>
[JsonPropertyName("user")]
public Entity.BeaconUserRequestData User { get; set; } = default!;

/// <summary>
/// <para>Send this array of access tokens to link accounts to the Beacon User and have them evaluated for Account Insights. </para>
/// <para>Send this array of access tokens to link accounts to the Beacon User and have them evaluated for Account Insights.</para>
/// <para>A maximum of 50 accounts total can be added to a single Beacon User.</para>
/// </summary>
[JsonPropertyName("access_tokens")]
Expand Down
4 changes: 2 additions & 2 deletions src/Plaid/Beacon/PlaidClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public sealed partial class PlaidClient
/// <summary>
/// <para>Use the <c>/beacon/report_syndication/list</c> endpoint to view all Beacon Reports that have been syndicated to a specific Beacon User. This endpoint returns Beacon Report Syndications which are references to Beacon Reports created either by you, or another Beacon customer, that matched the specified Beacon User. A Beacon User can have multiple active Beacon Report Syndications at once. The results from this endpoint are paginated; the <c>next_cursor</c> field will be populated if there is another page of results that can be retrieved. To fetch the next page, pass the <c>next_cursor</c> value as the <c>cursor</c> parameter in the next request.</para>
/// </summary>
/// <remarks><see href="https://plaid.com/docs/api/products/beacon/#beaconreportsyndicationlist" /></remarks>
/// <remarks><see href="https://plaid.com/docs/api/products/beacon/#beaconreport_syndicationlist" /></remarks>
public Task<Beacon.BeaconReportSyndicationListResponse> BeaconReportSyndicationListAsync(Beacon.BeaconReportSyndicationListRequest request) =>
PostAsync("/beacon/report_syndication/list", request)
.ParseResponseAsync<Beacon.BeaconReportSyndicationListResponse>();
Expand All @@ -81,7 +81,7 @@ public sealed partial class PlaidClient
/// <summary>
/// <para>Returns a Beacon Report Syndication for a given Beacon Report Syndication id.</para>
/// </summary>
/// <remarks><see href="https://plaid.com/docs/api/products/beacon/#beaconreportsyndicationget" /></remarks>
/// <remarks><see href="https://plaid.com/docs/api/products/beacon/#beaconreport_syndicationget" /></remarks>
public Task<Beacon.BeaconReportSyndicationGetResponse> BeaconReportSyndicationGetAsync(Beacon.BeaconReportSyndicationGetRequest request) =>
PostAsync("/beacon/report_syndication/get", request)
.ParseResponseAsync<Beacon.BeaconReportSyndicationGetResponse>();
Expand Down
2 changes: 2 additions & 0 deletions src/Plaid/Converters/WebhookBaseConverter.Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public partial class WebhookBaseConverter : JsonConverter<WebhookBase>
[(WebhookType.Identity, WebhookCode.DefaultUpdate)] = typeof(IdentityDefaultUpdateWebhook),
[(WebhookType.Transactions, WebhookCode.HistoricalUpdate)] = typeof(HistoricalUpdateWebhook),
[(WebhookType.Transactions, WebhookCode.InitialUpdate)] = typeof(InitialUpdateWebhook),
[(WebhookType.Issues, WebhookCode.IssueResolved)] = typeof(IssueResolvedWebhook),
[(WebhookType.Auth, WebhookCode.DefaultUpdate)] = typeof(AuthDefaultUpdateWebhook),
[(WebhookType.Auth, WebhookCode.AutomaticallyVerified)] = typeof(FallbackAuthMicrodepositAutoVerifiedWebhook),
[(WebhookType.Auth, WebhookCode.VerificationExpired)] = typeof(FallbackAuthMicrodepositVerificationExpiredWebhook),
Expand All @@ -45,6 +46,7 @@ public partial class WebhookBaseConverter : JsonConverter<WebhookBase>
[(WebhookType.Holdings, WebhookCode.DefaultUpdate)] = typeof(HoldingsDefaultUpdateWebhook),
[(WebhookType.Partner, WebhookCode.EndCustomerOauthStatusUpdated)] = typeof(PartnerEndCustomerOAuthStatusUpdatedWebhook),
[(WebhookType.Liabilities, WebhookCode.DefaultUpdate)] = typeof(LiabilitiesDefaultUpdateWebhook),
[(WebhookType.Item, WebhookCode.PendingDisconnect)] = typeof(PendingDisconnectWebhook),
[(WebhookType.PaymentInitiation, WebhookCode.PaymentStatusUpdate)] = typeof(PaymentStatusUpdateWebhook),
[(WebhookType.Wallet, WebhookCode.WalletTransactionStatusUpdate)] = typeof(WalletTransactionStatusUpdateWebhook),
[(WebhookType.Item, WebhookCode.UserPermissionRevoked)] = typeof(UserPermissionRevokedWebhook),
Expand Down
8 changes: 0 additions & 8 deletions src/Plaid/Cra/BaseReportCreateResponse.cs

This file was deleted.

2 changes: 1 addition & 1 deletion src/Plaid/Cra/CraBankIncomeCreateRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public partial class CraBankIncomeCreateRequest : RequestBase
public string? Webhook { get; set; } = default!;

/// <summary>
/// <para>The number of days of data to request for the Bank Income product</para>
/// <para>The number of days of data to request</para>
/// </summary>
[JsonPropertyName("days_requested")]
public int? DaysRequested { get; set; } = default!;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
namespace Going.Plaid.Cra;

/// <summary>
/// <para>BaseReportCreateRequest defines the request schema for <c>/cra/base_report/create</c></para>
/// <para>CraBaseReportCreateRequest defines the request schema for <c>/cra/base_report/create</c></para>
/// </summary>
public partial class BaseReportCreateRequest : RequestBase
public partial class CraBaseReportCreateRequest : RequestBase
{
/// <summary>
/// <para>The user token associated with the User data is being requested for.</para>
Expand Down
8 changes: 8 additions & 0 deletions src/Plaid/Cra/CraBaseReportCreateResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace Going.Plaid.Cra;

/// <summary>
/// <para>CraBaseReportCreateResponse defines the response schema for <c>cra/base_report/create</c></para>
/// </summary>
public record CraBaseReportCreateResponse : ResponseBase
{
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
namespace Going.Plaid.Cra;

/// <summary>
/// <para>BaseReportGetRequest defines the request schema for <c>/cra/base_report/get</c></para>
/// <para>CraBaseReportGetRequest defines the request schema for <c>/cra/base_report/get</c></para>
/// </summary>
public partial class BaseReportGetRequest : RequestBase
public partial class CraBaseReportGetRequest : RequestBase
{
/// <summary>
/// <para>The user token associated with the User data is being requested for.</para>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
namespace Going.Plaid.Cra;

/// <summary>
/// <para>BaseReportGetResponse defines the response schema for <c>/cra/base_report/get</c></para>
/// <para>CraBaseReportGetResponse defines the response schema for <c>/cra/base_report/get</c></para>
/// </summary>
public record BaseReportGetResponse : ResponseBase
public record CraBaseReportGetResponse : ResponseBase
{
/// <summary>
/// <para>An object representing a Base Report</para>
Expand All @@ -15,6 +15,6 @@ public record BaseReportGetResponse : ResponseBase
/// <para>If the Base Report generation was successful but identity information cannot be returned, this array will contain information about the errors causing identity information to be missing</para>
/// </summary>
[JsonPropertyName("warnings")]
public IReadOnlyList<Entity.BaseReportWarning>? Warnings { get; init; } = default!;
public IReadOnlyList<Entity.BaseReportWarning> Warnings { get; init; } = default!;

}
2 changes: 1 addition & 1 deletion src/Plaid/Cra/CraCheckReportBaseReportGetResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public record CraCheckReportBaseReportGetResponse : ResponseBase
/// <para>If the Base Report generation was successful but identity information cannot be returned, this array will contain information about the errors causing identity information to be missing</para>
/// </summary>
[JsonPropertyName("warnings")]
public IReadOnlyList<Entity.BaseReportWarning>? Warnings { get; init; } = default!;
public IReadOnlyList<Entity.BaseReportWarning> Warnings { get; init; } = default!;

}
4 changes: 2 additions & 2 deletions src/Plaid/Cra/CraCheckReportCreateRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ public partial class CraCheckReportCreateRequest : RequestBase
public string Webhook { get; set; } = default!;

/// <summary>
/// <para>The number of days of data to request for the report</para>
/// <para>The number of days of data to request for the report. If requesting Income Insights, a minimum of 90 days is recommended in order to receive both historical and forecasted income.</para>
/// </summary>
[JsonPropertyName("days_requested")]
public int? DaysRequested { get; set; } = default!;
public int DaysRequested { get; set; } = default!;

/// <summary>
/// <para>Products that will be retrieved in this report. This configuration will determine what data types to fetch from the user's financial institution. If omitted, the data types needed to support all products will be fetched.</para>
Expand Down
2 changes: 1 addition & 1 deletion src/Plaid/Cra/CraCheckReportIncomeInsightsGetResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Going.Plaid.Cra;
public record CraCheckReportIncomeInsightsGetResponse : ResponseBase
{
/// <summary>
/// <para>The report of the Bank Income data for an end user.</para>
/// <para>The Check Income Insights Report for an end user.</para>
/// </summary>
[JsonPropertyName("report")]
public Entity.CraIncomeInsights? Report { get; init; } = default!;
Expand Down
14 changes: 0 additions & 14 deletions src/Plaid/Cra/CraCheckReportNetworkAttributesGetResponse.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
namespace Going.Plaid.Cra;

/// <summary>
/// <para>CraCheckReportNetworkAttributesGetRequest defines the request schema for <c>/cra/check_report/network_attributes/get</c>.</para>
/// <para>CraCheckReportNetworkInsightsGetRequest defines the request schema for <c>/cra/check_report/network_attributes/get</c>.</para>
/// </summary>
public partial class CraCheckReportNetworkAttributesGetRequest : RequestBase
public partial class CraCheckReportNetworkInsightsGetRequest : RequestBase
{
/// <summary>
/// <para>The user token associated with the User data is being requested for.</para>
Expand Down
14 changes: 14 additions & 0 deletions src/Plaid/Cra/CraCheckReportNetworkInsightsGetResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace Going.Plaid.Cra;

/// <summary>
/// <para>CraCheckReportNetworkInsightsGetResponse defines the response schema for <c>/cra/check_report/network_attributes/get</c>.</para>
/// </summary>
public record CraCheckReportNetworkInsightsGetResponse : ResponseBase
{
/// <summary>
/// <para>Contains data for the CRA Network Attributes Report.</para>
/// </summary>
[JsonPropertyName("report")]
public Entity.CraNetworkInsightsReport Report { get; init; } = default!;

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

/// <summary>
/// <para>CraMonitoringInsightsGetRequest defines the request schema for <c>/cra/monitoring_insights/get</c></para>
/// </summary>
public partial class CraMonitoringInsightsGetRequest : 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!;

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

/// <summary>
/// <para>CraMonitoringInsightsGetResponse defines the response schema for <c>cra/monitoring_insights/get</c></para>
/// </summary>
public record CraMonitoringInsightsGetResponse : ResponseBase
{
/// <summary>
/// <para>An array of the Monitoring Insights Item</para>
/// </summary>
[JsonPropertyName("items")]
public IReadOnlyList<Entity.CraMonitoringInsightsItem> Items { get; init; } = default!;

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

/// <summary>
/// <para>CraMonitoringInsightsSubscribeRequest defines the request schema for <c>/cra/monitoring_insights/subscribe</c></para>
/// </summary>
public partial class CraMonitoringInsightsSubscribeRequest : 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>URL to which Plaid will send Monitoring Insights webhooks, for example when the requested Monitoring Insights is ready.</para>
/// </summary>
[JsonPropertyName("webhook")]
public string Webhook { get; set; } = default!;

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

/// <summary>
/// <para>CraMonitoringInsightsSubscribeResponse defines the response schema for <c>cra/monitoring_insights/subscribe</c></para>
/// </summary>
public record CraMonitoringInsightsSubscribeResponse : ResponseBase
{
/// <summary>
/// <para>A unique identifier for the subscription, which can be used for troubleshooting</para>
/// </summary>
[JsonPropertyName("subscription_id")]
public string SubscriptionId { get; init; } = default!;

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

/// <summary>
/// <para>CraMonitoringInsightsUnsubscribeRequest defines the request schema for <c>/cra/monitoring_insights/unsubscribe</c></para>
/// </summary>
public partial class CraMonitoringInsightsUnsubscribeRequest : RequestBase
{
/// <summary>
/// <para>A unique identifier for the subscription, which can be used for troubleshooting</para>
/// </summary>
[JsonPropertyName("subscription_id")]
public string SubscriptionId { get; set; } = default!;

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

/// <summary>
/// <para>CraMonitoringInsightsUnsubscribeResponse defines the response schema for <c>cra/monitoring_insights/unsubscribe</c></para>
/// </summary>
public record CraMonitoringInsightsUnsubscribeResponse : ResponseBase
{
}
Loading

0 comments on commit d6d6e09

Please sign in to comment.