pd_x12 1.5.3 → 1.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/x12/version.rb +1 -1
  3. data/misc/832.xml +127 -0
  4. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e36ad31d91218d51906a5f011b1f226b6fb3eea8
4
- data.tar.gz: fdfddfb995a5a1827a6cffe56bffd57ddc5551b0
3
+ metadata.gz: 27bab7c0fd3118343cb42c30a172474f4eb624ce
4
+ data.tar.gz: 0ca53dd73b1f14e954512088686aec585c477fd4
5
5
  SHA512:
6
- metadata.gz: a6a7218ddb4ff870dc4e9c157475eaafcf16883d72d246aa9f9f4d1faa4abfebf56f20d3e2a519db4e56a9ea236a4ca4a1ae3141b0c83bb8f0e88bd109c8f83f
7
- data.tar.gz: 03fc6c649da0a0cae6218af94720fc5bb4f1b975763aa62280b1a5b215310fa648e0e7c1deedf7a20e635ac13a6ecd1ecb2d75b6311ad79674a254139f31fe34
6
+ metadata.gz: 94dcb4eb0b072e5ae509ffc4065007851fb560ee5f4f2a4140d89c72d0532827e98e8d1896287f6a3eb70ddf3ed1f2812354135f04c931bf593ebe41ad620486
7
+ data.tar.gz: a53a75117d4753b0ffc76326f4230eda04141dc344517602874241885448fb0d9d30f48d52325d6ff5a2077316ec3b3e506c820e3be60b9a637ae38f9d416527
data/lib/x12/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module X12
2
- VERSION = "1.5.3"
2
+ VERSION = "1.5.4"
3
3
  end
data/misc/832.xml ADDED
@@ -0,0 +1,127 @@
1
+ <!--
2
+ This file is part of the X12Parser library that provides tools to
3
+ manipulate X12 messages using Ruby native syntax.
4
+
5
+ Copyright (C) 2016 P&D Technical Solutions, LLC
6
+
7
+ This library is free software; you can redistribute it and/or
8
+ modify it under the terms of the GNU Lesser General Public
9
+ License as published by the Free Software Foundation; either
10
+ version 2.1 of the License, or (at your option) any later version.
11
+
12
+ This library is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ Lesser General Public License for more details.
16
+
17
+ You should have received a copy of the GNU Lesser General Public
18
+ License along with this library; if not, write to the Free Software
19
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
+
21
+ $Id: 832.xml 2016-02-24 mjp using version 5010 $
22
+ Non-standard implementation of the 835 transaction
23
+ Allows for multiple ST/SE segments
24
+ -->
25
+
26
+ <Definition>
27
+ <Loop name="832"
28
+ comment="This X12 Transaction Set contains the format and establishes the data contents of the Price/Sales Catalog Transaction Set (832) for use within the context of an Electronic Data Interchange (EDI) environment. The transaction set can be used to provide for customary and established business and industry practice relative to furnishing or requesting the price of goods or services in the form of a catalog.">
29
+ <Segment name="ISA" max="1" required="y"/>
30
+ <Segment name="GS" max="1" required="y"/>
31
+ <Segment name="ST" max="1" required="y">
32
+ <Field name="TransactionSetIdentifierCode" const="850" min="3" max="3" comment="Code uniquely identifying a Transaction Set"/>
33
+ <Field name="TransactionSetControlNumber" min="4" max="9" comment="Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set"/>
34
+ </Segment>
35
+ <Segment name="BCT" max="1" required="y" comment="Beginning segment for Price/Sales Catalog">
36
+ <Field name="CatalogPurposeCode" min="2" max="2" validation="T683" comment="Code indicating purpose of catalog"/>
37
+ <Field name="CatalogNumber1" required="y" min="1" max="15" comment="Identifying number for catalog or superseded catalog"/>
38
+ <Field name="CatalogVersionNumber1" required="n" min="1" max="15" comment="Identifying version number of catalog or superseded catalog"/>
39
+ <Field name="CatalogRevisionNumber1" required="n" min="1" max="6" comment="Identifying revision number of catalog or superseded catalog"/>
40
+ <Field name="UnitOrBasisForMeasurementCode" required="n" min="2" max="2" validation="T355" comment="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"/>
41
+ <Field name="CatalogNumber2" required="n" min="1" max="15" comment="Identifying number for catalog or superseded catalog"/>
42
+ <Field name="CatalogVersionNumber2" required="n" min="1" max="15" comment="Identifying version number of catalog or superseded catalog"/>
43
+ <Field name="CatalogRevisionNumber2" required="n" min="1" max="6" comment="Identifying revision number of catalog or superseded catalog"/>
44
+ <Field name="Description" required="y" min="1" max="80" comment="A free-form description to clarify the related data elements and their content"/>
45
+ <Field name="TransactionSetPurposeCode" required="y" min="2" max="2" validation="T353" comment="Code identifying purpose of transaction set"/>
46
+ </Segment>
47
+ <Segment name="PER" max="3" required="n" comment="Administrative communication contact"/>
48
+ <Loop name="LIN" required="n" max="700000" comment="To specify basic item identification data">
49
+ <Segment name="LIN" max="1" required="n" comment="Item Identification">
50
+ <Field name="AssignedIdentification" required="y" min="1" max="20" comment="Alphanumeric characters assigned for differentiation within a transaction set"/>
51
+ <Field name="ProductServiceIdQualifier1" min="2" max="2" validation="T235" comment="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"/>
52
+ <Field name="ProductServiceId1" min="1" max="48" comment="Identifying number for a product or service"/>
53
+ </Segment>
54
+ <Segment name="G53" max="1" required="n" comment="Maintenance Type"/>
55
+ <Segment name="SLN" max="100" required="n" comment="Subline Item Detail"/>
56
+ <Segment name="DTM" max="10" required="n" comment="Date/Time Reference"/>
57
+ <Segment name="CTB" max="25" required="n" comment="Restrictions/ Conditions"/>
58
+ <Segment name="PID" max="200" required="n" comment="Product/Item Description">
59
+ <Field name="ItemDescriptionType" min="1" max="1" validation="T349" comment="Code indicating the format of a description"/>
60
+ <Field name="ProductProcessCharacteristicCode" required="n" min="2" max="3" validation="T750" comment="Code identifying the general class of a product or process characteristic"/>
61
+ <Field name="AgencyQualifierCode" required="n" min="2" max="2" validation="T559" comment="Code identifying the agency assigning the code values"/>
62
+ <Field name="ProductDescriptionCode" required="n" min="1" max="12" comment="A code from an industry code list which provides specific data about a product characteristic"/>
63
+ <Field name="Description" required="y" min="1" max="80" comment="A free-form description to clarify the related data elements and their content"/>
64
+ <Field name="SurfaceLayerPositionCode" required="n" min="2" max="2" validation="T752" comment="Code indicating the product surface, layer or position that is being described"/>
65
+ <Field name="SourceSubqualifier" required="n" min="1" max="15" comment="A reference that indicates the table or text maintained by the Source Qualifier"/>
66
+ <Field name="YesNoConditionOrResponseCode" required="n" min="1" max="1" validation="T1073" comment="Code indicating a Yes or No condition or response"/>
67
+ <Field name="LanguageCode" required="n" min="2" max="3" comment="Code designating the language used in text, from a standard code list maintained by the International Standards Organization (ISO 639)"/>
68
+ </Segment>
69
+ <Segment name="PO4" max="1" required="n" comment="Item Physical Details">
70
+ <Field name="Pack" type="long" required="y" min="1" max="6" comment="The number of inner containers, or number of eaches if there are no inner containers, per outer container"/>
71
+ <Field name="Size" type="double" required="n" min="1" max="8" comment="Size of supplier units in pack"/>
72
+ <Field name="UnitOrBasisForMeasurementCode1" required="y" min="2" max="2" validation="T355" comment="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"/>
73
+ <Field name="PackagingCode" required="n" min="3" max="5" validation="T103.2" comment="Code identifying the type of packaging; Part 1: Packaging Form, Part 2: Packaging Material; if the Data Element is used, then Part 1 is always required"/>
74
+ <Field name="WeightQualifier" required="n" min="1" max="2" validation="T187" comment="Code defining the type of weight"/>
75
+ <Field name="GrossWeightPerPack" type="double" required="n" min="1" max="9" comment="Numeric value of gross weight per pack"/>
76
+ <Field name="UnitOrBasisForMeasurementCode2" required="n" min="2" max="2" validation="T355" comment="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"/>
77
+ <Field name="GrossVolumePerPack" type="double" required="n" min="1" max="9" comment="Numeric value of gross volume per pack"/>
78
+ <Field name="UnitOrBasisForMeasurementCode3" required="n" min="2" max="2" validation="T355" comment="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"/>
79
+ <Field name="Length" type="double" required="n" min="1" max="8" comment="Largest horizontal dimension of an object measured when the object is in the upright position"/>
80
+ <Field name="Width" type="double" required="n" min="1" max="8" comment="Shorter measurement of the two horizontal dimensions measured with the object in the upright position"/>
81
+ <Field name="Height" type="double" required="n" min="1" max="8" comment="Vertical dimension of an object measured when the object is in the upright position"/>
82
+ <Field name="UnitOrBasisForMeasurementCode4" required="n" min="2" max="2" validation="T355" comment="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"/>
83
+ <Field name="InnerPack" type="long" required="n" min="1" max="6" comment="The number of eaches per inner container"/>
84
+ <Field name="SurfaceLayerPositionCode" required="n" min="2" max="2" validation="T752" comment="Code indicating the product surface, layer or position that is being described"/>
85
+ <Field name="AssignedIdentification1" required="n" min="1" max="20" comment="Alphanumeric characters assigned for differentiation within a transaction set"/>
86
+ <Field name="AssignedIdentification2" required="n" min="1" max="20" comment="Alphanumeric characters assigned for differentiation within a transaction set"/>
87
+ <Field name="Number" type="long" required="n" min="1" max="9" comment="A generic number"/>
88
+ </Segment>
89
+ <Loop name="CTP" max="100" required="n">
90
+ <Segment name="CTP" max="1" required="n" comment="Pricing Information">
91
+ <Field name="ClassOfTradeCode" required="n" min="2" max="2" validation="T687" comment="Code indicating class of trade"/>
92
+ <Field name="PriceIdentifierCode" required="y" min="3" max="3" validation="T236" comment="Code identifying pricing specification"/>
93
+ <Field name="UnitPrice" type="double" required="y" min="1" max="17" comment="Price per unit of product, service, commodity, etc."/>
94
+ <Field name="Quantity" type="double" required="y" min="1" max="15" comment="Numeric value of quantity"/>
95
+ <Field name="CompositeUnitOfMeasure" type="C001" required="y" min="0" max="inf" comment="To identify a composite unit of measure (See Figures Appendix for examples of use)"/>
96
+ <Field name="PriceMultiplierQualifier" required="n" min="3" max="3" validation="T648" comment="Code indicating the type of price multiplier"/>
97
+ <Field name="Multiplier" type="double" required="n" min="1" max="10" comment="Value to be used as a multiplier to obtain a new value"/>
98
+ <Field name="MonetaryAmount" type="double" required="n" min="1" max="18" comment="Monetary amount"/>
99
+ <Field name="BasisOfUnitPriceCode" required="n" min="2" max="2" validation="T639" comment="Code identifying the type of unit price for an item"/>
100
+ <Field name="ConditionValue" required="n" min="1" max="10" comment="Identifies rate restrictions or provisions"/>
101
+ <Field name="MultiplePriceQuantity" type="long" required="n" min="1" max="2" comment="Quantity of units for a given price, e.g., 3 for $10.00"/>
102
+ </Segment>
103
+ <Segment name="G40" max="99" required="n" comment="Bracket Price"/>
104
+ <Segment name="DTM" max="10" required="n" comment="Date/Time Reference"/>
105
+ <Segment name="CUR" max="5" required="n" comment="Currency">
106
+ <Field name="EntityIdentifierCode1" min="2" max="3" validation="T98" comment="Code identifying an organizational entity, a physical location, property or an individual"/>
107
+ <Field name="CurrencyCode1" min="3" max="3" comment="Code (Standard ISO) for country in whose currency the charges are specified"/>
108
+ </Segment>
109
+ <Segment name="REF" max="inf" required="n" comment="Reference Identification"/>
110
+ <Segment name="G43" max="9999" required="n" comment="Promotion/Price List Area"/>
111
+ </Loop>
112
+ </Loop>
113
+ <Loop name="N1" max="200" required="n"
114
+ comment="The 'N1' segment should be used to specify the name and SAN of the source (agent / distributor / wholesaler). If the SAN is not available then segments 'N2', 'N3', and 'N4' should be used to specify the source's address.">
115
+ <Segment name="N1" max="1" required="n" comment="Name"/>
116
+ <Segment name="N2" max="2" required="n" comment="Additional Name Information"/>
117
+ <Segment name="N3" max="2" required="n" comment="Address Information"/>
118
+ <Segment name="N4" max="1" required="n" comment="Geographic location"/>
119
+ </Loop>
120
+ <Segment name="CTT" max="1" required="n" comment="Transaction totals">
121
+ <Field name="NumberOfLineItems" type="long" min="1" max="6" comment="Total number of line items in the transaction set"/>
122
+ </Segment>
123
+ <Segment name="SE" max="1" required="y"/>
124
+ <Segment name="GE" max="1" required="y"/>
125
+ <Segment name="IEA" max="1" required="y"/>
126
+ </Loop>
127
+ </Definition>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pd_x12
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marty Petersen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-02 00:00:00.000000000 Z
11
+ date: 2016-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: libxml-ruby
@@ -58,6 +58,7 @@ files:
58
58
  - misc/271.xml
59
59
  - misc/276.xml
60
60
  - misc/277.xml
61
+ - misc/832.xml
61
62
  - misc/835.xml
62
63
  - misc/837p.xml
63
64
  - misc/850.xml