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.
@@ -1,5 +1,5 @@
1
1
  module Quickeebooks
2
2
 
3
- VERSION = "0.1.14"
3
+ VERSION = "0.1.15"
4
4
 
5
5
  end
@@ -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">
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickeebooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: