Skip to content

Commit e1f58d0

Browse files
committed
Version 4.0.270
1 parent e2caab4 commit e1f58d0

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

Abstractions/IDownloadRequestService.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Collections.Generic;
1+
using System;
2+
using System.Collections.Generic;
23
using System.Threading.Tasks;
34
using Fiscalapi.Common;
45
using 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
}

Services/DownloadRequestService.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Collections.Generic;
1+
using System;
2+
using System.Collections.Generic;
23
using System.Threading.Tasks;
34
using Fiscalapi.Abstractions;
45
using 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
}

fiscalapi-net.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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>

0 commit comments

Comments
 (0)