Skip to content

Commit 25ea60c

Browse files
committed
correct method names
1 parent 0cedd3e commit 25ea60c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Resources/Invoices.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,14 @@ public function update_status( $id ) {
176176
}
177177

178178
/**
179-
* Edits an Invoice with "draft" status
179+
* Updates an Invoice with "draft" status
180180
*
181181
* @param id : Unique ID for Invoice
182182
* @param body : array of properties and property values for the fields to edit
183183
* @return JSON Edited draft Invoice object
184184
* @throws Facturapi_Exception
185185
*/
186-
public function edit_draft( $id, $body ) {
186+
public function update_draft( $id, $body ) {
187187
try {
188188
return json_decode( $this->execute_JSON_put_request( $this->get_request_url( $id ), $body ) );
189189
} catch ( Facturapi_Exception $e ) {
@@ -213,7 +213,7 @@ public function stamp_draft( $id, $query ) {
213213
* @return JSON Copied draft Invoice object
214214
* @throws Facturapi_Exception
215215
*/
216-
public function copy( $id ) {
216+
public function copy_to_draft( $id ) {
217217
try {
218218
return json_decode( $this->execute_JSON_post_request( $this->get_request_url( $id . "/copy" ), null ) );
219219
} catch ( Facturapi_Exception $e ) {

0 commit comments

Comments
 (0)