Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. user = {'webu_id' => 345_472, 'salary' => 40_000,'date_of_birth' => '1990-01-01', 'postcode' => 'NW6 3EB' }
  2. ss=StockCarsService.new(user)
  3. ss = StockCarsService.new(current_user, current_user_access_token)
  4. ss.price(3854201, [210918])
  5.  
  6. ss.price(4090711, [225731,225184,222441])
  7. paint: 113402
  8. trim: 210906
  9.  
  10. additional: 84090
  11.  
  12.  
  13. vauxhall: 0146801
  14.  
  15. alfa stelvio: 4090711
  16. paint: 225731
  17. trim: 225184
  18. wheels: 222441
  19.  
  20.  
  21.  
  22. "47929,140755,140727"
  23.  
  24. args[:kee_option_ids].split(',').each_with_object([]) do |opt, ary|
  25. ary << Option.legacy_option_ids(@keecode, opt)
  26. end.flatten
  27.  
  28.  
  29. works on IronMan (taken from tests)
  30. Option.legacy_option_ids(3_704_131, 129267)
  31.  
  32. Proper kee_option_ids for keecode 3854201
  33. Option.legacy_option_ids(3854201, 210918)
  34. [18182,
  35. 33134,
  36. 39655,
  37. 70530,
  38. 113402,
  39. 113412,
  40. 158358,
  41. 201521,
  42. 203550,
  43. 210869,
  44. 210871,
  45. 210878,
  46. 210906,
  47. 210918,
  48. 210921,
  49. 211013,
  50. 211017,
  51. 218266,
  52. 18158,
  53. 20392,
  54. 28477,
  55. 33139,
  56. 33158,
  57. 38800,
  58. 75164,
  59. 84090,
  60. 84107,
  61. 84319,
  62. 84322,
  63. 113093,
  64. 113416,
  65. 134143]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement