quickeebooks 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/quickeebooks/version.rb
CHANGED
@@ -9,7 +9,6 @@ module Quickeebooks
|
|
9
9
|
module Service
|
10
10
|
class Invoice < Quickeebooks::Windows::Service::ServiceBase
|
11
11
|
|
12
|
-
|
13
12
|
# Fetch a +Collection+ of +Invoice+ objects
|
14
13
|
# Arguments:
|
15
14
|
# filters: Array of +Filter+ objects to apply
|
@@ -25,6 +24,11 @@ module Quickeebooks
|
|
25
24
|
raise NoMethodError, 'invoice_as_pdf is not implemented in Quickeebooks for Windows, only available in the Online adapter.'
|
26
25
|
end
|
27
26
|
|
27
|
+
def fetch_by_id(id, idDomain = 'QB', options = {})
|
28
|
+
url = "#{url_for_resource(Quickeebooks::Windows::Model::Invoice::REST_RESOURCE)}/#{id}"
|
29
|
+
fetch_object(Quickeebooks::Windows::Model::Invoice, url, {:idDomain => idDomain})
|
30
|
+
end
|
31
|
+
|
28
32
|
def create(invoice)
|
29
33
|
# XML is a wrapped 'object' where the type is specified as an attribute
|
30
34
|
# <Object xsi:type="Invoice">
|