Skip to content

chore(retentions): add new retentions method for support drafts - #282

Merged
raul-facturapi merged 1 commit into
mainfrom
chore/retention_drafts
Aug 4, 2026
Merged

chore(retentions): add new retentions method for support drafts#282
raul-facturapi merged 1 commit into
mainfrom
chore/retention_drafts

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

This PR updates the v2 OpenAPI specs (Spanish + English) to support “draft” retentions, including creating retentions as drafts, editing drafts, copying an existing retention into a draft, and stamping a draft when ready.

Changes:

  • Document draft creation behavior (status: "draft") and add is_ready_to_stamp to the Retention schema.
  • Add new endpoints for draft workflows: update draft (PUT /retentions/{retention_id}), copy to draft, and stamp draft.
  • Add status filtering to the retentions list endpoint and adjust cancellation docs/params for draft vs non-draft retentions.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 8 comments.

File Description
website/openapi_v2.yaml Spanish OpenAPI updates for draft retentions, new endpoints, status filtering, and schema changes.
website/openapi_v2.en.yaml English OpenAPI updates mirroring the Spanish draft retention additions and schema/endpoint changes.

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

Comment thread website/openapi_v2.yaml Outdated
Comment thread website/openapi_v2.en.yaml Outdated
Comment thread website/openapi_v2.yaml Outdated
Comment thread website/openapi_v2.en.yaml Outdated
Comment thread website/openapi_v2.yaml
Comment thread website/openapi_v2.en.yaml
Comment thread website/openapi_v2.yaml
Comment thread website/openapi_v2.en.yaml
@raul-facturapi
raul-facturapi force-pushed the chore/retention_drafts branch from fe41df5 to 3528c8f Compare August 3, 2026 19:55

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Suppressed comments (1)

website/openapi_v2.yaml:6533

  • Typo in Spanish description: "comúnes" should be "comunes" (no accent).
        A diferencia de las facturas comúnes, la cancelación de la retención es inmediata y no requiere autorización de parte del receptor.

type: array
items:
type: string
enum:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Falta el status failed

- in: query
name: motive
required: true
required: false

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

El motivo no es requerido? Si no, hay que poner cual es el default

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Listo, corregido a true

@raul-facturapi
raul-facturapi force-pushed the chore/retention_drafts branch from 071c05b to 81cfe18 Compare August 4, 2026 03:32
@raul-facturapi
raul-facturapi merged commit 2f326e7 into main Aug 4, 2026
@raul-facturapi
raul-facturapi deleted the chore/retention_drafts branch August 4, 2026 16:41
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.

4 participants