We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6682305 + fe28755 commit d2085ebCopy full SHA for d2085eb
src/Picqer/Financials/Moneybird/Actions/Noteable.php
@@ -28,4 +28,23 @@ public function addNote(Note $note)
28
29
return $this;
30
}
31
+
32
+ /**
33
+ * Delete a note from the current object.
34
+ *
35
+ * @param Note|string $note Note object or note ID
36
+ * @return $this
37
38
+ * @throws ApiException
39
+ */
40
+ public function deleteNote(Note|string $note)
41
+ {
42
+ if (! is_string($note)) {
43
+ $note = $note->id;
44
+ }
45
46
+ $this->connection()->delete($this->getEndpoint() . '/' . urlencode($this->id) . '/notes/' . $note);
47
48
+ return $this;
49
50
0 commit comments