-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0cc6dab
commit 73e63e0
Showing
12 changed files
with
223 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/Plaid/Webhook/MonitoringInsightsExpectedDepositMissedWebhook.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
28
src/Plaid/Webhook/MonitoringInsightsLargeDepositWebhook.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
28
src/Plaid/Webhook/MonitoringInsightsNewIncomeStreamWebhook.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
28
src/Plaid/Webhook/MonitoringInsightsNewLoanPaymentWebhook.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters