quickbooks-ruby 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40551acdb7045eb4d1116184111f110f4874eb9e7391881f0e28aa9ddc4678c9
|
4
|
+
data.tar.gz: c8c0d88b58964da0cde75066a6bcb79fa771945dc2abf94ae1bde9564164a85d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdf59bc8aecbadb40920a63b7a98b6fb38690ff8ce4a416fd38866d7841b3511934a2a384b12f3bbf3ed6ccb6e22af201674d0420819e4506ca358b03a921502
|
7
|
+
data.tar.gz: e71a5e129f98a03016cfd43e8e180c7dc9af8e0104d39d9052c5fd438a49bc742f667b1e9ac2e23ed3acd495d2f4d3d531c03a1fc6d907466f765aa3faa877b1
|
@@ -12,6 +12,7 @@ module Quickbooks
|
|
12
12
|
xml_accessor :description, :from => 'Description'
|
13
13
|
xml_accessor :amount, :from => 'Amount', :as => BigDecimal, :to_xml => Proc.new { |val| val.to_f }
|
14
14
|
xml_accessor :detail_type, :from => 'DetailType'
|
15
|
+
xml_accessor :received, :from => 'Received', :as => BigDecimal, :to_xml => to_xml_big_decimal
|
15
16
|
|
16
17
|
#== Various detail types
|
17
18
|
xml_accessor :account_based_expense_line_detail, :from => ACCOUNT_BASED_EXPENSE_LINE_DETAIL, :as => AccountBasedExpenseLineDetail
|
@@ -6,6 +6,12 @@ module Quickbooks
|
|
6
6
|
delete_by_query_string(credit_memo)
|
7
7
|
end
|
8
8
|
|
9
|
+
def pdf(credit_memo)
|
10
|
+
url = "#{url_for_resource(model::REST_RESOURCE)}/#{credit_memo.id}/pdf"
|
11
|
+
response = do_http_raw_get(url, {}, {'Accept' => 'application/pdf'})
|
12
|
+
response.plain_body
|
13
|
+
end
|
14
|
+
|
9
15
|
private
|
10
16
|
|
11
17
|
def model
|
@@ -6,6 +6,16 @@ module Quickbooks
|
|
6
6
|
delete_by_query_string(purchase_order)
|
7
7
|
end
|
8
8
|
|
9
|
+
def fetch_by_id(id, params = {})
|
10
|
+
url = "#{url_for_base}/invoice/#{id}?minorversion=#{Quickbooks::Model::PurchaseOrder::MINORVERSION}"
|
11
|
+
fetch_object(model, url, params)
|
12
|
+
end
|
13
|
+
|
14
|
+
def url_for_query(query = nil, start_position = 1, max_results = 20, options = {})
|
15
|
+
url = super(query, start_position, max_results, options)
|
16
|
+
"#{url}&minorversion=#{Quickbooks::Model::PurchaseOrder::MINORVERSION}"
|
17
|
+
end
|
18
|
+
|
9
19
|
private
|
10
20
|
|
11
21
|
def model
|
data/lib/quickbooks/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quickbooks-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Caughlan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|
@@ -136,20 +136,6 @@ dependencies:
|
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '3.9'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: rspec-its
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: webmock
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|