From f4b230580aad40595e48bfc7023c218edc5eb32a Mon Sep 17 00:00:00 2001 From: Aaron Denny Date: Tue, 7 Feb 2023 20:40:39 -0500 Subject: [PATCH] add pdf get options --- src/Plaid/AssetReport/AssetReportPdfGetRequest.cs | 6 ++++++ src/Plaid/Entity/AssetReportPdfGetRequestOptions.cs | 13 +++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 src/Plaid/Entity/AssetReportPdfGetRequestOptions.cs diff --git a/src/Plaid/AssetReport/AssetReportPdfGetRequest.cs b/src/Plaid/AssetReport/AssetReportPdfGetRequest.cs index 7d1d1b40..99753153 100644 --- a/src/Plaid/AssetReport/AssetReportPdfGetRequest.cs +++ b/src/Plaid/AssetReport/AssetReportPdfGetRequest.cs @@ -10,4 +10,10 @@ public partial class AssetReportPdfGetRequest : RequestBase /// [JsonPropertyName("asset_report_token")] public string AssetReportToken { get; set; } = default!; + + /// + /// An optional object to filter or add data to /asset_report/pdf/get results. If provided, must be non-null. + /// + [JsonPropertyName("options")] + public Entity.AssetReportPdfGetRequestOptions Options { get; set; } = default!; } diff --git a/src/Plaid/Entity/AssetReportPdfGetRequestOptions.cs b/src/Plaid/Entity/AssetReportPdfGetRequestOptions.cs new file mode 100644 index 00000000..303f01eb --- /dev/null +++ b/src/Plaid/Entity/AssetReportPdfGetRequestOptions.cs @@ -0,0 +1,13 @@ +namespace Going.Plaid.Entity; + +/// +/// An optional object to filter or add data to /asset_report/pdf/get results. If provided, must be non-null. +/// +public class AssetReportPdfGetRequestOptions +{ + /// + /// The maximum integer number of days of history to include in the Asset Report. + /// + [JsonPropertyName("days_to_include")] + public int? DaysToInclude { get; set; } = default!; +}