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

- old
+ new

@@ -37,11 +37,32 @@ action_request_notification_description_code = Eancom::Edifact::Composite.new() data = Eancom::Edifact::Data.new( type: String, length: 0..3, - dictionary: nil, + dictionary: { + '1' => { + description: 'Added', + identifier: 'added' + }, + '3' => { + description: 'Changed', + identifier: 'changed' + }, + '4' => { + description: 'No action', + identifier: 'no_action' + }, + '5' => { + description: 'Accepted without amendment', + identifier: 'accepted_without_amendment' + }, + '7' => { + description: 'Not accepted', + identifier: 'not_accepted' + } + }, description: 'Action request/notification description code', required: false ) action_request_notification_description_code.add(:action_request_notification_description_code, data) @@ -71,11 +92,11 @@ 'EN' => { description: 'International Article Numbering Association (EAN)', identifier: 'ean' } }, - description: 'Item type identification code', + description: 'Item identifier', required: true ) item_number_identification.add(:item_type_identification_code, data) structure << item_number_identification @@ -88,11 +109,11 @@ type: String, length: 1..3, dictionary: { '1' => { description: 'Sub-line information', - identifier: 'sub_line_information', + identifier: 'sub_line_information' } }, description: 'Sub-line indicator code', required: false ) @@ -104,10 +125,9 @@ dictionary: nil, description: 'Line item identifier', required: false ) sub_line_information.add(:line_item_identifier_2, data) - structure << sub_line_information #============================================================================== Eancom.register_structure(tag: 'LIN', structure: structure)