definitions/segments/unb.rb in eancom-1.6.3 vs definitions/segments/unb.rb in eancom-2.0.0

- old
+ new

@@ -6,11 +6,11 @@ # Tag # #============================================================================== tag = Eancom::Edifact::Composite.new() data = Eancom::Edifact::Data.new( type: String, - length: 3, + length: 1..3, dictionary: nil, description: "Interchange Header", required: true ) tag.add(:tag, data) @@ -42,11 +42,11 @@ description: 'UN/ECE level F' }, } data = Eancom::Edifact::Data.new( type: String, - length: 4, + length: 1..4, dictionary: syntax_dictionary, description: "Syntax identifier.", required: true ) syntax_identifier.add(:syntax_identifier, data) @@ -55,13 +55,10 @@ '2' => { description: 'Version 2' }, '3' => { description: 'Version 3' - }, - '4' => { - description: 'Version 4' } } data = Eancom::Edifact::Data.new( type: String, length: 1, @@ -155,11 +152,11 @@ ) date_and_time_of_preparation.add(:date, data) data = Eancom::Edifact::Data.new( type: String, - length: 4, + length: 1..4, dictionary: nil, description: "Time (HHMM)", required: true ) date_and_time_of_preparation.add(:time, data) @@ -194,10 +191,10 @@ ) recipient_reference.add(:recipient_reference, data) data = Eancom::Edifact::Data.new( type: String, - length: 2, + length: 1..2, dictionary: nil, description: "Recipient reference/password qualifier.", required: false ) recipient_reference.add(:recipient_reference_qualifier, data)