quickbooks-ruby 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/quickbooks/model/customer.rb +1 -0
- data/lib/quickbooks/service/sales_receipt.rb +1 -1
- data/lib/quickbooks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b460e3be916ea964a3dccfae15d9ade9b0209be332ae4cbb1b1266ccefd6bce
|
4
|
+
data.tar.gz: 8d709bd8faebdaaa2a68b12820d434089281845225b27a5dfa62f8fa3ddc556f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 550f66ee84cbe47b27748fcbf726ae3f349875dfe3f7883440741560c663ad5818f4d221e76c515114874eab0907d8228bc83ce03e2ab31c700d636c1e05d58e
|
7
|
+
data.tar.gz: 3da13db7b109bcba81f936c9410ffc1454ea07c53a11aa0ab8455fd5644659f9019c29582705e40f4e8fbbe9bb68361722cbedc4e86203fa66b39621f96b2c36
|
@@ -55,6 +55,7 @@ module Quickbooks
|
|
55
55
|
xml_accessor :default_tax_code_ref, :from => 'DefaultTaxCodeRef', :as => BaseReference
|
56
56
|
xml_accessor :notes, :from => 'Notes'
|
57
57
|
xml_accessor :currency_ref, :from => 'CurrencyRef', :as => BaseReference
|
58
|
+
xml_accessor :tax_exemption_reason_id, :from => 'TaxExemptionReasonId'
|
58
59
|
|
59
60
|
#== Validations
|
60
61
|
validate :names_cannot_contain_invalid_characters
|
@@ -15,7 +15,7 @@ module Quickbooks
|
|
15
15
|
def send(sr, email_address=nil)
|
16
16
|
query = email_address.present? ? "?sendTo=#{email_address}" : ""
|
17
17
|
url = "#{url_for_resource(model::REST_RESOURCE)}/#{sr.id}/send#{query}"
|
18
|
-
response = do_http_post(url,{})
|
18
|
+
response = do_http_post(url, "", {}, { 'Content-Type' => 'application/octet-stream' })
|
19
19
|
if response.code.to_i == 200
|
20
20
|
model.from_xml(parse_singular_entity_response(model, response.plain_body))
|
21
21
|
else
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Caughlan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|