quickbooks-ruby 1.0.21 → 1.0.22
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/purchase.rb +1 -0
- data/lib/quickbooks/model/sales_item_line_detail.rb +1 -1
- data/lib/quickbooks/util/logging.rb +4 -2
- data/lib/quickbooks/version.rb +1 -1
- data/lib/quickbooks-ruby.rb +2 -4
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0585f4ea094b51b56185bb41a2561c8ac7d23f447a52e58859e2ba9729ba6c1
|
4
|
+
data.tar.gz: 8162ad28904da7934146e3870c068d5cec80bd396209c5247746d19646a452fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4cedaedd4ae5acd80f31469a60698a8bbee57e13be5646baaa726268b0e11dc864814ec204dee9d98da8043b6cf5838f8c305b7e08e81cde593574979ef36f6
|
7
|
+
data.tar.gz: 8ba452ae4365df500e8408ac7079759d18e90799ba3c5a2d580f7e566c34bb9ddded4cec6d460e4377a05e105a185e7aa3848f8fd98b9c395f96e338b54ad14c
|
@@ -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
|
@@ -32,6 +32,7 @@ module Quickbooks
|
|
32
32
|
xml_accessor :txn_tax_detail, :from => 'TxnTaxDetail', :as => TransactionTaxDetail
|
33
33
|
|
34
34
|
xml_accessor :payment_type, :from => 'PaymentType'
|
35
|
+
xml_accessor :payment_method_ref, :from => 'PaymentMethodRef', :as => BaseReference
|
35
36
|
xml_accessor :entity_ref, :from => 'EntityRef', :as => BaseReference
|
36
37
|
xml_accessor :remit_to_address, :from => 'RemitToAddr', :as => PhysicalAddress
|
37
38
|
xml_accessor :total, :from => 'TotalAmt', :as => BigDecimal, :to_xml => to_xml_big_decimal
|
@@ -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
|
@@ -1,8 +1,10 @@
|
|
1
1
|
module Quickbooks
|
2
2
|
module Util
|
3
3
|
module Logging
|
4
|
+
attr_writer :log
|
5
|
+
|
4
6
|
def log(msg)
|
5
|
-
::Quickbooks.log(msg)
|
7
|
+
::Quickbooks.log(msg) if log?
|
6
8
|
end
|
7
9
|
|
8
10
|
def log_multiple(messages)
|
@@ -14,7 +16,7 @@ module Quickbooks
|
|
14
16
|
end
|
15
17
|
|
16
18
|
def log?
|
17
|
-
::Quickbooks.log?
|
19
|
+
defined?(@log) ? @log : ::Quickbooks.log?
|
18
20
|
end
|
19
21
|
|
20
22
|
def condense_logs?
|
data/lib/quickbooks/version.rb
CHANGED
data/lib/quickbooks-ruby.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.22
|
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: 2023-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|
@@ -390,8 +390,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
390
390
|
- !ruby/object:Gem::Version
|
391
391
|
version: '0'
|
392
392
|
requirements: []
|
393
|
-
|
394
|
-
rubygems_version: 2.7.6.2
|
393
|
+
rubygems_version: 3.0.3.1
|
395
394
|
signing_key:
|
396
395
|
specification_version: 4
|
397
396
|
summary: REST API to Quickbooks Online
|