eddy 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (211) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +3 -0
  3. data/CHANGELOG.md +23 -4
  4. data/Gemfile.lock +1 -1
  5. data/README.md +1 -1
  6. data/lib/definitions/elements/generated/1005.hierarchical_structure_code.rb +1 -1
  7. data/lib/definitions/elements/generated/1019.invoice_type_code.rb +1 -1
  8. data/lib/definitions/elements/generated/103.packaging_code.rb +1 -1
  9. data/lib/definitions/elements/generated/1166.contract_type_code.rb +1 -1
  10. data/lib/definitions/elements/generated/1232.purchase_category.rb +1 -1
  11. data/lib/definitions/elements/generated/127.reference_identification.rb +1 -1
  12. data/lib/definitions/elements/generated/128.reference_identification_qualifier.rb +1 -1
  13. data/lib/definitions/elements/generated/1300.service_promotion_allowance_or_charge_code.rb +1 -1
  14. data/lib/definitions/elements/generated/1301.agency_service_promotion_allowance_or_charge_code.rb +1 -1
  15. data/lib/definitions/elements/generated/133.routing_sequence_code.rb +1 -1
  16. data/lib/definitions/elements/generated/166.address_information.rb +1 -1
  17. data/lib/definitions/elements/generated/183.volume.rb +1 -1
  18. data/lib/definitions/elements/generated/187.weight_qualifier.rb +1 -1
  19. data/lib/definitions/elements/generated/19.city_name.rb +1 -1
  20. data/lib/definitions/elements/generated/206.equipment_initial.rb +1 -1
  21. data/lib/definitions/elements/generated/207.equipment_number.rb +1 -1
  22. data/lib/definitions/elements/generated/212.unit_price.rb +1 -1
  23. data/lib/definitions/elements/generated/22.commodity_code.rb +1 -1
  24. data/lib/definitions/elements/generated/23.commodity_code_qualifier.rb +1 -1
  25. data/lib/definitions/elements/generated/234.product_service_id.rb +1 -1
  26. data/lib/definitions/elements/generated/235.product_service_id_qualifier.rb +1 -1
  27. data/lib/definitions/elements/generated/236.price_identifier_code.rb +1 -1
  28. data/lib/definitions/elements/generated/248.allowance_or_charge_indicator.rb +1 -1
  29. data/lib/definitions/elements/generated/26.country_code.rb +1 -1
  30. data/lib/definitions/elements/generated/284.service_level_code.rb +1 -1
  31. data/lib/definitions/elements/generated/324.purchase_order_number.rb +1 -1
  32. data/lib/definitions/elements/generated/326.request_reference_number.rb +1 -1
  33. data/lib/definitions/elements/generated/327.change_order_sequence_number.rb +1 -1
  34. data/lib/definitions/elements/generated/328.release_number.rb +1 -1
  35. data/lib/definitions/elements/generated/330.quantity_ordered.rb +1 -1
  36. data/lib/definitions/elements/generated/347.hash_total.rb +1 -1
  37. data/lib/definitions/elements/generated/349.item_description_type.rb +1 -1
  38. data/lib/definitions/elements/generated/352.description.rb +1 -1
  39. data/lib/definitions/elements/generated/353.transaction_set_purpose_code.rb +1 -1
  40. data/lib/definitions/elements/generated/354.number_of_line_items.rb +1 -1
  41. data/lib/definitions/elements/generated/355.unit_or_basis_for_measurement_code.rb +1 -1
  42. data/lib/definitions/elements/generated/358.quantity_invoiced.rb +1 -1
  43. data/lib/definitions/elements/generated/367.contract_number.rb +1 -1
  44. data/lib/definitions/elements/generated/368.shipment_order_status_code.rb +1 -1
  45. data/lib/definitions/elements/generated/374.date_time_qualifier.rb +1 -1
  46. data/lib/definitions/elements/generated/380.quantity.rb +1 -1
  47. data/lib/definitions/elements/generated/382.number_of_units_shipped.rb +1 -1
  48. data/lib/definitions/elements/generated/387.routing.rb +1 -1
  49. data/lib/definitions/elements/generated/396.shipment_identification.rb +1 -1
  50. data/lib/definitions/elements/generated/559.agency_qualifier_code.rb +1 -1
  51. data/lib/definitions/elements/generated/587.acknowledgment_type.rb +1 -1
  52. data/lib/definitions/elements/generated/610.amount.rb +1 -1
  53. data/lib/definitions/elements/generated/639.basis_of_unit_price_code.rb +1 -1
  54. data/lib/definitions/elements/generated/640.transaction_type_code.rb +1 -1
  55. data/lib/definitions/elements/generated/646.quantity_shipped_to_date.rb +1 -1
  56. data/lib/definitions/elements/generated/648.price_multiplier_qualifier.rb +1 -1
  57. data/lib/definitions/elements/generated/649.multiplier.rb +1 -1
  58. data/lib/definitions/elements/generated/66.identification_code_qualifier.rb +1 -1
  59. data/lib/definitions/elements/generated/662.relationship_code.rb +1 -1
  60. data/lib/definitions/elements/generated/668.line_item_status_code.rb +1 -1
  61. data/lib/definitions/elements/generated/67.identification_code.rb +1 -1
  62. data/lib/definitions/elements/generated/687.class_of_trade_code.rb +1 -1
  63. data/lib/definitions/elements/generated/750.product_process_characteristic_code.rb +1 -1
  64. data/lib/definitions/elements/generated/751.product_description_code.rb +1 -1
  65. data/lib/definitions/elements/generated/76.invoice_number.rb +1 -1
  66. data/lib/definitions/elements/generated/782.monetary_amount.rb +1 -1
  67. data/lib/definitions/elements/generated/786.security_level_code.rb +1 -1
  68. data/lib/definitions/elements/generated/79.lading_description.rb +1 -1
  69. data/lib/definitions/elements/generated/80.lading_quantity.rb +1 -1
  70. data/lib/definitions/elements/generated/87.marks_and_numbers.rb +1 -1
  71. data/lib/definitions/elements/generated/88.marks_and_numbers_qualifier.rb +1 -1
  72. data/lib/definitions/elements/generated/91.transportation_method_type_code.rb +1 -1
  73. data/lib/definitions/elements/generated/92.purchase_order_type_code.rb +1 -1
  74. data/lib/definitions/elements/generated/98.entity_identifier_code.rb +1 -1
  75. data/lib/definitions/elements/manual/116.postal_code.rb +1 -1
  76. data/lib/definitions/elements/manual/124.application_receivers_code.rb +1 -1
  77. data/lib/definitions/elements/manual/140.standard_carrier_alpha_code.rb +1 -1
  78. data/lib/definitions/elements/manual/142.application_senders_code.rb +1 -1
  79. data/lib/definitions/elements/manual/143.transaction_set_identifier_code.rb +1 -1
  80. data/lib/definitions/elements/manual/156.state_or_province_code.rb +1 -1
  81. data/lib/definitions/elements/manual/28.group_control_number.rb +1 -1
  82. data/lib/definitions/elements/manual/329.transactional_set_control_number.rb +2 -2
  83. data/lib/definitions/elements/manual/337.time.rb +1 -1
  84. data/lib/definitions/elements/manual/350.assigned_identification.rb +1 -1
  85. data/lib/definitions/elements/manual/373.date.rb +1 -1
  86. data/lib/definitions/elements/manual/455.responsible_agency_code.rb +1 -1
  87. data/lib/definitions/elements/manual/479.functional_identifier_code.rb +1 -1
  88. data/lib/definitions/elements/manual/480.version_release_industry_identifier_code.rb +1 -1
  89. data/lib/definitions/elements/manual/784.length_of_binary_data.rb +1 -1
  90. data/lib/definitions/elements/manual/785.binary_data.rb +1 -1
  91. data/lib/definitions/elements/manual/96.number_of_included_segments.rb +1 -1
  92. data/lib/definitions/elements/manual/97.number_of_transaction_sets_included.rb +1 -1
  93. data/lib/definitions/elements/manual/hl/628.hierarchical_id_number.rb +1 -1
  94. data/lib/definitions/elements/manual/hl/734.hierarchical_parent_id_number.rb +1 -1
  95. data/lib/definitions/elements/manual/hl/735.hierarchical_level_code.rb +1 -1
  96. data/lib/definitions/elements/manual/hl/736.hierarchical_child_code.rb +1 -1
  97. data/lib/definitions/elements/manual/i/I01.authorization_information_qualifier.rb +1 -1
  98. data/lib/definitions/elements/manual/i/I02.authorization_information.rb +1 -1
  99. data/lib/definitions/elements/manual/i/I03.security_information_qualifier.rb +1 -1
  100. data/lib/definitions/elements/manual/i/I04.security_information.rb +1 -1
  101. data/lib/definitions/elements/manual/i/I05.interchange_id_qualifier.rb +1 -1
  102. data/lib/definitions/elements/manual/i/I06.interchange_sender_id.rb +1 -1
  103. data/lib/definitions/elements/manual/i/I07.interchange_receiver_id.rb +1 -1
  104. data/lib/definitions/elements/manual/i/I08.interchange_date.rb +1 -1
  105. data/lib/definitions/elements/manual/i/I09.interchange_time.rb +1 -1
  106. data/lib/definitions/elements/manual/i/I10.interchange_control_standards_identifier.rb +1 -1
  107. data/lib/definitions/elements/manual/i/I11.interchange_control_version_number.rb +1 -1
  108. data/lib/definitions/elements/manual/i/I12.interchange_control_number.rb +1 -1
  109. data/lib/definitions/elements/manual/i/I13.acknowledgment_requested.rb +1 -1
  110. data/lib/definitions/elements/manual/i/I14.usage_indicator.rb +1 -1
  111. data/lib/definitions/elements/manual/i/I15.component_element_separator.rb +1 -1
  112. data/lib/definitions/elements/manual/i/I16.number_of_included_functional_groups.rb +1 -1
  113. data/lib/definitions/elements/manual/misc/81.weight.rb +1 -1
  114. data/lib/definitions/elements/manual/misc/93.name.rb +1 -1
  115. data/lib/definitions/segments/generated/ack.rb +1 -1
  116. data/lib/definitions/segments/generated/bak.rb +1 -1
  117. data/lib/definitions/segments/generated/beg.rb +1 -1
  118. data/lib/definitions/segments/generated/big.rb +1 -1
  119. data/lib/definitions/segments/generated/bsn.rb +1 -1
  120. data/lib/definitions/segments/generated/cad.rb +1 -1
  121. data/lib/definitions/segments/generated/ctp.rb +1 -1
  122. data/lib/definitions/segments/generated/ctt.rb +1 -1
  123. data/lib/definitions/segments/generated/dtm.rb +1 -1
  124. data/lib/definitions/segments/generated/it1.rb +1 -1
  125. data/lib/definitions/segments/generated/lin.rb +1 -1
  126. data/lib/definitions/segments/generated/man.rb +1 -1
  127. data/lib/definitions/segments/generated/n1.rb +1 -1
  128. data/lib/definitions/segments/generated/n3.rb +1 -1
  129. data/lib/definitions/segments/generated/n4.rb +1 -1
  130. data/lib/definitions/segments/generated/pid.rb +1 -1
  131. data/lib/definitions/segments/generated/po1.rb +1 -1
  132. data/lib/definitions/segments/generated/prf.rb +1 -1
  133. data/lib/definitions/segments/generated/ref.rb +1 -1
  134. data/lib/definitions/segments/generated/sac.rb +1 -1
  135. data/lib/definitions/segments/generated/sln.rb +1 -1
  136. data/lib/definitions/segments/generated/sn1.rb +1 -1
  137. data/lib/definitions/segments/generated/td1.rb +1 -1
  138. data/lib/definitions/segments/generated/td5.rb +1 -1
  139. data/lib/definitions/segments/generated/tds.rb +1 -1
  140. data/lib/definitions/segments/manual/envelopes/ge.rb +1 -1
  141. data/lib/definitions/segments/manual/envelopes/gs.rb +1 -1
  142. data/lib/definitions/segments/manual/envelopes/iea.rb +1 -1
  143. data/lib/definitions/segments/manual/envelopes/isa.rb +1 -1
  144. data/lib/definitions/segments/manual/envelopes/se.rb +1 -1
  145. data/lib/definitions/segments/manual/envelopes/st.rb +1 -1
  146. data/lib/definitions/segments/manual/hl.rb +1 -1
  147. data/lib/definitions/segments/manual/n2.rb +1 -1
  148. data/lib/definitions/transaction_sets/manual/810/810.rb +19 -24
  149. data/lib/definitions/transaction_sets/manual/810/loops/it1.rb +92 -0
  150. data/lib/definitions/transaction_sets/manual/810/loops/n1.rb +72 -0
  151. data/lib/definitions/transaction_sets/manual/810/loops/pid.rb +45 -0
  152. data/lib/definitions/transaction_sets/manual/810/loops/sac.rb +45 -0
  153. data/lib/definitions/transaction_sets/manual/850/850.rb +12 -14
  154. data/lib/definitions/transaction_sets/manual/850/loops/n1.rb +74 -0
  155. data/lib/definitions/transaction_sets/manual/850/loops/po1.rb +51 -0
  156. data/lib/definitions/transaction_sets/manual/855/855.rb +11 -15
  157. data/lib/definitions/transaction_sets/manual/855/loops/ack.rb +45 -0
  158. data/lib/definitions/transaction_sets/manual/855/loops/n1.rb +72 -0
  159. data/lib/definitions/transaction_sets/manual/855/loops/pid.rb +45 -0
  160. data/lib/definitions/transaction_sets/manual/855/loops/po1.rb +80 -0
  161. data/lib/definitions/transaction_sets/manual/856/856.rb +8 -16
  162. data/lib/definitions/transaction_sets/manual/856/loops/hl_item.rb +87 -0
  163. data/lib/definitions/transaction_sets/manual/856/loops/hl_order.rb +59 -0
  164. data/lib/definitions/transaction_sets/manual/856/loops/hl_shipment.rb +159 -0
  165. data/lib/definitions/transaction_sets/manual/856/loops/hl_tare.rb +59 -0
  166. data/lib/definitions/transaction_sets/manual/856/loops/n1.rb +71 -0
  167. data/lib/definitions/transaction_sets/manual/856/loops/sln.rb +44 -0
  168. data/lib/eddy/build/elements/element.rb +5 -5
  169. data/lib/eddy/build/elements/elements.rb +3 -3
  170. data/lib/eddy/build/elements/id.rb +1 -1
  171. data/lib/eddy/build/elements/n.rb +1 -1
  172. data/lib/eddy/build/loop/base.rb +49 -0
  173. data/lib/eddy/build/loop/render.rb +18 -0
  174. data/lib/eddy/build/loop/repeat.rb +86 -0
  175. data/lib/eddy/build/segment_builder.rb +14 -9
  176. data/lib/eddy/build/transaction_set_builder.rb +60 -93
  177. data/lib/eddy/build.rb +3 -1
  178. data/lib/eddy/errors.rb +16 -15
  179. data/lib/eddy/models/element/an.rb +45 -43
  180. data/lib/eddy/models/element/b.rb +45 -43
  181. data/lib/eddy/models/element/base.rb +102 -100
  182. data/lib/eddy/models/element/composite.rb +5 -3
  183. data/lib/eddy/models/element/dt.rb +82 -80
  184. data/lib/eddy/models/element/id.rb +47 -45
  185. data/lib/eddy/models/element/n.rb +79 -77
  186. data/lib/eddy/models/element/r.rb +70 -68
  187. data/lib/eddy/models/element/tm.rb +95 -93
  188. data/lib/eddy/models/element.rb +4 -2
  189. data/lib/eddy/models/functional_group.rb +29 -27
  190. data/lib/eddy/models/interchange.rb +49 -47
  191. data/lib/eddy/models/loop/base.rb +62 -63
  192. data/lib/eddy/models/loop/repeat.rb +43 -31
  193. data/lib/eddy/models/segment.rb +30 -28
  194. data/lib/eddy/models/transaction_set.rb +82 -80
  195. data/lib/eddy/models.rb +1 -1
  196. data/lib/eddy/{schema/element_summary.rb → summary/element.rb} +3 -3
  197. data/lib/eddy/{schema/loop_summary.rb → summary/loop.rb} +53 -16
  198. data/lib/eddy/{schema/segment_summary.rb → summary/segment.rb} +14 -6
  199. data/lib/eddy/{schema/transaction_set_summary.rb → summary/transaction_set.rb} +14 -13
  200. data/lib/eddy/{schema → summary}/validate.rb +1 -1
  201. data/lib/eddy/summary.rb +10 -0
  202. data/lib/eddy/util.rb +5 -5
  203. data/lib/eddy/version.rb +1 -1
  204. data/lib/eddy.rb +1 -7
  205. data/todo.txt +3 -5
  206. metadata +28 -13
  207. data/lib/definitions/transaction_sets/manual/810/loops.rb +0 -109
  208. data/lib/definitions/transaction_sets/manual/850/loops.rb +0 -58
  209. data/lib/definitions/transaction_sets/manual/855/loops.rb +0 -104
  210. data/lib/definitions/transaction_sets/manual/856/loops.rb +0 -155
  211. data/lib/eddy/build/loop_builder.rb +0 -93
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24f85e2d1206326cc6a732032561eadf89c12c948ea2adfa1c83381cbff2a347
4
- data.tar.gz: 371950e447ceb6b39f75240410e649ad3271e821f2e949ffed583846388b3070
3
+ metadata.gz: 600abecd37256fb0b700c1fe568e103dba586d35b2da502d2c0b0427924fb4f6
4
+ data.tar.gz: 7fe8def87019c4c3e9d32c21b1b8bdc20fdd0ab0fa8ad395c5513fa3c7aa6ad5
5
5
  SHA512:
6
- metadata.gz: 3133afb573c915663da4214f431c97a692bd339fc101f142d3d313b84a7995c8947ddc4d5f992498b8885510dea003d1354cf02d360e9e92137747bb65ac0035
7
- data.tar.gz: f4d9957a4cf3eca9606e762f99e01a76116d3611e5f021d5046be2d789e238689dd9ff1a9ac9de1d078f507377037039c8980625b063d55fdd5492d0f68a31ba
6
+ metadata.gz: 3cadff7f1e04f1b8c5efd5f6c8f178af7c76d8b26cc3956d1f4db5633927916b2a5543618b5d76c3e1993d57f5fa94997489a78789c306b5e0c022adc95a189e
7
+ data.tar.gz: '099a3cf5c909bb4c1a333d0f051be08c620f3eb7759c5e5b479e1796dd4e969208ee8013ab167339d248c7cb1df603a615b4312b978feec9d2163d9b31d999b7'
data/.rubocop.yml CHANGED
@@ -221,5 +221,8 @@ Metrics/PerceivedComplexity:
221
221
  Style/CommentedKeyword:
222
222
  Enabled: False
223
223
 
224
+ Style/AsciiComments:
225
+ Enabled: false
226
+
224
227
  Lint/EmptyWhen:
225
228
  Enabled: false
data/CHANGELOG.md CHANGED
@@ -5,19 +5,38 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ > Versions 0.x (0.2, 0.3, 0.4, ...) exist to make it easier for me to test Eddy in other projects and figure out how best to move forward with development.
9
+ >
10
+ > All code should be considered Work In Progress.
11
+ >
12
+ > While the API is still changing, enough code exists that EDI documents can currently be written with Eddy (though I wouldn't recommend use in production environments yet).
13
+
8
14
  ## master (unreleased)
9
15
 
10
- Versions 0.x (0.2, 0.3, 0.4, ...) exist to make it easier for me to test Eddy in other projects and figure out how best to move forward with development.
16
+ ## 0.6.0 (2020-01-07)
11
17
 
12
- All code should be considered Work In Progress.
18
+ ### Changed
13
19
 
14
- While the API is still changing, enough code exists that EDI documents can currently be written with Eddy (though I wouldn't recommend use in production environments yet).
20
+ - Updated the implementation of `Loop`.
21
+ - Renamed attribute `Loop#repeat` to `Loop#repeat_limit`
22
+ - Rename `Eddy::Schema` to `Eddy::Summary` and remove `Summary` postfix from class names, resulting in the following changes:
23
+ - `Eddy::Schema::LoopSummary` -> `Eddy::Summary::Loop`
24
+ - `Eddy::Schema::ElementSummary` -> `Eddy::Summary::Element`
25
+ - `Eddy::Schema::SegmentSummary` -> `Eddy::Summary::Segment`
26
+ - `Eddy::Schema::TransactionSetSummary` -> `Eddy::Summary::TransactionSet`
27
+ - Move the following classes into the `Eddy::Models` module:
28
+ - `Element::*`
29
+ - `Segment`
30
+ - `Loop::*`
31
+ - `FunctionalGroup`
32
+ - `TransactionSet`
33
+ - `Interchange`
15
34
 
16
35
  ## 0.5.1 (2020-01-06)
17
36
 
18
37
  ### Changed
19
38
 
20
- - Rename variable `loop_id` to `id`.
39
+ - Rename attribute `loop_id` to `id`.
21
40
 
22
41
  ### Fixed
23
42
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eddy (0.5.1)
4
+ eddy (0.6.0)
5
5
  ginny (~> 0.6.3)
6
6
  json_schemer (~> 0.2.8)
7
7
  thor (~> 1.0.1)
data/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  [travis-ci]: https://travis-ci.org/tcd/eddy
11
11
  [coveralls]: https://coveralls.io/github/tcd/eddy?branch=master
12
12
  [license]: https://github.com/tcd/eddy/blob/master/LICENSE.txt
13
- [docs]: https://www.rubydoc.info/gems/eddy/0.5.1
13
+ [docs]: https://www.rubydoc.info/gems/eddy/0.6.0
14
14
 
15
15
  ## Installation
16
16
 
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 4/4
9
9
  # - Description: Code indicating the hierarchical application structure of a transaction set that utilizes the HL segment to define the structure of the transaction set
10
- class E1005 < Eddy::Element::ID
10
+ class E1005 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 3/3
9
9
  # - Description: Code defining the method by which invoices are to be processed
10
- class E1019 < Eddy::Element::ID
10
+ class E1019 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: AN
8
8
  # - Min/Max: 3/5
9
9
  # - Description: 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
10
- class E103 < Eddy::Element::AN
10
+ class E103 < Eddy::Models::Element::AN
11
11
  # @param val [String]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 2/2
9
9
  # - Description: Code identifying a contract type
10
- class E1166 < Eddy::Element::ID
10
+ class E1166 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 2/2
9
9
  # - Description: Code identifying the broad category of products or services being acquired
10
- class E1232 < Eddy::Element::ID
10
+ class E1232 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: AN
8
8
  # - Min/Max: 1/30
9
9
  # - Description: Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier
10
- class E127 < Eddy::Element::AN
10
+ class E127 < Eddy::Models::Element::AN
11
11
  # @param val [String]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 2/3
9
9
  # - Description: Code qualifying the Reference Identification
10
- class E128 < Eddy::Element::ID
10
+ class E128 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 4/4
9
9
  # - Description: Code identifying the service, promotion, allowance, or charge
10
- class E1300 < Eddy::Element::ID
10
+ class E1300 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: AN
8
8
  # - Min/Max: 1/10
9
9
  # - Description: Agency maintained code identifying the service, promotion, allowance, or charge
10
- class E1301 < Eddy::Element::AN
10
+ class E1301 < Eddy::Models::Element::AN
11
11
  # @param val [String]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 1/2
9
9
  # - Description: Code describing the relationship of a carrier to a specific shipment movement
10
- class E133 < Eddy::Element::ID
10
+ class E133 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: AN
8
8
  # - Min/Max: 1/55
9
9
  # - Description: Address information
10
- class E166 < Eddy::Element::AN
10
+ class E166 < Eddy::Models::Element::AN
11
11
  # @param val [String]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: R
8
8
  # - Min/Max: 1/8
9
9
  # - Description: Value of volumetric measure
10
- class E183 < Eddy::Element::R
10
+ class E183 < Eddy::Models::Element::R
11
11
  # @param val [Float]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 1/2
9
9
  # - Description: Code defining the type of weight
10
- class E187 < Eddy::Element::ID
10
+ class E187 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: AN
8
8
  # - Min/Max: 2/30
9
9
  # - Description: Free-form text for city name
10
- class E19 < Eddy::Element::AN
10
+ class E19 < Eddy::Models::Element::AN
11
11
  # @param val [String]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: AN
8
8
  # - Min/Max: 1/4
9
9
  # - Description: Prefix or alphabetic part of an equipment unit's identifying number
10
- class E206 < Eddy::Element::AN
10
+ class E206 < Eddy::Models::Element::AN
11
11
  # @param val [String]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: AN
8
8
  # - Min/Max: 1/10
9
9
  # - Description: Sequencing or serial part of an equipment unit's identifying number (pure numeric form for equipment number is preferred)
10
- class E207 < Eddy::Element::AN
10
+ class E207 < Eddy::Models::Element::AN
11
11
  # @param val [String]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: R
8
8
  # - Min/Max: 1/17
9
9
  # - Description: Price per unit of product, service, commodity, etc.
10
- class E212 < Eddy::Element::R
10
+ class E212 < Eddy::Models::Element::R
11
11
  # @param val [Float]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: AN
8
8
  # - Min/Max: 1/30
9
9
  # - Description: Code describing a commodity or group of commodities
10
- class E22 < Eddy::Element::AN
10
+ class E22 < Eddy::Models::Element::AN
11
11
  # @param val [String]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 1/1
9
9
  # - Description: Code identifying the commodity coding system used for Commodity Code
10
- class E23 < Eddy::Element::ID
10
+ class E23 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: AN
8
8
  # - Min/Max: 1/48
9
9
  # - Description: Identifying number for a product or service
10
- class E234 < Eddy::Element::AN
10
+ class E234 < Eddy::Models::Element::AN
11
11
  # @param val [String]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 2/2
9
9
  # - Description: Code identifying the type/source of the descriptive number used in Product/Service ID (234)
10
- class E235 < Eddy::Element::ID
10
+ class E235 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 3/3
9
9
  # - Description: Code identifying pricing specification
10
- class E236 < Eddy::Element::ID
10
+ class E236 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 1/1
9
9
  # - Description: Code which indicates an allowance or charge for the service specified
10
- class E248 < Eddy::Element::ID
10
+ class E248 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 2/3
9
9
  # - Description: Code identifying the country
10
- class E26 < Eddy::Element::ID
10
+ class E26 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 2/2
9
9
  # - Description: Code indicating the level of transportation service or the billing service offered by the transportation carrier
10
- class E284 < Eddy::Element::ID
10
+ class E284 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: AN
8
8
  # - Min/Max: 1/22
9
9
  # - Description: Identifying number for Purchase Order assigned by the orderer/purchaser
10
- class E324 < Eddy::Element::AN
10
+ class E324 < Eddy::Models::Element::AN
11
11
  # @param val [String]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: AN
8
8
  # - Min/Max: 1/45
9
9
  # - Description: Reference number or RFQ number to use to identify a particular transaction set and query (additional reference number or description which can be used with contract number)
10
- class E326 < Eddy::Element::AN
10
+ class E326 < Eddy::Models::Element::AN
11
11
  # @param val [String]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: AN
8
8
  # - Min/Max: 1/8
9
9
  # - Description: Number assigned by the orderer identifying a specific change or revision to a previously transmitted transaction set
10
- class E327 < Eddy::Element::AN
10
+ class E327 < Eddy::Models::Element::AN
11
11
  # @param val [String]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: AN
8
8
  # - Min/Max: 1/30
9
9
  # - Description: Number identifying a release against a Purchase Order previously placed by the parties involved in the transaction
10
- class E328 < Eddy::Element::AN
10
+ class E328 < Eddy::Models::Element::AN
11
11
  # @param val [String]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: R
8
8
  # - Min/Max: 1/15
9
9
  # - Description: Quantity ordered
10
- class E330 < Eddy::Element::R
10
+ class E330 < Eddy::Models::Element::R
11
11
  # @param val [Float]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: R
8
8
  # - Min/Max: 1/10
9
9
  # - Description: Sum of values of the specified data element. All values in the data element will be summed without regard to decimal points (explicit or implicit) or signs. Truncation will occur on the left most digits if the sum is greater than the maximum size of the hash total of the data element.
10
- class E347 < Eddy::Element::R
10
+ class E347 < Eddy::Models::Element::R
11
11
  # @param val [Float]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 1/1
9
9
  # - Description: Code indicating the format of a description
10
- class E349 < Eddy::Element::ID
10
+ class E349 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: AN
8
8
  # - Min/Max: 1/80
9
9
  # - Description: A free-form description to clarify the related data elements and their content
10
- class E352 < Eddy::Element::AN
10
+ class E352 < Eddy::Models::Element::AN
11
11
  # @param val [String]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 2/2
9
9
  # - Description: Code identifying purpose of transaction set
10
- class E353 < Eddy::Element::ID
10
+ class E353 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: N0
8
8
  # - Min/Max: 1/6
9
9
  # - Description: Total number of line items in the transaction set
10
- class E354 < Eddy::Element::N
10
+ class E354 < Eddy::Models::Element::N
11
11
  # @param val [Integer]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 2/2
9
9
  # - Description: Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken
10
- class E355 < Eddy::Element::ID
10
+ class E355 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: R
8
8
  # - Min/Max: 1/10
9
9
  # - Description: Number of units invoiced (supplier units)
10
- class E358 < Eddy::Element::R
10
+ class E358 < Eddy::Models::Element::R
11
11
  # @param val [Float]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: AN
8
8
  # - Min/Max: 1/30
9
9
  # - Description: Contract number
10
- class E367 < Eddy::Element::AN
10
+ class E367 < Eddy::Models::Element::AN
11
11
  # @param val [String]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 2/2
9
9
  # - Description: Code indicating the status of an order or shipment or the disposition of any difference between the quantity ordered and the quantity shipped for a line item or transaction
10
- class E368 < Eddy::Element::ID
10
+ class E368 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 3/3
9
9
  # - Description: Code specifying type of date or time, or both date and time
10
- class E374 < Eddy::Element::ID
10
+ class E374 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: R
8
8
  # - Min/Max: 1/15
9
9
  # - Description: Numeric value of quantity
10
- class E380 < Eddy::Element::R
10
+ class E380 < Eddy::Models::Element::R
11
11
  # @param val [Float]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: R
8
8
  # - Min/Max: 1/10
9
9
  # - Description: Numeric value of units shipped in manufacturer's shipping units for a line item or transaction set
10
- class E382 < Eddy::Element::R
10
+ class E382 < Eddy::Models::Element::R
11
11
  # @param val [Float]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: AN
8
8
  # - Min/Max: 1/35
9
9
  # - Description: Free-form description of the routing or requested routing for shipment, or the originating carrier's identity
10
- class E387 < Eddy::Element::AN
10
+ class E387 < Eddy::Models::Element::AN
11
11
  # @param val [String]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: AN
8
8
  # - Min/Max: 2/30
9
9
  # - Description: A unique control number assigned by the original shipper to identify a specific shipment
10
- class E396 < Eddy::Element::AN
10
+ class E396 < Eddy::Models::Element::AN
11
11
  # @param val [String]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 2/2
9
9
  # - Description: Code identifying the agency assigning the code values
10
- class E559 < Eddy::Element::ID
10
+ class E559 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 2/2
9
9
  # - Description: Code specifying the type of acknowledgment
10
- class E587 < Eddy::Element::ID
10
+ class E587 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: N2
8
8
  # - Min/Max: 1/15
9
9
  # - Description: Monetary amount
10
- class E610 < Eddy::Element::N
10
+ class E610 < Eddy::Models::Element::N
11
11
  # @param val [Integer]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 2/2
9
9
  # - Description: Code identifying the type of unit price for an item
10
- class E639 < Eddy::Element::ID
10
+ class E639 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 2/2
9
9
  # - Description: Code specifying the type of transaction
10
- class E640 < Eddy::Element::ID
10
+ class E640 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: R
8
8
  # - Min/Max: 1/15
9
9
  # - Description: Number of units shipped to date
10
- class E646 < Eddy::Element::R
10
+ class E646 < Eddy::Models::Element::R
11
11
  # @param val [Float]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 3/3
9
9
  # - Description: Code indicating the type of price multiplier
10
- class E648 < Eddy::Element::ID
10
+ class E648 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: R
8
8
  # - Min/Max: 1/10
9
9
  # - Description: Value to be used as a multiplier to obtain a new value
10
- class E649 < Eddy::Element::R
10
+ class E649 < Eddy::Models::Element::R
11
11
  # @param val [Float]
12
12
  # @param req [String]
13
13
  # @param ref [String]
@@ -7,7 +7,7 @@ module Eddy
7
7
  # - Type: ID
8
8
  # - Min/Max: 1/2
9
9
  # - Description: Code designating the system/method of code structure used for Identification Code (67)
10
- class E66 < Eddy::Element::ID
10
+ class E66 < Eddy::Models::Element::ID
11
11
 
12
12
  # @param val [String]
13
13
  # @param req [String]