lib/fakturownia/api/invoice.rb in fakturownia_api-0.0.1 vs lib/fakturownia/api/invoice.rb in fakturownia_api-0.0.2
- old
+ new
@@ -18,8 +18,13 @@
end
def delete(id)
connection.delete("/invoices/#{id}")
end
+
+ def change_status(id, status)
+ connection.post("/invoices/#{id}/change_status",
+ invoice: {status: status})
+ end
end
end
end