File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 1- using System . Collections . Generic ;
1+ using System ;
2+ using System . Collections . Generic ;
23using System . Threading . Tasks ;
34using Fiscalapi . Common ;
45using Fiscalapi . Models ;
@@ -44,5 +45,12 @@ public interface IDownloadRequestService : IFiscalApiService<DownloadRequest>
4445 /// <param name="requestId"></param>
4546 /// <returns>File response object</returns>
4647 Task < ApiResponse < FileResponse > > DownloadSatResponseAsync ( string requestId ) ;
48+
49+ /// <summary>
50+ /// Searches for download requests created at a specific date.
51+ /// </summary>
52+ /// <param name="createdAt"></param>
53+ /// <returns></returns>
54+ Task < ApiResponse < List < DownloadRequest > > > SearchAsync ( DateTime createdAt ) ;
4755 }
4856}
Original file line number Diff line number Diff line change 1- using System . Collections . Generic ;
1+ using System ;
2+ using System . Collections . Generic ;
23using System . Threading . Tasks ;
34using Fiscalapi . Abstractions ;
45using Fiscalapi . Common ;
@@ -54,5 +55,13 @@ public Task<ApiResponse<FileResponse>> DownloadSatResponseAsync(string requestId
5455 var endpoint = BuildEndpoint ( path ) ;
5556 return HttpClient . GetAsync < FileResponse > ( endpoint ) ;
5657 }
58+
59+ public Task < ApiResponse < List < DownloadRequest > > > SearchAsync ( DateTime createdAt )
60+ {
61+ //api/v4/download-requests/search?createdAt=2025-08-21
62+ var path = $ "search?createdAt={ createdAt : yyyy-MM-dd} ";
63+ var endpoint = BuildEndpoint ( path ) ;
64+ return HttpClient . GetAsync < List < DownloadRequest > > ( endpoint ) ;
65+ }
5766 }
5867}
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <TargetFrameworks >netstandard2.0;net461;net48;netcoreapp3.1;net5.0;net6.0;net8.0</TargetFrameworks >
5- <Version >4.0.269 </Version >
5+ <Version >4.0.270 </Version >
66 <AssemblyVersion >$(Version)</AssemblyVersion >
77 <FileVersion >$(Version)</FileVersion >
88 <PackageVersion >$(Version)</PackageVersion >
You can’t perform that action at this time.
0 commit comments