definitions/segments/tdt.rb in eancom-1.6.3 vs definitions/segments/tdt.rb in eancom-2.0.0
- old
+ new
@@ -23,13 +23,29 @@
data = Eancom::Edifact::Data.new(
type: String,
length: 1..3,
dictionary: {
+ '10' => {
+ description: 'Pre-carriage transport',
+ identifier: 'pre_carriage_transport'
+ },
+ '12' => {
+ description: 'At departure',
+ identifier: 'at_departure'
+ },
+ '13' => {
+ description: 'At destination',
+ identifier: 'at_destination'
+ },
'20' => {
description: 'Main-carriage transport',
identifier: 'main_carriage_transport'
+ },
+ '30' => {
+ description: 'On-carriage transport',
+ identifier: 'on_carriage_transport'
}
},
description: "Transport stage code qualifier",
required: true
)
@@ -98,10 +114,14 @@
data = Eancom::Edifact::Data.new(
type: String,
length: 1..8,
dictionary: {
+ '12' => {
+ description: 'Ship tanker',
+ identifier: 'ship_tanker'
+ },
'23' => {
description: 'Rail bulk order',
identifier: 'rail_bulk_order'
},
'25' => {
@@ -110,9 +130,13 @@
},
'31' => {
description: 'Truck',
identifier: 'truck'
},
+ '32' => {
+ description: 'Road tanker',
+ identifier: 'road_tanker'
+ }
},
description: 'Transport means description code',
required: false
)
transport_means.add(:transport_means_description_code, data)