Skip to content

Add invoice ZIP request methods - #11

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

Add invoice ZIP request methods#11
raul-facturapi wants to merge 1 commit into
mainfrom
chore/download_zip_methods

Conversation

@raul-facturapi

Copy link
Copy Markdown
Collaborator

No description provided.

@raul-facturapi
raul-facturapi requested review from javorosas and a lite review from Copilot August 12, 2026 15:41
@raul-facturapi raul-facturapi self-assigned this Aug 12, 2026
@raul-facturapi raul-facturapi added the documentation Improvements or additions to documentation label Aug 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown

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 in the Java SDK for creating, listing, retrieving, and downloading invoice ZIP requests via the /v2/invoices/zip-requests endpoints, along with test coverage and a version bump for release.

Changes:

  • Add ZIP request methods to InvoicesResource (createZipRequest, listZipRequests, retrieveZipRequest, downloadZipRequest).
  • Add resource tests validating request method/path and basic payload/query behavior for the new endpoints.
  • Bump SDK version to 1.4.0 and document changes in the changelog.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/main/java/io/facturapi/resources/InvoicesResource.java Introduces new ZIP request endpoints under invoices, including a streaming download method.
src/test/java/io/facturapi/FacturapiResourcesTest.java Adds tests covering the new ZIP request methods and expected HTTP interactions.
pom.xml Bumps library version from 1.3.0 to 1.4.0.
CHANGELOG.md Documents the new ZIP request methods in the 1.4.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 +192 to +200
* Downloads the ZIP generated for a request.
*
* @param id ZIP request id.
* @return ZIP stream. Caller owns closing it.
* @see <a href="https://docs.facturapi.io/api#tag/Invoices">API reference</a>
*/
public InputStream downloadZipRequest(String id) {
return client.getStream("/invoices/zip-requests/" + id + "/zip");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants