ledger_sync-netsuite 0.3.0 → 0.3.5

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: 67613751428992c590ac0d5b5a03099b6324754b476932691ec60ad0d2b04a5d
4
- data.tar.gz: 17ed32fcaf0afee9decc9489e36d7231e1048e850014b19020b4a44042b3aafb
3
+ metadata.gz: d6cb5716fec3f26f019184af4c4a287d17eb1e21d8d398db0492d9bbef70f84f
4
+ data.tar.gz: daa57952db9e9c7a9c19d1229abb9007403d4a35f89319bf1b6f6b5a42a1c7b7
5
5
  SHA512:
6
- metadata.gz: dafaacac22de6dc5d5d0b821de42a4466d2174a6db33c4bc2fed7923add30a7b6c5e791265d735bcc0b641c7839d328f732d493247e474e5cbedc93dedb83716
7
- data.tar.gz: 32aaf85ffb350aff2c9d6be0641a7d05a27c8b983da51fd2370852b21a50507b71bc94f791fc5e734891abb20f21daa0c1c0b01bc98ec9a01ae7965f6bb60d3d
6
+ metadata.gz: 9002eaad389d070fac2c9231f08daa7560e7f06e9cfbb33841525717d6810150b6209422a620b130e76d44f3d7d3b739ff63ad5d9e2dd9f0aa59eda0e99c0b77
7
+ data.tar.gz: 3764b47b724867d87b8f130b2865bc2379ff0c1a5b4e1cbd095e608f4d3954d119b51175419917692efee3a7f19429c4277fd21f8e3a2977f74219c6b050bbbd
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ledger_sync-netsuite (0.3.0)
4
+ ledger_sync-netsuite (0.3.5)
5
5
  dotenv
6
- ledger_sync (>= 2.0.0)
6
+ ledger_sync (>= 2.0.2)
7
7
  nokogiri
8
8
  oauth2
9
9
 
@@ -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)
@@ -99,7 +99,7 @@ GEM
99
99
  concurrent-ruby (~> 1.0)
100
100
  json (2.5.1)
101
101
  jwt (2.2.3)
102
- ledger_sync (2.0.0)
102
+ ledger_sync (2.0.2)
103
103
  activemodel
104
104
  colorize
105
105
  dry-schema (~> 1.5.4)
@@ -114,13 +114,11 @@ GEM
114
114
  rack (~> 2.2.3)
115
115
  resonad
116
116
  simply_serializable (>= 1.5.1)
117
- mini_portile2 (2.5.1)
118
117
  minitest (5.14.4)
119
118
  multi_json (1.15.0)
120
119
  multi_xml (0.6.0)
121
120
  multipart-post (2.1.1)
122
- nokogiri (1.11.6)
123
- mini_portile2 (~> 2.5.0)
121
+ nokogiri (1.11.7-x86_64-darwin)
124
122
  racc (~> 1.4)
125
123
  oauth2 (1.4.7)
126
124
  faraday (>= 0.8, < 2.0)
@@ -38,7 +38,7 @@ Gem::Specification.new do |spec|
38
38
  spec.add_development_dependency('rubocop', '>= 0')
39
39
  spec.add_development_dependency('webmock', '>= 0')
40
40
  spec.add_runtime_dependency('dotenv')
41
- spec.add_runtime_dependency('ledger_sync', '>= 2.0.0')
41
+ spec.add_runtime_dependency('ledger_sync', '>= 2.0.2')
42
42
  spec.add_runtime_dependency('nokogiri', '>= 0')
43
43
  spec.add_runtime_dependency('oauth2', '>= 0')
44
44
  end
@@ -3,6 +3,7 @@
3
3
  require_relative '../currency/deserializer'
4
4
  require_relative '../subsidiary/deserializer'
5
5
  require_relative '../journal_entry_line_item/deserializer'
6
+ require_relative '../ledger_class/deserializer'
6
7
 
7
8
  module LedgerSync
8
9
  module NetSuite
@@ -2,6 +2,7 @@
2
2
 
3
3
  require_relative '../reference/serializer'
4
4
  require_relative '../journal_entry_line_item/serializer'
5
+ require_relative '../ledger_class/serializer'
5
6
 
6
7
  module LedgerSync
7
8
  module NetSuite
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative '../account/deserializer'
4
+ require_relative '../ledger_class/deserializer'
4
5
 
5
6
  module LedgerSync
6
7
  module NetSuite
@@ -11,6 +12,11 @@ module LedgerSync
11
12
  attribute :credit
12
13
  attribute :debit
13
14
  attribute :memo
15
+ attribute :entity,
16
+ type: Type::DeserializerEntityType.new
17
+ references_one :ledger_class,
18
+ hash_attribute: :class,
19
+ deserializer: LedgerClass::Deserializer
14
20
  references_one :account
15
21
  end
16
22
  end
@@ -10,6 +10,11 @@ module LedgerSync
10
10
  attribute :credit
11
11
  attribute :debit
12
12
  attribute :memo
13
+ references_one :entity,
14
+ serializer: Reference::Serializer
15
+ references_one :class,
16
+ resource_attribute: :ledger_class,
17
+ serializer: Reference::Serializer
13
18
  references_one :account,
14
19
  serializer: Reference::Serializer
15
20
  end
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative 'account'
4
+ require_relative 'customer'
5
+
3
6
  module LedgerSync
4
7
  module NetSuite
5
8
  class CustomerDeposit < NetSuite::Resource
@@ -1,13 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative 'account'
4
+ require_relative 'customer'
4
5
  require_relative 'department'
5
6
  require_relative 'ledger_class'
7
+ require_relative 'vendor'
6
8
 
7
9
  module LedgerSync
8
10
  module NetSuite
9
11
  class JournalEntryLineItem < NetSuite::Resource
10
12
  references_one :account, to: Account
13
+ references_one :entity, to: [Customer, Vendor]
14
+ references_one :ledger_class, to: LedgerClass
11
15
  attribute :line, type: Type::Integer
12
16
  attribute :credit, type: Type::Float
13
17
  attribute :debit, type: Type::Float
@@ -3,7 +3,7 @@
3
3
  # :nocov:
4
4
  module LedgerSync
5
5
  module NetSuite
6
- VERSION = '0.3.0'
6
+ VERSION = '0.3.5'
7
7
 
8
8
  def self.version
9
9
  if ENV['PRE_RELEASE']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ledger_sync-netsuite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.5
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-27 00:00:00.000000000 Z
11
+ date: 2021-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - ">="
186
186
  - !ruby/object:Gem::Version
187
- version: 2.0.0
187
+ version: 2.0.2
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - ">="
193
193
  - !ruby/object:Gem::Version
194
- version: 2.0.0
194
+ version: 2.0.2
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: nokogiri
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -369,7 +369,7 @@ files:
369
369
  homepage: https://www.ledgersync.dev
370
370
  licenses: []
371
371
  metadata: {}
372
- post_install_message:
372
+ post_install_message:
373
373
  rdoc_options: []
374
374
  require_paths:
375
375
  - lib
@@ -384,9 +384,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
384
384
  - !ruby/object:Gem::Version
385
385
  version: '0'
386
386
  requirements: []
387
- rubyforge_project:
388
- rubygems_version: 2.7.6.2
389
- signing_key:
387
+ rubygems_version: 3.1.6
388
+ signing_key:
390
389
  specification_version: 4
391
390
  summary: Sync common objects to accounting software.
392
391
  test_files: []