hippo 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -29,7 +29,7 @@ module Hippo::Segments
29
29
 
30
30
  field :name => 'Quantity',
31
31
  :sequence => 4,
32
- :datatype => :numeric,
32
+ :datatype => :decimal,
33
33
  :minimum => 1,
34
34
  :maximum => 15,
35
35
  :required => false,
@@ -45,7 +45,7 @@ module Hippo::Segments
45
45
 
46
46
  field :name => 'Quantity',
47
47
  :sequence => 6,
48
- :datatype => :numeric,
48
+ :datatype => :decimal,
49
49
  :minimum => 1,
50
50
  :maximum => 15,
51
51
  :required => false,
@@ -69,7 +69,7 @@ module Hippo::Segments
69
69
 
70
70
  field :name => 'Quantity',
71
71
  :sequence => 9,
72
- :datatype => :numeric,
72
+ :datatype => :decimal,
73
73
  :minimum => 1,
74
74
  :maximum => 15,
75
75
  :required => false,
@@ -85,7 +85,7 @@ module Hippo::Segments
85
85
 
86
86
  field :name => 'Height',
87
87
  :sequence => 11,
88
- :datatype => :numeric,
88
+ :datatype => :decimal,
89
89
  :minimum => 1,
90
90
  :maximum => 8,
91
91
  :required => false,
@@ -101,7 +101,7 @@ module Hippo::Segments
101
101
 
102
102
  field :name => 'Weight',
103
103
  :sequence => 13,
104
- :datatype => :numeric,
104
+ :datatype => :decimal,
105
105
  :minimum => 1,
106
106
  :maximum => 10,
107
107
  :required => false,
@@ -109,7 +109,7 @@ module Hippo::Segments
109
109
 
110
110
  field :name => 'Quantity',
111
111
  :sequence => 14,
112
- :datatype => :numeric,
112
+ :datatype => :decimal,
113
113
  :minimum => 1,
114
114
  :maximum => 15,
115
115
  :required => false,
@@ -141,7 +141,7 @@ module Hippo::Segments
141
141
 
142
142
  field :name => 'Quantity',
143
143
  :sequence => 18,
144
- :datatype => :numeric,
144
+ :datatype => :decimal,
145
145
  :minimum => 1,
146
146
  :maximum => 15,
147
147
  :required => false,
@@ -149,7 +149,7 @@ module Hippo::Segments
149
149
 
150
150
  field :name => 'Quantity',
151
151
  :sequence => 19,
152
- :datatype => :numeric,
152
+ :datatype => :decimal,
153
153
  :minimum => 1,
154
154
  :maximum => 15,
155
155
  :required => false,
@@ -165,7 +165,7 @@ module Hippo::Segments
165
165
 
166
166
  field :name => 'Quantity',
167
167
  :sequence => 21,
168
- :datatype => :numeric,
168
+ :datatype => :decimal,
169
169
  :minimum => 1,
170
170
  :maximum => 15,
171
171
  :required => false,
@@ -173,7 +173,7 @@ module Hippo::Segments
173
173
 
174
174
  field :name => 'PercentageAsDecimal',
175
175
  :sequence => 22,
176
- :datatype => :numeric,
176
+ :datatype => :decimal,
177
177
  :minimum => 1,
178
178
  :maximum => 10,
179
179
  :required => false,
@@ -181,7 +181,7 @@ module Hippo::Segments
181
181
 
182
182
  field :name => 'Quantity',
183
183
  :sequence => 23,
184
- :datatype => :numeric,
184
+ :datatype => :decimal,
185
185
  :minimum => 1,
186
186
  :maximum => 15,
187
187
  :required => false,
@@ -189,7 +189,7 @@ module Hippo::Segments
189
189
 
190
190
  field :name => 'Quantity',
191
191
  :sequence => 24,
192
- :datatype => :numeric,
192
+ :datatype => :decimal,
193
193
  :minimum => 1,
194
194
  :maximum => 15,
195
195
  :required => false,
@@ -197,7 +197,7 @@ module Hippo::Segments
197
197
 
198
198
  field :name => 'PercentageAsDecimal',
199
199
  :sequence => 25,
200
- :datatype => :numeric,
200
+ :datatype => :decimal,
201
201
  :minimum => 1,
202
202
  :maximum => 10,
203
203
  :required => false,
@@ -205,7 +205,7 @@ module Hippo::Segments
205
205
 
206
206
  field :name => 'Quantity',
207
207
  :sequence => 26,
208
- :datatype => :numeric,
208
+ :datatype => :decimal,
209
209
  :minimum => 1,
210
210
  :maximum => 15,
211
211
  :required => false,
@@ -213,7 +213,7 @@ module Hippo::Segments
213
213
 
214
214
  field :name => 'PercentageAsDecimal',
215
215
  :sequence => 27,
216
- :datatype => :numeric,
216
+ :datatype => :decimal,
217
217
  :minimum => 1,
218
218
  :maximum => 10,
219
219
  :required => false,
@@ -221,7 +221,7 @@ module Hippo::Segments
221
221
 
222
222
  field :name => 'Quantity',
223
223
  :sequence => 28,
224
- :datatype => :numeric,
224
+ :datatype => :decimal,
225
225
  :minimum => 1,
226
226
  :maximum => 15,
227
227
  :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,
@@ -45,7 +45,7 @@ module Hippo::Segments
45
45
 
46
46
  field :name => 'Quantity',
47
47
  :sequence => 6,
48
- :datatype => :numeric,
48
+ :datatype => :decimal,
49
49
  :minimum => 1,
50
50
  :maximum => 15,
51
51
  :required => false,
@@ -53,7 +53,7 @@ module Hippo::Segments
53
53
 
54
54
  field :name => 'Quantity',
55
55
  :sequence => 7,
56
- :datatype => :numeric,
56
+ :datatype => :decimal,
57
57
  :minimum => 1,
58
58
  :maximum => 15,
59
59
  :required => false,
@@ -61,7 +61,7 @@ module Hippo::Segments
61
61
 
62
62
  field :name => 'Quantity',
63
63
  :sequence => 8,
64
- :datatype => :numeric,
64
+ :datatype => :decimal,
65
65
  :minimum => 1,
66
66
  :maximum => 15,
67
67
  :required => false,
@@ -77,7 +77,7 @@ module Hippo::Segments
77
77
 
78
78
  field :name => 'Quantity',
79
79
  :sequence => 10,
80
- :datatype => :numeric,
80
+ :datatype => :decimal,
81
81
  :minimum => 1,
82
82
  :maximum => 15,
83
83
  :required => false,
@@ -85,7 +85,7 @@ module Hippo::Segments
85
85
 
86
86
  field :name => 'Quantity',
87
87
  :sequence => 11,
88
- :datatype => :numeric,
88
+ :datatype => :decimal,
89
89
  :minimum => 1,
90
90
  :maximum => 15,
91
91
  :required => false,
@@ -125,7 +125,7 @@ module Hippo::Segments
125
125
 
126
126
  field :name => 'Quantity',
127
127
  :sequence => 16,
128
- :datatype => :numeric,
128
+ :datatype => :decimal,
129
129
  :minimum => 1,
130
130
  :maximum => 15,
131
131
  :required => false,
@@ -13,8 +13,7 @@ module Hippo::Segments
13
13
 
14
14
  field :name => 'Number',
15
15
  :sequence => 2,
16
- :datatype => :numeric,
17
- :decimal => 0,
16
+ :datatype => :integer,
18
17
  :minimum => 1,
19
18
  :maximum => 9,
20
19
  :required => true,
@@ -22,8 +21,7 @@ module Hippo::Segments
22
21
 
23
22
  field :name => 'Number',
24
23
  :sequence => 3,
25
- :datatype => :numeric,
26
- :decimal => 0,
24
+ :datatype => :integer,
27
25
  :minimum => 1,
28
26
  :maximum => 9,
29
27
  :required => true,
@@ -21,7 +21,7 @@ module Hippo::Segments
21
21
 
22
22
  field :name => 'UnitPrice',
23
23
  :sequence => 3,
24
- :datatype => :numeric,
24
+ :datatype => :decimal,
25
25
  :minimum => 1,
26
26
  :maximum => 17,
27
27
  :required => false,
@@ -29,7 +29,7 @@ module Hippo::Segments
29
29
 
30
30
  field :name => 'Quantity',
31
31
  :sequence => 4,
32
- :datatype => :numeric,
32
+ :datatype => :decimal,
33
33
  :minimum => 1,
34
34
  :maximum => 15,
35
35
  :required => false,
@@ -47,7 +47,7 @@ module Hippo::Segments
47
47
 
48
48
  field :name => 'Exponent',
49
49
  :sequence => 2,
50
- :datatype => :numeric,
50
+ :datatype => :decimal,
51
51
  :minimum => 1,
52
52
  :maximum => 15,
53
53
  :required => false,
@@ -55,7 +55,7 @@ module Hippo::Segments
55
55
 
56
56
  field :name => 'Multiplier',
57
57
  :sequence => 3,
58
- :datatype => :numeric,
58
+ :datatype => :decimal,
59
59
  :minimum => 1,
60
60
  :maximum => 10,
61
61
  :required => false,
@@ -71,7 +71,7 @@ module Hippo::Segments
71
71
 
72
72
  field :name => 'Exponent',
73
73
  :sequence => 5,
74
- :datatype => :numeric,
74
+ :datatype => :decimal,
75
75
  :minimum => 1,
76
76
  :maximum => 15,
77
77
  :required => false,
@@ -79,7 +79,7 @@ module Hippo::Segments
79
79
 
80
80
  field :name => 'Multiplier',
81
81
  :sequence => 6,
82
- :datatype => :numeric,
82
+ :datatype => :decimal,
83
83
  :minimum => 1,
84
84
  :maximum => 10,
85
85
  :required => false,
@@ -95,7 +95,7 @@ module Hippo::Segments
95
95
 
96
96
  field :name => 'Exponent',
97
97
  :sequence => 8,
98
- :datatype => :numeric,
98
+ :datatype => :decimal,
99
99
  :minimum => 1,
100
100
  :maximum => 15,
101
101
  :required => false,
@@ -103,7 +103,7 @@ module Hippo::Segments
103
103
 
104
104
  field :name => 'Multiplier',
105
105
  :sequence => 9,
106
- :datatype => :numeric,
106
+ :datatype => :decimal,
107
107
  :minimum => 1,
108
108
  :maximum => 10,
109
109
  :required => false,
@@ -119,7 +119,7 @@ module Hippo::Segments
119
119
 
120
120
  field :name => 'Exponent',
121
121
  :sequence => 11,
122
- :datatype => :numeric,
122
+ :datatype => :decimal,
123
123
  :minimum => 1,
124
124
  :maximum => 15,
125
125
  :required => false,
@@ -127,7 +127,7 @@ module Hippo::Segments
127
127
 
128
128
  field :name => 'Multiplier',
129
129
  :sequence => 12,
130
- :datatype => :numeric,
130
+ :datatype => :decimal,
131
131
  :minimum => 1,
132
132
  :maximum => 10,
133
133
  :required => false,
@@ -143,7 +143,7 @@ module Hippo::Segments
143
143
 
144
144
  field :name => 'Exponent',
145
145
  :sequence => 14,
146
- :datatype => :numeric,
146
+ :datatype => :decimal,
147
147
  :minimum => 1,
148
148
  :maximum => 15,
149
149
  :required => false,
@@ -151,7 +151,7 @@ module Hippo::Segments
151
151
 
152
152
  field :name => 'Multiplier',
153
153
  :sequence => 15,
154
- :datatype => :numeric,
154
+ :datatype => :decimal,
155
155
  :minimum => 1,
156
156
  :maximum => 10,
157
157
  :required => false,
@@ -169,7 +169,7 @@ module Hippo::Segments
169
169
 
170
170
  field :name => 'Multiplier',
171
171
  :sequence => 7,
172
- :datatype => :numeric,
172
+ :datatype => :decimal,
173
173
  :minimum => 1,
174
174
  :maximum => 10,
175
175
  :required => false,
@@ -177,7 +177,7 @@ module Hippo::Segments
177
177
 
178
178
  field :name => 'MonetaryAmount',
179
179
  :sequence => 8,
180
- :datatype => :numeric,
180
+ :datatype => :decimal,
181
181
  :minimum => 1,
182
182
  :maximum => 18,
183
183
  :required => false,
@@ -201,8 +201,7 @@ module Hippo::Segments
201
201
 
202
202
  field :name => 'MultiplePriceQuantity',
203
203
  :sequence => 11,
204
- :datatype => :numeric,
205
- :decimal => 0,
204
+ :datatype => :integer,
206
205
  :minimum => 1,
207
206
  :maximum => 2,
208
207
  :required => false,
@@ -33,8 +33,7 @@ module Hippo::Segments
33
33
 
34
34
  field :name => 'SegmentPositionInTransactionSet',
35
35
  :sequence => 3,
36
- :datatype => :numeric,
37
- :decimal => 0,
36
+ :datatype => :integer,
38
37
  :minimum => 1,
39
38
  :maximum => 10,
40
39
  :required => false,
@@ -52,8 +51,7 @@ module Hippo::Segments
52
51
 
53
52
  field :name => 'ElementPositionInSegment',
54
53
  :sequence => 1,
55
- :datatype => :numeric,
56
- :decimal => 0,
54
+ :datatype => :integer,
57
55
  :minimum => 1,
58
56
  :maximum => 2,
59
57
  :required => true,
@@ -61,8 +59,7 @@ module Hippo::Segments
61
59
 
62
60
  field :name => 'ComponentDataElementPositionInComposite',
63
61
  :sequence => 2,
64
- :datatype => :numeric,
65
- :decimal => 0,
62
+ :datatype => :integer,
66
63
  :minimum => 1,
67
64
  :maximum => 2,
68
65
  :required => false,
@@ -70,8 +67,7 @@ module Hippo::Segments
70
67
 
71
68
  field :name => 'RepeatingDataElementPosition',
72
69
  :sequence => 3,
73
- :datatype => :numeric,
74
- :decimal => 0,
70
+ :datatype => :integer,
75
71
  :minimum => 1,
76
72
  :maximum => 4,
77
73
  :required => false,
@@ -83,8 +79,7 @@ module Hippo::Segments
83
79
 
84
80
  field :name => 'DataElementReferenceNumber',
85
81
  :sequence => 1,
86
- :datatype => :numeric,
87
- :decimal => 0,
82
+ :datatype => :integer,
88
83
  :minimum => 1,
89
84
  :maximum => 4,
90
85
  :required => true,
@@ -92,8 +87,7 @@ module Hippo::Segments
92
87
 
93
88
  field :name => 'DataElementReferenceNumber',
94
89
  :sequence => 2,
95
- :datatype => :numeric,
96
- :decimal => 0,
90
+ :datatype => :integer,
97
91
  :minimum => 1,
98
92
  :maximum => 4,
99
93
  :required => false,
@@ -21,7 +21,7 @@ module Hippo::Segments
21
21
 
22
22
  field :name => 'ExchangeRate',
23
23
  :sequence => 3,
24
- :datatype => :numeric,
24
+ :datatype => :decimal,
25
25
  :minimum => 4,
26
26
  :maximum => 10,
27
27
  :required => false,
@@ -89,7 +89,7 @@ module Hippo::Segments
89
89
 
90
90
  field :name => 'Quantity',
91
91
  :sequence => 9,
92
- :datatype => :numeric,
92
+ :datatype => :decimal,
93
93
  :minimum => 1,
94
94
  :maximum => 15,
95
95
  :required => false,
@@ -5,7 +5,7 @@ module Hippo::Segments
5
5
 
6
6
  field :name => 'Quantity',
7
7
  :sequence => 1,
8
- :datatype => :numeric,
8
+ :datatype => :decimal,
9
9
  :minimum => 1,
10
10
  :maximum => 15,
11
11
  :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,
@@ -21,7 +21,7 @@ module Hippo::Segments
21
21
 
22
22
  field :name => 'Quantity',
23
23
  :sequence => 3,
24
- :datatype => :numeric,
24
+ :datatype => :decimal,
25
25
  :minimum => 1,
26
26
  :maximum => 15,
27
27
  :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,
@@ -45,7 +45,7 @@ module Hippo::Segments
45
45
 
46
46
  field :name => 'MonetaryAmount',
47
47
  :sequence => 6,
48
- :datatype => :numeric,
48
+ :datatype => :decimal,
49
49
  :minimum => 1,
50
50
  :maximum => 18,
51
51
  :required => false,
@@ -37,7 +37,7 @@ module Hippo::Segments
37
37
 
38
38
  field :name => 'PercentDecimalFormat',
39
39
  :sequence => 5,
40
- :datatype => :numeric,
40
+ :datatype => :decimal,
41
41
  :minimum => 1,
42
42
  :maximum => 6,
43
43
  :required => false,
@@ -5,7 +5,7 @@ module Hippo::Segments
5
5
 
6
6
  field :name => 'NumberOfTransactionSetsIncluded',
7
7
  :sequence => 1,
8
- :datatype => :string,
8
+ :datatype => :integer,
9
9
  :minimum => 1,
10
10
  :maximum => 6,
11
11
  :required => true,
@@ -13,7 +13,7 @@ module Hippo::Segments
13
13
 
14
14
  field :name => 'GroupControlNumber',
15
15
  :sequence => 2,
16
- :datatype => :string,
16
+ :datatype => :integer,
17
17
  :minimum => 1,
18
18
  :maximum => 9,
19
19
  :required => true,
@@ -5,7 +5,7 @@ module Hippo::Segments
5
5
 
6
6
  field :name => 'FunctionalIdentifierCode',
7
7
  :sequence => 1,
8
- :datatype => :string,
8
+ :datatype => :list,
9
9
  :minimum => 2,
10
10
  :maximum => 2,
11
11
  :required => true,
@@ -29,7 +29,7 @@ module Hippo::Segments
29
29
 
30
30
  field :name => 'Date',
31
31
  :sequence => 4,
32
- :datatype => :string,
32
+ :datatype => :date,
33
33
  :minimum => 8,
34
34
  :maximum => 8,
35
35
  :required => true,
@@ -37,15 +37,15 @@ module Hippo::Segments
37
37
 
38
38
  field :name => 'Time',
39
39
  :sequence => 5,
40
- :datatype => :string,
40
+ :datatype => :time,
41
41
  :minimum => 4,
42
- :maximum => 8,
42
+ :maximum => 4,
43
43
  :required => true,
44
44
  :data_element_number => 337
45
45
 
46
46
  field :name => 'GroupControlNumber',
47
47
  :sequence => 6,
48
- :datatype => :string,
48
+ :datatype => :integer,
49
49
  :minimum => 1,
50
50
  :maximum => 9,
51
51
  :required => true,
@@ -53,7 +53,7 @@ module Hippo::Segments
53
53
 
54
54
  field :name => 'ResponsibleAgencyCode',
55
55
  :sequence => 7,
56
- :datatype => :string,
56
+ :datatype => :list,
57
57
  :minimum => 1,
58
58
  :maximum => 2,
59
59
  :required => true,
@@ -13,7 +13,7 @@ module Hippo::Segments
13
13
 
14
14
  field :name => 'MonetaryAmount',
15
15
  :sequence => 2,
16
- :datatype => :numeric,
16
+ :datatype => :decimal,
17
17
  :minimum => 1,
18
18
  :maximum => 18,
19
19
  :required => false,
@@ -21,7 +21,7 @@ module Hippo::Segments
21
21
 
22
22
  field :name => 'MonetaryAmount',
23
23
  :sequence => 3,
24
- :datatype => :numeric,
24
+ :datatype => :decimal,
25
25
  :minimum => 1,
26
26
  :maximum => 18,
27
27
  :required => false,
@@ -37,7 +37,7 @@ module Hippo::Segments
37
37
 
38
38
  field :name => 'Rate',
39
39
  :sequence => 5,
40
- :datatype => :numeric,
40
+ :datatype => :decimal,
41
41
  :minimum => 1,
42
42
  :maximum => 9,
43
43
  :required => false,
@@ -53,7 +53,7 @@ module Hippo::Segments
53
53
 
54
54
  field :name => 'MonetaryAmount',
55
55
  :sequence => 7,
56
- :datatype => :numeric,
56
+ :datatype => :decimal,
57
57
  :minimum => 1,
58
58
  :maximum => 18,
59
59
  :required => false,
@@ -93,7 +93,7 @@ module Hippo::Segments
93
93
 
94
94
  field :name => 'Quantity',
95
95
  :sequence => 12,
96
- :datatype => :numeric,
96
+ :datatype => :decimal,
97
97
  :minimum => 1,
98
98
  :maximum => 15,
99
99
  :required => false,