Skip to content

Commit

Permalink
Update to Plaid v1.474.0
Browse files Browse the repository at this point in the history
  • Loading branch information
viceroypenguin committed Nov 27, 2023
1 parent 829b063 commit e08f839
Show file tree
Hide file tree
Showing 14 changed files with 157 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plaid-openapi
Submodule plaid-openapi updated 2 files
+179 −3 2020-09-14.yml
+111 −3 CHANGELOG.md
4 changes: 4 additions & 0 deletions src/Plaid/Converters/WebhookBaseConverter.Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ public partial class WebhookBaseConverter : JsonConverter<WebhookBase>
[(WebhookType.Screening, WebhookCode.StatusUpdated)] = typeof(ScreeningStatusUpdatedWebhook),
[(WebhookType.EntityScreening, WebhookCode.StatusUpdated)] = typeof(EntityScreeningStatusUpdatedWebhook),
[(WebhookType.Beacon, WebhookCode.UserStatusUpdated)] = typeof(BeaconUserStatusUpdatedWebhook),
[(WebhookType.Beacon, WebhookCode.ReportCreated)] = typeof(BeaconReportCreatedWebhook),
[(WebhookType.Beacon, WebhookCode.ReportUpdated)] = typeof(BeaconReportUpdatedWebhook),
[(WebhookType.Beacon, WebhookCode.ReportSyndicationCreated)] = typeof(BeaconReportSyndicationCreatedWebhook),
[(WebhookType.Beacon, WebhookCode.DuplicateDetected)] = typeof(BeaconDuplicateDetectedWebhook),
[(WebhookType.IdentityVerification, WebhookCode.StepUpdated)] = typeof(IdentityVerificationStepUpdatedWebhook),
[(WebhookType.IdentityVerification, WebhookCode.Retried)] = typeof(IdentityVerificationRetriedWebhook),
[(WebhookType.IdentityVerification, WebhookCode.StatusUpdated)] = typeof(IdentityVerificationStatusUpdatedWebhook),
Expand Down
2 changes: 1 addition & 1 deletion src/Plaid/Entity/LinkTokenCreateRequestStatements.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class LinkTokenCreateRequestStatements
public DateOnly? StartDate { get; set; } = default!;

/// <summary>
/// <para>The end date for statements, in <a href="https://wikipedia.org/wiki/ISO_8601">ISO 8601</a> “YYYY-MM-DD” format, e.g. "2020-10-30". If no value is provided, this will default to the current date.</para>
/// <para>The end date for statements, in <a href="https://wikipedia.org/wiki/ISO_8601">ISO 8601</a> “YYYY-MM-DD” format, e.g. "2020-10-30". If no value is provided, this will default to the current date. You can request up to two years of data.</para>
/// </summary>
[JsonPropertyName("end_date")]
public DateOnly? EndDate { get; set; } = default!;
Expand Down
13 changes: 13 additions & 0 deletions src/Plaid/Entity/LinkTokenTransactions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
namespace Going.Plaid.Entity;

/// <summary>
/// <para>Configuration parameters for the Transactions product</para>
/// </summary>
public class LinkTokenTransactions
{
/// <summary>
/// <para>The maximum number of days of transaction history to request for the Transactions product. For developer accounts created after December 3, 2023, if no value is specified, this will default to 90 days. For developer accounts created on December 3, 2023 or earlier, if no value is specified, this will default to 730 days until June 24, 2024, at which point it will default to 90 days.</para>
/// </summary>
[JsonPropertyName("days_requested")]
public int? DaysRequested { get; set; } = default!;
}
6 changes: 6 additions & 0 deletions src/Plaid/Entity/ProcessorTokenCreateRequestProcessorEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,12 @@ public enum ProcessorTokenCreateRequestProcessorEnum
[EnumMember(Value = "taba_pay")]
TabaPay,

/// <summary>
///
/// </summary>
[EnumMember(Value = "knot")]
Knot,

/// <summary>
/// <para>Catch-all for unknown values returned by Plaid. If you encounter this, please check if there is a later version of the Going.Plaid library.</para>
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ public class SandboxPublicTokenCreateRequestOptionsTransactions
/// </summary>
[JsonPropertyName("end_date")]
public DateOnly? EndDate { get; set; } = default!;

/// <summary>
/// <para>The maximum number of days of transaction history to request for the Transactions product.</para>
/// </summary>
[JsonPropertyName("days_requested")]
public int? DaysRequested { get; set; } = default!;
}
6 changes: 6 additions & 0 deletions src/Plaid/Entity/TransactionsGetRequestOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,10 @@ public class TransactionsGetRequestOptions
/// </summary>
[JsonPropertyName("include_logo_and_counterparty_beta")]
public bool? IncludeLogoAndCounterpartyBeta { get; set; } = default!;

/// <summary>
/// <para>If Transactions has not already been added to the Item, this option controls the maximum number of days of transaction history Plaid will request from the financial institution. If Transactions has already been added to the Item, this field will have no effect.</para>
/// </summary>
[JsonPropertyName("days_requested")]
public int? DaysRequested { get; set; } = default!;
}
6 changes: 6 additions & 0 deletions src/Plaid/Entity/TransactionsSyncRequestOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ public class TransactionsSyncRequestOptions
/// </summary>
[JsonPropertyName("include_logo_and_counterparty_beta")]
public bool? IncludeLogoAndCounterpartyBeta { get; set; } = default!;

/// <summary>
/// <para>If Transactions has not already been added to the Item, this option controls the maximum number of days of transaction history Plaid will request from the financial institution. If Transactions has already been added to the Item, this field will have no effect.</para>
/// </summary>
[JsonPropertyName("days_requested")]
public int? DaysRequested { get; set; } = default!;
}
24 changes: 24 additions & 0 deletions src/Plaid/Entity/WebhookCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,30 @@ public enum WebhookCode
[EnumMember(Value = "USER_STATUS_UPDATED")]
UserStatusUpdated,

/// <summary>
///
/// </summary>
[EnumMember(Value = "REPORT_CREATED")]
ReportCreated,

/// <summary>
///
/// </summary>
[EnumMember(Value = "REPORT_UPDATED")]
ReportUpdated,

/// <summary>
///
/// </summary>
[EnumMember(Value = "REPORT_SYNDICATION_CREATED")]
ReportSyndicationCreated,

/// <summary>
///
/// </summary>
[EnumMember(Value = "DUPLICATE_DETECTED")]
DuplicateDetected,

/// <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 @@ -215,6 +215,12 @@ public partial class LinkTokenCreateRequest : RequestBase
[JsonPropertyName("hosted_link")]
public Entity.LinkTokenCreateHostedLink? HostedLink { get; set; } = default!;

/// <summary>
/// <para>Configuration parameters for the Transactions product</para>
/// </summary>
[JsonPropertyName("transactions")]
public Entity.LinkTokenTransactions? Transactions { get; set; } = default!;

/// <summary>
/// <para>If <c>true</c>, request a CRA connection. Defaults to <c>false</c>.</para>
/// </summary>
Expand Down
21 changes: 21 additions & 0 deletions src/Plaid/Webhook/BeaconDuplicateDetectedWebhook.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
namespace Going.Plaid.Webhook;

/// <summary>
/// <para>Fired when a Beacon User created within your organization matches one of your existing users.</para>
/// </summary>
public record BeaconDuplicateDetectedWebhook : WebhookBase
{
/// <inheritdoc />
[JsonPropertyName("webhook_type")]
public override WebhookType WebhookType => WebhookType.Beacon;

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

/// <summary>
/// <para>The ID of the associated Beacon Duplicate.</para>
/// </summary>
[JsonPropertyName("beacon_duplicate_id")]
public string BeaconDuplicateId { get; init; } = default!;
}
21 changes: 21 additions & 0 deletions src/Plaid/Webhook/BeaconReportCreatedWebhook.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
namespace Going.Plaid.Webhook;

/// <summary>
/// <para>Fired when one of your Beacon Users is first reported to the Beacon network.</para>
/// </summary>
public record BeaconReportCreatedWebhook : WebhookBase
{
/// <inheritdoc />
[JsonPropertyName("webhook_type")]
public override WebhookType WebhookType => WebhookType.Beacon;

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

/// <summary>
/// <para>The ID of the associated Beacon Report.</para>
/// </summary>
[JsonPropertyName("beacon_report_id")]
public string BeaconReportId { get; init; } = default!;
}
21 changes: 21 additions & 0 deletions src/Plaid/Webhook/BeaconReportSyndicationCreatedWebhook.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
namespace Going.Plaid.Webhook;

/// <summary>
/// <para>Fired when a report created on the Beacon Network matches with one of your Beacon Users.</para>
/// </summary>
public record BeaconReportSyndicationCreatedWebhook : WebhookBase
{
/// <inheritdoc />
[JsonPropertyName("webhook_type")]
public override WebhookType WebhookType => WebhookType.Beacon;

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

/// <summary>
/// <para>The ID of the associated Beacon Report Syndication.</para>
/// </summary>
[JsonPropertyName("beacon_report_syndication_id")]
public string BeaconReportSyndicationId { get; init; } = default!;
}
21 changes: 21 additions & 0 deletions src/Plaid/Webhook/BeaconReportUpdatedWebhook.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
namespace Going.Plaid.Webhook;

/// <summary>
/// <para>Fired when one of your existing Beacon Reports has been modified or removed from the Beacon Network.</para>
/// </summary>
public record BeaconReportUpdatedWebhook : WebhookBase
{
/// <inheritdoc />
[JsonPropertyName("webhook_type")]
public override WebhookType WebhookType => WebhookType.Beacon;

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

/// <summary>
/// <para>The ID of the associated Beacon Report.</para>
/// </summary>
[JsonPropertyName("beacon_report_id")]
public string BeaconReportId { get; init; } = default!;
}

0 comments on commit e08f839

Please sign in to comment.