chore(retentions): add new retentions method for support drafts#110
Open
raul-facturapi wants to merge 1 commit into
Open
chore(retentions): add new retentions method for support drafts#110raul-facturapi wants to merge 1 commit into
raul-facturapi wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds draft-related Retentions endpoints to the SDK (parity with existing draft support on other resources), and publishes the change as a new minor release.
Changes:
- Add
retentions.updateDraft,retentions.stampDraft, andretentions.copyToDraftmethods. - Normalize formatting in
src/resources/retentions.tsto match the style used in other updated resources. - Bump package version to
4.19.0and document the addition inCHANGELOG.md.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/resources/retentions.ts | Adds draft-support methods for retentions and updates formatting. |
| package.json | Bumps SDK version to 4.19.0 for the new feature release. |
| CHANGELOG.md | Records the 4.19.0 release and the newly added retentions draft methods. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+65
to
+72
| /** | ||
| * Stamps a retention with "draft" status. | ||
| * @param id Retention Id | ||
| * @returns Stamped retention | ||
| */ | ||
| stampDraft(id: string): Promise<Retention> { | ||
| return this.client.post('/retentions/' + id + '/stamp') | ||
| } |
javorosas
approved these changes
Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.