definitions/segments/nad.rb in eancom-1.6.3 vs definitions/segments/nad.rb in eancom-2.0.0
- old
+ new
@@ -27,10 +27,18 @@
dictionary: {
'BY' => {
description: 'Buyer',
identifier: 'buyer'
},
+ 'BO' => {
+ description: 'Broker or sales office',
+ identifier: 'broker_or_sales_office'
+ },
+ 'BS' => {
+ description: 'Bill and ship to',
+ identifier: 'bill_and_ship_to'
+ },
'DP' => {
description: 'Delivery party',
identifier: 'delivery_party'
},
'DEQ' => {
@@ -39,25 +47,81 @@
},
'SU' => {
description: 'Supplier',
identifier: 'supplier'
},
+ 'SN' => {
+ description: 'Store number',
+ identifier: 'store_number'
+ },
+ 'SE' => {
+ description: 'Seller',
+ identifier: 'seller'
+ },
+ 'SR' => {
+ description: "Supplier's agent/representative",
+ identifier: 'suppliers_agent_representative'
+ },
+ 'RB' => {
+ description: 'Receiving financial institution',
+ identifier: 'receiving_financial_institution'
+ },
'UC' => {
description: 'Ultimate consignee',
identifier: 'ultimate_consignee'
},
+ 'UD' => {
+ description: 'UD',
+ identifier: 'Ultimate customer'
+ },
'MF' => {
description: 'Manufacturer',
identifier: 'manufacturer'
},
'MR' => {
description: 'Message recipient',
identifier: 'message_recipient'
},
+ 'II' => {
+ desription: 'Issuer of invoice',
+ identifier: 'issuer_of_invoice'
+ },
'IV' => {
description: 'Invoicee',
identifier: 'invoicee'
+ },
+ 'CO' => {
+ description: 'Corporate officer',
+ identifier: 'corporate_officer'
+ },
+ 'GY' => {
+ description: 'Inventory reporting party',
+ identifier: 'inventory_reporting_party'
+ },
+ 'WH' => {
+ description: 'Warehouse keeper',
+ identifier: 'warehouse_keeper'
+ },
+ 'GO' => {
+ description: 'Goods owner',
+ identifier: 'goods_owner'
+ },
+ 'PO' => {
+ description: 'Ordering party',
+ identifier: 'ordering_party'
+ },
+ 'PE' => {
+ description: 'Payee',
+ identifier: 'payee'
+ },
+ 'CN' => {
+ description: 'Consignee',
+ identifier: 'consignee'
+ },
+ 'X52' => {
+ description: 'Breeder (GS1 Temporary Code)',
+ identifier: 'breeder'
}
},
description: "Party function code qualifier",
required: true
)
@@ -92,20 +156,16 @@
length: 1..3,
dictionary: {
'9' => {
description: 'GS1',
identifier: 'gs1'
- },
- '92' => {
- description: 'Assigned by buyer or buyers agent',
- identifier: 'assigned_by_buyer_or_buyers_agent',
- },
+ }
},
description: 'Code list responsible agency code (9 = GS1)',
required: true
)
-party_identification_details.add(:code_list_responsible_agancy_code_1, data)
+party_identification_details.add(:code_list_responsible_agency_code_1, data)
structure << party_identification_details
#==============================================================================
# Name and Address #
#==============================================================================
@@ -114,11 +174,11 @@
data = Eancom::Edifact::Data.new(
type: String,
length: 1..35,
dictionary: nil,
description: 'Name and address description',
- required: false
+ required: true
)
name_address.add(:name_and_address_description_1, data)
name_address.add(:name_and_address_description_2, data)
name_address.add(:name_and_address_description_3, data)
name_address.add(:name_and_address_description_4, data)
@@ -133,11 +193,11 @@
data = Eancom::Edifact::Data.new(
type: String,
length: 1..35,
dictionary: nil,
description: 'Party Name',
- required: false
+ required: true
)
party_name.add(:party_name_1, data)
party_name.add(:party_name_2, data)
party_name.add(:party_name_3, data)
party_name.add(:party_name_4, data)
@@ -152,10 +212,10 @@
data = Eancom::Edifact::Data.new(
type: String,
length: 1..35,
dictionary: nil,
description: 'Street and number or post office box identifier',
- required: false
+ required: true
)
street.add(:street_and_number_1, data)
street.add(:street_and_number_2, data)
street.add(:street_and_number_3, data)
street.add(:street_and_number_4, data)