Skip to content

Commit

Permalink
Update to Plaid v1.586.4
Browse files Browse the repository at this point in the history
  • Loading branch information
viceroypenguin committed Nov 14, 2024
1 parent 3a0f195 commit 4b4eb85
Show file tree
Hide file tree
Showing 116 changed files with 1,020 additions and 141 deletions.
2 changes: 1 addition & 1 deletion plaid-openapi
Submodule plaid-openapi updated 2 files
+658 −112 2020-09-14.yml
+112 −7 CHANGELOG.md
2 changes: 1 addition & 1 deletion src/Plaid.OpenApiParser/WebhookConverterMap.sbntxt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Going.Plaid.Converters;
/// <inheritdoc />
public partial class {{ prefix }}WebhookBaseConverter : JsonConverter<{{ prefix }}WebhookBase>
{
private static readonly Dictionary<({{ prefix }}WebhookType, {{ prefix }}WebhookCode), Type> Map =
private static readonly Dictionary<({{ prefix }}WebhookType, {{ prefix }}WebhookCode), Type> s_map =
new()
{
{{~ for hook in hooks ~}}
Expand Down
2 changes: 1 addition & 1 deletion src/Plaid/BankTransfer/BankTransferCreateRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public partial class BankTransferCreateRequest : RequestBase
public string Description { get; set; } = default!;

/// <summary>
/// <para>Specifies the use case of the transfer. Required for transfers on an ACH network.</para>
/// <para>Specifies the use case of the transfer. Required for transfers on an ACH network. For more details, see <a href="https://plaid.com/docs/transfer/creating-transfers/#ach-sec-codes">ACH SEC codes</a>.</para>
/// </summary>
[JsonPropertyName("ach_class")]
public Entity.AchClass? AchClass { get; set; } = default!;
Expand Down
2 changes: 1 addition & 1 deletion src/Plaid/Converters/ProcessorWebhookBaseConverter.Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Going.Plaid.Converters;
/// <inheritdoc />
public partial class ProcessorWebhookBaseConverter : JsonConverter<ProcessorWebhookBase>
{
private static readonly Dictionary<(ProcessorWebhookType, ProcessorWebhookCode), Type> Map =
private static readonly Dictionary<(ProcessorWebhookType, ProcessorWebhookCode), Type> s_map =
new()
{
[(ProcessorWebhookType.Transactions, ProcessorWebhookCode.TransactionsRemoved)] = typeof(ProcessorTransactionsRemovedWebhook),
Expand Down
2 changes: 1 addition & 1 deletion src/Plaid/Converters/ProcessorWebhookBaseConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public partial class ProcessorWebhookBaseConverter : JsonConverter<ProcessorWebh
enumText = element.GetProperty("webhook_code").GetString();
var code = EnumConverterFactory.ParseEnumValue<ProcessorWebhookCode>(enumText);

if (!Map.TryGetValue((type, code), out var webhookType))
if (!s_map.TryGetValue((type, code), out var webhookType))
{
return new ProcessorUndefinedWebhook(type, code)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Plaid/Converters/WebhookBaseConverter.Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Going.Plaid.Converters;
/// <inheritdoc />
public partial class WebhookBaseConverter : JsonConverter<WebhookBase>
{
private static readonly Dictionary<(WebhookType, WebhookCode), Type> Map =
private static readonly Dictionary<(WebhookType, WebhookCode), Type> s_map =
new()
{
[(WebhookType.Screening, WebhookCode.StatusUpdated)] = typeof(ScreeningStatusUpdatedWebhook),
Expand Down Expand Up @@ -58,6 +58,7 @@ public partial class WebhookBaseConverter : JsonConverter<WebhookBase>
[(WebhookType.LinkDelivery, WebhookCode.LinkCallback)] = typeof(LinkDeliveryCallbackWebhook),
[(WebhookType.Item, WebhookCode.UserAccountRevoked)] = typeof(UserAccountRevokedWebhook),
[(WebhookType.Statements, WebhookCode.StatementsRefreshComplete)] = typeof(StatementsRefreshCompleteWebhook),
[(WebhookType.CraMonitoring, WebhookCode.InsightsUpdated)] = typeof(MonitoringInsightsWebhook),
[(WebhookType.BaseReport, WebhookCode.ProductReady)] = typeof(BaseReportsProductReadyWebhook),
[(WebhookType.BaseReport, WebhookCode.Error)] = typeof(BaseReportsErrorWebhook),
[(WebhookType.CraIncome, WebhookCode.BankIncomeComplete)] = typeof(CraBankIncomeCompleteWebhook),
Expand All @@ -75,7 +76,6 @@ public partial class WebhookBaseConverter : JsonConverter<WebhookBase>
[(WebhookType.Link, WebhookCode.SessionFinished)] = typeof(LinkSessionFinishedWebhook),
[(WebhookType.Auth, WebhookCode.SmsMicrodepositsVerification)] = typeof(HostedMMDVerificationWebhook),
[(WebhookType.DashboardConfiguredAlert, WebhookCode.InstitutionStatusAlertTriggered)] = typeof(InstitutionStatusAlertWebhook),
[(WebhookType.CraMonitoring, WebhookCode.InsightsUpdated)] = typeof(MonitoringInsightsWebhook),
[(WebhookType.Assets, WebhookCode.ProductReady)] = typeof(AssetsProductReadyWebhook),
[(WebhookType.Assets, WebhookCode.Error)] = typeof(AssetsErrorWebhook),
};
Expand Down
2 changes: 1 addition & 1 deletion src/Plaid/Converters/WebhookBaseConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public partial class WebhookBaseConverter : JsonConverter<WebhookBase>
enumText = element.GetProperty("webhook_code").GetString();
var code = EnumConverterFactory.ParseEnumValue<WebhookCode>(enumText);

if (!Map.TryGetValue((type, code), out var webhookType))
if (!s_map.TryGetValue((type, code), out var webhookType))
{
return new UndefinedWebhook(type, code)
{
Expand Down
6 changes: 6 additions & 0 deletions src/Plaid/Cra/CraCheckReportCreateRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ public partial class CraCheckReportCreateRequest : RequestBase
[JsonPropertyName("days_requested")]
public int DaysRequested { get; set; } = default!;

/// <summary>
/// <para>The minimum number of days of data required for the report to be successfully generated.</para>
/// </summary>
[JsonPropertyName("days_required")]
public int? DaysRequired { get; set; } = default!;

/// <summary>
/// <para>Describes the reason you are generating a Consumer Report for this user.</para>
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Plaid/Cra/CraMonitoringInsightsGetResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Going.Plaid.Cra;
public record CraMonitoringInsightsGetResponse : ResponseBase
{
/// <summary>
/// <para>An array of the Monitoring Insights Item</para>
/// <para>An array of Monitoring Insights Items associated with the user.</para>
/// </summary>
[JsonPropertyName("items")]
public IReadOnlyList<Entity.CraMonitoringInsightsItem> Items { get; init; } = default!;
Expand Down
2 changes: 1 addition & 1 deletion src/Plaid/Cra/CraMonitoringInsightsSubscribeResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Going.Plaid.Cra;
public record CraMonitoringInsightsSubscribeResponse : ResponseBase
{
/// <summary>
/// <para>A unique identifier for the subscription, which can be used for troubleshooting</para>
/// <para>A unique identifier for the subscription.</para>
/// </summary>
[JsonPropertyName("subscription_id")]
public string SubscriptionId { get; init; } = default!;
Expand Down
2 changes: 1 addition & 1 deletion src/Plaid/Cra/CraMonitoringInsightsUnsubscribeRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Going.Plaid.Cra;
public partial class CraMonitoringInsightsUnsubscribeRequest : RequestBase
{
/// <summary>
/// <para>A unique identifier for the subscription, which can be used for troubleshooting</para>
/// <para>A unique identifier for the subscription.</para>
/// </summary>
[JsonPropertyName("subscription_id")]
public string SubscriptionId { get; set; } = default!;
Expand Down
8 changes: 4 additions & 4 deletions src/Plaid/Cra/PlaidClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@ public sealed partial class PlaidClient
/// <summary>
/// <para>This endpoint allows you to subscribe to insights for a user's linked CRA items, which are updated every 14 days.</para>
/// </summary>
/// <remarks><see href="https://plaid.com/docs/none/" /></remarks>
/// <remarks><see href="https://plaid.com/docs/check/api/#cramonitoring_insightssubscribe" /></remarks>
public Task<Cra.CraMonitoringInsightsSubscribeResponse> CraMonitoringInsightsSubscribeAsync(Cra.CraMonitoringInsightsSubscribeRequest request) =>
PostAsync("/cra/monitoring_insights/subscribe", request)
.ParseResponseAsync<Cra.CraMonitoringInsightsSubscribeResponse>();

/// <summary>
/// <para>This endpoint allows you to unsubscribe from previously subscribed Monitoring Insights.</para>
/// </summary>
/// <remarks><see href="https://plaid.com/docs/none/" /></remarks>
/// <remarks><see href="https://plaid.com/docs/check/api/#cramonitoring_insightsunsubscribe" /></remarks>
public Task<Cra.CraMonitoringInsightsUnsubscribeResponse> CraMonitoringInsightsUnsubscribeAsync(Cra.CraMonitoringInsightsUnsubscribeRequest request) =>
PostAsync("/cra/monitoring_insights/unsubscribe", request)
.ParseResponseAsync<Cra.CraMonitoringInsightsUnsubscribeResponse>();

/// <summary>
/// <para>This endpoint allows you to retrieve a Monitoring Insights report by passing in the <c>user_token</c> referred to in the webhook you received.</para>
/// </summary>
/// <remarks><see href="https://plaid.com/docs/none/" /></remarks>
/// <remarks><see href="https://plaid.com/docs/check/api/#cramonitoring_insightsget" /></remarks>
public Task<Cra.CraMonitoringInsightsGetResponse> CraMonitoringInsightsGetAsync(Cra.CraMonitoringInsightsGetRequest request) =>
PostAsync("/cra/monitoring_insights/get", request)
.ParseResponseAsync<Cra.CraMonitoringInsightsGetResponse>();
Expand Down Expand Up @@ -84,7 +84,7 @@ public sealed partial class PlaidClient

/// <summary>
/// <para><c>/cra/check_report/create</c> creates a Consumer Report powered by Plaid Check. You can call this endpoint to create a new report if <c>consumer_report_permissible_purpose</c> was omitted during Link token creation. If you did provide a <c>consumer_report_permissible_purpose</c> during Link token creation, then Plaid Check will automatically begin creating a Consumer Report once the user completes the Link process, and it is not necessary to call <c>/cra/check_report/create</c> before retrieving the report.</para>
/// <para> <c>/cra/check_report/create</c> can also be used to refresh data in an existing report. A Consumer Report will last for 24 hours before expiring; you should call any <c>/get</c> endpoints on the report before it expires. If a report expires, you can call <c>/cra/check_report/create</c> again to re-generate it. Note that refreshing or regenerating a report is a billable event."</para>
/// <para> <c>/cra/check_report/create</c> can also be used to refresh data in an existing report. A Consumer Report will last for 24 hours before expiring; you should call any <c>/get</c> endpoints on the report before it expires. If a report expires, you can call <c>/cra/check_report/create</c> again to re-generate it. Note that refreshing or regenerating a report is a billable event.</para>
/// </summary>
/// <remarks><see href="https://plaid.com/docs/check/api/#cracheck_reportcreate" /></remarks>
public Task<Cra.CraCheckReportCreateResponse> CraCheckReportCreateAsync(Cra.CraCheckReportCreateRequest request) =>
Expand Down
4 changes: 2 additions & 2 deletions src/Plaid/Entity/Account.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ public record Account
public Entity.AccountSubtype? Subtype { get; init; } = default!;

/// <summary>
/// <para>The current verification status of an Auth Item initiated through Automated or Manual micro-deposits. Returned for Auth Items only.</para>
/// <para>The current verification status of an Auth Item initiated through micro-deposits or database verification. Returned for Auth Items only.</para>
/// </summary>
[JsonPropertyName("verification_status")]
public Entity.AccountVerificationStatusEnum? VerificationStatus { get; init; } = default!;

/// <summary>
/// <para>Insights from performing database verification for the account.</para>
/// <para>Insights from performing database verification for the account. Only returned for Auth Items created via Database Insights.</para>
/// </summary>
[JsonPropertyName("verification_insights")]
public Entity.VerificationInsights? VerificationInsights { get; init; } = default!;
Expand Down
4 changes: 2 additions & 2 deletions src/Plaid/Entity/AccountIdentity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ public record AccountIdentity
public Entity.AccountSubtype? Subtype { get; init; } = default!;

/// <summary>
/// <para>The current verification status of an Auth Item initiated through Automated or Manual micro-deposits. Returned for Auth Items only.</para>
/// <para>The current verification status of an Auth Item initiated through micro-deposits or database verification. Returned for Auth Items only.</para>
/// </summary>
[JsonPropertyName("verification_status")]
public Entity.AccountIdentityVerificationStatusEnum? VerificationStatus { get; init; } = default!;

/// <summary>
/// <para>Insights from performing database verification for the account.</para>
/// <para>Insights from performing database verification for the account. Only returned for Auth Items created via Database Insights.</para>
/// </summary>
[JsonPropertyName("verification_insights")]
public Entity.VerificationInsights? VerificationInsights { get; init; } = default!;
Expand Down
4 changes: 2 additions & 2 deletions src/Plaid/Entity/AccountIdentityDocumentUpload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ public record AccountIdentityDocumentUpload
public Entity.AccountSubtype? Subtype { get; init; } = default!;

/// <summary>
/// <para>The current verification status of an Auth Item initiated through Automated or Manual micro-deposits. Returned for Auth Items only.</para>
/// <para>The current verification status of an Auth Item initiated through micro-deposits or database verification. Returned for Auth Items only.</para>
/// </summary>
[JsonPropertyName("verification_status")]
public Entity.AccountIdentityDocumentUploadVerificationStatusEnum? VerificationStatus { get; init; } = default!;

/// <summary>
/// <para>Insights from performing database verification for the account.</para>
/// <para>Insights from performing database verification for the account. Only returned for Auth Items created via Database Insights.</para>
/// </summary>
[JsonPropertyName("verification_insights")]
public Entity.VerificationInsights? VerificationInsights { get; init; } = default!;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Going.Plaid.Entity;

/// <summary>
/// <para>The current verification status of an Auth Item initiated through Automated or Manual micro-deposits. Returned for Auth Items only.</para>
/// <para>The current verification status of an Auth Item initiated through micro-deposits or database verification. Returned for Auth Items only.</para>
/// </summary>
public enum AccountIdentityDocumentUploadVerificationStatusEnum
{
Expand Down Expand Up @@ -42,25 +42,25 @@ public enum AccountIdentityDocumentUploadVerificationStatusEnum
VerificationFailed,

/// <summary>
/// <para>The Item has successfully been verified using Plaid's data sources.</para>
/// <para>The Item has successfully been verified using Plaid's data sources. Only returned for Auth Items created via Database Match.</para>
/// </summary>
[EnumMember(Value = "database_matched")]
DatabaseMatched,

/// <summary>
/// <para>The Item's ACH numbers have been verified using Plaid's data sources and have strong signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information.</para>
/// <para>The Item's numbers have been verified using Plaid's data sources and have strong signal for being valid. Only returned for Auth Items created via Database Insights. Note: Database Insights is currently a beta feature, please contact your account manager for more information.</para>
/// </summary>
[EnumMember(Value = "database_insights_pass")]
DatabaseInsightsPass,

/// <summary>
/// <para>The Item's ACH numbers have been verified using Plaid's data sources and have some signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information.</para>
/// <para>The Item's numbers have been verified using Plaid's data sources and have some signal for being valid. Only returned for Auth Items created via Database Insights. Note: Database Insights is currently a beta feature, please contact your account manager for more information.</para>
/// </summary>
[EnumMember(Value = "database_insights_pass_with_caution")]
DatabaseInsightsPassWithCaution,

/// <summary>
/// <para>The Item's ACH numbers have been verified using Plaid's data sources and have signal for being invalid and/or have no signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information.</para>
/// <para>The Item's numbers have been verified using Plaid's data sources and have signal for being invalid and/or have no signal for being valid. Only returned for Auth Items created via Database Insights. Note: Database Insights is currently a beta feature, please contact your account manager for more information.</para>
/// </summary>
[EnumMember(Value = "database_insights_fail")]
DatabaseInsightsFail,
Expand Down
4 changes: 2 additions & 2 deletions src/Plaid/Entity/AccountIdentityMatchScore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ public record AccountIdentityMatchScore
public Entity.AccountSubtype? Subtype { get; init; } = default!;

/// <summary>
/// <para>The current verification status of an Auth Item initiated through Automated or Manual micro-deposits. Returned for Auth Items only.</para>
/// <para>The current verification status of an Auth Item initiated through micro-deposits or database verification. Returned for Auth Items only.</para>
/// </summary>
[JsonPropertyName("verification_status")]
public Entity.AccountIdentityMatchScoreVerificationStatusEnum? VerificationStatus { get; init; } = default!;

/// <summary>
/// <para>Insights from performing database verification for the account.</para>
/// <para>Insights from performing database verification for the account. Only returned for Auth Items created via Database Insights.</para>
/// </summary>
[JsonPropertyName("verification_insights")]
public Entity.VerificationInsights? VerificationInsights { get; init; } = default!;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Going.Plaid.Entity;

/// <summary>
/// <para>The current verification status of an Auth Item initiated through Automated or Manual micro-deposits. Returned for Auth Items only.</para>
/// <para>The current verification status of an Auth Item initiated through micro-deposits or database verification. Returned for Auth Items only.</para>
/// </summary>
public enum AccountIdentityMatchScoreVerificationStatusEnum
{
Expand Down Expand Up @@ -42,25 +42,25 @@ public enum AccountIdentityMatchScoreVerificationStatusEnum
VerificationFailed,

/// <summary>
/// <para>The Item has successfully been verified using Plaid's data sources.</para>
/// <para>The Item has successfully been verified using Plaid's data sources. Only returned for Auth Items created via Database Match.</para>
/// </summary>
[EnumMember(Value = "database_matched")]
DatabaseMatched,

/// <summary>
/// <para>The Item's ACH numbers have been verified using Plaid's data sources and have strong signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information.</para>
/// <para>The Item's numbers have been verified using Plaid's data sources and have strong signal for being valid. Only returned for Auth Items created via Database Insights. Note: Database Insights is currently a beta feature, please contact your account manager for more information.</para>
/// </summary>
[EnumMember(Value = "database_insights_pass")]
DatabaseInsightsPass,

/// <summary>
/// <para>The Item's ACH numbers have been verified using Plaid's data sources and have some signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information.</para>
/// <para>The Item's numbers have been verified using Plaid's data sources and have some signal for being valid. Only returned for Auth Items created via Database Insights. Note: Database Insights is currently a beta feature, please contact your account manager for more information.</para>
/// </summary>
[EnumMember(Value = "database_insights_pass_with_caution")]
DatabaseInsightsPassWithCaution,

/// <summary>
/// <para>The Item's ACH numbers have been verified using Plaid's data sources and have signal for being invalid and/or have no signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information.</para>
/// <para>The Item's numbers have been verified using Plaid's data sources and have signal for being invalid and/or have no signal for being valid. Only returned for Auth Items created via Database Insights. Note: Database Insights is currently a beta feature, please contact your account manager for more information.</para>
/// </summary>
[EnumMember(Value = "database_insights_fail")]
DatabaseInsightsFail,
Expand Down
Loading

0 comments on commit 4b4eb85

Please sign in to comment.