ledger_sync-quickbooks_online 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -8
- data/ledger_sync-quickbooks_online.gemspec +1 -1
- data/lib/ledger_sync/quickbooks_online/client.rb +4 -0
- data/lib/ledger_sync/quickbooks_online/deposit_line_detail/deserializer.rb +1 -1
- data/lib/ledger_sync/quickbooks_online/payment/deserializer.rb +1 -0
- data/lib/ledger_sync/quickbooks_online/util/ledger_error_parser.rb +7 -4
- data/lib/ledger_sync/quickbooks_online/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4b5e19720b4663f9e5ffa823f130bb7c45e4a0494b13cd6d021d53e1c9c4c8f
|
4
|
+
data.tar.gz: a17b5989f741070a84cd18c01b0e94e605cfb9ebe00cf0406bf0a23a52ec4bae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff2c96e34e1b6adb51af4aff4565735acdb8a50ac6b3a458ad5497b866506eae2b1986fdc0da5ff3daca89022fef610e8d6386300e189ad13bd797afdafdf891
|
7
|
+
data.tar.gz: b819e78fb472bb129c7ae51afec95aa2e4b46cbfec100bb26ce0f686f0c084714906c85ff52ad5d6fbbfab7dda104c5d957e25ff49c0679d4b107241dbf995e3
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ledger_sync-quickbooks_online (0.
|
4
|
+
ledger_sync-quickbooks_online (0.3.0)
|
5
5
|
dotenv
|
6
|
-
ledger_sync (>= 2.0.
|
6
|
+
ledger_sync (>= 2.0.2)
|
7
7
|
oauth2
|
8
8
|
|
9
9
|
GEM
|
@@ -41,10 +41,10 @@ GEM
|
|
41
41
|
dry-configurable (0.12.1)
|
42
42
|
concurrent-ruby (~> 1.0)
|
43
43
|
dry-core (~> 0.5, >= 0.5.0)
|
44
|
-
dry-container (0.
|
44
|
+
dry-container (0.8.0)
|
45
45
|
concurrent-ruby (~> 1.0)
|
46
46
|
dry-configurable (~> 0.1, >= 0.1.3)
|
47
|
-
dry-core (0.
|
47
|
+
dry-core (0.6.0)
|
48
48
|
concurrent-ruby (~> 1.0)
|
49
49
|
dry-equalizer (0.3.0)
|
50
50
|
dry-inflector (0.2.0)
|
@@ -100,7 +100,7 @@ GEM
|
|
100
100
|
iniparse (1.5.0)
|
101
101
|
json (2.5.1)
|
102
102
|
jwt (2.2.3)
|
103
|
-
ledger_sync (2.0.
|
103
|
+
ledger_sync (2.0.2)
|
104
104
|
activemodel
|
105
105
|
colorize
|
106
106
|
dry-schema (~> 1.5.4)
|
@@ -115,13 +115,11 @@ GEM
|
|
115
115
|
rack (~> 2.2.3)
|
116
116
|
resonad
|
117
117
|
simply_serializable (>= 1.5.1)
|
118
|
-
mini_portile2 (2.5.1)
|
119
118
|
minitest (5.14.4)
|
120
119
|
multi_json (1.15.0)
|
121
120
|
multi_xml (0.6.0)
|
122
121
|
multipart-post (2.1.1)
|
123
|
-
nokogiri (1.11.
|
124
|
-
mini_portile2 (~> 2.5.0)
|
122
|
+
nokogiri (1.11.7-x86_64-darwin)
|
125
123
|
racc (~> 1.4)
|
126
124
|
oauth2 (1.4.7)
|
127
125
|
faraday (>= 0.8, < 2.0)
|
@@ -40,7 +40,7 @@ Gem::Specification.new do |spec|
|
|
40
40
|
spec.add_development_dependency('vcr', '>= 0')
|
41
41
|
spec.add_development_dependency('webmock', '>= 0')
|
42
42
|
spec.add_runtime_dependency('dotenv')
|
43
|
-
spec.add_runtime_dependency('ledger_sync', '>= 2.0.
|
43
|
+
spec.add_runtime_dependency('ledger_sync', '>= 2.0.2')
|
44
44
|
# spec.add_runtime_dependency('nokogiri', '>= 0')
|
45
45
|
spec.add_runtime_dependency('oauth2', '>= 0')
|
46
46
|
end
|
@@ -34,6 +34,8 @@ module LedgerSync
|
|
34
34
|
client_secret:,
|
35
35
|
realm_id:,
|
36
36
|
refresh_token:,
|
37
|
+
expires_at:,
|
38
|
+
refresh_token_expires_at:,
|
37
39
|
test: false,
|
38
40
|
update_dotenv: true
|
39
41
|
)
|
@@ -42,6 +44,8 @@ module LedgerSync
|
|
42
44
|
@client_secret = client_secret
|
43
45
|
@realm_id = realm_id
|
44
46
|
@refresh_token = refresh_token
|
47
|
+
@expires_at = expires_at
|
48
|
+
@refresh_token_expires_at = refresh_token_expires_at
|
45
49
|
@test = test
|
46
50
|
@update_dotenv = update_dotenv
|
47
51
|
|
@@ -32,8 +32,10 @@ module LedgerSync
|
|
32
32
|
|
33
33
|
def match?
|
34
34
|
code == 3200 ||
|
35
|
-
|
36
|
-
message.include?('
|
35
|
+
code == '3200' ||
|
36
|
+
message.downcase.include?('statuscode=401') ||
|
37
|
+
message.downcase.include?('authenticationfailed') ||
|
38
|
+
message.downcase.include?('errorcode=003200')
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
@@ -48,8 +50,9 @@ module LedgerSync
|
|
48
50
|
|
49
51
|
def match?
|
50
52
|
code == 3100 ||
|
51
|
-
|
52
|
-
message.include?('
|
53
|
+
code == '3100' ||
|
54
|
+
message.downcase.include?('authorizationfailed') ||
|
55
|
+
message.downcase.include?('errorcode=003100')
|
53
56
|
end
|
54
57
|
end
|
55
58
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ledger_sync-quickbooks_online
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Modern Treasury
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -212,14 +212,14 @@ dependencies:
|
|
212
212
|
requirements:
|
213
213
|
- - ">="
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 2.0.
|
215
|
+
version: 2.0.2
|
216
216
|
type: :runtime
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 2.0.
|
222
|
+
version: 2.0.2
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: oauth2
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -434,7 +434,7 @@ files:
|
|
434
434
|
homepage: https://www.ledgersync.dev
|
435
435
|
licenses: []
|
436
436
|
metadata: {}
|
437
|
-
post_install_message:
|
437
|
+
post_install_message:
|
438
438
|
rdoc_options: []
|
439
439
|
require_paths:
|
440
440
|
- lib
|
@@ -449,8 +449,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
449
449
|
- !ruby/object:Gem::Version
|
450
450
|
version: '0'
|
451
451
|
requirements: []
|
452
|
-
rubygems_version: 3.
|
453
|
-
signing_key:
|
452
|
+
rubygems_version: 3.1.6
|
453
|
+
signing_key:
|
454
454
|
specification_version: 4
|
455
455
|
summary: Sync common objects to accounting software.
|
456
456
|
test_files: []
|