Skip to content

feat(retentions): agregar métodos para borradores - #7

Merged
javorosas merged 2 commits into
mainfrom
chore/retention_draft
Aug 24, 2026
Merged

feat(retentions): agregar métodos para borradores#7
javorosas merged 2 commits into
mainfrom
chore/retention_draft

Conversation

@raul-facturapi

@raul-facturapi raul-facturapi commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Cambios

  • Agrega métodos para crear, consultar, actualizar y eliminar borradores de retenciones.

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 draft-related Retentions APIs to the Java SDK and validates their HTTP behavior via resource tests, alongside a patch-version bump and changelog entry for the new surface area.

Changes:

  • Add draft support methods to RetentionsResource (updateDraft, copyToDraft, stampDraft) and a convenience cancel(String id) overload.
  • Add unit tests asserting correct HTTP methods, paths, and request bodies for retention draft flows.
  • Bump SDK version to 1.3.1 and document the changes in CHANGELOG.md (and update README dependency snippets).

Reviewed changes

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

Show a summary per file
File Description
src/test/java/io/facturapi/FacturapiResourcesTest.java Adds coverage for retention draft create/update/copy/stamp/cancel/list request construction.
src/main/java/io/facturapi/resources/RetentionsResource.java Introduces draft-oriented retention endpoints and a convenience cancel overload.
README.md Updates dependency examples to version 1.3.1.
README.es.md Updates dependency examples to version 1.3.1.
pom.xml Bumps project version from 1.3.0 to 1.3.1.
CHANGELOG.md Adds 1.3.1 entry describing the new retentions draft methods.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main/java/io/facturapi/resources/RetentionsResource.java
@javorosas javorosas changed the title chore(retentions): add new retentions method for support drafts feat(retentions): agregar métodos para borradores Aug 21, 2026
@javorosas
javorosas merged commit efd9436 into main Aug 24, 2026
4 checks passed
javorosas added a commit that referenced this pull request Aug 24, 2026
* feat(retentions): agregar métodos para borradores (#7)

* chore(retentions): add new retentions method for support drafts

* chore: keep retention draft methods unreleased

---------

Co-authored-by: javorosas <javier.rosasb@gmail.com>

* feat(invoices): agregar métodos ZIP (#11)

* Add invoice ZIP request methods

* fix: align ZIP download method naming

---------

Co-authored-by: javorosas <javier.rosasb@gmail.com>

* fix!: return Java API error codes as strings

* fix: only normalize numeric API error codes

* fix: model property tax accounts as arrays

* docs: update Java dependency snippets for 2.0.0

* docs: complete Java 2.0.0 changelog

---------

Co-authored-by: Raúl García <141654545+raul-facturapi@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants