lib/economic/invoices/booked_repo.rb in economic-rest-0.6.3 vs lib/economic/invoices/booked_repo.rb in economic-rest-0.6.4

- old
+ new

@@ -1,9 +1,9 @@ module Economic module Invoices class BookedRepo < Economic::Invoices::Repo class << self - def send(invoice, book_with_number: nil) + def save(invoice, book_with_number: nil) response = send_request(method: :post, url: endpoint_url, payload: payload(invoice, book_with_number: book_with_number)) entry_hash = JSON.parse(response.body) invoice.class.new(entry_hash)