quickbooks-ruby 2.0 → 2.0.1
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/account_based_expense_line_detail.rb +1 -1
- data/lib/quickbooks/model/item_based_expense_line_detail.rb +1 -1
- data/lib/quickbooks/model/sales_item_line_detail.rb +1 -1
- data/lib/quickbooks/service/access_token.rb +6 -1
- data/lib/quickbooks/version.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2895323237a281ddd1e8b91a830db8d55232320c64c6e2345440e4a0937fa265
|
4
|
+
data.tar.gz: 69a965a5cd01db16058644b90c2dae698160452896258ec6d059ad87696bcfd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b93f7ddbb6bd5fcf689e312f088274259d49535700e4a0d141f117614e34798575fe5831149cac461a80624f865fb91284fff31f2d5e21afcd9e3667aedfb8b
|
7
|
+
data.tar.gz: 4bb2209c81de42a7f1bb9f5c7063ea1f386b4593e09371a5ba3625ad994d1ee42e61d43b86f4aa0edd15a2c644012083785238c910803e72e628935d4c74c848
|
@@ -7,7 +7,7 @@ module Quickbooks
|
|
7
7
|
xml_accessor :billable_status, :from => 'BillableStatus'
|
8
8
|
xml_accessor :tax_amount, :from => 'UnitPrice', :as => BigDecimal, :to_xml => to_xml_big_decimal
|
9
9
|
xml_accessor :tax_code_ref, :from => 'TaxCodeRef', :as => BaseReference
|
10
|
-
xml_accessor :tax_inclusive_amount, from: 'TaxInclusiveAmt', to_xml: Proc.new { |val| val.to_f }
|
10
|
+
xml_accessor :tax_inclusive_amount, from: 'TaxInclusiveAmt', :as => BigDecimal, to_xml: Proc.new { |val| val.to_f }
|
11
11
|
|
12
12
|
reference_setters :customer_ref, :class_ref, :account_ref, :tax_code_ref
|
13
13
|
|
@@ -13,7 +13,7 @@ module Quickbooks
|
|
13
13
|
xml_accessor :tax_code_ref, :from => 'TaxCodeRef', :as => BaseReference
|
14
14
|
xml_accessor :customer_ref, :from => 'CustomerRef', :as => BaseReference
|
15
15
|
xml_accessor :billable_status, :from => 'BillableStatus'
|
16
|
-
xml_accessor :tax_inclusive_amount, from: 'TaxInclusiveAmt', to_xml: Proc.new { |val| val.to_f }
|
16
|
+
xml_accessor :tax_inclusive_amount, from: 'TaxInclusiveAmt', :as => BigDecimal, to_xml: Proc.new { |val| val.to_f }
|
17
17
|
|
18
18
|
reference_setters :item_ref, :class_ref, :price_level_ref, :customer_ref, :tax_code_ref
|
19
19
|
end
|
@@ -9,7 +9,7 @@ module Quickbooks
|
|
9
9
|
xml_accessor :quantity, :from => 'Qty', :as => BigDecimal, :to_xml => Proc.new { |val| val.to_f }
|
10
10
|
xml_accessor :tax_code_ref, :from => 'TaxCodeRef', :as => BaseReference
|
11
11
|
xml_accessor :service_date, :from => 'ServiceDate', :as => Date
|
12
|
-
xml_accessor :tax_inclusive_amount, from: 'TaxInclusiveAmt', to_xml: Proc.new { |val| val.to_f }
|
12
|
+
xml_accessor :tax_inclusive_amount, from: 'TaxInclusiveAmt', :as => BigDecimal, to_xml: Proc.new { |val| val.to_f }
|
13
13
|
|
14
14
|
reference_setters :item_ref, :class_ref, :price_level_ref, :tax_code_ref
|
15
15
|
end
|
@@ -22,7 +22,12 @@ module Quickbooks
|
|
22
22
|
def disconnect
|
23
23
|
connection = Faraday.new(headers: { 'Content-Type' => 'application/json' }) do |f|
|
24
24
|
f.adapter(::Quickbooks.http_adapter)
|
25
|
-
|
25
|
+
|
26
|
+
if Gem.loaded_specs['faraday'].version >= Gem::Version.create('2.0')
|
27
|
+
f.request(:authorization, :basic, oauth.client.id, oauth.client.secret)
|
28
|
+
else
|
29
|
+
f.basic_auth(oauth.client.id, oauth.client.secret)
|
30
|
+
end
|
26
31
|
end
|
27
32
|
|
28
33
|
url = "#{DISCONNECT_URL}?minorversion=#{Quickbooks.minorversion}"
|
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:
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Caughlan
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|
@@ -402,7 +402,7 @@ homepage: http://github.com/ruckus/quickbooks-ruby
|
|
402
402
|
licenses:
|
403
403
|
- MIT
|
404
404
|
metadata: {}
|
405
|
-
post_install_message:
|
405
|
+
post_install_message:
|
406
406
|
rdoc_options: []
|
407
407
|
require_paths:
|
408
408
|
- lib
|
@@ -417,9 +417,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
417
417
|
- !ruby/object:Gem::Version
|
418
418
|
version: '0'
|
419
419
|
requirements: []
|
420
|
-
|
421
|
-
|
422
|
-
signing_key:
|
420
|
+
rubygems_version: 3.0.3.1
|
421
|
+
signing_key:
|
423
422
|
specification_version: 4
|
424
423
|
summary: REST API to Quickbooks Online
|
425
424
|
test_files: []
|