eancom 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/definitions/slsrpt/d01b.rb +1 -1
- data/lib/eancom/edifact/segments/unb.rb +4 -1
- data/lib/eancom/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: 24ed2d6aa82403dfd088c3ec5aea3846c93460949164b357318973ab257644ce
|
4
|
+
data.tar.gz: a1e8ab1423c0926b8b46db92d0fbeb934a56b3993752bde7b3618bce6fa8a07a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52fff9528a129ebb7b5ed524ba19dc558831bb656338041d6828652181fbebf4a3ba19a466e62d3e752826e4a9d17ddf5dcd9fc0220b29e1c60a32f810e27060
|
7
|
+
data.tar.gz: cce1cf69235b045d0cb0386b1d9350af467dc1cf041fc58ab96f992f062097275b4e836b103434b7b59074fd82b47c6ab3f20cf8014cd7350c0711914bf5ec3e
|
data/Gemfile.lock
CHANGED
data/definitions/slsrpt/d01b.rb
CHANGED
@@ -6,7 +6,7 @@ Eancom::Definition.create(name: 'D01B', type: :slsrpt) do |document, config|
|
|
6
6
|
syntax_identifier: 'UNOC',
|
7
7
|
syntax_version_number: '3',
|
8
8
|
interchange_sender_identification: config.header.interchange_sender_identification,
|
9
|
-
sender_identifiction_code_qualifier: config.header.
|
9
|
+
sender_identifiction_code_qualifier: config.header.sender_identifiction_code_qualifier || '14',
|
10
10
|
interchange_recipient_identification: config.header.interchange_recipient_identification,
|
11
11
|
recipient_identifiction_code_qualifier: config.header.recipient_identifiction_code_qualifier || '14',
|
12
12
|
date: config.header.date,
|
@@ -47,13 +47,16 @@ module Eancom
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def to_json_hash
|
50
|
-
{
|
50
|
+
hash = {
|
51
51
|
interchange_sender_identification: @interchange_sender_identification,
|
52
52
|
interchange_recipient_identification: @interchange_recipient_identification,
|
53
53
|
date: @date,
|
54
54
|
time: @time,
|
55
55
|
interchange_control_reference: @interchange_control_reference
|
56
56
|
}
|
57
|
+
|
58
|
+
hash.merge!(sender_identifiction_code_qualifier: @sender_identifiction_code_qualifier) if @sender_identifiction_code_qualifier
|
59
|
+
hash.merge!(recipient_identifiction_code_qualifier: @recipient_identifiction_code_qualifier) if @recipient_identifiction_code_qualifier
|
57
60
|
end
|
58
61
|
|
59
62
|
def segment_type
|
data/lib/eancom/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eancom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fadendaten GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|