chore(retentions): add new retentions method for support drafts - #282
Conversation
There was a problem hiding this comment.
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 addis_ready_to_stampto theRetentionschema. - Add new endpoints for draft workflows: update draft (
PUT /retentions/{retention_id}), copy to draft, and stamp draft. - Add
statusfiltering 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.
fe41df5 to
3528c8f
Compare
3528c8f to
071c05b
Compare
There was a problem hiding this comment.
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: |
| - in: query | ||
| name: motive | ||
| required: true | ||
| required: false |
There was a problem hiding this comment.
El motivo no es requerido? Si no, hay que poner cual es el default
There was a problem hiding this comment.
Listo, corregido a true
071c05b to
81cfe18
Compare
No description provided.