hippo 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. data/CHANGELOG +7 -0
  2. data/README.md +58 -7
  3. data/lib/hippo/exceptions.rb +2 -1
  4. data/lib/hippo/field.rb +87 -1
  5. data/lib/hippo/parser/segment.rb +2 -2
  6. data/lib/hippo/segments/AK1.rb +1 -2
  7. data/lib/hippo/segments/AK3.rb +1 -2
  8. data/lib/hippo/segments/AK4.rb +4 -8
  9. data/lib/hippo/segments/AK9.rb +3 -6
  10. data/lib/hippo/segments/AMT.rb +1 -1
  11. data/lib/hippo/segments/BPR.rb +1 -1
  12. data/lib/hippo/segments/CAS.rb +12 -12
  13. data/lib/hippo/segments/CLM.rb +1 -1
  14. data/lib/hippo/segments/CLP.rb +5 -5
  15. data/lib/hippo/segments/CN1.rb +3 -3
  16. data/lib/hippo/segments/CR1.rb +2 -2
  17. data/lib/hippo/segments/CR2.rb +4 -5
  18. data/lib/hippo/segments/CR3.rb +1 -1
  19. data/lib/hippo/segments/CR4.rb +16 -16
  20. data/lib/hippo/segments/CR5.rb +7 -7
  21. data/lib/hippo/segments/CR7.rb +2 -4
  22. data/lib/hippo/segments/CTP.rb +15 -16
  23. data/lib/hippo/segments/CTX.rb +6 -12
  24. data/lib/hippo/segments/CUR.rb +1 -1
  25. data/lib/hippo/segments/DMG.rb +1 -1
  26. data/lib/hippo/segments/DN1.rb +2 -2
  27. data/lib/hippo/segments/DN2.rb +1 -1
  28. data/lib/hippo/segments/DSB.rb +2 -2
  29. data/lib/hippo/segments/FRM.rb +1 -1
  30. data/lib/hippo/segments/GE.rb +2 -2
  31. data/lib/hippo/segments/GS.rb +6 -6
  32. data/lib/hippo/segments/HCP.rb +5 -5
  33. data/lib/hippo/segments/HI.rb +24 -24
  34. data/lib/hippo/segments/HSD.rb +3 -4
  35. data/lib/hippo/segments/IEA.rb +2 -2
  36. data/lib/hippo/segments/IK3.rb +1 -2
  37. data/lib/hippo/segments/IK4.rb +4 -8
  38. data/lib/hippo/segments/ISA.rb +10 -10
  39. data/lib/hippo/segments/K3.rb +10 -10
  40. data/lib/hippo/segments/LX.rb +1 -2
  41. data/lib/hippo/segments/MEA.rb +13 -13
  42. data/lib/hippo/segments/MIA.rb +19 -19
  43. data/lib/hippo/segments/MOA.rb +4 -4
  44. data/lib/hippo/segments/PAT.rb +1 -1
  45. data/lib/hippo/segments/PLB.rb +6 -6
  46. data/lib/hippo/segments/PS1.rb +1 -1
  47. data/lib/hippo/segments/PWK.rb +1 -2
  48. data/lib/hippo/segments/QTY.rb +11 -11
  49. data/lib/hippo/segments/SE.rb +1 -2
  50. data/lib/hippo/segments/STC.rb +2 -2
  51. data/lib/hippo/segments/SV1.rb +8 -12
  52. data/lib/hippo/segments/SV2.rb +4 -4
  53. data/lib/hippo/segments/SV3.rb +6 -10
  54. data/lib/hippo/segments/SV5.rb +3 -3
  55. data/lib/hippo/segments/SV6.rb +6 -10
  56. data/lib/hippo/segments/SVC.rb +4 -4
  57. data/lib/hippo/segments/SVD.rb +3 -4
  58. data/lib/hippo/segments/TA1.rb +5 -5
  59. data/lib/hippo/segments/TS2.rb +19 -19
  60. data/lib/hippo/segments/TS3.rb +21 -21
  61. data/lib/hippo/segments/UR.rb +1 -1
  62. data/lib/hippo/segments/base.rb +12 -14
  63. data/lib/hippo/version.rb +1 -1
  64. data/lib/hippo.rb +4 -0
  65. data/test/test_helper.rb +4 -0
  66. data/test/test_parser.rb +3 -3
  67. data/test/test_segments_base.rb +42 -0
  68. metadata +6 -6
@@ -39,7 +39,7 @@ module Hippo::Segments
39
39
 
40
40
  field :name => 'MonetaryAmount',
41
41
  :sequence => 5,
42
- :datatype => :numeric,
42
+ :datatype => :decimal,
43
43
  :minimum => 1,
44
44
  :maximum => 18,
45
45
  :required => false,
@@ -47,7 +47,7 @@ module Hippo::Segments
47
47
 
48
48
  field :name => 'Quantity',
49
49
  :sequence => 6,
50
- :datatype => :numeric,
50
+ :datatype => :decimal,
51
51
  :minimum => 1,
52
52
  :maximum => 15,
53
53
  :required => false,
@@ -115,7 +115,7 @@ module Hippo::Segments
115
115
 
116
116
  field :name => 'MonetaryAmount',
117
117
  :sequence => 5,
118
- :datatype => :numeric,
118
+ :datatype => :decimal,
119
119
  :minimum => 1,
120
120
  :maximum => 18,
121
121
  :required => false,
@@ -123,7 +123,7 @@ module Hippo::Segments
123
123
 
124
124
  field :name => 'Quantity',
125
125
  :sequence => 6,
126
- :datatype => :numeric,
126
+ :datatype => :decimal,
127
127
  :minimum => 1,
128
128
  :maximum => 15,
129
129
  :required => false,
@@ -191,7 +191,7 @@ module Hippo::Segments
191
191
 
192
192
  field :name => 'MonetaryAmount',
193
193
  :sequence => 5,
194
- :datatype => :numeric,
194
+ :datatype => :decimal,
195
195
  :minimum => 1,
196
196
  :maximum => 18,
197
197
  :required => false,
@@ -199,7 +199,7 @@ module Hippo::Segments
199
199
 
200
200
  field :name => 'Quantity',
201
201
  :sequence => 6,
202
- :datatype => :numeric,
202
+ :datatype => :decimal,
203
203
  :minimum => 1,
204
204
  :maximum => 15,
205
205
  :required => false,
@@ -267,7 +267,7 @@ module Hippo::Segments
267
267
 
268
268
  field :name => 'MonetaryAmount',
269
269
  :sequence => 5,
270
- :datatype => :numeric,
270
+ :datatype => :decimal,
271
271
  :minimum => 1,
272
272
  :maximum => 18,
273
273
  :required => false,
@@ -275,7 +275,7 @@ module Hippo::Segments
275
275
 
276
276
  field :name => 'Quantity',
277
277
  :sequence => 6,
278
- :datatype => :numeric,
278
+ :datatype => :decimal,
279
279
  :minimum => 1,
280
280
  :maximum => 15,
281
281
  :required => false,
@@ -343,7 +343,7 @@ module Hippo::Segments
343
343
 
344
344
  field :name => 'MonetaryAmount',
345
345
  :sequence => 5,
346
- :datatype => :numeric,
346
+ :datatype => :decimal,
347
347
  :minimum => 1,
348
348
  :maximum => 18,
349
349
  :required => false,
@@ -351,7 +351,7 @@ module Hippo::Segments
351
351
 
352
352
  field :name => 'Quantity',
353
353
  :sequence => 6,
354
- :datatype => :numeric,
354
+ :datatype => :decimal,
355
355
  :minimum => 1,
356
356
  :maximum => 15,
357
357
  :required => false,
@@ -419,7 +419,7 @@ module Hippo::Segments
419
419
 
420
420
  field :name => 'MonetaryAmount',
421
421
  :sequence => 5,
422
- :datatype => :numeric,
422
+ :datatype => :decimal,
423
423
  :minimum => 1,
424
424
  :maximum => 18,
425
425
  :required => false,
@@ -427,7 +427,7 @@ module Hippo::Segments
427
427
 
428
428
  field :name => 'Quantity',
429
429
  :sequence => 6,
430
- :datatype => :numeric,
430
+ :datatype => :decimal,
431
431
  :minimum => 1,
432
432
  :maximum => 15,
433
433
  :required => false,
@@ -495,7 +495,7 @@ module Hippo::Segments
495
495
 
496
496
  field :name => 'MonetaryAmount',
497
497
  :sequence => 5,
498
- :datatype => :numeric,
498
+ :datatype => :decimal,
499
499
  :minimum => 1,
500
500
  :maximum => 18,
501
501
  :required => false,
@@ -503,7 +503,7 @@ module Hippo::Segments
503
503
 
504
504
  field :name => 'Quantity',
505
505
  :sequence => 6,
506
- :datatype => :numeric,
506
+ :datatype => :decimal,
507
507
  :minimum => 1,
508
508
  :maximum => 15,
509
509
  :required => false,
@@ -571,7 +571,7 @@ module Hippo::Segments
571
571
 
572
572
  field :name => 'MonetaryAmount',
573
573
  :sequence => 5,
574
- :datatype => :numeric,
574
+ :datatype => :decimal,
575
575
  :minimum => 1,
576
576
  :maximum => 18,
577
577
  :required => false,
@@ -579,7 +579,7 @@ module Hippo::Segments
579
579
 
580
580
  field :name => 'Quantity',
581
581
  :sequence => 6,
582
- :datatype => :numeric,
582
+ :datatype => :decimal,
583
583
  :minimum => 1,
584
584
  :maximum => 15,
585
585
  :required => false,
@@ -647,7 +647,7 @@ module Hippo::Segments
647
647
 
648
648
  field :name => 'MonetaryAmount',
649
649
  :sequence => 5,
650
- :datatype => :numeric,
650
+ :datatype => :decimal,
651
651
  :minimum => 1,
652
652
  :maximum => 18,
653
653
  :required => false,
@@ -655,7 +655,7 @@ module Hippo::Segments
655
655
 
656
656
  field :name => 'Quantity',
657
657
  :sequence => 6,
658
- :datatype => :numeric,
658
+ :datatype => :decimal,
659
659
  :minimum => 1,
660
660
  :maximum => 15,
661
661
  :required => false,
@@ -723,7 +723,7 @@ module Hippo::Segments
723
723
 
724
724
  field :name => 'MonetaryAmount',
725
725
  :sequence => 5,
726
- :datatype => :numeric,
726
+ :datatype => :decimal,
727
727
  :minimum => 1,
728
728
  :maximum => 18,
729
729
  :required => false,
@@ -731,7 +731,7 @@ module Hippo::Segments
731
731
 
732
732
  field :name => 'Quantity',
733
733
  :sequence => 6,
734
- :datatype => :numeric,
734
+ :datatype => :decimal,
735
735
  :minimum => 1,
736
736
  :maximum => 15,
737
737
  :required => false,
@@ -799,7 +799,7 @@ module Hippo::Segments
799
799
 
800
800
  field :name => 'MonetaryAmount',
801
801
  :sequence => 5,
802
- :datatype => :numeric,
802
+ :datatype => :decimal,
803
803
  :minimum => 1,
804
804
  :maximum => 18,
805
805
  :required => false,
@@ -807,7 +807,7 @@ module Hippo::Segments
807
807
 
808
808
  field :name => 'Quantity',
809
809
  :sequence => 6,
810
- :datatype => :numeric,
810
+ :datatype => :decimal,
811
811
  :minimum => 1,
812
812
  :maximum => 15,
813
813
  :required => false,
@@ -875,7 +875,7 @@ module Hippo::Segments
875
875
 
876
876
  field :name => 'MonetaryAmount',
877
877
  :sequence => 5,
878
- :datatype => :numeric,
878
+ :datatype => :decimal,
879
879
  :minimum => 1,
880
880
  :maximum => 18,
881
881
  :required => false,
@@ -883,7 +883,7 @@ module Hippo::Segments
883
883
 
884
884
  field :name => 'Quantity',
885
885
  :sequence => 6,
886
- :datatype => :numeric,
886
+ :datatype => :decimal,
887
887
  :minimum => 1,
888
888
  :maximum => 15,
889
889
  :required => false,
@@ -13,7 +13,7 @@ module Hippo::Segments
13
13
 
14
14
  field :name => 'Quantity',
15
15
  :sequence => 2,
16
- :datatype => :numeric,
16
+ :datatype => :decimal,
17
17
  :minimum => 1,
18
18
  :maximum => 15,
19
19
  :required => false,
@@ -29,7 +29,7 @@ module Hippo::Segments
29
29
 
30
30
  field :name => 'SampleSelectionModulus',
31
31
  :sequence => 4,
32
- :datatype => :numeric,
32
+ :datatype => :decimal,
33
33
  :minimum => 1,
34
34
  :maximum => 6,
35
35
  :required => false,
@@ -45,8 +45,7 @@ module Hippo::Segments
45
45
 
46
46
  field :name => 'NumberOfPeriods',
47
47
  :sequence => 6,
48
- :datatype => :numeric,
49
- :decimal => 0,
48
+ :datatype => :integer,
50
49
  :minimum => 1,
51
50
  :maximum => 3,
52
51
  :required => false,
@@ -5,7 +5,7 @@ module Hippo::Segments
5
5
 
6
6
  field :name => 'NumberOfIncludedFunctionalGroups',
7
7
  :sequence => 1,
8
- :datatype => :string,
8
+ :datatype => :integer,
9
9
  :minimum => 1,
10
10
  :maximum => 5,
11
11
  :required => true,
@@ -13,7 +13,7 @@ module Hippo::Segments
13
13
 
14
14
  field :name => 'InterchangeControlNumber',
15
15
  :sequence => 2,
16
- :datatype => :string,
16
+ :datatype => :integer,
17
17
  :minimum => 9,
18
18
  :maximum => 9,
19
19
  :required => true,
@@ -13,8 +13,7 @@ module Hippo::Segments
13
13
 
14
14
  field :name => 'SegmentPositionInTransactionSet',
15
15
  :sequence => 2,
16
- :datatype => :numeric,
17
- :decimal => 0,
16
+ :datatype => :integer,
18
17
  :minimum => 1,
19
18
  :maximum => 10,
20
19
  :required => true,
@@ -7,8 +7,7 @@ module Hippo::Segments
7
7
 
8
8
  field :name => 'ElementPositionInSegment',
9
9
  :sequence => 1,
10
- :datatype => :numeric,
11
- :decimal => 0,
10
+ :datatype => :integer,
12
11
  :minimum => 1,
13
12
  :maximum => 2,
14
13
  :required => true,
@@ -16,8 +15,7 @@ module Hippo::Segments
16
15
 
17
16
  field :name => 'ComponentDataElementPositionInComposite',
18
17
  :sequence => 2,
19
- :datatype => :numeric,
20
- :decimal => 0,
18
+ :datatype => :integer,
21
19
  :minimum => 1,
22
20
  :maximum => 2,
23
21
  :required => false,
@@ -25,8 +23,7 @@ module Hippo::Segments
25
23
 
26
24
  field :name => 'RepeatingDataElementPosition',
27
25
  :sequence => 3,
28
- :datatype => :numeric,
29
- :decimal => 0,
26
+ :datatype => :integer,
30
27
  :minimum => 1,
31
28
  :maximum => 4,
32
29
  :required => false,
@@ -36,8 +33,7 @@ module Hippo::Segments
36
33
 
37
34
  field :name => 'DataElementReferenceNumber',
38
35
  :sequence => 2,
39
- :datatype => :numeric,
40
- :decimal => 0,
36
+ :datatype => :integer,
41
37
  :minimum => 1,
42
38
  :maximum => 4,
43
39
  :required => false,
@@ -6,7 +6,7 @@ module Hippo::Segments
6
6
 
7
7
  field :name => 'AuthorizationInformationQualifier',
8
8
  :sequence => 1,
9
- :datatype => :string,
9
+ :datatype => :list,
10
10
  :minimum => 2,
11
11
  :maximum => 2,
12
12
  :required => true,
@@ -22,7 +22,7 @@ module Hippo::Segments
22
22
 
23
23
  field :name => 'SecurityInformationQualifier',
24
24
  :sequence => 3,
25
- :datatype => :string,
25
+ :datatype => :list,
26
26
  :minimum => 2,
27
27
  :maximum => 2,
28
28
  :required => true,
@@ -38,7 +38,7 @@ module Hippo::Segments
38
38
 
39
39
  field :name => 'InterchangeIdQualifier',
40
40
  :sequence => 5,
41
- :datatype => :string,
41
+ :datatype => :list,
42
42
  :minimum => 2,
43
43
  :maximum => 2,
44
44
  :required => true,
@@ -54,7 +54,7 @@ module Hippo::Segments
54
54
 
55
55
  field :name => 'InterchangeIdQualifier',
56
56
  :sequence => 7,
57
- :datatype => :string,
57
+ :datatype => :list,
58
58
  :minimum => 2,
59
59
  :maximum => 2,
60
60
  :required => true,
@@ -70,7 +70,7 @@ module Hippo::Segments
70
70
 
71
71
  field :name => 'InterchangeDate',
72
72
  :sequence => 9,
73
- :datatype => :string,
73
+ :datatype => :date,
74
74
  :minimum => 6,
75
75
  :maximum => 6,
76
76
  :required => true,
@@ -78,7 +78,7 @@ module Hippo::Segments
78
78
 
79
79
  field :name => 'InterchangeTime',
80
80
  :sequence => 10,
81
- :datatype => :string,
81
+ :datatype => :time,
82
82
  :minimum => 4,
83
83
  :maximum => 4,
84
84
  :required => true,
@@ -94,7 +94,7 @@ module Hippo::Segments
94
94
 
95
95
  field :name => 'InterchangeControlVersionNumber',
96
96
  :sequence => 12,
97
- :datatype => :string,
97
+ :datatype => :list,
98
98
  :minimum => 5,
99
99
  :maximum => 5,
100
100
  :required => true,
@@ -102,7 +102,7 @@ module Hippo::Segments
102
102
 
103
103
  field :name => 'InterchangeControlNumber',
104
104
  :sequence => 13,
105
- :datatype => :string,
105
+ :datatype => :integer,
106
106
  :minimum => 9,
107
107
  :maximum => 9,
108
108
  :required => true,
@@ -110,7 +110,7 @@ module Hippo::Segments
110
110
 
111
111
  field :name => 'AcknowledgmentRequested',
112
112
  :sequence => 14,
113
- :datatype => :string,
113
+ :datatype => :list,
114
114
  :minimum => 1,
115
115
  :maximum => 1,
116
116
  :required => true,
@@ -118,7 +118,7 @@ module Hippo::Segments
118
118
 
119
119
  field :name => 'InterchangeUsageIndicator',
120
120
  :sequence => 15,
121
- :datatype => :string,
121
+ :datatype => :list,
122
122
  :minimum => 1,
123
123
  :maximum => 1,
124
124
  :required => true,
@@ -31,7 +31,7 @@ module Hippo::Segments
31
31
 
32
32
  field :name => 'Exponent',
33
33
  :sequence => 2,
34
- :datatype => :numeric,
34
+ :datatype => :decimal,
35
35
  :minimum => 1,
36
36
  :maximum => 15,
37
37
  :required => false,
@@ -39,7 +39,7 @@ module Hippo::Segments
39
39
 
40
40
  field :name => 'Multiplier',
41
41
  :sequence => 3,
42
- :datatype => :numeric,
42
+ :datatype => :decimal,
43
43
  :minimum => 1,
44
44
  :maximum => 10,
45
45
  :required => false,
@@ -55,7 +55,7 @@ module Hippo::Segments
55
55
 
56
56
  field :name => 'Exponent',
57
57
  :sequence => 5,
58
- :datatype => :numeric,
58
+ :datatype => :decimal,
59
59
  :minimum => 1,
60
60
  :maximum => 15,
61
61
  :required => false,
@@ -63,7 +63,7 @@ module Hippo::Segments
63
63
 
64
64
  field :name => 'Multiplier',
65
65
  :sequence => 6,
66
- :datatype => :numeric,
66
+ :datatype => :decimal,
67
67
  :minimum => 1,
68
68
  :maximum => 10,
69
69
  :required => false,
@@ -79,7 +79,7 @@ module Hippo::Segments
79
79
 
80
80
  field :name => 'Exponent',
81
81
  :sequence => 8,
82
- :datatype => :numeric,
82
+ :datatype => :decimal,
83
83
  :minimum => 1,
84
84
  :maximum => 15,
85
85
  :required => false,
@@ -87,7 +87,7 @@ module Hippo::Segments
87
87
 
88
88
  field :name => 'Multiplier',
89
89
  :sequence => 9,
90
- :datatype => :numeric,
90
+ :datatype => :decimal,
91
91
  :minimum => 1,
92
92
  :maximum => 10,
93
93
  :required => false,
@@ -103,7 +103,7 @@ module Hippo::Segments
103
103
 
104
104
  field :name => 'Exponent',
105
105
  :sequence => 11,
106
- :datatype => :numeric,
106
+ :datatype => :decimal,
107
107
  :minimum => 1,
108
108
  :maximum => 15,
109
109
  :required => false,
@@ -111,7 +111,7 @@ module Hippo::Segments
111
111
 
112
112
  field :name => 'Multiplier',
113
113
  :sequence => 12,
114
- :datatype => :numeric,
114
+ :datatype => :decimal,
115
115
  :minimum => 1,
116
116
  :maximum => 10,
117
117
  :required => false,
@@ -127,7 +127,7 @@ module Hippo::Segments
127
127
 
128
128
  field :name => 'Exponent',
129
129
  :sequence => 14,
130
- :datatype => :numeric,
130
+ :datatype => :decimal,
131
131
  :minimum => 1,
132
132
  :maximum => 15,
133
133
  :required => false,
@@ -135,7 +135,7 @@ module Hippo::Segments
135
135
 
136
136
  field :name => 'Multiplier',
137
137
  :sequence => 15,
138
- :datatype => :numeric,
138
+ :datatype => :decimal,
139
139
  :minimum => 1,
140
140
  :maximum => 10,
141
141
  :required => false,
@@ -10,8 +10,7 @@ module Hippo::Segments
10
10
 
11
11
  field :name => 'AssignedNumber',
12
12
  :sequence => 1,
13
- :datatype => :numeric,
14
- :decimal => 0,
13
+ :datatype => :integer,
15
14
  :minimum => 1,
16
15
  :maximum => 6,
17
16
  :required => true,
@@ -21,7 +21,7 @@ module Hippo::Segments
21
21
 
22
22
  field :name => 'MeasurementValue',
23
23
  :sequence => 3,
24
- :datatype => :numeric,
24
+ :datatype => :decimal,
25
25
  :minimum => 1,
26
26
  :maximum => 20,
27
27
  :required => false,
@@ -39,7 +39,7 @@ module Hippo::Segments
39
39
 
40
40
  field :name => 'Exponent',
41
41
  :sequence => 2,
42
- :datatype => :numeric,
42
+ :datatype => :decimal,
43
43
  :minimum => 1,
44
44
  :maximum => 15,
45
45
  :required => false,
@@ -47,7 +47,7 @@ module Hippo::Segments
47
47
 
48
48
  field :name => 'Multiplier',
49
49
  :sequence => 3,
50
- :datatype => :numeric,
50
+ :datatype => :decimal,
51
51
  :minimum => 1,
52
52
  :maximum => 10,
53
53
  :required => false,
@@ -63,7 +63,7 @@ module Hippo::Segments
63
63
 
64
64
  field :name => 'Exponent',
65
65
  :sequence => 5,
66
- :datatype => :numeric,
66
+ :datatype => :decimal,
67
67
  :minimum => 1,
68
68
  :maximum => 15,
69
69
  :required => false,
@@ -71,7 +71,7 @@ module Hippo::Segments
71
71
 
72
72
  field :name => 'Multiplier',
73
73
  :sequence => 6,
74
- :datatype => :numeric,
74
+ :datatype => :decimal,
75
75
  :minimum => 1,
76
76
  :maximum => 10,
77
77
  :required => false,
@@ -87,7 +87,7 @@ module Hippo::Segments
87
87
 
88
88
  field :name => 'Exponent',
89
89
  :sequence => 8,
90
- :datatype => :numeric,
90
+ :datatype => :decimal,
91
91
  :minimum => 1,
92
92
  :maximum => 15,
93
93
  :required => false,
@@ -95,7 +95,7 @@ module Hippo::Segments
95
95
 
96
96
  field :name => 'Multiplier',
97
97
  :sequence => 9,
98
- :datatype => :numeric,
98
+ :datatype => :decimal,
99
99
  :minimum => 1,
100
100
  :maximum => 10,
101
101
  :required => false,
@@ -111,7 +111,7 @@ module Hippo::Segments
111
111
 
112
112
  field :name => 'Exponent',
113
113
  :sequence => 11,
114
- :datatype => :numeric,
114
+ :datatype => :decimal,
115
115
  :minimum => 1,
116
116
  :maximum => 15,
117
117
  :required => false,
@@ -119,7 +119,7 @@ module Hippo::Segments
119
119
 
120
120
  field :name => 'Multiplier',
121
121
  :sequence => 12,
122
- :datatype => :numeric,
122
+ :datatype => :decimal,
123
123
  :minimum => 1,
124
124
  :maximum => 10,
125
125
  :required => false,
@@ -135,7 +135,7 @@ module Hippo::Segments
135
135
 
136
136
  field :name => 'Exponent',
137
137
  :sequence => 14,
138
- :datatype => :numeric,
138
+ :datatype => :decimal,
139
139
  :minimum => 1,
140
140
  :maximum => 15,
141
141
  :required => false,
@@ -143,7 +143,7 @@ module Hippo::Segments
143
143
 
144
144
  field :name => 'Multiplier',
145
145
  :sequence => 15,
146
- :datatype => :numeric,
146
+ :datatype => :decimal,
147
147
  :minimum => 1,
148
148
  :maximum => 10,
149
149
  :required => false,
@@ -153,7 +153,7 @@ module Hippo::Segments
153
153
 
154
154
  field :name => 'RangeMinimum',
155
155
  :sequence => 5,
156
- :datatype => :numeric,
156
+ :datatype => :decimal,
157
157
  :minimum => 1,
158
158
  :maximum => 20,
159
159
  :required => false,
@@ -161,7 +161,7 @@ module Hippo::Segments
161
161
 
162
162
  field :name => 'RangeMaximum',
163
163
  :sequence => 6,
164
- :datatype => :numeric,
164
+ :datatype => :decimal,
165
165
  :minimum => 1,
166
166
  :maximum => 20,
167
167
  :required => false,