Skip to content

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

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

chore(retentions): add new retentions method for support drafts#110
raul-facturapi wants to merge 1 commit into
mainfrom
chore/retention_draft

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 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, and retentions.copyToDraft methods.
  • Normalize formatting in src/resources/retentions.ts to match the style used in other updated resources.
  • Bump package version to 4.19.0 and document the addition in CHANGELOG.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')
}
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