-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
7d7cb7f
commit daf16ff
Showing
13 changed files
with
88 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
namespace Going.Plaid.Cra; | ||
|
||
/// <summary> | ||
/// <para>BaseReportCreateRequest defines the request schema for <c>/cra/base_report/create</c></para> | ||
/// </summary> | ||
public partial class BaseReportCreateRequest : 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>The duration of transaction history you requested</para> | ||
/// </summary> | ||
[JsonPropertyName("days_requested")] | ||
public int DaysRequested { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>URL to which Plaid will send Assets webhooks, for example when the requested Asset Report is ready.</para> | ||
/// </summary> | ||
[JsonPropertyName("webhook")] | ||
public string? Webhook { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>This enum describes the reason a consumer report is created for</para> | ||
/// </summary> | ||
[JsonPropertyName("consumer_report_permissible_purpose")] | ||
public Entity.ConsumerReportPermissiblePurpose ConsumerReportPermissiblePurpose { get; set; } = 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,8 @@ | ||
namespace Going.Plaid.Cra; | ||
|
||
/// <summary> | ||
/// <para>BaseReportCreateResponse defines the response schema for <c>cra/base_report/create</c></para> | ||
/// </summary> | ||
public record BaseReportCreateResponse : ResponseBase | ||
{ | ||
} |
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 was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace Going.Plaid.Webhook; | ||
|
||
/// <summary> | ||
/// <para>Fired when a partner insights report has failed to generate</para> | ||
/// </summary> | ||
public record CraPartnerInsightsErrorWebhook : WebhookBase | ||
{ | ||
/// <inheritdoc /> | ||
[JsonPropertyName("webhook_type")] | ||
public override WebhookType WebhookType => WebhookType.CraInsights; | ||
|
||
/// <inheritdoc /> | ||
[JsonPropertyName("webhook_code")] | ||
public override WebhookCode WebhookCode => WebhookCode.PartnerInsightsError; | ||
|
||
/// <summary> | ||
/// <para>The <c>user_id</c> corresponding to the user the webhook has fired for.</para> | ||
/// </summary> | ||
[JsonPropertyName("user_id")] | ||
public string UserId { get; init; } = default!; | ||
|
||
} |