Class: Laximo::Oem

Inherits:
Object
  • Object
show all
Defined in:
lib/laximo/oem.rb

Instance Method Summary collapse

Constructor Details

#initializeOem

Returns a new instance of Oem.



6
7
8
9
10
11
12
13
# File 'lib/laximo/oem.rb', line 6

def initialize

  @request = ::Laximo::Request.new(
    ::Laximo.options.oem_soap_endpoint,
    ::Laximo.options.oem_soap_action
  )

end

Instance Method Details

#exec_custom_operation(catalog:, operation:, param:, locale: ::Laximo.options.locale) ⇒ Object

get_vehicle_info



199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'lib/laximo/oem.rb', line 199

def exec_custom_operation(
  catalog:,
  operation:,
  param:,
  locale:  ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('GetVehicleInfo').
    locale(locale).
    catalog(catalog).
    operation(operation).
    param(param).
    call(@request)

  ::Laximo::Respond::ExecCustomOperation.new(resp)

end

#find_vehicle(ident_string:, catalog: nil, localized: true, locale: ::Laximo.options.locale) ⇒ Object

find_vehicle_by_frame_no



106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'lib/laximo/oem.rb', line 106

def find_vehicle(
  ident_string:,
  catalog:    nil,
  localized:  true,
  locale:     ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('FindVehicle').
    locale(locale).
    catalog(catalog).
    ident_string(ident_string).
    localized(localized).
    call(@request)

    ::Laximo::Respond::FindVehicle.new(resp)

end

#find_vehicle_by_frame(frame:, frame_no:, catalog: nil, localized: true, locale: ::Laximo.options.locale) ⇒ Object

find_vehicle_by_vin



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/laximo/oem.rb', line 66

def find_vehicle_by_frame(
  frame:,
  frame_no:,
  catalog:    nil,
  localized:  true,
  locale:     ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('FindVehicleByFrame').
    locale(locale).
    catalog(catalog).
    frame(frame).
    frame_no(frame_no).
    localized(localized).
    call(@request)

  ::Laximo::Respond::FindVehicleByFrame.new(resp)

end

#find_vehicle_by_frame_no(frame_no:, catalog: nil, localized: true, locale: ::Laximo.options.locale) ⇒ Object

find_vehicle_by_frame



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# File 'lib/laximo/oem.rb', line 87

def find_vehicle_by_frame_no(
  frame_no:,
  catalog:    nil,
  localized:  true,
  locale:     ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('FindVehicleByFrameNo').
    locale(locale).
    catalog(catalog).
    frame_no(frame_no).
    localized(localized).
    call(@request)

  ::Laximo::Respond::FindVehicleByFrameNo.new(resp)

end

#find_vehicle_by_vin(vin:, catalog: nil, localized: true, locale: ::Laximo.options.locale) ⇒ Object

get_catalog_info



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/laximo/oem.rb', line 47

def find_vehicle_by_vin(
  vin:,
  catalog:    nil,
  localized:  true,
  locale:     ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('FindVehicleByVIN').
    locale(locale).
    catalog(catalog).
    vin(vin).
    localized(localized).
    call(@request)

  ::Laximo::Respond::FindVehicleByVin.new(resp)

end

#find_vehicle_by_wizard2(catalog:, ssd:, localized: true, locale: ::Laximo.options.locale) ⇒ Object

get_wizard_next_step2



159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# File 'lib/laximo/oem.rb', line 159

def find_vehicle_by_wizard2(
  catalog:,
  ssd:,
  localized:  true,
  locale: ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('FindVehicleByWizard2').
    locale(locale).
    catalog(catalog).
    ssd(ssd).
    localized(localized).
    call(@request)

  ::Laximo::Respond::FindVehicleByWizard2.new(resp)

end

#get_catalog_info(catalog:, ssd: nil, locale: ::Laximo.options.locale) ⇒ Object

list_catalogs



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/laximo/oem.rb', line 30

def get_catalog_info(
  catalog:,
  ssd:      nil,
  locale:   ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('GetCatalogInfo').
    locale(locale).
    catalog(catalog).
    ssd(ssd).
    call(@request)

  ::Laximo::Respond::GetCatalogInfo.new(resp)

end

#get_filter_by_detail(catalog:, unit_id:, detail_id:, filter:, ssd:, locale: ::Laximo.options.locale) ⇒ Object

list_image_map_by_unit



344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
# File 'lib/laximo/oem.rb', line 344

def get_filter_by_detail(
  catalog:,
  unit_id:,
  detail_id:,
  filter:,
  ssd:,
  locale:   ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('GetFilterByDetail').
    locale(locale).
    catalog(catalog).
    unit_id(unit_id).
    detail_id(detail_id).
    filter(filter).
    ssd(ssd).
    call(@request)

  ::Laximo::Respond::GetFilterByDetail.new(resp)

end

#get_filter_by_unit(catalog:, unit_id:, vehicle_id:, filter:, ssd:, locale: ::Laximo.options.locale) ⇒ Object

list_categories



262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
# File 'lib/laximo/oem.rb', line 262

def get_filter_by_unit(
  catalog:,
  unit_id:,
  vehicle_id:,
  filter:,
  ssd:,
  locale:   ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('GetFilterByUnit').
    locale(locale).
    catalog(catalog).
    unit_id(unit_id).
    vehicle_id(vehicle_id).
    filter(filter).
    ssd(ssd).
    call(@request)

  ::Laximo::Respond::GetFilterByUnit.new(resp)

end

#get_unit_info(catalog:, unit_id:, ssd:, localized: true, locale: ::Laximo.options.locale) ⇒ Object

get_filter_by_unit



285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
# File 'lib/laximo/oem.rb', line 285

def get_unit_info(
  catalog:,
  unit_id:,
  ssd:,
  localized:  true,
  locale:     ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('GetUnitInfo').
    locale(locale).
    catalog(catalog).
    ssd(ssd).
    unit_id(unit_id).
    localized(localized).
    call(@request)

  ::Laximo::Respond::GetUnitInfo.new(resp)

end

#get_vehicle_info(catalog:, vehicle_id:, ssd:, localized: true, locale: ::Laximo.options.locale) ⇒ Object

find_vehicle_by_wizard2



178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'lib/laximo/oem.rb', line 178

def get_vehicle_info(
  catalog:,
  vehicle_id:,
  ssd:,
  localized:  true,
  locale:     ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('GetVehicleInfo').
    locale(locale).
    catalog(catalog).
    vehicle_id(vehicle_id).
    ssd(ssd).
    localized(localized).
    call(@request)

  ::Laximo::Respond::GetVehicleInfo.new(resp)

end

#get_wizard2(catalog:, ssd: nil, locale: ::Laximo.options.locale) ⇒ Object

find_vehicle



125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# File 'lib/laximo/oem.rb', line 125

def get_wizard2(
  catalog:,
  ssd:    nil,
  locale: ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('GetWizard2').
    locale(locale).
    catalog(catalog).
    ssd(ssd).
    call(@request)

  ::Laximo::Respond::GetWizard2.new(resp)

end

#get_wizard_next_step2(catalog:, ssd: nil, locale: ::Laximo.options.locale) ⇒ Object

get_wizard2



142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'lib/laximo/oem.rb', line 142

def get_wizard_next_step2(
  catalog:,
  ssd:    nil,
  locale: ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('GetWizardNextStep2').
    locale(locale).
    catalog(catalog).
    ssd(ssd).
    call(@request)

  ::Laximo::Respond::GetWizardNextStep2.new(resp)

end

#list_catalogs(ssd: nil, locale: ::Laximo.options.locale) ⇒ Object

initialize



15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/laximo/oem.rb', line 15

def list_catalogs(
  ssd:    nil,
  locale: ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('ListCatalogs').
    locale(locale).
    ssd(ssd).
    call(@request)

  ::Laximo::Respond::ListCatalogs.new(resp)

end

#list_categories(catalog:, vehicle_id:, ssd:, category_id: -1,, locale: ::Laximo.options.locale) ⇒ Object

list_units



241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
# File 'lib/laximo/oem.rb', line 241

def list_categories(
  catalog:,
  vehicle_id:,
  ssd:,
  category_id:  -1,
  locale:       ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('ListCategories').
    locale(locale).
    catalog(catalog).
    vehicle_id(vehicle_id).
    category_id(category_id).
    ssd(ssd).
    call(@request)

  ::Laximo::Respond::ListCategories.new(resp)

end

#list_detail_by_unit(catalog:, unit_id:, ssd:, localized: true, locale: ::Laximo.options.locale) ⇒ Object

get_unit_info



306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
# File 'lib/laximo/oem.rb', line 306

def list_detail_by_unit(
  catalog:,
  unit_id:,
  ssd:,
  localized:  true,
  locale:     ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('ListDetailByUnit').
    locale(locale).
    catalog(catalog).
    ssd(ssd).
    unit_id(unit_id).
    localized(localized).
    call(@request)

  ::Laximo::Respond::ListDetailByUnit.new(resp)

end

#list_image_map_by_unit(catalog:, unit_id:, ssd:) ⇒ Object

list_detail_by_unit



327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
# File 'lib/laximo/oem.rb', line 327

def list_image_map_by_unit(
  catalog:,
  unit_id:,
  ssd:
)

  resp = ::Laximo::Query.
    new('ListImageMapByUnit').
    catalog(catalog).
    ssd(ssd).
    unit_id(unit_id).
    call(@request)

  ::Laximo::Respond::ListImageMapByUnit.new(resp)

end

#list_quick_detail(catalog:, vehicle_id:, quick_group_id:, ssd:, all: 1, localized: true, locale: ::Laximo.options.locale) ⇒ Object

list_quick_group



386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
# File 'lib/laximo/oem.rb', line 386

def list_quick_detail(
  catalog:,
  vehicle_id:,
  quick_group_id:,
  ssd:,
  all:            1,
  localized:      true,
  locale:         ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('ListQuickDetail').
    locale(locale).
    catalog(catalog).
    vehicle_id(vehicle_id).
    quick_group_id(quick_group_id).
    all(all).
    ssd(ssd).
    localized(localized).
    call(@request)

  ::Laximo::Respond::ListQuickDetail.new(resp)

end

#list_quick_group(catalog:, vehicle_id:, ssd:, locale: ::Laximo.options.locale) ⇒ Object

get_filter_by_detail



367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
# File 'lib/laximo/oem.rb', line 367

def list_quick_group(
  catalog:,
  vehicle_id:,
  ssd:,
  locale:     ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('ListQuickGroup').
    locale(locale).
    catalog(catalog).
    vehicle_id(vehicle_id).
    ssd(ssd).
    call(@request)

  ::Laximo::Respond::ListQuickGroup.new(resp)

end

#list_units(catalog:, vehicle_id:, ssd:, category_id: -1,, localized: true, locale: ::Laximo.options.locale) ⇒ Object

exec_custom_operation



218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
# File 'lib/laximo/oem.rb', line 218

def list_units(
  catalog:,
  vehicle_id:,
  ssd:,
  category_id:  -1,
  localized:    true,
  locale:       ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('ListUnits').
    locale(locale).
    catalog(catalog).
    vehicle_id(vehicle_id).
    category_id(category_id).
    ssd(ssd).
    localized(localized).
    call(@request)

  ::Laximo::Respond::ListUnits.new(resp)

end