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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0867627ef458624b28e97cc68d021ff0254c870f5ce178ae57131bcfd19b7c28'
4
- data.tar.gz: 5b14eed680c010edb9e6de11e2acaa2b945ea7a84eb7df6ab950cf36c5d60cc5
3
+ metadata.gz: c4b5e19720b4663f9e5ffa823f130bb7c45e4a0494b13cd6d021d53e1c9c4c8f
4
+ data.tar.gz: a17b5989f741070a84cd18c01b0e94e605cfb9ebe00cf0406bf0a23a52ec4bae
5
5
  SHA512:
6
- metadata.gz: bcb96c9efb3e33150b87e4274c6aa0a6ce4ffcc406b7ce00ad1dca66c2ca69dc9a15c0a1bb5d329d46c816031d1eff7dead077ab17fcb08f0294c297d69e9935
7
- data.tar.gz: a5668d3ed5a4aa1c0626f7f4233fcf6ff466aa4087604b16289f9dcce426dccb50c6f630aa1b8b190cffb6cc7c9d06f9c8457e24c29bdc8145576a926e8a2649
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.2.1)
4
+ ledger_sync-quickbooks_online (0.3.0)
5
5
  dotenv
6
- ledger_sync (>= 2.0.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.7.2)
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.5.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.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.6)
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.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
 
@@ -21,7 +21,7 @@ module LedgerSync
21
21
  unless value.nil?
22
22
  Customer.new(
23
23
  ledger_id: value['value'],
24
- name: value['name']
24
+ DisplayName: value['name']
25
25
  )
26
26
  end
27
27
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative '../account/deserializer'
3
4
  require_relative '../reference/deserializer'
4
5
  require_relative '../payment_line/deserializer'
5
6
 
@@ -32,8 +32,10 @@ module LedgerSync
32
32
 
33
33
  def match?
34
34
  code == 3200 ||
35
- message.include?('authenticationfailed') ||
36
- message.include?('errorcode=003200')
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
- message.include?('authorizationfailed') ||
52
- message.include?('errorcode=003100')
53
+ code == '3100' ||
54
+ message.downcase.include?('authorizationfailed') ||
55
+ message.downcase.include?('errorcode=003100')
53
56
  end
54
57
  end
55
58
 
@@ -3,7 +3,7 @@
3
3
  # :nocov:
4
4
  module LedgerSync
5
5
  module QuickBooksOnline
6
- VERSION = '0.2.1'
6
+ VERSION = '0.3.0'
7
7
 
8
8
  def self.version(args = {})
9
9
  pre = args.fetch(:pre, false)
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.2.1
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-05-28 00:00:00.000000000 Z
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.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.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.0.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: []