ledger_sync-netsuite 0.3.2 → 0.3.3

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: b8c38a72e0e488a4a66350959b23ea3ddf22c5954ee7f226249ba759b1335873
4
- data.tar.gz: 239125cbc6747f9b00d8e4ee19f3d8c409795e46caa4ed91dd734a46921d5f2e
3
+ metadata.gz: ca12859d1008ded5f0d5a6222252544ae52a0b26bfcbcc99d508cdfa472e2be0
4
+ data.tar.gz: a512ba4cf254998f6df0b2e4253e30b68f10ec25833cc0bfd6a6f5d7653ea652
5
5
  SHA512:
6
- metadata.gz: 613ca7e123001019069c9186678aa87b35bc69f2fdf6606f7c6adc48812b6f503b9204519da23d9cab55ce9eb619f8bb9fb2769718bdab0e81f039fb6826a229
7
- data.tar.gz: b377a6fc4b87894b2d65145359462594cc4af5301a534547d28547019946e0be65bfad728ed7ccec07279c21365548da04dee02b5dd5458a7ed2c5af0aa22a86
6
+ metadata.gz: 77978d9fc3fdfff147fa5a2034856e268663c16e6d14909e7c0b0be2ed54258f40913273ec552fb24b99ca2d0caa3d3a925678e378776b3ade02939859a5f1ce
7
+ data.tar.gz: 81a21b2010ab5dbf24c2d39a715850af0a6b2f64d8c61ffc33bab86c7d130bc8dd6f770584a13d4cd5da6370e47d91dd3593dd4204f8b5b9a9f669ad4f5f8185
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ledger_sync-netsuite (0.3.2)
4
+ ledger_sync-netsuite (0.3.3)
5
5
  dotenv
6
6
  ledger_sync (>= 2.0.0)
7
7
  nokogiri
@@ -44,7 +44,7 @@ GEM
44
44
  dry-container (0.7.2)
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)
@@ -97,7 +97,6 @@ GEM
97
97
  hashdiff (1.0.1)
98
98
  i18n (1.8.10)
99
99
  concurrent-ruby (~> 1.0)
100
- io-wait (0.1.0)
101
100
  json (2.5.1)
102
101
  jwt (2.2.3)
103
102
  ledger_sync (2.0.0)
@@ -115,19 +114,12 @@ GEM
115
114
  rack (~> 2.2.3)
116
115
  resonad
117
116
  simply_serializable (>= 1.5.1)
118
- mini_portile2 (2.5.2)
119
- net-ftp (~> 0.1)
117
+ mini_portile2 (2.5.3)
120
118
  minitest (5.14.4)
121
119
  multi_json (1.15.0)
122
120
  multi_xml (0.6.0)
123
121
  multipart-post (2.1.1)
124
- net-ftp (0.1.2)
125
- net-protocol
126
- time
127
- net-protocol (0.1.1)
128
- io-wait
129
- timeout
130
- nokogiri (1.11.6)
122
+ nokogiri (1.11.7)
131
123
  mini_portile2 (~> 2.5.0)
132
124
  racc (~> 1.4)
133
125
  oauth2 (1.4.7)
@@ -187,8 +179,6 @@ GEM
187
179
  term-ansicolor (1.7.1)
188
180
  tins (~> 1.0)
189
181
  thor (1.1.0)
190
- time (0.1.0)
191
- timeout (0.1.1)
192
182
  tins (1.29.1)
193
183
  sync
194
184
  tzinfo (2.0.4)
@@ -20,7 +20,6 @@ module LedgerSync
20
20
  references_one :currency
21
21
 
22
22
  references_one :subsidiary
23
- references_one :ledger_class, hash_attribute: :class, deserializer: LedgerClass::Deserializer
24
23
 
25
24
  references_many :line_items,
26
25
  hash_attribute: 'line.items',
@@ -14,7 +14,6 @@ module LedgerSync
14
14
  required(:tranId).maybe(:string)
15
15
  required(:currency).maybe(:hash, Types::Reference)
16
16
  required(:subsidiary).maybe(:hash, Types::Reference)
17
- required(:ledger_class).maybe(:hash, Types::Reference)
18
17
  required(:line_items).array(Types::Reference)
19
18
  end
20
19
  end
@@ -14,7 +14,6 @@ module LedgerSync
14
14
  optional(:tranId).maybe(:string)
15
15
  optional(:currency).maybe(:hash, Types::Reference)
16
16
  optional(:subsidiary).maybe(:hash, Types::Reference)
17
- required(:ledger_class).maybe(:hash, Types::Reference)
18
17
  optional(:line_items).array(Types::Reference)
19
18
  end
20
19
  end
@@ -14,7 +14,6 @@ module LedgerSync
14
14
  optional(:tranId).maybe(:string)
15
15
  optional(:currency).maybe(:hash, Types::Reference)
16
16
  optional(:subsidiary).maybe(:hash, Types::Reference)
17
- required(:ledger_class).maybe(:hash, Types::Reference)
18
17
  optional(:line_items).array(Types::Reference)
19
18
  end
20
19
  end
@@ -14,7 +14,6 @@ module LedgerSync
14
14
  required(:tranId).maybe(:string)
15
15
  required(:currency).maybe(:hash, Types::Reference)
16
16
  required(:subsidiary).maybe(:hash, Types::Reference)
17
- required(:ledger_class).maybe(:hash, Types::Reference)
18
17
  required(:line_items).array(Types::Reference)
19
18
  end
20
19
  end
@@ -17,9 +17,6 @@ module LedgerSync
17
17
  references_one :currency,
18
18
  serializer: Reference::Serializer, if: :currency_present?
19
19
 
20
- references_one :ledger_class,
21
- serializer: LedgerClass::Serializer
22
-
23
20
  references_one :subsidiary,
24
21
  serializer: Reference::Serializer
25
22
 
@@ -11,6 +11,11 @@ module LedgerSync
11
11
  attribute :credit
12
12
  attribute :debit
13
13
  attribute :memo
14
+ attribute :entity,
15
+ type: Type::DeserializerEntityType.new
16
+ references_one :ledger_class,
17
+ hash_attribute: :class,
18
+ deserializer: LedgerClass::Deserializer
14
19
  references_one :account
15
20
  end
16
21
  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
@@ -13,7 +13,6 @@ module LedgerSync
13
13
 
14
14
  references_one :currency, to: Currency
15
15
  references_one :subsidiary, to: Subsidiary
16
- references_one :ledger_class, to: LedgerClass
17
16
 
18
17
  references_many :line_items, to: JournalEntryLineItem
19
18
 
@@ -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.2'
6
+ VERSION = '0.3.3'
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.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Modern Treasury
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-31 00:00:00.000000000 Z
11
+ date: 2021-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print