gillbus 0.20.4 → 0.20.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03cea325bdc0673169050b2c46c8730917b1232f8e5e955b81e9f690cd5f46a7
4
- data.tar.gz: 360455b0ff582d0f802a7f8944ac6291e09df1be976ef9b45f4ab7ad5c743cc5
3
+ metadata.gz: 1e6d0492e4962f1e559b9b3b3edc09ee05bd3740551e9135d64ebbb29986cc40
4
+ data.tar.gz: 8185ef4de5b2e66519db4e6c52455ae0be39de9f56e1ef3c6701c1340ef580cc
5
5
  SHA512:
6
- metadata.gz: fe7a3326e8cd95c6f98551983d3e635fc67c08fec4b4d4145141d999fb0cc998c3fc33584bcf6a360a6c7831da290e16c5f8addc8233c26fa053262dfa041973
7
- data.tar.gz: b0d4f225aa648a61664c9912497f9d466967b9455b4fc2c1bd124e9c7a9987535212781ef2afb227340ca6ff8f7645b457bd52c88e9695fd7fe36957299380e8
6
+ metadata.gz: 71a59c75be5d853c4df9cc295be931c0ac44f335dcb482e37229184392bce0840797e2535703ef2f8b2325c79f6fb32a40649636eb1f3b13df73ae6526e42e39
7
+ data.tar.gz: deda268319a55c2a3d7cfa6cb48ddc8351ee58593521fc2231d0087077c0f6939aca6c87ffd34d9e87d56ec07ceeb301f68a656916645bfe837ff1416da61101
@@ -38,6 +38,7 @@ class Gillbus
38
38
  SEGMENT_REGEX = /SEGMENT_(?<number>\d+)_SEAT/
39
39
 
40
40
  field :seats, [Seat], key: 'SEAT'
41
+ field :back_seats, [Seat], key: 'BACK_SEAT' # для round_trip offers
41
42
 
42
43
  field :segments, :segments, key: SEGMENT_REGEX
43
44
 
@@ -1,3 +1,3 @@
1
1
  class Gillbus
2
- VERSION = '0.20.4'.freeze
2
+ VERSION = '0.20.5'.freeze
3
3
  end
@@ -13,6 +13,10 @@ class GetTripSeatsTest < Minitest::Test
13
13
  Gillbus::GetTripSeats::Response.parse_string(File.read('test/responses/getTripSeats-one-empty-segment.xml'))
14
14
  end
15
15
 
16
+ def get_trip_seats_with_back_seats
17
+ Gillbus::GetTripSeats::Response.parse_string(File.read('test/responses/getTripSeats-back-seats.xml'))
18
+ end
19
+
16
20
  def test_seats
17
21
  seats = get_trip_seats.seats
18
22
  max_x = seats.map(&:x).max
@@ -36,4 +40,18 @@ class GetTripSeatsTest < Minitest::Test
36
40
  assert [], segments[0]
37
41
  assert_equal 80, segments[1].size
38
42
  end
43
+
44
+ def test_seats_with_back_seats
45
+ response = get_trip_seats_with_back_seats
46
+
47
+ assert_equal true, response.seats.count > 0
48
+ assert_equal true, response.back_seats.count > 0
49
+
50
+ back_seat = response.back_seats.first
51
+ assert_equal '4925214118', back_seat.id
52
+ assert_equal 'В1', back_seat.number
53
+ assert_equal 2, back_seat.type
54
+ assert_equal 0, back_seat.x
55
+ assert_equal 0, back_seat.y
56
+ end
39
57
  end
@@ -0,0 +1,1192 @@
1
+ <DATA>
2
+ <SEAT>
3
+ <ID>4924671827</ID>
4
+ <NUMBER>В1</NUMBER>
5
+ <TYPE>2</TYPE>
6
+ <X>0</X>
7
+ <Y>0</Y>
8
+ </SEAT>
9
+ <SEAT>
10
+ <ID>4924671813</ID>
11
+ <NUMBER>4</NUMBER>
12
+ <TYPE>6</TYPE>
13
+ <X>1</X>
14
+ <Y>0</Y>
15
+ </SEAT>
16
+ <SEAT>
17
+ <ID>4924671801</ID>
18
+ <NUMBER>8</NUMBER>
19
+ <TYPE>3</TYPE>
20
+ <X>2</X>
21
+ <Y>0</Y>
22
+ </SEAT>
23
+ <SEAT>
24
+ <ID>4924671779</ID>
25
+ <NUMBER>12</NUMBER>
26
+ <TYPE>6</TYPE>
27
+ <X>3</X>
28
+ <Y>0</Y>
29
+ </SEAT>
30
+ <SEAT>
31
+ <ID>4924671833</ID>
32
+ <NUMBER>16</NUMBER>
33
+ <TYPE>6</TYPE>
34
+ <X>4</X>
35
+ <Y>0</Y>
36
+ </SEAT>
37
+ <SEAT>
38
+ <ID>4924671772</ID>
39
+ <NUMBER>20</NUMBER>
40
+ <TYPE>6</TYPE>
41
+ <X>5</X>
42
+ <Y>0</Y>
43
+ </SEAT>
44
+ <SEAT>
45
+ <ID>4924671785</ID>
46
+ <NUMBER/>
47
+ <TYPE>0</TYPE>
48
+ <X>6</X>
49
+ <Y>0</Y>
50
+ </SEAT>
51
+ <SEAT>
52
+ <ID>4924671825</ID>
53
+ <NUMBER>В2</NUMBER>
54
+ <TYPE>2</TYPE>
55
+ <X>7</X>
56
+ <Y>0</Y>
57
+ </SEAT>
58
+ <SEAT>
59
+ <ID>4924671812</ID>
60
+ <NUMBER>28</NUMBER>
61
+ <TYPE>6</TYPE>
62
+ <X>8</X>
63
+ <Y>0</Y>
64
+ </SEAT>
65
+ <SEAT>
66
+ <ID>4924671790</ID>
67
+ <NUMBER>32</NUMBER>
68
+ <TYPE>6</TYPE>
69
+ <X>9</X>
70
+ <Y>0</Y>
71
+ </SEAT>
72
+ <SEAT>
73
+ <ID>4924671787</ID>
74
+ <NUMBER>36</NUMBER>
75
+ <TYPE>6</TYPE>
76
+ <X>10</X>
77
+ <Y>0</Y>
78
+ </SEAT>
79
+ <SEAT>
80
+ <ID>4924671767</ID>
81
+ <NUMBER>40</NUMBER>
82
+ <TYPE>6</TYPE>
83
+ <X>11</X>
84
+ <Y>0</Y>
85
+ </SEAT>
86
+ <SEAT>
87
+ <ID>4924671771</ID>
88
+ <NUMBER>44</NUMBER>
89
+ <TYPE>3</TYPE>
90
+ <X>12</X>
91
+ <Y>0</Y>
92
+ </SEAT>
93
+ <SEAT>
94
+ <ID>4924671844</ID>
95
+ <NUMBER>48</NUMBER>
96
+ <TYPE>6</TYPE>
97
+ <X>13</X>
98
+ <Y>0</Y>
99
+ </SEAT>
100
+ <SEAT>
101
+ <ID>4924671800</ID>
102
+ <NUMBER>52</NUMBER>
103
+ <TYPE>3</TYPE>
104
+ <X>14</X>
105
+ <Y>0</Y>
106
+ </SEAT>
107
+ <SEAT>
108
+ <ID>4924671784</ID>
109
+ <NUMBER>56</NUMBER>
110
+ <TYPE>3</TYPE>
111
+ <X>15</X>
112
+ <Y>0</Y>
113
+ </SEAT>
114
+ <SEAT>
115
+ <ID>4924671814</ID>
116
+ <NUMBER>61</NUMBER>
117
+ <TYPE>6</TYPE>
118
+ <X>16</X>
119
+ <Y>0</Y>
120
+ </SEAT>
121
+ <SEAT>
122
+ <ID>4924671841</ID>
123
+ <NUMBER/>
124
+ <TYPE>0</TYPE>
125
+ <X>0</X>
126
+ <Y>1</Y>
127
+ </SEAT>
128
+ <SEAT>
129
+ <ID>4924671774</ID>
130
+ <NUMBER>3</NUMBER>
131
+ <TYPE>6</TYPE>
132
+ <X>1</X>
133
+ <Y>1</Y>
134
+ </SEAT>
135
+ <SEAT>
136
+ <ID>4924671795</ID>
137
+ <NUMBER>7</NUMBER>
138
+ <TYPE>3</TYPE>
139
+ <X>2</X>
140
+ <Y>1</Y>
141
+ </SEAT>
142
+ <SEAT>
143
+ <ID>4924671822</ID>
144
+ <NUMBER>11</NUMBER>
145
+ <TYPE>6</TYPE>
146
+ <X>3</X>
147
+ <Y>1</Y>
148
+ </SEAT>
149
+ <SEAT>
150
+ <ID>4924671820</ID>
151
+ <NUMBER>15</NUMBER>
152
+ <TYPE>6</TYPE>
153
+ <X>4</X>
154
+ <Y>1</Y>
155
+ </SEAT>
156
+ <SEAT>
157
+ <ID>4924671807</ID>
158
+ <NUMBER>19</NUMBER>
159
+ <TYPE>6</TYPE>
160
+ <X>5</X>
161
+ <Y>1</Y>
162
+ </SEAT>
163
+ <SEAT>
164
+ <ID>4924671791</ID>
165
+ <NUMBER/>
166
+ <TYPE>0</TYPE>
167
+ <X>6</X>
168
+ <Y>1</Y>
169
+ </SEAT>
170
+ <SEAT>
171
+ <ID>4924671842</ID>
172
+ <NUMBER/>
173
+ <TYPE>0</TYPE>
174
+ <X>7</X>
175
+ <Y>1</Y>
176
+ </SEAT>
177
+ <SEAT>
178
+ <ID>4924671776</ID>
179
+ <NUMBER>27</NUMBER>
180
+ <TYPE>6</TYPE>
181
+ <X>8</X>
182
+ <Y>1</Y>
183
+ </SEAT>
184
+ <SEAT>
185
+ <ID>4924671792</ID>
186
+ <NUMBER>31</NUMBER>
187
+ <TYPE>6</TYPE>
188
+ <X>9</X>
189
+ <Y>1</Y>
190
+ </SEAT>
191
+ <SEAT>
192
+ <ID>4924671823</ID>
193
+ <NUMBER>35</NUMBER>
194
+ <TYPE>6</TYPE>
195
+ <X>10</X>
196
+ <Y>1</Y>
197
+ </SEAT>
198
+ <SEAT>
199
+ <ID>4924671806</ID>
200
+ <NUMBER>39</NUMBER>
201
+ <TYPE>6</TYPE>
202
+ <X>11</X>
203
+ <Y>1</Y>
204
+ </SEAT>
205
+ <SEAT>
206
+ <ID>4924671837</ID>
207
+ <NUMBER>43</NUMBER>
208
+ <TYPE>3</TYPE>
209
+ <X>12</X>
210
+ <Y>1</Y>
211
+ </SEAT>
212
+ <SEAT>
213
+ <ID>4924671829</ID>
214
+ <NUMBER>47</NUMBER>
215
+ <TYPE>6</TYPE>
216
+ <X>13</X>
217
+ <Y>1</Y>
218
+ </SEAT>
219
+ <SEAT>
220
+ <ID>4924671781</ID>
221
+ <NUMBER>51</NUMBER>
222
+ <TYPE>3</TYPE>
223
+ <X>14</X>
224
+ <Y>1</Y>
225
+ </SEAT>
226
+ <SEAT>
227
+ <ID>4924671797</ID>
228
+ <NUMBER>55</NUMBER>
229
+ <TYPE>3</TYPE>
230
+ <X>15</X>
231
+ <Y>1</Y>
232
+ </SEAT>
233
+ <SEAT>
234
+ <ID>4924671803</ID>
235
+ <NUMBER>60</NUMBER>
236
+ <TYPE>6</TYPE>
237
+ <X>16</X>
238
+ <Y>1</Y>
239
+ </SEAT>
240
+ <SEAT>
241
+ <ID>4924671830</ID>
242
+ <NUMBER/>
243
+ <TYPE>0</TYPE>
244
+ <X>0</X>
245
+ <Y>2</Y>
246
+ </SEAT>
247
+ <SEAT>
248
+ <ID>4924671824</ID>
249
+ <NUMBER/>
250
+ <TYPE>0</TYPE>
251
+ <X>1</X>
252
+ <Y>2</Y>
253
+ </SEAT>
254
+ <SEAT>
255
+ <ID>4924671796</ID>
256
+ <NUMBER/>
257
+ <TYPE>0</TYPE>
258
+ <X>2</X>
259
+ <Y>2</Y>
260
+ </SEAT>
261
+ <SEAT>
262
+ <ID>4924671847</ID>
263
+ <NUMBER/>
264
+ <TYPE>0</TYPE>
265
+ <X>3</X>
266
+ <Y>2</Y>
267
+ </SEAT>
268
+ <SEAT>
269
+ <ID>4924671769</ID>
270
+ <NUMBER/>
271
+ <TYPE>0</TYPE>
272
+ <X>4</X>
273
+ <Y>2</Y>
274
+ </SEAT>
275
+ <SEAT>
276
+ <ID>4924671811</ID>
277
+ <NUMBER/>
278
+ <TYPE>0</TYPE>
279
+ <X>5</X>
280
+ <Y>2</Y>
281
+ </SEAT>
282
+ <SEAT>
283
+ <ID>4924671818</ID>
284
+ <NUMBER/>
285
+ <TYPE>0</TYPE>
286
+ <X>6</X>
287
+ <Y>2</Y>
288
+ </SEAT>
289
+ <SEAT>
290
+ <ID>4924671768</ID>
291
+ <NUMBER/>
292
+ <TYPE>0</TYPE>
293
+ <X>7</X>
294
+ <Y>2</Y>
295
+ </SEAT>
296
+ <SEAT>
297
+ <ID>4924671794</ID>
298
+ <NUMBER/>
299
+ <TYPE>0</TYPE>
300
+ <X>8</X>
301
+ <Y>2</Y>
302
+ </SEAT>
303
+ <SEAT>
304
+ <ID>4924671845</ID>
305
+ <NUMBER/>
306
+ <TYPE>0</TYPE>
307
+ <X>9</X>
308
+ <Y>2</Y>
309
+ </SEAT>
310
+ <SEAT>
311
+ <ID>4924671799</ID>
312
+ <NUMBER/>
313
+ <TYPE>0</TYPE>
314
+ <X>10</X>
315
+ <Y>2</Y>
316
+ </SEAT>
317
+ <SEAT>
318
+ <ID>4924671819</ID>
319
+ <NUMBER/>
320
+ <TYPE>0</TYPE>
321
+ <X>11</X>
322
+ <Y>2</Y>
323
+ </SEAT>
324
+ <SEAT>
325
+ <ID>4924671831</ID>
326
+ <NUMBER/>
327
+ <TYPE>0</TYPE>
328
+ <X>12</X>
329
+ <Y>2</Y>
330
+ </SEAT>
331
+ <SEAT>
332
+ <ID>4924671809</ID>
333
+ <NUMBER/>
334
+ <TYPE>0</TYPE>
335
+ <X>13</X>
336
+ <Y>2</Y>
337
+ </SEAT>
338
+ <SEAT>
339
+ <ID>4924671828</ID>
340
+ <NUMBER/>
341
+ <TYPE>0</TYPE>
342
+ <X>14</X>
343
+ <Y>2</Y>
344
+ </SEAT>
345
+ <SEAT>
346
+ <ID>4924671815</ID>
347
+ <NUMBER/>
348
+ <TYPE>0</TYPE>
349
+ <X>15</X>
350
+ <Y>2</Y>
351
+ </SEAT>
352
+ <SEAT>
353
+ <ID>4924671848</ID>
354
+ <NUMBER>59</NUMBER>
355
+ <TYPE>3</TYPE>
356
+ <X>16</X>
357
+ <Y>2</Y>
358
+ </SEAT>
359
+ <SEAT>
360
+ <ID>4924671834</ID>
361
+ <NUMBER/>
362
+ <TYPE>0</TYPE>
363
+ <X>0</X>
364
+ <Y>3</Y>
365
+ </SEAT>
366
+ <SEAT>
367
+ <ID>4924671789</ID>
368
+ <NUMBER>2</NUMBER>
369
+ <TYPE>6</TYPE>
370
+ <X>1</X>
371
+ <Y>3</Y>
372
+ </SEAT>
373
+ <SEAT>
374
+ <ID>4924671765</ID>
375
+ <NUMBER>6</NUMBER>
376
+ <TYPE>3</TYPE>
377
+ <X>2</X>
378
+ <Y>3</Y>
379
+ </SEAT>
380
+ <SEAT>
381
+ <ID>4924671817</ID>
382
+ <NUMBER>10</NUMBER>
383
+ <TYPE>3</TYPE>
384
+ <X>3</X>
385
+ <Y>3</Y>
386
+ </SEAT>
387
+ <SEAT>
388
+ <ID>4924671798</ID>
389
+ <NUMBER>14</NUMBER>
390
+ <TYPE>6</TYPE>
391
+ <X>4</X>
392
+ <Y>3</Y>
393
+ </SEAT>
394
+ <SEAT>
395
+ <ID>4924671816</ID>
396
+ <NUMBER>18</NUMBER>
397
+ <TYPE>6</TYPE>
398
+ <X>5</X>
399
+ <Y>3</Y>
400
+ </SEAT>
401
+ <SEAT>
402
+ <ID>4924671786</ID>
403
+ <NUMBER>22</NUMBER>
404
+ <TYPE>6</TYPE>
405
+ <X>6</X>
406
+ <Y>3</Y>
407
+ </SEAT>
408
+ <SEAT>
409
+ <ID>4924671773</ID>
410
+ <NUMBER>24</NUMBER>
411
+ <TYPE>6</TYPE>
412
+ <X>7</X>
413
+ <Y>3</Y>
414
+ </SEAT>
415
+ <SEAT>
416
+ <ID>4924671777</ID>
417
+ <NUMBER>26</NUMBER>
418
+ <TYPE>6</TYPE>
419
+ <X>8</X>
420
+ <Y>3</Y>
421
+ </SEAT>
422
+ <SEAT>
423
+ <ID>4924671783</ID>
424
+ <NUMBER>30</NUMBER>
425
+ <TYPE>6</TYPE>
426
+ <X>9</X>
427
+ <Y>3</Y>
428
+ </SEAT>
429
+ <SEAT>
430
+ <ID>4924671782</ID>
431
+ <NUMBER>34</NUMBER>
432
+ <TYPE>6</TYPE>
433
+ <X>10</X>
434
+ <Y>3</Y>
435
+ </SEAT>
436
+ <SEAT>
437
+ <ID>4924671780</ID>
438
+ <NUMBER>38</NUMBER>
439
+ <TYPE>6</TYPE>
440
+ <X>11</X>
441
+ <Y>3</Y>
442
+ </SEAT>
443
+ <SEAT>
444
+ <ID>4924671770</ID>
445
+ <NUMBER>42</NUMBER>
446
+ <TYPE>5</TYPE>
447
+ <X>12</X>
448
+ <Y>3</Y>
449
+ </SEAT>
450
+ <SEAT>
451
+ <ID>4924671839</ID>
452
+ <NUMBER>46</NUMBER>
453
+ <TYPE>6</TYPE>
454
+ <X>13</X>
455
+ <Y>3</Y>
456
+ </SEAT>
457
+ <SEAT>
458
+ <ID>4924671832</ID>
459
+ <NUMBER>50</NUMBER>
460
+ <TYPE>6</TYPE>
461
+ <X>14</X>
462
+ <Y>3</Y>
463
+ </SEAT>
464
+ <SEAT>
465
+ <ID>4924671778</ID>
466
+ <NUMBER>54</NUMBER>
467
+ <TYPE>3</TYPE>
468
+ <X>15</X>
469
+ <Y>3</Y>
470
+ </SEAT>
471
+ <SEAT>
472
+ <ID>4924671775</ID>
473
+ <NUMBER>58</NUMBER>
474
+ <TYPE>3</TYPE>
475
+ <X>16</X>
476
+ <Y>3</Y>
477
+ </SEAT>
478
+ <SEAT>
479
+ <ID>4924671849</ID>
480
+ <NUMBER>ВД</NUMBER>
481
+ <TYPE>2</TYPE>
482
+ <X>0</X>
483
+ <Y>4</Y>
484
+ </SEAT>
485
+ <SEAT>
486
+ <ID>4924671805</ID>
487
+ <NUMBER>1</NUMBER>
488
+ <TYPE>6</TYPE>
489
+ <X>1</X>
490
+ <Y>4</Y>
491
+ </SEAT>
492
+ <SEAT>
493
+ <ID>4924671826</ID>
494
+ <NUMBER>5</NUMBER>
495
+ <TYPE>3</TYPE>
496
+ <X>2</X>
497
+ <Y>4</Y>
498
+ </SEAT>
499
+ <SEAT>
500
+ <ID>4924671793</ID>
501
+ <NUMBER>9</NUMBER>
502
+ <TYPE>3</TYPE>
503
+ <X>3</X>
504
+ <Y>4</Y>
505
+ </SEAT>
506
+ <SEAT>
507
+ <ID>4924671810</ID>
508
+ <NUMBER>13</NUMBER>
509
+ <TYPE>6</TYPE>
510
+ <X>4</X>
511
+ <Y>4</Y>
512
+ </SEAT>
513
+ <SEAT>
514
+ <ID>4924671804</ID>
515
+ <NUMBER>17</NUMBER>
516
+ <TYPE>6</TYPE>
517
+ <X>5</X>
518
+ <Y>4</Y>
519
+ </SEAT>
520
+ <SEAT>
521
+ <ID>4924671836</ID>
522
+ <NUMBER>21</NUMBER>
523
+ <TYPE>6</TYPE>
524
+ <X>6</X>
525
+ <Y>4</Y>
526
+ </SEAT>
527
+ <SEAT>
528
+ <ID>4924671840</ID>
529
+ <NUMBER>23</NUMBER>
530
+ <TYPE>6</TYPE>
531
+ <X>7</X>
532
+ <Y>4</Y>
533
+ </SEAT>
534
+ <SEAT>
535
+ <ID>4924671766</ID>
536
+ <NUMBER>25</NUMBER>
537
+ <TYPE>6</TYPE>
538
+ <X>8</X>
539
+ <Y>4</Y>
540
+ </SEAT>
541
+ <SEAT>
542
+ <ID>4924671808</ID>
543
+ <NUMBER>29</NUMBER>
544
+ <TYPE>6</TYPE>
545
+ <X>9</X>
546
+ <Y>4</Y>
547
+ </SEAT>
548
+ <SEAT>
549
+ <ID>4924671788</ID>
550
+ <NUMBER>33</NUMBER>
551
+ <TYPE>6</TYPE>
552
+ <X>10</X>
553
+ <Y>4</Y>
554
+ </SEAT>
555
+ <SEAT>
556
+ <ID>4924671802</ID>
557
+ <NUMBER>37</NUMBER>
558
+ <TYPE>6</TYPE>
559
+ <X>11</X>
560
+ <Y>4</Y>
561
+ </SEAT>
562
+ <SEAT>
563
+ <ID>4924671835</ID>
564
+ <NUMBER>41</NUMBER>
565
+ <TYPE>3</TYPE>
566
+ <X>12</X>
567
+ <Y>4</Y>
568
+ </SEAT>
569
+ <SEAT>
570
+ <ID>4924671821</ID>
571
+ <NUMBER>45</NUMBER>
572
+ <TYPE>3</TYPE>
573
+ <X>13</X>
574
+ <Y>4</Y>
575
+ </SEAT>
576
+ <SEAT>
577
+ <ID>4924671838</ID>
578
+ <NUMBER>49</NUMBER>
579
+ <TYPE>6</TYPE>
580
+ <X>14</X>
581
+ <Y>4</Y>
582
+ </SEAT>
583
+ <SEAT>
584
+ <ID>4924671846</ID>
585
+ <NUMBER>53</NUMBER>
586
+ <TYPE>3</TYPE>
587
+ <X>15</X>
588
+ <Y>4</Y>
589
+ </SEAT>
590
+ <SEAT>
591
+ <ID>4924671843</ID>
592
+ <NUMBER>57</NUMBER>
593
+ <TYPE>3</TYPE>
594
+ <X>16</X>
595
+ <Y>4</Y>
596
+ </SEAT>
597
+ <BACK_SEAT>
598
+ <ID>4925214118</ID>
599
+ <NUMBER>В1</NUMBER>
600
+ <TYPE>2</TYPE>
601
+ <X>0</X>
602
+ <Y>0</Y>
603
+ </BACK_SEAT>
604
+ <BACK_SEAT>
605
+ <ID>4925214138</ID>
606
+ <NUMBER>4</NUMBER>
607
+ <TYPE>6</TYPE>
608
+ <X>1</X>
609
+ <Y>0</Y>
610
+ </BACK_SEAT>
611
+ <BACK_SEAT>
612
+ <ID>4925214149</ID>
613
+ <NUMBER>8</NUMBER>
614
+ <TYPE>6</TYPE>
615
+ <X>2</X>
616
+ <Y>0</Y>
617
+ </BACK_SEAT>
618
+ <BACK_SEAT>
619
+ <ID>4925214189</ID>
620
+ <NUMBER>12</NUMBER>
621
+ <TYPE>6</TYPE>
622
+ <X>3</X>
623
+ <Y>0</Y>
624
+ </BACK_SEAT>
625
+ <BACK_SEAT>
626
+ <ID>4925214186</ID>
627
+ <NUMBER>16</NUMBER>
628
+ <TYPE>5</TYPE>
629
+ <X>4</X>
630
+ <Y>0</Y>
631
+ </BACK_SEAT>
632
+ <BACK_SEAT>
633
+ <ID>4925214123</ID>
634
+ <NUMBER>20</NUMBER>
635
+ <TYPE>3</TYPE>
636
+ <X>5</X>
637
+ <Y>0</Y>
638
+ </BACK_SEAT>
639
+ <BACK_SEAT>
640
+ <ID>4925214152</ID>
641
+ <NUMBER/>
642
+ <TYPE>0</TYPE>
643
+ <X>6</X>
644
+ <Y>0</Y>
645
+ </BACK_SEAT>
646
+ <BACK_SEAT>
647
+ <ID>4925214165</ID>
648
+ <NUMBER>В2</NUMBER>
649
+ <TYPE>2</TYPE>
650
+ <X>7</X>
651
+ <Y>0</Y>
652
+ </BACK_SEAT>
653
+ <BACK_SEAT>
654
+ <ID>4925214164</ID>
655
+ <NUMBER>28</NUMBER>
656
+ <TYPE>3</TYPE>
657
+ <X>8</X>
658
+ <Y>0</Y>
659
+ </BACK_SEAT>
660
+ <BACK_SEAT>
661
+ <ID>4925214182</ID>
662
+ <NUMBER>32</NUMBER>
663
+ <TYPE>3</TYPE>
664
+ <X>9</X>
665
+ <Y>0</Y>
666
+ </BACK_SEAT>
667
+ <BACK_SEAT>
668
+ <ID>4925214188</ID>
669
+ <NUMBER>36</NUMBER>
670
+ <TYPE>3</TYPE>
671
+ <X>10</X>
672
+ <Y>0</Y>
673
+ </BACK_SEAT>
674
+ <BACK_SEAT>
675
+ <ID>4925214185</ID>
676
+ <NUMBER>40</NUMBER>
677
+ <TYPE>6</TYPE>
678
+ <X>11</X>
679
+ <Y>0</Y>
680
+ </BACK_SEAT>
681
+ <BACK_SEAT>
682
+ <ID>4925214159</ID>
683
+ <NUMBER>44</NUMBER>
684
+ <TYPE>6</TYPE>
685
+ <X>12</X>
686
+ <Y>0</Y>
687
+ </BACK_SEAT>
688
+ <BACK_SEAT>
689
+ <ID>4925214160</ID>
690
+ <NUMBER>48</NUMBER>
691
+ <TYPE>6</TYPE>
692
+ <X>13</X>
693
+ <Y>0</Y>
694
+ </BACK_SEAT>
695
+ <BACK_SEAT>
696
+ <ID>4925214115</ID>
697
+ <NUMBER>52</NUMBER>
698
+ <TYPE>6</TYPE>
699
+ <X>14</X>
700
+ <Y>0</Y>
701
+ </BACK_SEAT>
702
+ <BACK_SEAT>
703
+ <ID>4925214139</ID>
704
+ <NUMBER>56</NUMBER>
705
+ <TYPE>6</TYPE>
706
+ <X>15</X>
707
+ <Y>0</Y>
708
+ </BACK_SEAT>
709
+ <BACK_SEAT>
710
+ <ID>4925214150</ID>
711
+ <NUMBER>61</NUMBER>
712
+ <TYPE>6</TYPE>
713
+ <X>16</X>
714
+ <Y>0</Y>
715
+ </BACK_SEAT>
716
+ <BACK_SEAT>
717
+ <ID>4925214168</ID>
718
+ <NUMBER/>
719
+ <TYPE>0</TYPE>
720
+ <X>0</X>
721
+ <Y>1</Y>
722
+ </BACK_SEAT>
723
+ <BACK_SEAT>
724
+ <ID>4925214169</ID>
725
+ <NUMBER>3</NUMBER>
726
+ <TYPE>6</TYPE>
727
+ <X>1</X>
728
+ <Y>1</Y>
729
+ </BACK_SEAT>
730
+ <BACK_SEAT>
731
+ <ID>4925214117</ID>
732
+ <NUMBER>7</NUMBER>
733
+ <TYPE>6</TYPE>
734
+ <X>2</X>
735
+ <Y>1</Y>
736
+ </BACK_SEAT>
737
+ <BACK_SEAT>
738
+ <ID>4925214141</ID>
739
+ <NUMBER>11</NUMBER>
740
+ <TYPE>6</TYPE>
741
+ <X>3</X>
742
+ <Y>1</Y>
743
+ </BACK_SEAT>
744
+ <BACK_SEAT>
745
+ <ID>4925214109</ID>
746
+ <NUMBER>15</NUMBER>
747
+ <TYPE>3</TYPE>
748
+ <X>4</X>
749
+ <Y>1</Y>
750
+ </BACK_SEAT>
751
+ <BACK_SEAT>
752
+ <ID>4925214162</ID>
753
+ <NUMBER>19</NUMBER>
754
+ <TYPE>3</TYPE>
755
+ <X>5</X>
756
+ <Y>1</Y>
757
+ </BACK_SEAT>
758
+ <BACK_SEAT>
759
+ <ID>4925214140</ID>
760
+ <NUMBER/>
761
+ <TYPE>0</TYPE>
762
+ <X>6</X>
763
+ <Y>1</Y>
764
+ </BACK_SEAT>
765
+ <BACK_SEAT>
766
+ <ID>4925214157</ID>
767
+ <NUMBER/>
768
+ <TYPE>0</TYPE>
769
+ <X>7</X>
770
+ <Y>1</Y>
771
+ </BACK_SEAT>
772
+ <BACK_SEAT>
773
+ <ID>4925214171</ID>
774
+ <NUMBER>27</NUMBER>
775
+ <TYPE>3</TYPE>
776
+ <X>8</X>
777
+ <Y>1</Y>
778
+ </BACK_SEAT>
779
+ <BACK_SEAT>
780
+ <ID>4925214155</ID>
781
+ <NUMBER>31</NUMBER>
782
+ <TYPE>3</TYPE>
783
+ <X>9</X>
784
+ <Y>1</Y>
785
+ </BACK_SEAT>
786
+ <BACK_SEAT>
787
+ <ID>4925214142</ID>
788
+ <NUMBER>35</NUMBER>
789
+ <TYPE>3</TYPE>
790
+ <X>10</X>
791
+ <Y>1</Y>
792
+ </BACK_SEAT>
793
+ <BACK_SEAT>
794
+ <ID>4925214134</ID>
795
+ <NUMBER>39</NUMBER>
796
+ <TYPE>6</TYPE>
797
+ <X>11</X>
798
+ <Y>1</Y>
799
+ </BACK_SEAT>
800
+ <BACK_SEAT>
801
+ <ID>4925214177</ID>
802
+ <NUMBER>43</NUMBER>
803
+ <TYPE>6</TYPE>
804
+ <X>12</X>
805
+ <Y>1</Y>
806
+ </BACK_SEAT>
807
+ <BACK_SEAT>
808
+ <ID>4925214167</ID>
809
+ <NUMBER>47</NUMBER>
810
+ <TYPE>6</TYPE>
811
+ <X>13</X>
812
+ <Y>1</Y>
813
+ </BACK_SEAT>
814
+ <BACK_SEAT>
815
+ <ID>4925214128</ID>
816
+ <NUMBER>51</NUMBER>
817
+ <TYPE>6</TYPE>
818
+ <X>14</X>
819
+ <Y>1</Y>
820
+ </BACK_SEAT>
821
+ <BACK_SEAT>
822
+ <ID>4925214122</ID>
823
+ <NUMBER>55</NUMBER>
824
+ <TYPE>6</TYPE>
825
+ <X>15</X>
826
+ <Y>1</Y>
827
+ </BACK_SEAT>
828
+ <BACK_SEAT>
829
+ <ID>4925214137</ID>
830
+ <NUMBER>60</NUMBER>
831
+ <TYPE>6</TYPE>
832
+ <X>16</X>
833
+ <Y>1</Y>
834
+ </BACK_SEAT>
835
+ <BACK_SEAT>
836
+ <ID>4925214143</ID>
837
+ <NUMBER/>
838
+ <TYPE>0</TYPE>
839
+ <X>0</X>
840
+ <Y>2</Y>
841
+ </BACK_SEAT>
842
+ <BACK_SEAT>
843
+ <ID>4925214145</ID>
844
+ <NUMBER/>
845
+ <TYPE>0</TYPE>
846
+ <X>1</X>
847
+ <Y>2</Y>
848
+ </BACK_SEAT>
849
+ <BACK_SEAT>
850
+ <ID>4925214193</ID>
851
+ <NUMBER/>
852
+ <TYPE>0</TYPE>
853
+ <X>2</X>
854
+ <Y>2</Y>
855
+ </BACK_SEAT>
856
+ <BACK_SEAT>
857
+ <ID>4925214114</ID>
858
+ <NUMBER/>
859
+ <TYPE>0</TYPE>
860
+ <X>3</X>
861
+ <Y>2</Y>
862
+ </BACK_SEAT>
863
+ <BACK_SEAT>
864
+ <ID>4925214126</ID>
865
+ <NUMBER/>
866
+ <TYPE>0</TYPE>
867
+ <X>4</X>
868
+ <Y>2</Y>
869
+ </BACK_SEAT>
870
+ <BACK_SEAT>
871
+ <ID>4925214187</ID>
872
+ <NUMBER/>
873
+ <TYPE>0</TYPE>
874
+ <X>5</X>
875
+ <Y>2</Y>
876
+ </BACK_SEAT>
877
+ <BACK_SEAT>
878
+ <ID>4925214180</ID>
879
+ <NUMBER/>
880
+ <TYPE>0</TYPE>
881
+ <X>6</X>
882
+ <Y>2</Y>
883
+ </BACK_SEAT>
884
+ <BACK_SEAT>
885
+ <ID>4925214191</ID>
886
+ <NUMBER/>
887
+ <TYPE>0</TYPE>
888
+ <X>7</X>
889
+ <Y>2</Y>
890
+ </BACK_SEAT>
891
+ <BACK_SEAT>
892
+ <ID>4925214173</ID>
893
+ <NUMBER/>
894
+ <TYPE>0</TYPE>
895
+ <X>8</X>
896
+ <Y>2</Y>
897
+ </BACK_SEAT>
898
+ <BACK_SEAT>
899
+ <ID>4925214172</ID>
900
+ <NUMBER/>
901
+ <TYPE>0</TYPE>
902
+ <X>9</X>
903
+ <Y>2</Y>
904
+ </BACK_SEAT>
905
+ <BACK_SEAT>
906
+ <ID>4925214110</ID>
907
+ <NUMBER/>
908
+ <TYPE>0</TYPE>
909
+ <X>10</X>
910
+ <Y>2</Y>
911
+ </BACK_SEAT>
912
+ <BACK_SEAT>
913
+ <ID>4925214170</ID>
914
+ <NUMBER/>
915
+ <TYPE>0</TYPE>
916
+ <X>11</X>
917
+ <Y>2</Y>
918
+ </BACK_SEAT>
919
+ <BACK_SEAT>
920
+ <ID>4925214163</ID>
921
+ <NUMBER/>
922
+ <TYPE>0</TYPE>
923
+ <X>12</X>
924
+ <Y>2</Y>
925
+ </BACK_SEAT>
926
+ <BACK_SEAT>
927
+ <ID>4925214113</ID>
928
+ <NUMBER/>
929
+ <TYPE>0</TYPE>
930
+ <X>13</X>
931
+ <Y>2</Y>
932
+ </BACK_SEAT>
933
+ <BACK_SEAT>
934
+ <ID>4925214179</ID>
935
+ <NUMBER/>
936
+ <TYPE>0</TYPE>
937
+ <X>14</X>
938
+ <Y>2</Y>
939
+ </BACK_SEAT>
940
+ <BACK_SEAT>
941
+ <ID>4925214135</ID>
942
+ <NUMBER/>
943
+ <TYPE>0</TYPE>
944
+ <X>15</X>
945
+ <Y>2</Y>
946
+ </BACK_SEAT>
947
+ <BACK_SEAT>
948
+ <ID>4925214181</ID>
949
+ <NUMBER>59</NUMBER>
950
+ <TYPE>6</TYPE>
951
+ <X>16</X>
952
+ <Y>2</Y>
953
+ </BACK_SEAT>
954
+ <BACK_SEAT>
955
+ <ID>4925214132</ID>
956
+ <NUMBER/>
957
+ <TYPE>0</TYPE>
958
+ <X>0</X>
959
+ <Y>3</Y>
960
+ </BACK_SEAT>
961
+ <BACK_SEAT>
962
+ <ID>4925214166</ID>
963
+ <NUMBER>2</NUMBER>
964
+ <TYPE>6</TYPE>
965
+ <X>1</X>
966
+ <Y>3</Y>
967
+ </BACK_SEAT>
968
+ <BACK_SEAT>
969
+ <ID>4925214190</ID>
970
+ <NUMBER>6</NUMBER>
971
+ <TYPE>6</TYPE>
972
+ <X>2</X>
973
+ <Y>3</Y>
974
+ </BACK_SEAT>
975
+ <BACK_SEAT>
976
+ <ID>4925214120</ID>
977
+ <NUMBER>10</NUMBER>
978
+ <TYPE>6</TYPE>
979
+ <X>3</X>
980
+ <Y>3</Y>
981
+ </BACK_SEAT>
982
+ <BACK_SEAT>
983
+ <ID>4925214130</ID>
984
+ <NUMBER>14</NUMBER>
985
+ <TYPE>3</TYPE>
986
+ <X>4</X>
987
+ <Y>3</Y>
988
+ </BACK_SEAT>
989
+ <BACK_SEAT>
990
+ <ID>4925214144</ID>
991
+ <NUMBER>18</NUMBER>
992
+ <TYPE>3</TYPE>
993
+ <X>5</X>
994
+ <Y>3</Y>
995
+ </BACK_SEAT>
996
+ <BACK_SEAT>
997
+ <ID>4925214156</ID>
998
+ <NUMBER>22</NUMBER>
999
+ <TYPE>3</TYPE>
1000
+ <X>6</X>
1001
+ <Y>3</Y>
1002
+ </BACK_SEAT>
1003
+ <BACK_SEAT>
1004
+ <ID>4925214133</ID>
1005
+ <NUMBER>24</NUMBER>
1006
+ <TYPE>3</TYPE>
1007
+ <X>7</X>
1008
+ <Y>3</Y>
1009
+ </BACK_SEAT>
1010
+ <BACK_SEAT>
1011
+ <ID>4925214124</ID>
1012
+ <NUMBER>26</NUMBER>
1013
+ <TYPE>3</TYPE>
1014
+ <X>8</X>
1015
+ <Y>3</Y>
1016
+ </BACK_SEAT>
1017
+ <BACK_SEAT>
1018
+ <ID>4925214148</ID>
1019
+ <NUMBER>30</NUMBER>
1020
+ <TYPE>3</TYPE>
1021
+ <X>9</X>
1022
+ <Y>3</Y>
1023
+ </BACK_SEAT>
1024
+ <BACK_SEAT>
1025
+ <ID>4925214151</ID>
1026
+ <NUMBER>34</NUMBER>
1027
+ <TYPE>3</TYPE>
1028
+ <X>10</X>
1029
+ <Y>3</Y>
1030
+ </BACK_SEAT>
1031
+ <BACK_SEAT>
1032
+ <ID>4925214174</ID>
1033
+ <NUMBER>38</NUMBER>
1034
+ <TYPE>6</TYPE>
1035
+ <X>11</X>
1036
+ <Y>3</Y>
1037
+ </BACK_SEAT>
1038
+ <BACK_SEAT>
1039
+ <ID>4925214176</ID>
1040
+ <NUMBER>42</NUMBER>
1041
+ <TYPE>6</TYPE>
1042
+ <X>12</X>
1043
+ <Y>3</Y>
1044
+ </BACK_SEAT>
1045
+ <BACK_SEAT>
1046
+ <ID>4925214116</ID>
1047
+ <NUMBER>46</NUMBER>
1048
+ <TYPE>6</TYPE>
1049
+ <X>13</X>
1050
+ <Y>3</Y>
1051
+ </BACK_SEAT>
1052
+ <BACK_SEAT>
1053
+ <ID>4925214175</ID>
1054
+ <NUMBER>50</NUMBER>
1055
+ <TYPE>6</TYPE>
1056
+ <X>14</X>
1057
+ <Y>3</Y>
1058
+ </BACK_SEAT>
1059
+ <BACK_SEAT>
1060
+ <ID>4925214111</ID>
1061
+ <NUMBER>54</NUMBER>
1062
+ <TYPE>6</TYPE>
1063
+ <X>15</X>
1064
+ <Y>3</Y>
1065
+ </BACK_SEAT>
1066
+ <BACK_SEAT>
1067
+ <ID>4925214184</ID>
1068
+ <NUMBER>58</NUMBER>
1069
+ <TYPE>6</TYPE>
1070
+ <X>16</X>
1071
+ <Y>3</Y>
1072
+ </BACK_SEAT>
1073
+ <BACK_SEAT>
1074
+ <ID>4925214153</ID>
1075
+ <NUMBER>ВД</NUMBER>
1076
+ <TYPE>2</TYPE>
1077
+ <X>0</X>
1078
+ <Y>4</Y>
1079
+ </BACK_SEAT>
1080
+ <BACK_SEAT>
1081
+ <ID>4925214192</ID>
1082
+ <NUMBER>1</NUMBER>
1083
+ <TYPE>6</TYPE>
1084
+ <X>1</X>
1085
+ <Y>4</Y>
1086
+ </BACK_SEAT>
1087
+ <BACK_SEAT>
1088
+ <ID>4925214119</ID>
1089
+ <NUMBER>5</NUMBER>
1090
+ <TYPE>6</TYPE>
1091
+ <X>2</X>
1092
+ <Y>4</Y>
1093
+ </BACK_SEAT>
1094
+ <BACK_SEAT>
1095
+ <ID>4925214131</ID>
1096
+ <NUMBER>9</NUMBER>
1097
+ <TYPE>6</TYPE>
1098
+ <X>3</X>
1099
+ <Y>4</Y>
1100
+ </BACK_SEAT>
1101
+ <BACK_SEAT>
1102
+ <ID>4925214112</ID>
1103
+ <NUMBER>13</NUMBER>
1104
+ <TYPE>3</TYPE>
1105
+ <X>4</X>
1106
+ <Y>4</Y>
1107
+ </BACK_SEAT>
1108
+ <BACK_SEAT>
1109
+ <ID>4925214129</ID>
1110
+ <NUMBER>17</NUMBER>
1111
+ <TYPE>3</TYPE>
1112
+ <X>5</X>
1113
+ <Y>4</Y>
1114
+ </BACK_SEAT>
1115
+ <BACK_SEAT>
1116
+ <ID>4925214154</ID>
1117
+ <NUMBER>21</NUMBER>
1118
+ <TYPE>3</TYPE>
1119
+ <X>6</X>
1120
+ <Y>4</Y>
1121
+ </BACK_SEAT>
1122
+ <BACK_SEAT>
1123
+ <ID>4925214183</ID>
1124
+ <NUMBER>23</NUMBER>
1125
+ <TYPE>3</TYPE>
1126
+ <X>7</X>
1127
+ <Y>4</Y>
1128
+ </BACK_SEAT>
1129
+ <BACK_SEAT>
1130
+ <ID>4925214121</ID>
1131
+ <NUMBER>25</NUMBER>
1132
+ <TYPE>3</TYPE>
1133
+ <X>8</X>
1134
+ <Y>4</Y>
1135
+ </BACK_SEAT>
1136
+ <BACK_SEAT>
1137
+ <ID>4925214136</ID>
1138
+ <NUMBER>29</NUMBER>
1139
+ <TYPE>3</TYPE>
1140
+ <X>9</X>
1141
+ <Y>4</Y>
1142
+ </BACK_SEAT>
1143
+ <BACK_SEAT>
1144
+ <ID>4925214147</ID>
1145
+ <NUMBER>33</NUMBER>
1146
+ <TYPE>3</TYPE>
1147
+ <X>10</X>
1148
+ <Y>4</Y>
1149
+ </BACK_SEAT>
1150
+ <BACK_SEAT>
1151
+ <ID>4925214146</ID>
1152
+ <NUMBER>37</NUMBER>
1153
+ <TYPE>6</TYPE>
1154
+ <X>11</X>
1155
+ <Y>4</Y>
1156
+ </BACK_SEAT>
1157
+ <BACK_SEAT>
1158
+ <ID>4925214161</ID>
1159
+ <NUMBER>41</NUMBER>
1160
+ <TYPE>6</TYPE>
1161
+ <X>12</X>
1162
+ <Y>4</Y>
1163
+ </BACK_SEAT>
1164
+ <BACK_SEAT>
1165
+ <ID>4925214125</ID>
1166
+ <NUMBER>45</NUMBER>
1167
+ <TYPE>6</TYPE>
1168
+ <X>13</X>
1169
+ <Y>4</Y>
1170
+ </BACK_SEAT>
1171
+ <BACK_SEAT>
1172
+ <ID>4925214127</ID>
1173
+ <NUMBER>49</NUMBER>
1174
+ <TYPE>6</TYPE>
1175
+ <X>14</X>
1176
+ <Y>4</Y>
1177
+ </BACK_SEAT>
1178
+ <BACK_SEAT>
1179
+ <ID>4925214158</ID>
1180
+ <NUMBER>53</NUMBER>
1181
+ <TYPE>6</TYPE>
1182
+ <X>15</X>
1183
+ <Y>4</Y>
1184
+ </BACK_SEAT>
1185
+ <BACK_SEAT>
1186
+ <ID>4925214178</ID>
1187
+ <NUMBER>57</NUMBER>
1188
+ <TYPE>6</TYPE>
1189
+ <X>16</X>
1190
+ <Y>4</Y>
1191
+ </BACK_SEAT>
1192
+ </DATA>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gillbus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.4
4
+ version: 0.20.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey "codesnik" Trofimenko
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-06-27 00:00:00.000000000 Z
12
+ date: 2019-07-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -256,6 +256,7 @@ files:
256
256
  - test/responses/getCountries.xml
257
257
  - test/responses/getOrderTicket.xml
258
258
  - test/responses/getTimeTable.xml
259
+ - test/responses/getTripSeats-back-seats.xml
259
260
  - test/responses/getTripSeats-one-empty-segment.xml
260
261
  - test/responses/getTripSeats-segments.xml
261
262
  - test/responses/getTripSeats.xml
@@ -338,6 +339,7 @@ test_files:
338
339
  - test/responses/getCountries.xml
339
340
  - test/responses/getOrderTicket.xml
340
341
  - test/responses/getTimeTable.xml
342
+ - test/responses/getTripSeats-back-seats.xml
341
343
  - test/responses/getTripSeats-one-empty-segment.xml
342
344
  - test/responses/getTripSeats-segments.xml
343
345
  - test/responses/getTripSeats.xml