File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -176,14 +176,14 @@ public function update_status( $id ) {
176
176
}
177
177
178
178
/**
179
- * Edits an Invoice with "draft" status
179
+ * Updates an Invoice with "draft" status
180
180
*
181
181
* @param id : Unique ID for Invoice
182
182
* @param body : array of properties and property values for the fields to edit
183
183
* @return JSON Edited draft Invoice object
184
184
* @throws Facturapi_Exception
185
185
*/
186
- public function edit_draft ( $ id , $ body ) {
186
+ public function update_draft ( $ id , $ body ) {
187
187
try {
188
188
return json_decode ( $ this ->execute_JSON_put_request ( $ this ->get_request_url ( $ id ), $ body ) );
189
189
} catch ( Facturapi_Exception $ e ) {
@@ -213,7 +213,7 @@ public function stamp_draft( $id, $query ) {
213
213
* @return JSON Copied draft Invoice object
214
214
* @throws Facturapi_Exception
215
215
*/
216
- public function copy ( $ id ) {
216
+ public function copy_to_draft ( $ id ) {
217
217
try {
218
218
return json_decode ( $ this ->execute_JSON_post_request ( $ this ->get_request_url ( $ id . "/copy " ), null ) );
219
219
} catch ( Facturapi_Exception $ e ) {
You can’t perform that action at this time.
0 commit comments