Skip to content

chore(invoices): add ZIP request methods - #56

Open
raul-facturapi wants to merge 1 commit into
mainfrom
chore/download_zip_methods
Open

chore(invoices): add ZIP request methods#56
raul-facturapi wants to merge 1 commit into
mainfrom
chore/download_zip_methods

Conversation

@raul-facturapi

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 thread CHANGELOG.md
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\"}]}"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants