em-synchrony-dataone-vin 0.0.1
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.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +8 -0
- data/em-synchrony-dataone-vin.gemspec +26 -0
- data/lib/em-synchrony/dataone-vin/version.rb +7 -0
- data/lib/em-synchrony/dataone-vin/vin_exploder_adapter.rb +165 -0
- data/lib/em-synchrony/dataone-vin.rb +92 -0
- data/test/em-synchrony/dataone-vin/vin_exploder_adapter_test.rb +52 -0
- data/test/em-synchrony/dataone-vin_test.rb +23 -0
- data/test/test_helper.rb +639 -0
- data/test.rb +177 -0
- metadata +118 -0
data/test/test_helper.rb
ADDED
@@ -0,0 +1,639 @@
|
|
1
|
+
require 'minitest/autorun'
|
2
|
+
require 'minitest/spec'
|
3
|
+
|
4
|
+
begin
|
5
|
+
load 'dataone-config.rb'
|
6
|
+
rescue LoadError
|
7
|
+
STDERR.puts <<-MSG
|
8
|
+
In order to run the tests you must configure access to the dataone vin decoder api in a file called dataone-config.rb
|
9
|
+
The file should define the following array:
|
10
|
+
|
11
|
+
DATAONE_CONFIG = ["<your_client_id>", "<your_authorization_code>"]
|
12
|
+
|
13
|
+
MSG
|
14
|
+
exit 1
|
15
|
+
end
|
16
|
+
|
17
|
+
module TestHelpers
|
18
|
+
def expected_result
|
19
|
+
{"decoder_messages"=>
|
20
|
+
{"service_provider"=>"DataOne Software, Inc.",
|
21
|
+
"decoder_version"=>"7.0.0",
|
22
|
+
"decoder_errors"=>[]},
|
23
|
+
"query_responses"=>
|
24
|
+
{"Request-Sample"=>
|
25
|
+
{"query_error"=>{"error_code"=>"", "error_message"=>""},
|
26
|
+
"common_data"=>
|
27
|
+
{"basic_data"=>
|
28
|
+
{"market"=>"US Light-Duty",
|
29
|
+
"year"=>"2000",
|
30
|
+
"make"=>"Toyota",
|
31
|
+
"model"=>"Tundra",
|
32
|
+
"trim"=>"SR5",
|
33
|
+
"vehicle_type"=>"Truck",
|
34
|
+
"body_type"=>"Pickup",
|
35
|
+
"body_subtype"=>"Extended Cab",
|
36
|
+
"doors"=>"4",
|
37
|
+
"model_number"=>"7728",
|
38
|
+
"package_code"=>"",
|
39
|
+
"drive_type"=>"RWD",
|
40
|
+
"brake_system"=>"",
|
41
|
+
"restraint_type"=>"DRIVER AND PASSENGER FRONT AIRBAGS, ACTIVE BELTS",
|
42
|
+
"country_of_manufacture"=>"",
|
43
|
+
"plant"=>"Princeton, Indiana"},
|
44
|
+
"pricing"=>
|
45
|
+
{"msrp"=>"23080",
|
46
|
+
"invoice_price"=>"0",
|
47
|
+
"destination_charge"=>"0",
|
48
|
+
"gas_guzzler_tax"=>"0"},
|
49
|
+
"engines"=>
|
50
|
+
[{"name"=>"ED 4L NA V 8 double overhead cam (DOHC) 32V",
|
51
|
+
"brand"=>"",
|
52
|
+
"engine_id"=>"232031",
|
53
|
+
"availability"=>"Installed",
|
54
|
+
"aspiration"=>"N/A",
|
55
|
+
"block_type"=>"V",
|
56
|
+
"bore"=>"0",
|
57
|
+
"cam_type"=>"DOHC",
|
58
|
+
"compression"=>"0",
|
59
|
+
"cylinders"=>"8",
|
60
|
+
"displacement"=>"4.7",
|
61
|
+
"fuel_induction"=>"FI",
|
62
|
+
"fuel_quality"=>"",
|
63
|
+
"fuel_type"=>"G",
|
64
|
+
"msrp"=>"0",
|
65
|
+
"invoice_price"=>"0",
|
66
|
+
"marketing_name"=>"",
|
67
|
+
"max_hp"=>"245",
|
68
|
+
"max_hp_at"=>"4800",
|
69
|
+
"max_payload"=>"",
|
70
|
+
"max_torque"=>"315",
|
71
|
+
"max_torque_at"=>"3400",
|
72
|
+
"oil_capacity"=>"0",
|
73
|
+
"order_code"=>"",
|
74
|
+
"redline"=>"",
|
75
|
+
"stroke"=>"0",
|
76
|
+
"valve_timing"=>"",
|
77
|
+
"valves"=>"32"}],
|
78
|
+
"transmissions"=>
|
79
|
+
[{"name"=>"4-Speed Automatic",
|
80
|
+
"brand"=>"",
|
81
|
+
"transmission_id"=>"223307",
|
82
|
+
"availability"=>"Installed",
|
83
|
+
"type"=>"A",
|
84
|
+
"detail_type"=>"",
|
85
|
+
"gears"=>"4",
|
86
|
+
"msrp"=>"0",
|
87
|
+
"invoice_price"=>"0",
|
88
|
+
"order_code"=>""}],
|
89
|
+
"specifications"=>
|
90
|
+
[{"category"=>"Drive Type",
|
91
|
+
"specifications"=>[{"name"=>"Drive Type", "value"=>"RWD"}]},
|
92
|
+
{"category"=>"Fuel Tanks",
|
93
|
+
"specifications"=>
|
94
|
+
[{"name"=>"Fuel Tank 1 Capacity (Gallons)", "value"=>"26"}]},
|
95
|
+
{"category"=>"Measurements of Size and Shape",
|
96
|
+
"specifications"=>
|
97
|
+
[{"name"=>"Ground Clearance", "value"=>"10.4"},
|
98
|
+
{"name"=>"Height", "value"=>"70.5"},
|
99
|
+
{"name"=>"Length", "value"=>"217.5"},
|
100
|
+
{"name"=>"Wheelbase", "value"=>"128.3"},
|
101
|
+
{"name"=>"Width", "value"=>"75.2"}]},
|
102
|
+
{"category"=>"Measurements of Weight",
|
103
|
+
"specifications"=>
|
104
|
+
[{"name"=>"Base Towing Capacity", "value"=>"7200"},
|
105
|
+
{"name"=>"Curb Weight", "value"=>"4276"},
|
106
|
+
{"name"=>"Gross Vehicle Weight Range", "value"=>"6001-7000"},
|
107
|
+
{"name"=>"Gross Vehicle Weight Rating", "value"=>"6200"},
|
108
|
+
{"name"=>"Tonnage", "value"=>"1/2"}]},
|
109
|
+
{"category"=>"Performance Specifications",
|
110
|
+
"specifications"=>[{"name"=>"Turning Circle", "value"=>"44.9"}]},
|
111
|
+
{"category"=>"Seating",
|
112
|
+
"specifications"=>
|
113
|
+
[{"name"=>"Head Room 1st Row", "value"=>"40.3"},
|
114
|
+
{"name"=>"Head Room 2nd Row/Rear", "value"=>"37"},
|
115
|
+
{"name"=>"Hip Room 1st Row", "value"=>"59.3"},
|
116
|
+
{"name"=>"Hip Room 2nd Row/Rear", "value"=>"59.3"},
|
117
|
+
{"name"=>"Leg Room 1st Row", "value"=>"41.5"},
|
118
|
+
{"name"=>"Leg Room 2nd Row/Rear", "value"=>"29.6"},
|
119
|
+
{"name"=>"Max Seating", "value"=>"6"},
|
120
|
+
{"name"=>"Shoulder Room 1st Row", "value"=>"62.4"},
|
121
|
+
{"name"=>"Shoulder Room 2nd Row/Rear", "value"=>"63.2"},
|
122
|
+
{"name"=>"Standard Seating", "value"=>"6"}]},
|
123
|
+
{"category"=>"Truck Specifications",
|
124
|
+
"specifications"=>
|
125
|
+
[{"name"=>"Bed Code", "value"=>"SHORT"},
|
126
|
+
{"name"=>"Max Payload", "value"=>"1924"}]},
|
127
|
+
{"category"=>"Wheels and Tires",
|
128
|
+
"specifications"=>
|
129
|
+
[{"name"=>"Front Wheel Diameter", "value"=>"16 in."},
|
130
|
+
{"name"=>"Rear Wheel Diameter", "value"=>"16 in."}]}],
|
131
|
+
"colors"=>
|
132
|
+
{"exterior_colors"=>
|
133
|
+
[{"mfr_code"=>"3K4",
|
134
|
+
"two_tone"=>"N",
|
135
|
+
"generic_color_name"=>"Red",
|
136
|
+
"mfr_color_name"=>"Sunfire Red Pearl",
|
137
|
+
"primary_rgb_code"=>
|
138
|
+
{"r"=>"114", "g"=>"44", "b"=>"27", "hex"=>"722C1B"},
|
139
|
+
"secondary_rgb_code"=>
|
140
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}},
|
141
|
+
{"mfr_code"=>"1AO",
|
142
|
+
"two_tone"=>"N",
|
143
|
+
"generic_color_name"=>"Silver",
|
144
|
+
"mfr_color_name"=>"Platinum Metallic",
|
145
|
+
"primary_rgb_code"=>
|
146
|
+
{"r"=>"150", "g"=>"150", "b"=>"157", "hex"=>"96969D"},
|
147
|
+
"secondary_rgb_code"=>
|
148
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}},
|
149
|
+
{"mfr_code"=>"6Q7",
|
150
|
+
"two_tone"=>"N",
|
151
|
+
"generic_color_name"=>"Green",
|
152
|
+
"mfr_color_name"=>"Imperial Jade Mica",
|
153
|
+
"primary_rgb_code"=>
|
154
|
+
{"r"=>"40", "g"=>"110", "b"=>"90", "hex"=>"286E5A"},
|
155
|
+
"secondary_rgb_code"=>
|
156
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}},
|
157
|
+
{"mfr_code"=>"578",
|
158
|
+
"two_tone"=>"N",
|
159
|
+
"generic_color_name"=>"Gold",
|
160
|
+
"mfr_color_name"=>"Golden Sand Metallic",
|
161
|
+
"primary_rgb_code"=>
|
162
|
+
{"r"=>"151", "g"=>"129", "b"=>"100", "hex"=>"978164"},
|
163
|
+
"secondary_rgb_code"=>
|
164
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}},
|
165
|
+
{"mfr_code"=>"202",
|
166
|
+
"two_tone"=>"N",
|
167
|
+
"generic_color_name"=>"Black",
|
168
|
+
"mfr_color_name"=>"Black",
|
169
|
+
"primary_rgb_code"=>
|
170
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"},
|
171
|
+
"secondary_rgb_code"=>
|
172
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}},
|
173
|
+
{"mfr_code"=>"1C7",
|
174
|
+
"two_tone"=>"N",
|
175
|
+
"generic_color_name"=>"Gray",
|
176
|
+
"mfr_color_name"=>"Thunder Gray Metallic",
|
177
|
+
"primary_rgb_code"=>
|
178
|
+
{"r"=>"111", "g"=>"109", "b"=>"110", "hex"=>"6F6D6E"},
|
179
|
+
"secondary_rgb_code"=>
|
180
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}},
|
181
|
+
{"mfr_code"=>"056",
|
182
|
+
"two_tone"=>"N",
|
183
|
+
"generic_color_name"=>"White",
|
184
|
+
"mfr_color_name"=>"Natural White",
|
185
|
+
"primary_rgb_code"=>
|
186
|
+
{"r"=>"255", "g"=>"255", "b"=>"255", "hex"=>"FFFFFF"},
|
187
|
+
"secondary_rgb_code"=>
|
188
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}},
|
189
|
+
{"mfr_code"=>"8L7",
|
190
|
+
"two_tone"=>"N",
|
191
|
+
"generic_color_name"=>"Blue",
|
192
|
+
"mfr_color_name"=>"Stellar Blue Pearl",
|
193
|
+
"primary_rgb_code"=>
|
194
|
+
{"r"=>"70", "g"=>"85", "b"=>"126", "hex"=>"46557E"},
|
195
|
+
"secondary_rgb_code"=>
|
196
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}}],
|
197
|
+
"interior_colors"=>
|
198
|
+
[{"mfr_code"=>"10",
|
199
|
+
"two_tone"=>"N",
|
200
|
+
"generic_color_name"=>"Gray",
|
201
|
+
"mfr_color_name"=>"Gray",
|
202
|
+
"primary_rgb_code"=>
|
203
|
+
{"r"=>"134", "g"=>"143", "b"=>"142", "hex"=>"868F8E"},
|
204
|
+
"secondary_rgb_code"=>
|
205
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}},
|
206
|
+
{"mfr_code"=>"11",
|
207
|
+
"two_tone"=>"N",
|
208
|
+
"generic_color_name"=>"Dk. Gray",
|
209
|
+
"mfr_color_name"=>"Light Charcoal",
|
210
|
+
"primary_rgb_code"=>
|
211
|
+
{"r"=>"103", "g"=>"110", "b"=>"114", "hex"=>"676E72"},
|
212
|
+
"secondary_rgb_code"=>
|
213
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}},
|
214
|
+
{"mfr_code"=>"40",
|
215
|
+
"two_tone"=>"N",
|
216
|
+
"generic_color_name"=>"Lt. Brown",
|
217
|
+
"mfr_color_name"=>"Oak",
|
218
|
+
"primary_rgb_code"=>
|
219
|
+
{"r"=>"158", "g"=>"140", "b"=>"123", "hex"=>"9E8C7B"},
|
220
|
+
"secondary_rgb_code"=>
|
221
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}}],
|
222
|
+
"roof_colors"=>[]},
|
223
|
+
"safety_equipment"=>
|
224
|
+
{"abs_two_wheel"=>"",
|
225
|
+
"abs_four_wheel"=>"",
|
226
|
+
"airbags_front_driver"=>"",
|
227
|
+
"airbags_front_passenger"=>"",
|
228
|
+
"airbags_side_impact"=>"",
|
229
|
+
"airbags_side_curtain"=>"",
|
230
|
+
"brake_assist"=>"",
|
231
|
+
"daytime_running_lights"=>"",
|
232
|
+
"electronic_stability_control"=>"",
|
233
|
+
"electronic_traction_control"=>"",
|
234
|
+
"tire_pressure_monitoring_system"=>"",
|
235
|
+
"rollover_stability_control"=>""},
|
236
|
+
"warranties"=>
|
237
|
+
[{"name"=>"Corrosion", "type"=>"Rust", "months"=>"60", "miles"=>"0"},
|
238
|
+
{"name"=>"Roadside Assistance",
|
239
|
+
"type"=>"Roadside Assistance",
|
240
|
+
"months"=>"0",
|
241
|
+
"miles"=>"0"},
|
242
|
+
{"name"=>"Powertrain",
|
243
|
+
"type"=>"Drivetrain/Powertrain",
|
244
|
+
"months"=>"60",
|
245
|
+
"miles"=>"60000"},
|
246
|
+
{"name"=>"New Car Basic Warranty",
|
247
|
+
"type"=>"Basic",
|
248
|
+
"months"=>"36",
|
249
|
+
"miles"=>"36000"}]},
|
250
|
+
"styles"=>
|
251
|
+
[{"name"=>"4 Dr SR5 V8 Extended Cab SB",
|
252
|
+
"vehicle_id"=>"8304",
|
253
|
+
"complete"=>"Y",
|
254
|
+
"basic_data"=>
|
255
|
+
{"market"=>"US Light-Duty",
|
256
|
+
"year"=>"2000",
|
257
|
+
"make"=>"Toyota",
|
258
|
+
"model"=>"Tundra",
|
259
|
+
"trim"=>"SR5",
|
260
|
+
"vehicle_type"=>"Truck",
|
261
|
+
"body_type"=>"Pickup",
|
262
|
+
"body_subtype"=>"Extended Cab",
|
263
|
+
"doors"=>"4",
|
264
|
+
"model_number"=>"7728",
|
265
|
+
"package_code"=>"",
|
266
|
+
"drive_type"=>"RWD",
|
267
|
+
"brake_system"=>"",
|
268
|
+
"restraint_type"=>"DRIVER AND PASSENGER FRONT AIRBAGS, ACTIVE BELTS",
|
269
|
+
"country_of_manufacture"=>"",
|
270
|
+
"plant"=>"Princeton, Indiana"},
|
271
|
+
"pricing"=>
|
272
|
+
{"msrp"=>"23080",
|
273
|
+
"invoice_price"=>"0",
|
274
|
+
"destination_charge"=>"0",
|
275
|
+
"gas_guzzler_tax"=>"0"},
|
276
|
+
"engines"=>
|
277
|
+
[{"name"=>"ED 4L NA V 8 double overhead cam (DOHC) 32V",
|
278
|
+
"brand"=>"",
|
279
|
+
"engine_id"=>"232031",
|
280
|
+
"availability"=>"Installed",
|
281
|
+
"aspiration"=>"N/A",
|
282
|
+
"block_type"=>"V",
|
283
|
+
"bore"=>"0",
|
284
|
+
"cam_type"=>"DOHC",
|
285
|
+
"compression"=>"0",
|
286
|
+
"cylinders"=>"8",
|
287
|
+
"displacement"=>"4.7",
|
288
|
+
"fuel_induction"=>"FI",
|
289
|
+
"fuel_quality"=>"",
|
290
|
+
"fuel_type"=>"G",
|
291
|
+
"msrp"=>"0",
|
292
|
+
"invoice_price"=>"0",
|
293
|
+
"marketing_name"=>"",
|
294
|
+
"max_hp"=>"245",
|
295
|
+
"max_hp_at"=>"4800",
|
296
|
+
"max_payload"=>"",
|
297
|
+
"max_torque"=>"315",
|
298
|
+
"max_torque_at"=>"3400",
|
299
|
+
"oil_capacity"=>"0",
|
300
|
+
"order_code"=>"",
|
301
|
+
"redline"=>"",
|
302
|
+
"stroke"=>"0",
|
303
|
+
"valve_timing"=>"",
|
304
|
+
"valves"=>"32"}],
|
305
|
+
"transmissions"=>
|
306
|
+
[{"name"=>"4-Speed Automatic",
|
307
|
+
"brand"=>"",
|
308
|
+
"transmission_id"=>"223307",
|
309
|
+
"availability"=>"Installed",
|
310
|
+
"type"=>"A",
|
311
|
+
"detail_type"=>"",
|
312
|
+
"gears"=>"4",
|
313
|
+
"msrp"=>"0",
|
314
|
+
"invoice_price"=>"0",
|
315
|
+
"order_code"=>""}],
|
316
|
+
"specifications"=>
|
317
|
+
[{"category"=>"Drive Type",
|
318
|
+
"specifications"=>[{"name"=>"Drive Type", "value"=>"RWD"}]},
|
319
|
+
{"category"=>"Fuel Tanks",
|
320
|
+
"specifications"=>
|
321
|
+
[{"name"=>"Fuel Tank 1 Capacity (Gallons)", "value"=>"26"}]},
|
322
|
+
{"category"=>"Measurements of Size and Shape",
|
323
|
+
"specifications"=>
|
324
|
+
[{"name"=>"Ground Clearance", "value"=>"10.4"},
|
325
|
+
{"name"=>"Height", "value"=>"70.5"},
|
326
|
+
{"name"=>"Length", "value"=>"217.5"},
|
327
|
+
{"name"=>"Wheelbase", "value"=>"128.3"},
|
328
|
+
{"name"=>"Width", "value"=>"75.2"}]},
|
329
|
+
{"category"=>"Measurements of Weight",
|
330
|
+
"specifications"=>
|
331
|
+
[{"name"=>"Base Towing Capacity", "value"=>"7200"},
|
332
|
+
{"name"=>"Curb Weight", "value"=>"4276"},
|
333
|
+
{"name"=>"Gross Vehicle Weight Range", "value"=>"6001-7000"},
|
334
|
+
{"name"=>"Gross Vehicle Weight Rating", "value"=>"6200"},
|
335
|
+
{"name"=>"Tonnage", "value"=>"1/2"}]},
|
336
|
+
{"category"=>"Performance Specifications",
|
337
|
+
"specifications"=>[{"name"=>"Turning Circle", "value"=>"44.9"}]},
|
338
|
+
{"category"=>"Seating",
|
339
|
+
"specifications"=>
|
340
|
+
[{"name"=>"Head Room 1st Row", "value"=>"40.3"},
|
341
|
+
{"name"=>"Head Room 2nd Row/Rear", "value"=>"37"},
|
342
|
+
{"name"=>"Hip Room 1st Row", "value"=>"59.3"},
|
343
|
+
{"name"=>"Hip Room 2nd Row/Rear", "value"=>"59.3"},
|
344
|
+
{"name"=>"Leg Room 1st Row", "value"=>"41.5"},
|
345
|
+
{"name"=>"Leg Room 2nd Row/Rear", "value"=>"29.6"},
|
346
|
+
{"name"=>"Max Seating", "value"=>"6"},
|
347
|
+
{"name"=>"Shoulder Room 1st Row", "value"=>"62.4"},
|
348
|
+
{"name"=>"Shoulder Room 2nd Row/Rear", "value"=>"63.2"},
|
349
|
+
{"name"=>"Standard Seating", "value"=>"6"}]},
|
350
|
+
{"category"=>"Truck Specifications",
|
351
|
+
"specifications"=>
|
352
|
+
[{"name"=>"Bed Code", "value"=>"SHORT"},
|
353
|
+
{"name"=>"Max Payload", "value"=>"1924"}]},
|
354
|
+
{"category"=>"Wheels and Tires",
|
355
|
+
"specifications"=>
|
356
|
+
[{"name"=>"Front Wheel Diameter", "value"=>"16 in."},
|
357
|
+
{"name"=>"Rear Wheel Diameter", "value"=>"16 in."}]}],
|
358
|
+
"optional_equipment"=>
|
359
|
+
[{"category"=>"Seats",
|
360
|
+
"options"=>
|
361
|
+
[{"name"=>"Captain Chairs (2)",
|
362
|
+
"option_id"=>"14375",
|
363
|
+
"order_code"=>"",
|
364
|
+
"installed"=>"UK",
|
365
|
+
"install_type"=>"",
|
366
|
+
"invoice_price"=>"0",
|
367
|
+
"msrp"=>"0",
|
368
|
+
"description"=>""}]},
|
369
|
+
{"category"=>"Safety",
|
370
|
+
"options"=>
|
371
|
+
[{"name"=>"Fog Lights",
|
372
|
+
"option_id"=>"26001",
|
373
|
+
"order_code"=>"",
|
374
|
+
"installed"=>"UK",
|
375
|
+
"install_type"=>"",
|
376
|
+
"invoice_price"=>"0",
|
377
|
+
"msrp"=>"0",
|
378
|
+
"description"=>""},
|
379
|
+
{"name"=>"4-Wheel ABS",
|
380
|
+
"option_id"=>"130328",
|
381
|
+
"order_code"=>"",
|
382
|
+
"installed"=>"UK",
|
383
|
+
"install_type"=>"",
|
384
|
+
"invoice_price"=>"0",
|
385
|
+
"msrp"=>"0",
|
386
|
+
"description"=>""}]},
|
387
|
+
{"category"=>"Convenience Features",
|
388
|
+
"options"=>
|
389
|
+
[{"name"=>"Lighted Entry System",
|
390
|
+
"option_id"=>"40446",
|
391
|
+
"order_code"=>"",
|
392
|
+
"installed"=>"UK",
|
393
|
+
"install_type"=>"",
|
394
|
+
"invoice_price"=>"0",
|
395
|
+
"msrp"=>"0",
|
396
|
+
"description"=>""}]},
|
397
|
+
{"category"=>"Exterior Features",
|
398
|
+
"options"=>
|
399
|
+
[{"name"=>"Tonneau Cover",
|
400
|
+
"option_id"=>"71917",
|
401
|
+
"order_code"=>"",
|
402
|
+
"installed"=>"UK",
|
403
|
+
"install_type"=>"",
|
404
|
+
"invoice_price"=>"0",
|
405
|
+
"msrp"=>"0",
|
406
|
+
"description"=>""},
|
407
|
+
{"name"=>"Running Boards",
|
408
|
+
"option_id"=>"160374",
|
409
|
+
"order_code"=>"R94",
|
410
|
+
"installed"=>"UK",
|
411
|
+
"install_type"=>"Port Installed Option",
|
412
|
+
"invoice_price"=>"0",
|
413
|
+
"msrp"=>"0",
|
414
|
+
"description"=>""}]},
|
415
|
+
{"category"=>"Tires and Rims",
|
416
|
+
"options"=>
|
417
|
+
[{"name"=>"Alloy Wheels",
|
418
|
+
"option_id"=>"120775",
|
419
|
+
"order_code"=>"",
|
420
|
+
"installed"=>"UK",
|
421
|
+
"install_type"=>"",
|
422
|
+
"invoice_price"=>"0",
|
423
|
+
"msrp"=>"0",
|
424
|
+
"description"=>""}]},
|
425
|
+
{"category"=>"Towing and Hauling",
|
426
|
+
"options"=>
|
427
|
+
[{"name"=>"Trailer Hitch",
|
428
|
+
"option_id"=>"176848",
|
429
|
+
"order_code"=>"TH",
|
430
|
+
"installed"=>"UK",
|
431
|
+
"install_type"=>"Port Installed Option",
|
432
|
+
"invoice_price"=>"0",
|
433
|
+
"msrp"=>"0",
|
434
|
+
"description"=>""}]},
|
435
|
+
{"category"=>"Security",
|
436
|
+
"options"=>
|
437
|
+
[{"name"=>"Anti-Theft Alarm System",
|
438
|
+
"option_id"=>"300002476",
|
439
|
+
"order_code"=>"",
|
440
|
+
"installed"=>"UK",
|
441
|
+
"install_type"=>"",
|
442
|
+
"invoice_price"=>"0",
|
443
|
+
"msrp"=>"0",
|
444
|
+
"description"=>""}]},
|
445
|
+
{"category"=>"Locks",
|
446
|
+
"options"=>
|
447
|
+
[{"name"=>"Power Door Locks",
|
448
|
+
"option_id"=>"300002484",
|
449
|
+
"order_code"=>"",
|
450
|
+
"installed"=>"UK",
|
451
|
+
"install_type"=>"",
|
452
|
+
"invoice_price"=>"0",
|
453
|
+
"msrp"=>"0",
|
454
|
+
"description"=>""}]},
|
455
|
+
{"category"=>"Windows",
|
456
|
+
"options"=>
|
457
|
+
[{"name"=>"Power Windows",
|
458
|
+
"option_id"=>"300002485",
|
459
|
+
"order_code"=>"",
|
460
|
+
"installed"=>"UK",
|
461
|
+
"install_type"=>"",
|
462
|
+
"invoice_price"=>"0",
|
463
|
+
"msrp"=>"0",
|
464
|
+
"description"=>""},
|
465
|
+
{"name"=>"Manual Horizontal Sliding Rear Window",
|
466
|
+
"option_id"=>"300002519",
|
467
|
+
"order_code"=>"",
|
468
|
+
"installed"=>"UK",
|
469
|
+
"install_type"=>"",
|
470
|
+
"invoice_price"=>"0",
|
471
|
+
"msrp"=>"0",
|
472
|
+
"description"=>""}]},
|
473
|
+
{"category"=>"Truck Features",
|
474
|
+
"options"=>
|
475
|
+
[{"name"=>"Bed Liner",
|
476
|
+
"option_id"=>"300002518",
|
477
|
+
"order_code"=>"",
|
478
|
+
"installed"=>"UK",
|
479
|
+
"install_type"=>"",
|
480
|
+
"invoice_price"=>"0",
|
481
|
+
"msrp"=>"0",
|
482
|
+
"description"=>""}]},
|
483
|
+
{"category"=>"Audio System",
|
484
|
+
"options"=>
|
485
|
+
[{"name"=>"Cassette",
|
486
|
+
"option_id"=>"300005546",
|
487
|
+
"order_code"=>"",
|
488
|
+
"installed"=>"UK",
|
489
|
+
"install_type"=>"",
|
490
|
+
"invoice_price"=>"0",
|
491
|
+
"msrp"=>"0",
|
492
|
+
"description"=>""},
|
493
|
+
{"name"=>"In-Dash CD - single disc",
|
494
|
+
"option_id"=>"300005559",
|
495
|
+
"order_code"=>"",
|
496
|
+
"installed"=>"UK",
|
497
|
+
"install_type"=>"",
|
498
|
+
"invoice_price"=>"0",
|
499
|
+
"msrp"=>"0",
|
500
|
+
"description"=>""},
|
501
|
+
{"name"=>"Radio - AM/FM",
|
502
|
+
"option_id"=>"300005583",
|
503
|
+
"order_code"=>"",
|
504
|
+
"installed"=>"UK",
|
505
|
+
"install_type"=>"",
|
506
|
+
"invoice_price"=>"0",
|
507
|
+
"msrp"=>"0",
|
508
|
+
"description"=>""}]},
|
509
|
+
{"category"=>"Mirrors",
|
510
|
+
"options"=>
|
511
|
+
[{"name"=>"Exterior mirrors - power",
|
512
|
+
"option_id"=>"300005660",
|
513
|
+
"order_code"=>"",
|
514
|
+
"installed"=>"UK",
|
515
|
+
"install_type"=>"",
|
516
|
+
"invoice_price"=>"0",
|
517
|
+
"msrp"=>"0",
|
518
|
+
"description"=>""}]}],
|
519
|
+
"colors"=>
|
520
|
+
{"exterior_colors"=>
|
521
|
+
[{"mfr_code"=>"3K4",
|
522
|
+
"two_tone"=>"N",
|
523
|
+
"generic_color_name"=>"Red",
|
524
|
+
"mfr_color_name"=>"Sunfire Red Pearl",
|
525
|
+
"primary_rgb_code"=>
|
526
|
+
{"r"=>"114", "g"=>"44", "b"=>"27", "hex"=>"722C1B"},
|
527
|
+
"secondary_rgb_code"=>
|
528
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}},
|
529
|
+
{"mfr_code"=>"1AO",
|
530
|
+
"two_tone"=>"N",
|
531
|
+
"generic_color_name"=>"Silver",
|
532
|
+
"mfr_color_name"=>"Platinum Metallic",
|
533
|
+
"primary_rgb_code"=>
|
534
|
+
{"r"=>"150", "g"=>"150", "b"=>"157", "hex"=>"96969D"},
|
535
|
+
"secondary_rgb_code"=>
|
536
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}},
|
537
|
+
{"mfr_code"=>"6Q7",
|
538
|
+
"two_tone"=>"N",
|
539
|
+
"generic_color_name"=>"Green",
|
540
|
+
"mfr_color_name"=>"Imperial Jade Mica",
|
541
|
+
"primary_rgb_code"=>
|
542
|
+
{"r"=>"40", "g"=>"110", "b"=>"90", "hex"=>"286E5A"},
|
543
|
+
"secondary_rgb_code"=>
|
544
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}},
|
545
|
+
{"mfr_code"=>"578",
|
546
|
+
"two_tone"=>"N",
|
547
|
+
"generic_color_name"=>"Gold",
|
548
|
+
"mfr_color_name"=>"Golden Sand Metallic",
|
549
|
+
"primary_rgb_code"=>
|
550
|
+
{"r"=>"151", "g"=>"129", "b"=>"100", "hex"=>"978164"},
|
551
|
+
"secondary_rgb_code"=>
|
552
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}},
|
553
|
+
{"mfr_code"=>"202",
|
554
|
+
"two_tone"=>"N",
|
555
|
+
"generic_color_name"=>"Black",
|
556
|
+
"mfr_color_name"=>"Black",
|
557
|
+
"primary_rgb_code"=>
|
558
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"},
|
559
|
+
"secondary_rgb_code"=>
|
560
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}},
|
561
|
+
{"mfr_code"=>"1C7",
|
562
|
+
"two_tone"=>"N",
|
563
|
+
"generic_color_name"=>"Gray",
|
564
|
+
"mfr_color_name"=>"Thunder Gray Metallic",
|
565
|
+
"primary_rgb_code"=>
|
566
|
+
{"r"=>"111", "g"=>"109", "b"=>"110", "hex"=>"6F6D6E"},
|
567
|
+
"secondary_rgb_code"=>
|
568
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}},
|
569
|
+
{"mfr_code"=>"056",
|
570
|
+
"two_tone"=>"N",
|
571
|
+
"generic_color_name"=>"White",
|
572
|
+
"mfr_color_name"=>"Natural White",
|
573
|
+
"primary_rgb_code"=>
|
574
|
+
{"r"=>"255", "g"=>"255", "b"=>"255", "hex"=>"FFFFFF"},
|
575
|
+
"secondary_rgb_code"=>
|
576
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}},
|
577
|
+
{"mfr_code"=>"8L7",
|
578
|
+
"two_tone"=>"N",
|
579
|
+
"generic_color_name"=>"Blue",
|
580
|
+
"mfr_color_name"=>"Stellar Blue Pearl",
|
581
|
+
"primary_rgb_code"=>
|
582
|
+
{"r"=>"70", "g"=>"85", "b"=>"126", "hex"=>"46557E"},
|
583
|
+
"secondary_rgb_code"=>
|
584
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}}],
|
585
|
+
"interior_colors"=>
|
586
|
+
[{"mfr_code"=>"10",
|
587
|
+
"two_tone"=>"N",
|
588
|
+
"generic_color_name"=>"Gray",
|
589
|
+
"mfr_color_name"=>"Gray",
|
590
|
+
"primary_rgb_code"=>
|
591
|
+
{"r"=>"134", "g"=>"143", "b"=>"142", "hex"=>"868F8E"},
|
592
|
+
"secondary_rgb_code"=>
|
593
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}},
|
594
|
+
{"mfr_code"=>"11",
|
595
|
+
"two_tone"=>"N",
|
596
|
+
"generic_color_name"=>"Dk. Gray",
|
597
|
+
"mfr_color_name"=>"Light Charcoal",
|
598
|
+
"primary_rgb_code"=>
|
599
|
+
{"r"=>"103", "g"=>"110", "b"=>"114", "hex"=>"676E72"},
|
600
|
+
"secondary_rgb_code"=>
|
601
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}},
|
602
|
+
{"mfr_code"=>"40",
|
603
|
+
"two_tone"=>"N",
|
604
|
+
"generic_color_name"=>"Lt. Brown",
|
605
|
+
"mfr_color_name"=>"Oak",
|
606
|
+
"primary_rgb_code"=>
|
607
|
+
{"r"=>"158", "g"=>"140", "b"=>"123", "hex"=>"9E8C7B"},
|
608
|
+
"secondary_rgb_code"=>
|
609
|
+
{"r"=>"0", "g"=>"0", "b"=>"0", "hex"=>"000000"}}],
|
610
|
+
"roof_colors"=>[]},
|
611
|
+
"safety_equipment"=>
|
612
|
+
{"abs_two_wheel"=>"",
|
613
|
+
"abs_four_wheel"=>"",
|
614
|
+
"airbags_front_driver"=>"",
|
615
|
+
"airbags_front_passenger"=>"",
|
616
|
+
"airbags_side_impact"=>"",
|
617
|
+
"airbags_side_curtain"=>"",
|
618
|
+
"brake_assist"=>"",
|
619
|
+
"daytime_running_lights"=>"",
|
620
|
+
"electronic_stability_control"=>"",
|
621
|
+
"electronic_traction_control"=>"",
|
622
|
+
"tire_pressure_monitoring_system"=>"",
|
623
|
+
"rollover_stability_control"=>""},
|
624
|
+
"warranties"=>
|
625
|
+
[{"name"=>"Corrosion", "type"=>"Rust", "months"=>"60", "miles"=>"0"},
|
626
|
+
{"name"=>"Roadside Assistance",
|
627
|
+
"type"=>"Roadside Assistance",
|
628
|
+
"months"=>"0",
|
629
|
+
"miles"=>"0"},
|
630
|
+
{"name"=>"Powertrain",
|
631
|
+
"type"=>"Drivetrain/Powertrain",
|
632
|
+
"months"=>"60",
|
633
|
+
"miles"=>"60000"},
|
634
|
+
{"name"=>"New Car Basic Warranty",
|
635
|
+
"type"=>"Basic",
|
636
|
+
"months"=>"36",
|
637
|
+
"miles"=>"36000"}]}]}}}
|
638
|
+
end
|
639
|
+
end
|