Skip to content

Commit

Permalink
Update to Plaid v1.620.0
Browse files Browse the repository at this point in the history
  • Loading branch information
viceroypenguin committed Feb 22, 2025
1 parent 0cc6dab commit 73e63e0
Show file tree
Hide file tree
Showing 12 changed files with 223 additions and 7 deletions.
2 changes: 1 addition & 1 deletion plaid-openapi
Submodule plaid-openapi updated 2 files
+201 −5 2020-09-14.yml
+7 −0 CHANGELOG.md
6 changes: 6 additions & 0 deletions src/Plaid/Converters/WebhookBaseConverter.Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ public partial class WebhookBaseConverter : JsonConverter<WebhookBase>
[(WebhookType.Item, WebhookCode.UserAccountRevoked)] = typeof(UserAccountRevokedWebhook),
[(WebhookType.Statements, WebhookCode.StatementsRefreshComplete)] = typeof(StatementsRefreshCompleteWebhook),
[(WebhookType.CraMonitoring, WebhookCode.InsightsUpdated)] = typeof(MonitoringInsightsWebhook),
[(WebhookType.CraMonitoring, WebhookCode.NsfOverdraftDetected)] = typeof(MonitoringInsightsNSFWebhook),
[(WebhookType.CraMonitoring, WebhookCode.NewIncomeStreamDetected)] = typeof(MonitoringInsightsNewIncomeStreamWebhook),
[(WebhookType.CraMonitoring, WebhookCode.ExpectedDepositMissed)] = typeof(MonitoringInsightsExpectedDepositMissedWebhook),
[(WebhookType.CraMonitoring, WebhookCode.LowBalanceDetected)] = typeof(MonitoringInsightsLowBalanceWebhook),
[(WebhookType.CraMonitoring, WebhookCode.LargeDepositDetected)] = typeof(MonitoringInsightsLargeDepositWebhook),
[(WebhookType.CraMonitoring, WebhookCode.NewLoanPaymentDetected)] = typeof(MonitoringInsightsNewLoanPaymentWebhook),
[(WebhookType.BaseReport, WebhookCode.Error)] = typeof(BaseReportsErrorWebhook),
[(WebhookType.CraIncome, WebhookCode.BankIncomeComplete)] = typeof(CraBankIncomeCompleteWebhook),
[(WebhookType.CraIncome, WebhookCode.Error)] = typeof(CraBankIncomeErrorWebhook),
Expand Down
6 changes: 6 additions & 0 deletions src/Plaid/Entity/TransferEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,10 @@ public record TransferEvent
[JsonPropertyName("originator_client_id")]
public string? OriginatorClientId { get; init; } = default!;

/// <summary>
/// <para>The <c>id</c> returned by the /transfer/intent/create endpoint, for transfers created via Transfer UI. For transfers not created by Transfer UI, the value is <c>null</c>. This will currently only be populated for RfP transfers.</para>
/// </summary>
[JsonPropertyName("intent_id")]
public string? IntentId { get; init; } = default!;

}
36 changes: 36 additions & 0 deletions src/Plaid/Entity/WebhookCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,42 @@ public enum WebhookCode
[EnumMember(Value = "INSIGHTS_UPDATED")]
InsightsUpdated,

/// <summary>
///
/// </summary>
[EnumMember(Value = "NSF_OVERDRAFT_DETECTED")]
NsfOverdraftDetected,

/// <summary>
///
/// </summary>
[EnumMember(Value = "NEW_INCOME_STREAM_DETECTED")]
NewIncomeStreamDetected,

/// <summary>
///
/// </summary>
[EnumMember(Value = "EXPECTED_DEPOSIT_MISSED")]
ExpectedDepositMissed,

/// <summary>
///
/// </summary>
[EnumMember(Value = "LOW_BALANCE_DETECTED")]
LowBalanceDetected,

/// <summary>
///
/// </summary>
[EnumMember(Value = "LARGE_DEPOSIT_DETECTED")]
LargeDepositDetected,

/// <summary>
///
/// </summary>
[EnumMember(Value = "NEW_LOAN_PAYMENT_DETECTED")]
NewLoanPaymentDetected,

/// <summary>
///
/// </summary>
Expand Down
6 changes: 6 additions & 0 deletions src/Plaid/Link/LinkTokenCreateRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@ public partial class LinkTokenCreateRequest : RequestBase
[JsonPropertyName("user_token")]
public string? UserToken { get; set; } = default!;

/// <summary>
/// <para>A third party user token associated with the current user.</para>
/// </summary>
[JsonPropertyName("third_party_user_token")]
public string? ThirdPartyUserToken { get; set; } = default!;

/// <summary>
/// <para>Configuration parameters for the Investments product</para>
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
namespace Going.Plaid.Webhook;

/// <summary>
/// <para>For each user enabled for Cash Flow Updates, this webhook will fire when an update detects that an expected deposit was missed. Upon receiving the webhook, call <c>/cra/monitoring_insights/get</c> to retrieve the updated insights.</para>
/// </summary>
public record MonitoringInsightsExpectedDepositMissedWebhook : WebhookBase
{
/// <inheritdoc />
[JsonPropertyName("webhook_type")]
public override WebhookType WebhookType => WebhookType.CraMonitoring;

/// <inheritdoc />
[JsonPropertyName("webhook_code")]
public override WebhookCode WebhookCode => WebhookCode.ExpectedDepositMissed;

/// <summary>
/// <para>Enum for the status of the insights</para>
/// </summary>
[JsonPropertyName("status")]
public Entity.MonitoringInsightsStatus Status { get; init; } = default!;

/// <summary>
/// <para>The <c>user_id</c> that the report is associated with</para>
/// </summary>
[JsonPropertyName("user_id")]
public string UserId { get; init; } = default!;

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

/// <summary>
/// <para>For each user enabled for Cash Flow Updates, this webhook will fire when an update detects a large deposit. Upon receiving the webhook, call <c>/cra/monitoring_insights/get</c> to retrieve the updated insights.</para>
/// </summary>
public record MonitoringInsightsLargeDepositWebhook : WebhookBase
{
/// <inheritdoc />
[JsonPropertyName("webhook_type")]
public override WebhookType WebhookType => WebhookType.CraMonitoring;

/// <inheritdoc />
[JsonPropertyName("webhook_code")]
public override WebhookCode WebhookCode => WebhookCode.LargeDepositDetected;

/// <summary>
/// <para>Enum for the status of the insights</para>
/// </summary>
[JsonPropertyName("status")]
public Entity.MonitoringInsightsStatus Status { get; init; } = default!;

/// <summary>
/// <para>The <c>user_id</c> that the report is associated with</para>
/// </summary>
[JsonPropertyName("user_id")]
public string UserId { get; init; } = default!;

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

/// <summary>
/// <para>For each user enabled for Cash Flow Updates, this webhook will fire when an update detects a low balance. Upon receiving the webhook, call <c>/cra/monitoring_insights/get</c> to retrieve the updated insights.</para>
/// </summary>
public record MonitoringInsightsLowBalanceWebhook : WebhookBase
{
/// <inheritdoc />
[JsonPropertyName("webhook_type")]
public override WebhookType WebhookType => WebhookType.CraMonitoring;

/// <inheritdoc />
[JsonPropertyName("webhook_code")]
public override WebhookCode WebhookCode => WebhookCode.LowBalanceDetected;

/// <summary>
/// <para>Enum for the status of the insights</para>
/// </summary>
[JsonPropertyName("status")]
public Entity.MonitoringInsightsStatus Status { get; init; } = default!;

/// <summary>
/// <para>The <c>user_id</c> that the report is associated with</para>
/// </summary>
[JsonPropertyName("user_id")]
public string UserId { get; init; } = default!;

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

/// <summary>
/// <para>For each user enabled for Cash Flow Updates, this webhook will fire when an update includes an NSF overdraft transaction. Upon receiving the webhook, call <c>/cra/monitoring_insights/get</c> to retrieve the updated insights.</para>
/// </summary>
public record MonitoringInsightsNSFWebhook : WebhookBase
{
/// <inheritdoc />
[JsonPropertyName("webhook_type")]
public override WebhookType WebhookType => WebhookType.CraMonitoring;

/// <inheritdoc />
[JsonPropertyName("webhook_code")]
public override WebhookCode WebhookCode => WebhookCode.NsfOverdraftDetected;

/// <summary>
/// <para>Enum for the status of the insights</para>
/// </summary>
[JsonPropertyName("status")]
public Entity.MonitoringInsightsStatus Status { get; init; } = default!;

/// <summary>
/// <para>The <c>user_id</c> that the report is associated with</para>
/// </summary>
[JsonPropertyName("user_id")]
public string UserId { get; init; } = default!;

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

/// <summary>
/// <para>For each user enabled for Cash Flow Updates, this webhook will fire when an update includes a new income stream. Upon receiving the webhook, call <c>/cra/monitoring_insights/get</c> to retrieve the updated insights.</para>
/// </summary>
public record MonitoringInsightsNewIncomeStreamWebhook : WebhookBase
{
/// <inheritdoc />
[JsonPropertyName("webhook_type")]
public override WebhookType WebhookType => WebhookType.CraMonitoring;

/// <inheritdoc />
[JsonPropertyName("webhook_code")]
public override WebhookCode WebhookCode => WebhookCode.NewIncomeStreamDetected;

/// <summary>
/// <para>Enum for the status of the insights</para>
/// </summary>
[JsonPropertyName("status")]
public Entity.MonitoringInsightsStatus Status { get; init; } = default!;

/// <summary>
/// <para>The <c>user_id</c> that the report is associated with</para>
/// </summary>
[JsonPropertyName("user_id")]
public string UserId { get; init; } = default!;

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

/// <summary>
/// <para>For each user enabled for Cash Flow Updates, this webhook will fire when an update detects a new loan payment. Upon receiving the webhook, call <c>/cra/monitoring_insights/get</c> to retrieve the updated insights.</para>
/// </summary>
public record MonitoringInsightsNewLoanPaymentWebhook : WebhookBase
{
/// <inheritdoc />
[JsonPropertyName("webhook_type")]
public override WebhookType WebhookType => WebhookType.CraMonitoring;

/// <inheritdoc />
[JsonPropertyName("webhook_code")]
public override WebhookCode WebhookCode => WebhookCode.NewLoanPaymentDetected;

/// <summary>
/// <para>Enum for the status of the insights</para>
/// </summary>
[JsonPropertyName("status")]
public Entity.MonitoringInsightsStatus Status { get; init; } = default!;

/// <summary>
/// <para>The <c>user_id</c> that the report is associated with</para>
/// </summary>
[JsonPropertyName("user_id")]
public string UserId { get; init; } = default!;

}
6 changes: 0 additions & 6 deletions src/Plaid/Webhook/MonitoringInsightsWebhook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ public record MonitoringInsightsWebhook : WebhookBase
[JsonPropertyName("status")]
public Entity.MonitoringInsightsStatus Status { get; init; } = default!;

/// <summary>
/// <para>The reason for why insights may not be <c>AVAILABLE</c></para>
/// </summary>
[JsonPropertyName("reason")]
public string? Reason { get; init; } = default!;

/// <summary>
/// <para>The <c>user_id</c> that the report is associated with</para>
/// </summary>
Expand Down

0 comments on commit 73e63e0

Please sign in to comment.