laximo 0.9.4 → 0.9.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c1fc3062561392376c3275c226adfb7ee0401bf456cfe172bff1fdc8daac561
4
- data.tar.gz: 9b6868df435ff71efe33f71499b8bd45e7e5b753004de425a85b2d11f244daac
3
+ metadata.gz: a7b275c01a545632882dc269b453fa94261d392d07524032ffe5a6c9cb65c97e
4
+ data.tar.gz: 480aded4d791a0cab47e89dae66d6939e678fe6ddc482e3f84b1095f55c26d31
5
5
  SHA512:
6
- metadata.gz: 896ce0cf07132767282e0399f5fe30e42de5a6ec0d2e6fe2b052515cb39969367ce548d59159fd4358d56281b7c432d857274e8de83ef3939094c7b2b32ec199
7
- data.tar.gz: 76f4b4cbb058ef560bdd3dfcd48d4e94192c9b70a7d1857c5ee7182c1f12164af6c1030835aa44223fd01459148dc8812dba3762feb0970f3b37500db52148fd
6
+ metadata.gz: 7fac628e25a6483dbbd11ca62844da28b9c5812e75e3d0b4b2ac7741da9d13a5f9e6a269c86e1b63983959cd01171a12271a4b693c86820233127f89a92d84a9
7
+ data.tar.gz: cbb8901fc928860da08d99c6e8685de3caf83bd619f6a0c365ad3ffe9effdadc768935625d9713dd9df83675f1a3741ba73e9a084a367425ecaff98c0c70a86c
data/README.md CHANGED
@@ -71,8 +71,11 @@ Laximo.options.locale 'ru_RU'
71
71
  * [Laximo.oem.list_quick_detail(catalog:, vehicle_id:, quick_group_id:, ssd:, all: 1, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListQuickDetail)
72
72
 
73
73
  ### Комбинированные методы web-сервиса [wsdemo.laximo](https://wsdemo.laximo.ru/)
74
- * `Laximo.oem.vehicle_with_list_categories_and_quick_groups(vehicle_id:, catalog:, ssd:, localized: true, locale: 'ru_RU')` Информация о каталоге, модификации, списке категорий и списке групп быстрого поиска деталей
75
- * [Laximo.oem.vehicle_with_list_categories(vehicle_id:, catalog:, ssd:, category_id: -1,localized: true, locale: 'ru_RU')](https://wsdemo.laximo.ru/index.php?task=qgroups&oem=&useApplicability=1&c=CFIAT84&vid=5182&ssd=$*KwHZ7fzGvYurq5yGiNj16YGVtbKs2tne3czfwZ-1joOPqt69zN_IipmehZi1g4Dy5uaq2dze29rd34KIldrY296ViYKD3cnSq97d3pWOjJbt08a0h4KCn4Kt3YvCxJmDm4mruZOK3NvJhY-ygoSq3NuKipHc2pOFj6rckd_Tzp-Crd3ZlICZwfyR3trc2d7a3d6CjJCVnIiEgomBiu3Sz6va2t3Z0tjai8LZjoufrNna3dYAAAAAeCpr2w$)
74
+ * `Laximo.oem.vehicle_with_list_categories_and_quick_groups(vehicle_id:, catalog:, ssd:, localized: true, locale: 'ru_RU')` Информация о каталоге, модификации, списке категорий и списке групп быстрого поиска деталей. Если у модификации нет групп быстрого поиска то, Laximo выдает ошибку.
75
+
76
+ * `Laximo.oem.vehicle_with_list_categories(vehicle_id:, catalog:, ssd:, category_id: -1,localized: true, locale: 'ru_RU')` Информация о каталоге, модификации, списке категорий
77
+
78
+ * [Laximo.oem.vehicle_with_list_categories_and_units(vehicle_id:, catalog:, ssd:, category_id: -1,localized: true, locale: 'ru_RU')](https://wsdemo.laximo.ru/index.php?task=qgroups&oem=&useApplicability=1&c=CFIAT84&vid=5182&ssd=$*KwHZ7fzGvYurq5yGiNj16YGVtbKs2tne3czfwZ-1joOPqt69zN_IipmehZi1g4Dy5uaq2dze29rd34KIldrY296ViYKD3cnSq97d3pWOjJbt08a0h4KCn4Kt3YvCxJmDm4mruZOK3NvJhY-ygoSq3NuKipHc2pOFj6rckd_Tzp-Crd3ZlICZwfyR3trc2d7a3d6CjJCVnIiEgomBiu3Sz6va2t3Z0tjai8LZjoufrNna3dYAAAAAeCpr2w$)
76
79
  * [Laximo.oem.vehicle_with_list_quick_groups(vehicle_id:, catalog:, ssd:, localized: true, locale: 'ru_RU')](https://wsdemo.laximo.ru/index.php?task=vehicle&c=CFIAT84&vid=5182&ssd=$*KwGFsaCa4df398Da1ISptd3J6e7whoWCgZCDncPp0t_T9oLhkIOU1sXC2cTp39yuurr2hYCCh4aBg97UyYaEh4LJ1d7fgZWO94KBgsnS0Mqxj5ro297ew97xgdeemMXfx9X35c_WgIeV2dPu3tj2gIfW1s2Ahs_Z0_aAzYOPksPe8YGFyNzFnaDNgoaAhYKGgYLe0MzJwNTY3tXd1rGOk_eGhoGFjoSG156F0tfD8IWGgYoAAAAAbHr5DQ$)
77
80
  * [Laximo.oem.vehicle_with_list_quick_detail(vehicle_id:, catalog:, ssd:, quick_group_id:, all: 1, localized: true, locale: 'ru_RU')](https://wsdemo.laximo.ru/index.php?task=qgroups&c=CFIAT84&vid=5182&ssd=$*KwEbLz4Ef0lpaV5ESho3K0NXd3BuGBscHw4dA113TEFNaBx_Dh0KSFtcR1p3QUIwJCRoGx4cGRgfHUBKVxgaGRxXS0BBHwsQaRwfHFdMTlQvEQR2RUBAXUBvH0kABltBWUtpe1FIHhkLR01wQEZoHhlISFMeGFFHTWgeUx0RDF1Abx8bVkJbAz5THBgeGxwYHxxATlJXXkpGQEtDSC8QDWkYGB8bEBoYSQAbTEldbhsYHxQAAAAAnyRrTQ$&gid=2)
78
81
  * [Laximo.oem.vehicle_with_list_details_by_unit(vehicle_id:, catalog:, ssd:, unit_id:,localized: true, locale: 'ru_RU')](https://wsdemo.laximo.ru/index.php?task=unit&c=CFIAT84&vid=5182&uid=38255&gid=2&cid=10301&ssd=$*KwEBNSQeZVNzc0ReUAAtMVlNbWp0AgEGBRQHGUdtVltXcgZlFAcQUkFGXUBtW1gqPj5yAQQGAwIFB1pQTQIAAwZNUVleCQwdcwJLV1xeWkIYJEwDAEtQUktqWAw7FVxcQVxzAAxJDhYRRVd1Z01XW1ADCh1sXFp0AgYNAVtTSE1VR0RsUVpTKlVIAExcUHMDS1oFCgxbcgQGTV9DRCpVTQMDAAEDAgQHWlQGQVdDXUBbWlkPJEhNQVJGQ21WWA4kSU1BUkdsUVpTKlQGR1NXWFZxWlMPJEkDAQUFHAIFSR8KEUd7UXQACgcCXxoOUkBcVV1GUHdZGg5WWlxXX1dqWQUkSAQDBwwGBwxJEwEZQXIHBAMLAAAAAGAPcDM$&coi=2&fromTask=qdetails)
@@ -467,6 +467,46 @@ module Laximo
467
467
  locale: ::Laximo.options.locale
468
468
  )
469
469
 
470
+ # Информация о каталоге
471
+ r1 = ::Laximo::Query.
472
+ new('GetCatalogInfo').
473
+ locale(locale).
474
+ catalog(catalog).
475
+ ssd(ssd)
476
+
477
+ # Информация по конкретному автомобилю (модификации)
478
+ r2 = ::Laximo::Query.
479
+ new('GetVehicleInfo').
480
+ locale(locale).
481
+ catalog(catalog).
482
+ vehicle_id(vehicle_id).
483
+ ssd(ssd).
484
+ localized(localized)
485
+
486
+ # Список категорий каталога
487
+ r3 = ::Laximo::Query.
488
+ new('ListCategories').
489
+ locale(locale).
490
+ catalog(catalog).
491
+ vehicle_id(vehicle_id).
492
+ category_id(category_id).
493
+ ssd(ssd)
494
+
495
+ ::Laximo::Respond::VehicleWithListCategories.new(
496
+ @request.call(r1, r2, r3)
497
+ )
498
+
499
+ end # vehicle_with_list_categories
500
+
501
+ def vehicle_with_list_categories_and_units(
502
+ vehicle_id:,
503
+ catalog:,
504
+ ssd:,
505
+ category_id: -1,
506
+ localized: true,
507
+ locale: ::Laximo.options.locale
508
+ )
509
+
470
510
  # Информация о каталоге
471
511
  r1 = ::Laximo::Query.
472
512
  new('GetCatalogInfo').
@@ -502,11 +542,11 @@ module Laximo
502
542
  ssd(ssd).
503
543
  localized(localized)
504
544
 
505
- ::Laximo::Respond::VehicleWithListCategories.new(
545
+ ::Laximo::Respond::VehicleWithListCategoriesAndUnits.new(
506
546
  @request.call(r1, r2, r3, r4)
507
547
  )
508
548
 
509
- end # vehicle_with_list_categories
549
+ end # vehicle_with_list_categories_and_units
510
550
 
511
551
  def vehicle_with_list_quick_groups(
512
552
  vehicle_id:,
@@ -11,8 +11,7 @@ module Laximo
11
11
 
12
12
  get_catalog_info: GetCatalogInfo.parsing_result(str),
13
13
  get_vehicle_info: GetVehicleInfo.parsing_result(str),
14
- list_categories: ListCategories.parsing_result(str),
15
- list_units: ListUnits.parsing_result(str)
14
+ list_categories: ListCategories.parsing_result(str)
16
15
 
17
16
  }
18
17
 
@@ -0,0 +1,25 @@
1
+ # encoding: utf-8
2
+ module Laximo
3
+
4
+ module Respond
5
+
6
+ class VehicleWithListCategoriesAndUnits < Laximo::Respond::Base
7
+
8
+ def self.parsing_result(str)
9
+
10
+ {
11
+
12
+ get_catalog_info: GetCatalogInfo.parsing_result(str),
13
+ get_vehicle_info: GetVehicleInfo.parsing_result(str),
14
+ list_categories: ListCategories.parsing_result(str),
15
+ list_units: ListUnits.parsing_result(str)
16
+
17
+ }
18
+
19
+ end
20
+
21
+ end # VehicleWithListCategoriesAndUnits
22
+
23
+ end # Respond
24
+
25
+ end # Laximo
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Laximo
3
3
 
4
- VERSION = '0.9.4'.freeze
4
+ VERSION = '0.9.5'.freeze
5
5
 
6
6
  end # Laximo
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: laximo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Pilyaev
@@ -73,6 +73,7 @@ files:
73
73
  - lib/laximo/respond/oem/list_units.rb
74
74
  - lib/laximo/respond/oem/vehicle_with_list_categories.rb
75
75
  - lib/laximo/respond/oem/vehicle_with_list_categories_and_quick_groups.rb
76
+ - lib/laximo/respond/oem/vehicle_with_list_categories_and_units.rb
76
77
  - lib/laximo/respond/oem/vehicle_with_list_details_by_unit.rb
77
78
  - lib/laximo/respond/oem/vehicle_with_list_quick_detail.rb
78
79
  - lib/laximo/respond/oem/vehicle_with_list_quick_groups.rb