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 +4 -4
- data/Gemfile.lock +4 -14
- data/lib/ledger_sync/netsuite/journal_entry/deserializer.rb +0 -1
- data/lib/ledger_sync/netsuite/journal_entry/operations/create.rb +0 -1
- data/lib/ledger_sync/netsuite/journal_entry/operations/delete.rb +0 -1
- data/lib/ledger_sync/netsuite/journal_entry/operations/find.rb +0 -1
- data/lib/ledger_sync/netsuite/journal_entry/operations/update.rb +0 -1
- data/lib/ledger_sync/netsuite/journal_entry/serializer.rb +0 -3
- data/lib/ledger_sync/netsuite/journal_entry_line_item/deserializer.rb +5 -0
- data/lib/ledger_sync/netsuite/journal_entry_line_item/serializer.rb +5 -0
- data/lib/ledger_sync/netsuite/resources/journal_entry.rb +0 -1
- data/lib/ledger_sync/netsuite/resources/journal_entry_line_item.rb +4 -0
- data/lib/ledger_sync/netsuite/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca12859d1008ded5f0d5a6222252544ae52a0b26bfcbcc99d508cdfa472e2be0
|
4
|
+
data.tar.gz: a512ba4cf254998f6df0b2e4253e30b68f10ec25833cc0bfd6a6f5d7653ea652
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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
|
-
|
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)
|
@@ -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
|
@@ -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
|
@@ -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
|
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.
|
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-
|
11
|
+
date: 2021-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|