chore(invoices): add ZIP request methods - #56
Open
raul-facturapi wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for invoice ZIP export/aggregation workflows to the .NET SDK by introducing new wrapper methods, router endpoints, and regression tests, along with a package version + changelog update.
Changes:
- Added invoice ZIP request wrapper methods (create/list/retrieve/download) and corresponding routes.
- Added behavior tests covering the new ZIP request endpoints and download stream behavior.
- Bumped package version to 6.7.0 and documented the release in the changelog.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| Wrappers/InvoiceWrapper.cs | Implements ZIP request API calls (create/list/retrieve/download). |
| Wrappers/IInvoiceWrapper.cs | Exposes ZIP request methods on the public invoice wrapper interface. |
| Router/InvoiceRouter.cs | Adds route builders for ZIP request endpoints. |
| FacturapiTest/WrapperBehaviorTests.cs | Adds regression tests validating the new routes and ZIP download stream behavior. |
| facturapi-net.csproj | Bumps NuGet/package version to 6.7.0. |
| CHANGELOG.md | Documents the new ZIP request methods in the 6.7.0 release entry. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+8
to
+11
| ## [6.7.0] - 2026-08-12 | ||
| ### Added | ||
| - Added invoice ZIP request methods: `CreateZipRequestAsync`, `ListZipRequestsAsync`, `RetrieveZipRequestAsync`, and `DownloadZipRequestAsync`. | ||
|
|
Comment on lines
+525
to
+528
| Assert.Equal(HttpMethod.Get, request.Method); | ||
| Assert.NotNull(request.RequestUri); | ||
| Assert.Equal("/v2/invoices/zip-requests?year=2025&month=3&status=finished&limit=20&page=1", request.RequestUri.PathAndQuery); | ||
| return Task.FromResult(JsonResponse("{\"page\":1,\"total_pages\":1,\"total_results\":1,\"data\":[{\"id\":\"zip_1\"}]}")); |
javorosas
approved these changes
Aug 13, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.