gillbus 0.16.1 → 0.16.2
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71781ccc6cc539c77331613ce955a9f66322f9f7
|
4
|
+
data.tar.gz: 2941844d92f3c64e3dab76ef4c23bf23570be725
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 154b813152b361ab42470df580b0fdf9083cc1ff446da5816c1284378126502f7c16144a6c62888492db2ea6aa11f71c15b728ed9167c7062bfe4e9aa4c49a10
|
7
|
+
data.tar.gz: fcb742e04abfd1fc72f10d7b6ad78365fc36c1329aecf687f60a0b4082175c0da8f793783d51b5f4855828d6c7f7399fcb9399f1131dd5e0d82b6b51a9e0b44a
|
@@ -14,6 +14,9 @@ class Gillbus
|
|
14
14
|
# Collecting description
|
15
15
|
field :description
|
16
16
|
|
17
|
+
# type of commission according to tariff (1 - inside tariff, 2 - outside of tariff, 3 - inside of tariff type II) NB: only in ALL_COMMISSIONS
|
18
|
+
field :in_out_type
|
19
|
+
|
17
20
|
# Value of collecting in sale currency
|
18
21
|
field :value, :sale_money
|
19
22
|
|
@@ -251,6 +251,9 @@ class Gillbus
|
|
251
251
|
# Array of commissions
|
252
252
|
field :commissions, [Commission], key: 'COMMISSION'
|
253
253
|
|
254
|
+
# Array of commissions only for us (with additional fields)
|
255
|
+
field :all_commissions, [Commission], key: 'COMMISSION', root: 'ALL_COMMISSIONS'
|
256
|
+
|
254
257
|
field :return_causes, [:return_cause], key: 'RETURN_CAUSE'
|
255
258
|
|
256
259
|
# Date to pay reserved ticket
|
data/lib/gillbus/version.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class AllCommissionsTest < Minitest::Test
|
4
|
+
|
5
|
+
def response
|
6
|
+
Gillbus::FindOrder::Response.parse_string(File.read('test/responses/ticketsBookingAllCommissions.xml'))
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_all_commissions
|
10
|
+
assert response.tickets.first.all_commissions
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_in_out_value
|
14
|
+
assert_equal "3", response.tickets.first.all_commissions.first.in_out_type
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,512 @@
|
|
1
|
+
<DATA>
|
2
|
+
<TICKET>
|
3
|
+
<FINAL_PRICE_GREATER>false</FINAL_PRICE_GREATER>
|
4
|
+
<CREATED_DATE>19.10.2017 13:10:49</CREATED_DATE>
|
5
|
+
<UPDATED_DATE>19.10.2017 13:10:49</UPDATED_DATE>
|
6
|
+
<TICKET_NUMBER>1951410</TICKET_NUMBER>
|
7
|
+
<TICKET_SERIES>11111111</TICKET_SERIES>
|
8
|
+
<CARRIER_TICKET_NUMBER/>
|
9
|
+
<SYSTEM_NUMBER>1951410</SYSTEM_NUMBER>
|
10
|
+
<ORDER_NUMBER>1584700</ORDER_NUMBER>
|
11
|
+
<ORDER_ID>dev-66475562</ORDER_ID>
|
12
|
+
<TICKET_STATUS>8</TICKET_STATUS>
|
13
|
+
<IS_BAGGAGE>false</IS_BAGGAGE>
|
14
|
+
<POLICY_NUMBER/>
|
15
|
+
<EXCHANGE_BLANK>false</EXCHANGE_BLANK>
|
16
|
+
<ENABLE_CHANGE_TRIP_DATE>true</ENABLE_CHANGE_TRIP_DATE>
|
17
|
+
<PASSENGER_FULL_NAME>Тест123 2232Тест Тест</PASSENGER_FULL_NAME>
|
18
|
+
<PASSENGER_FIRST_NAME>2232Тест</PASSENGER_FIRST_NAME>
|
19
|
+
<PASSENGER_LAST_NAME>Тест123</PASSENGER_LAST_NAME>
|
20
|
+
<PASSENGER_BIRTHDAY>01.01.1908</PASSENGER_BIRTHDAY>
|
21
|
+
<PASSENGER_STUDENT_TICKET/>
|
22
|
+
<PASSENGER_PHONE>+79161017268</PASSENGER_PHONE>
|
23
|
+
<PASSENGER_PASSPORT>1231231231</PASSENGER_PASSPORT>
|
24
|
+
<PASSENGER_DOCUMENT_TYPE>1</PASSENGER_DOCUMENT_TYPE>
|
25
|
+
<PASSENGER_PICKUPDROPOFF/>
|
26
|
+
<AGENT_NAME>"Басфор" ООО</AGENT_NAME>
|
27
|
+
<AGENT_PHONE>+74953747677</AGENT_PHONE>
|
28
|
+
<CARRIER_NAME>"ВАСИЛЬКОВТРАНСАВТО" ЧП</CARRIER_NAME>
|
29
|
+
<CARRIER_PHONE>+380457127827</CARRIER_PHONE>
|
30
|
+
<BUS_MODEL>Сетра 328</BUS_MODEL>
|
31
|
+
<PLATFORM/>
|
32
|
+
<BUS_CLASS>3</BUS_CLASS>
|
33
|
+
<CARRIAGE_NUMBER/>
|
34
|
+
<NUMBER_SEAT>24</NUMBER_SEAT>
|
35
|
+
<MINUTES_FOR_BUYOUT>40</MINUTES_FOR_BUYOUT>
|
36
|
+
<TOTAL>2500.02</TOTAL>
|
37
|
+
<TOTAL_CURRENCY>RUB</TOTAL_CURRENCY>
|
38
|
+
<TOTAL_CURRENCY_CODE>643</TOTAL_CURRENCY_CODE>
|
39
|
+
<TRIP_NUMBER>TEST - ВТА894 Трускавец - Киев</TRIP_NUMBER>
|
40
|
+
<TRIP_MODE>1</TRIP_MODE>
|
41
|
+
<INTERNATIONAL_TRIP>false</INTERNATIONAL_TRIP>
|
42
|
+
<START_TIMEZONE/>
|
43
|
+
<END_TIMEZONE/>
|
44
|
+
<START_CITY>Львов</START_CITY>
|
45
|
+
<START_DATE>19.10.2017</START_DATE>
|
46
|
+
<START_TIME>19:30</START_TIME>
|
47
|
+
<END_CITY>Киев</END_CITY>
|
48
|
+
<END_DATE>20.10.2017</END_DATE>
|
49
|
+
<END_TIME>05:00</END_TIME>
|
50
|
+
<STATION_ID>93A85E6A852855AFE040A8C01E02029E</STATION_ID>
|
51
|
+
<STATION_NAME>г. Львов, Стрийский автовокзал</STATION_NAME>
|
52
|
+
<STATION_END_NAME>Центральный автовокзал</STATION_END_NAME>
|
53
|
+
<TYPE_TARIFF_NAME>Y</TYPE_TARIFF_NAME>
|
54
|
+
<TYPE_TARIFF_FULL_NAME>Базовый тариф</TYPE_TARIFF_FULL_NAME>
|
55
|
+
<TYPE_TARIFF_DESCRIPTION>Базовый тариф стоимости проезда одного пассажиров в одном направлении</TYPE_TARIFF_DESCRIPTION>
|
56
|
+
<TARIFF>666.67</TARIFF>
|
57
|
+
<VAT_VALUE>0</VAT_VALUE>
|
58
|
+
<TARIFF_VAT>0</TARIFF_VAT>
|
59
|
+
<FOREIGN_TARIFF>0</FOREIGN_TARIFF>
|
60
|
+
<FOREIGN_TARIFF_VAT>0</FOREIGN_TARIFF_VAT>
|
61
|
+
<NOTE/>
|
62
|
+
<BARCODE>ВТА001951410BSF</BARCODE>
|
63
|
+
<INSURANCE_NAME/>
|
64
|
+
<INSURANCE_PHONE/>
|
65
|
+
<AGENT_REG>92511895</AGENT_REG>
|
66
|
+
<CARRIER_REG>34374306</CARRIER_REG>
|
67
|
+
<INSURANCE_REG/>
|
68
|
+
<TOTAL_TARIFF>666.67</TOTAL_TARIFF>
|
69
|
+
<TOTAL_TARIFF_IN_CURRENCY>300</TOTAL_TARIFF_IN_CURRENCY>
|
70
|
+
<TOTAL_TARIFF_VAT>0</TOTAL_TARIFF_VAT>
|
71
|
+
<TOTAL_TARIFF_VAT_IN_CURRENCY>0</TOTAL_TARIFF_VAT_IN_CURRENCY>
|
72
|
+
<TARIFF_CUR_CODE>UAH</TARIFF_CUR_CODE>
|
73
|
+
<TARIFF_CUR_RATE>2.22222222222</TARIFF_CUR_RATE>
|
74
|
+
<TOTAL_AMOUNT>833.34</TOTAL_AMOUNT>
|
75
|
+
<TOTAL_AGENT_INCOME>66.67</TOTAL_AGENT_INCOME>
|
76
|
+
<TOTAL_AMOUNT_VAT>25.42</TOTAL_AMOUNT_VAT>
|
77
|
+
<SALE_CUR_CODE>RUB</SALE_CUR_CODE>
|
78
|
+
<CUSTOMER_NAME/>
|
79
|
+
<CUSTOMER_PHONE/>
|
80
|
+
<CUSTOMER_ADDRESS/>
|
81
|
+
<AGENT_ADDRESS>г Москва, ул проспект Вернадского, д 8 А, оф 4 этаж</AGENT_ADDRESS>
|
82
|
+
<CARRIER_ADDRESS>г Васильков, ул Фрунзе, д 51-А</CARRIER_ADDRESS>
|
83
|
+
<STATION_ADDRESS>ул. Стрийская, 109</STATION_ADDRESS>
|
84
|
+
<STATION_END_ADDRESS>метро Демеевская; проспект Науки; дом 1/2</STATION_END_ADDRESS>
|
85
|
+
<INSURANCE_ADDRESS/>
|
86
|
+
<AGENT_CODE>BSF</AGENT_CODE>
|
87
|
+
<AGENT_CITY>Москва</AGENT_CITY>
|
88
|
+
<CARRIER_CODE>ВТА</CARRIER_CODE>
|
89
|
+
<BEGIN_AVIACODE>LWO</BEGIN_AVIACODE>
|
90
|
+
<END_AVIACODE>IEV</END_AVIACODE>
|
91
|
+
<XT>0</XT>
|
92
|
+
<XT_VAT>0</XT_VAT>
|
93
|
+
<SERVICE_TYPE>Автобусный</SERVICE_TYPE>
|
94
|
+
<RETURN_CAUSE>
|
95
|
+
<ID>A2FD124AAEA24B65E040A8C0630352B0</ID>
|
96
|
+
<APPROXIMATE_AMOUNT>833.34</APPROXIMATE_AMOUNT>
|
97
|
+
<CAUSE>Принудительно, при отмене рейса, при непредоставлении места.</CAUSE>
|
98
|
+
</RETURN_CAUSE>
|
99
|
+
<RETURN_CAUSE>
|
100
|
+
<ID>35C5919A80B419C0E0530300F00ACB13</ID>
|
101
|
+
<APPROXIMATE_AMOUNT>433.33</APPROXIMATE_AMOUNT>
|
102
|
+
<CAUSE>Добровольно, более чем за 72 ч., до отправления рейса</CAUSE>
|
103
|
+
</RETURN_CAUSE>
|
104
|
+
<RETURN_CAUSE>
|
105
|
+
<ID>35C5766BA72B1996E0530300F00A92CA</ID>
|
106
|
+
<APPROXIMATE_AMOUNT>-66.67</APPROXIMATE_AMOUNT>
|
107
|
+
<CAUSE>Добровольно, менее чем за 4 ч., до отправления рейса ВОЗВРАТ НЕ ДОПУСКАЕТСЯ</CAUSE>
|
108
|
+
</RETURN_CAUSE>
|
109
|
+
<RETURN_CAUSE>
|
110
|
+
<ID>35C572D81EC71998E0530300F00A9C5E</ID>
|
111
|
+
<APPROXIMATE_AMOUNT>266.67</APPROXIMATE_AMOUNT>
|
112
|
+
<CAUSE>Добровольно, более чем за 24 ч., менее чем за 72 ч., до отправления рейса</CAUSE>
|
113
|
+
</RETURN_CAUSE>
|
114
|
+
<RETURN_CAUSE>
|
115
|
+
<ID>35C57D92BFA71986E0530300F00A88FD</ID>
|
116
|
+
<APPROXIMATE_AMOUNT>100</APPROXIMATE_AMOUNT>
|
117
|
+
<CAUSE>Добровольно, более чем за 4 ч., менее чем за 24 ч., до отправления рейса</CAUSE>
|
118
|
+
</RETURN_CAUSE>
|
119
|
+
<COMMISSION>
|
120
|
+
<TYPE>-1</TYPE>
|
121
|
+
<CODE>XP</CODE>
|
122
|
+
<DESCRIPTION>Агентский сбор</DESCRIPTION>
|
123
|
+
<VALUE>166.67</VALUE>
|
124
|
+
<VAT_VALUE>0</VAT_VALUE>
|
125
|
+
<VAT>25.42</VAT>
|
126
|
+
<CURRENCY>RUB</CURRENCY>
|
127
|
+
<RATE>0</RATE>
|
128
|
+
<VALUE_IN_CURRENCY>141.25</VALUE_IN_CURRENCY>
|
129
|
+
<VAT_IN_CURRENCY>25.42</VAT_IN_CURRENCY>
|
130
|
+
</COMMISSION>
|
131
|
+
<COMMISSION>
|
132
|
+
<TYPE>3</TYPE>
|
133
|
+
<CODE>XP2</CODE>
|
134
|
+
<DESCRIPTION>Агентский сбор №2</DESCRIPTION>
|
135
|
+
<VALUE>0</VALUE>
|
136
|
+
<VAT_VALUE>18</VAT_VALUE>
|
137
|
+
<VAT>0</VAT>
|
138
|
+
<CURRENCY>UAH</CURRENCY>
|
139
|
+
<RATE>2.22222222222</RATE>
|
140
|
+
<VALUE_IN_CURRENCY>25.42</VALUE_IN_CURRENCY>
|
141
|
+
<VAT_IN_CURRENCY>4.58</VAT_IN_CURRENCY>
|
142
|
+
</COMMISSION>
|
143
|
+
<ALL_COMMISSIONS>
|
144
|
+
<COMMISSION>
|
145
|
+
<TYPE>3</TYPE>
|
146
|
+
<CODE>XP2</CODE>
|
147
|
+
<DESCRIPTION>Агентский сбор №2</DESCRIPTION>
|
148
|
+
<IN_OUT_TYPE>3</IN_OUT_TYPE>
|
149
|
+
<VALUE>56.49</VALUE>
|
150
|
+
<VAT_VALUE>18</VAT_VALUE>
|
151
|
+
<VAT>10.18</VAT>
|
152
|
+
<CURRENCY>UAH</CURRENCY>
|
153
|
+
<RATE>2.22222222222</RATE>
|
154
|
+
<VALUE_IN_CURRENCY>25.42</VALUE_IN_CURRENCY>
|
155
|
+
<VAT_IN_CURRENCY>4.58</VAT_IN_CURRENCY>
|
156
|
+
</COMMISSION>
|
157
|
+
<COMMISSION>
|
158
|
+
<TYPE>5</TYPE>
|
159
|
+
<CODE>XP1</CODE>
|
160
|
+
<DESCRIPTION>Агентский сбор №1</DESCRIPTION>
|
161
|
+
<IN_OUT_TYPE>2</IN_OUT_TYPE>
|
162
|
+
<VALUE>141.25</VALUE>
|
163
|
+
<VAT_VALUE>18</VAT_VALUE>
|
164
|
+
<VAT>25.42</VAT>
|
165
|
+
<CURRENCY>UAH</CURRENCY>
|
166
|
+
<RATE>2.22222222222</RATE>
|
167
|
+
<VALUE_IN_CURRENCY>63.56</VALUE_IN_CURRENCY>
|
168
|
+
<VAT_IN_CURRENCY>11.44</VAT_IN_CURRENCY>
|
169
|
+
</COMMISSION>
|
170
|
+
</ALL_COMMISSIONS>
|
171
|
+
</TICKET>
|
172
|
+
<TICKET>
|
173
|
+
<FINAL_PRICE_GREATER>false</FINAL_PRICE_GREATER>
|
174
|
+
<CREATED_DATE>19.10.2017 13:10:49</CREATED_DATE>
|
175
|
+
<UPDATED_DATE>19.10.2017 13:10:49</UPDATED_DATE>
|
176
|
+
<TICKET_NUMBER>1951411</TICKET_NUMBER>
|
177
|
+
<TICKET_SERIES>11111111</TICKET_SERIES>
|
178
|
+
<CARRIER_TICKET_NUMBER/>
|
179
|
+
<SYSTEM_NUMBER>1951411</SYSTEM_NUMBER>
|
180
|
+
<ORDER_NUMBER>1584700</ORDER_NUMBER>
|
181
|
+
<ORDER_ID>dev-66475562</ORDER_ID>
|
182
|
+
<TICKET_STATUS>8</TICKET_STATUS>
|
183
|
+
<IS_BAGGAGE>false</IS_BAGGAGE>
|
184
|
+
<POLICY_NUMBER/>
|
185
|
+
<EXCHANGE_BLANK>false</EXCHANGE_BLANK>
|
186
|
+
<ENABLE_CHANGE_TRIP_DATE>true</ENABLE_CHANGE_TRIP_DATE>
|
187
|
+
<PASSENGER_FULL_NAME>Тест Тест Тест</PASSENGER_FULL_NAME>
|
188
|
+
<PASSENGER_FIRST_NAME>Тест</PASSENGER_FIRST_NAME>
|
189
|
+
<PASSENGER_LAST_NAME>Тест</PASSENGER_LAST_NAME>
|
190
|
+
<PASSENGER_BIRTHDAY>01.01.1980</PASSENGER_BIRTHDAY>
|
191
|
+
<PASSENGER_STUDENT_TICKET/>
|
192
|
+
<PASSENGER_PHONE>+79161017268</PASSENGER_PHONE>
|
193
|
+
<PASSENGER_PASSPORT>1231231231</PASSENGER_PASSPORT>
|
194
|
+
<PASSENGER_DOCUMENT_TYPE>1</PASSENGER_DOCUMENT_TYPE>
|
195
|
+
<PASSENGER_PICKUPDROPOFF/>
|
196
|
+
<AGENT_NAME>"Басфор" ООО</AGENT_NAME>
|
197
|
+
<AGENT_PHONE>+74953747677</AGENT_PHONE>
|
198
|
+
<CARRIER_NAME>"ВАСИЛЬКОВТРАНСАВТО" ЧП</CARRIER_NAME>
|
199
|
+
<CARRIER_PHONE>+380457127827</CARRIER_PHONE>
|
200
|
+
<BUS_MODEL>Сетра 328</BUS_MODEL>
|
201
|
+
<PLATFORM/>
|
202
|
+
<BUS_CLASS>3</BUS_CLASS>
|
203
|
+
<CARRIAGE_NUMBER/>
|
204
|
+
<NUMBER_SEAT>28</NUMBER_SEAT>
|
205
|
+
<MINUTES_FOR_BUYOUT>40</MINUTES_FOR_BUYOUT>
|
206
|
+
<TOTAL>2500.02</TOTAL>
|
207
|
+
<TOTAL_CURRENCY>RUB</TOTAL_CURRENCY>
|
208
|
+
<TOTAL_CURRENCY_CODE>643</TOTAL_CURRENCY_CODE>
|
209
|
+
<TRIP_NUMBER>TEST - ВТА894 Трускавец - Киев</TRIP_NUMBER>
|
210
|
+
<TRIP_MODE>1</TRIP_MODE>
|
211
|
+
<INTERNATIONAL_TRIP>false</INTERNATIONAL_TRIP>
|
212
|
+
<START_TIMEZONE/>
|
213
|
+
<END_TIMEZONE/>
|
214
|
+
<START_CITY>Львов</START_CITY>
|
215
|
+
<START_DATE>19.10.2017</START_DATE>
|
216
|
+
<START_TIME>19:30</START_TIME>
|
217
|
+
<END_CITY>Киев</END_CITY>
|
218
|
+
<END_DATE>20.10.2017</END_DATE>
|
219
|
+
<END_TIME>05:00</END_TIME>
|
220
|
+
<STATION_ID>93A85E6A852855AFE040A8C01E02029E</STATION_ID>
|
221
|
+
<STATION_NAME>г. Львов, Стрийский автовокзал</STATION_NAME>
|
222
|
+
<STATION_END_NAME>Центральный автовокзал</STATION_END_NAME>
|
223
|
+
<TYPE_TARIFF_NAME>Y</TYPE_TARIFF_NAME>
|
224
|
+
<TYPE_TARIFF_FULL_NAME>Базовый тариф</TYPE_TARIFF_FULL_NAME>
|
225
|
+
<TYPE_TARIFF_DESCRIPTION>Базовый тариф стоимости проезда одного пассажиров в одном направлении</TYPE_TARIFF_DESCRIPTION>
|
226
|
+
<TARIFF>666.67</TARIFF>
|
227
|
+
<VAT_VALUE>0</VAT_VALUE>
|
228
|
+
<TARIFF_VAT>0</TARIFF_VAT>
|
229
|
+
<FOREIGN_TARIFF>0</FOREIGN_TARIFF>
|
230
|
+
<FOREIGN_TARIFF_VAT>0</FOREIGN_TARIFF_VAT>
|
231
|
+
<NOTE/>
|
232
|
+
<BARCODE>ВТА001951411BSF</BARCODE>
|
233
|
+
<INSURANCE_NAME/>
|
234
|
+
<INSURANCE_PHONE/>
|
235
|
+
<AGENT_REG>92511895</AGENT_REG>
|
236
|
+
<CARRIER_REG>34374306</CARRIER_REG>
|
237
|
+
<INSURANCE_REG/>
|
238
|
+
<TOTAL_TARIFF>666.67</TOTAL_TARIFF>
|
239
|
+
<TOTAL_TARIFF_IN_CURRENCY>300</TOTAL_TARIFF_IN_CURRENCY>
|
240
|
+
<TOTAL_TARIFF_VAT>0</TOTAL_TARIFF_VAT>
|
241
|
+
<TOTAL_TARIFF_VAT_IN_CURRENCY>0</TOTAL_TARIFF_VAT_IN_CURRENCY>
|
242
|
+
<TARIFF_CUR_CODE>UAH</TARIFF_CUR_CODE>
|
243
|
+
<TARIFF_CUR_RATE>2.22222222222</TARIFF_CUR_RATE>
|
244
|
+
<TOTAL_AMOUNT>833.34</TOTAL_AMOUNT>
|
245
|
+
<TOTAL_AGENT_INCOME>66.67</TOTAL_AGENT_INCOME>
|
246
|
+
<TOTAL_AMOUNT_VAT>25.42</TOTAL_AMOUNT_VAT>
|
247
|
+
<SALE_CUR_CODE>RUB</SALE_CUR_CODE>
|
248
|
+
<CUSTOMER_NAME/>
|
249
|
+
<CUSTOMER_PHONE/>
|
250
|
+
<CUSTOMER_ADDRESS/>
|
251
|
+
<AGENT_ADDRESS>г Москва, ул проспект Вернадского, д 8 А, оф 4 этаж</AGENT_ADDRESS>
|
252
|
+
<CARRIER_ADDRESS>г Васильков, ул Фрунзе, д 51-А</CARRIER_ADDRESS>
|
253
|
+
<STATION_ADDRESS>ул. Стрийская, 109</STATION_ADDRESS>
|
254
|
+
<STATION_END_ADDRESS>метро Демеевская; проспект Науки; дом 1/2</STATION_END_ADDRESS>
|
255
|
+
<INSURANCE_ADDRESS/>
|
256
|
+
<AGENT_CODE>BSF</AGENT_CODE>
|
257
|
+
<AGENT_CITY>Москва</AGENT_CITY>
|
258
|
+
<CARRIER_CODE>ВТА</CARRIER_CODE>
|
259
|
+
<BEGIN_AVIACODE>LWO</BEGIN_AVIACODE>
|
260
|
+
<END_AVIACODE>IEV</END_AVIACODE>
|
261
|
+
<XT>0</XT>
|
262
|
+
<XT_VAT>0</XT_VAT>
|
263
|
+
<SERVICE_TYPE>Автобусный</SERVICE_TYPE>
|
264
|
+
<RETURN_CAUSE>
|
265
|
+
<ID>A2FD124AAEA24B65E040A8C0630352B0</ID>
|
266
|
+
<APPROXIMATE_AMOUNT>833.34</APPROXIMATE_AMOUNT>
|
267
|
+
<CAUSE>Принудительно, при отмене рейса, при непредоставлении места.</CAUSE>
|
268
|
+
</RETURN_CAUSE>
|
269
|
+
<RETURN_CAUSE>
|
270
|
+
<ID>35C5919A80B419C0E0530300F00ACB13</ID>
|
271
|
+
<APPROXIMATE_AMOUNT>433.33</APPROXIMATE_AMOUNT>
|
272
|
+
<CAUSE>Добровольно, более чем за 72 ч., до отправления рейса</CAUSE>
|
273
|
+
</RETURN_CAUSE>
|
274
|
+
<RETURN_CAUSE>
|
275
|
+
<ID>35C5766BA72B1996E0530300F00A92CA</ID>
|
276
|
+
<APPROXIMATE_AMOUNT>-66.67</APPROXIMATE_AMOUNT>
|
277
|
+
<CAUSE>Добровольно, менее чем за 4 ч., до отправления рейса ВОЗВРАТ НЕ ДОПУСКАЕТСЯ</CAUSE>
|
278
|
+
</RETURN_CAUSE>
|
279
|
+
<RETURN_CAUSE>
|
280
|
+
<ID>35C572D81EC71998E0530300F00A9C5E</ID>
|
281
|
+
<APPROXIMATE_AMOUNT>266.67</APPROXIMATE_AMOUNT>
|
282
|
+
<CAUSE>Добровольно, более чем за 24 ч., менее чем за 72 ч., до отправления рейса</CAUSE>
|
283
|
+
</RETURN_CAUSE>
|
284
|
+
<RETURN_CAUSE>
|
285
|
+
<ID>35C57D92BFA71986E0530300F00A88FD</ID>
|
286
|
+
<APPROXIMATE_AMOUNT>100</APPROXIMATE_AMOUNT>
|
287
|
+
<CAUSE>Добровольно, более чем за 4 ч., менее чем за 24 ч., до отправления рейса</CAUSE>
|
288
|
+
</RETURN_CAUSE>
|
289
|
+
<COMMISSION>
|
290
|
+
<TYPE>-1</TYPE>
|
291
|
+
<CODE>XP</CODE>
|
292
|
+
<DESCRIPTION>Агентский сбор</DESCRIPTION>
|
293
|
+
<VALUE>166.67</VALUE>
|
294
|
+
<VAT_VALUE>0</VAT_VALUE>
|
295
|
+
<VAT>25.42</VAT>
|
296
|
+
<CURRENCY>RUB</CURRENCY>
|
297
|
+
<RATE>0</RATE>
|
298
|
+
<VALUE_IN_CURRENCY>141.25</VALUE_IN_CURRENCY>
|
299
|
+
<VAT_IN_CURRENCY>25.42</VAT_IN_CURRENCY>
|
300
|
+
</COMMISSION>
|
301
|
+
<COMMISSION>
|
302
|
+
<TYPE>3</TYPE>
|
303
|
+
<CODE>XP2</CODE>
|
304
|
+
<DESCRIPTION>Агентский сбор №2</DESCRIPTION>
|
305
|
+
<VALUE>0</VALUE>
|
306
|
+
<VAT_VALUE>18</VAT_VALUE>
|
307
|
+
<VAT>0</VAT>
|
308
|
+
<CURRENCY>UAH</CURRENCY>
|
309
|
+
<RATE>2.22222222222</RATE>
|
310
|
+
<VALUE_IN_CURRENCY>25.42</VALUE_IN_CURRENCY>
|
311
|
+
<VAT_IN_CURRENCY>4.58</VAT_IN_CURRENCY>
|
312
|
+
</COMMISSION>
|
313
|
+
<ALL_COMMISSIONS>
|
314
|
+
<COMMISSION>
|
315
|
+
<TYPE>3</TYPE>
|
316
|
+
<CODE>XP2</CODE>
|
317
|
+
<DESCRIPTION>Агентский сбор №2</DESCRIPTION>
|
318
|
+
<IN_OUT_TYPE>3</IN_OUT_TYPE>
|
319
|
+
<VALUE>56.49</VALUE>
|
320
|
+
<VAT_VALUE>18</VAT_VALUE>
|
321
|
+
<VAT>10.18</VAT>
|
322
|
+
<CURRENCY>UAH</CURRENCY>
|
323
|
+
<RATE>2.22222222222</RATE>
|
324
|
+
<VALUE_IN_CURRENCY>25.42</VALUE_IN_CURRENCY>
|
325
|
+
<VAT_IN_CURRENCY>4.58</VAT_IN_CURRENCY>
|
326
|
+
</COMMISSION>
|
327
|
+
<COMMISSION>
|
328
|
+
<TYPE>5</TYPE>
|
329
|
+
<CODE>XP1</CODE>
|
330
|
+
<DESCRIPTION>Агентский сбор №1</DESCRIPTION>
|
331
|
+
<IN_OUT_TYPE>2</IN_OUT_TYPE>
|
332
|
+
<VALUE>141.25</VALUE>
|
333
|
+
<VAT_VALUE>18</VAT_VALUE>
|
334
|
+
<VAT>25.42</VAT>
|
335
|
+
<CURRENCY>UAH</CURRENCY>
|
336
|
+
<RATE>2.22222222222</RATE>
|
337
|
+
<VALUE_IN_CURRENCY>63.56</VALUE_IN_CURRENCY>
|
338
|
+
<VAT_IN_CURRENCY>11.44</VAT_IN_CURRENCY>
|
339
|
+
</COMMISSION>
|
340
|
+
</ALL_COMMISSIONS>
|
341
|
+
</TICKET>
|
342
|
+
<TICKET>
|
343
|
+
<FINAL_PRICE_GREATER>false</FINAL_PRICE_GREATER>
|
344
|
+
<CREATED_DATE>19.10.2017 13:10:49</CREATED_DATE>
|
345
|
+
<UPDATED_DATE>19.10.2017 13:10:50</UPDATED_DATE>
|
346
|
+
<TICKET_NUMBER>1951412</TICKET_NUMBER>
|
347
|
+
<TICKET_SERIES>11111111</TICKET_SERIES>
|
348
|
+
<CARRIER_TICKET_NUMBER/>
|
349
|
+
<SYSTEM_NUMBER>1951412</SYSTEM_NUMBER>
|
350
|
+
<ORDER_NUMBER>1584700</ORDER_NUMBER>
|
351
|
+
<ORDER_ID>dev-66475562</ORDER_ID>
|
352
|
+
<TICKET_STATUS>8</TICKET_STATUS>
|
353
|
+
<IS_BAGGAGE>false</IS_BAGGAGE>
|
354
|
+
<POLICY_NUMBER/>
|
355
|
+
<EXCHANGE_BLANK>false</EXCHANGE_BLANK>
|
356
|
+
<ENABLE_CHANGE_TRIP_DATE>true</ENABLE_CHANGE_TRIP_DATE>
|
357
|
+
<PASSENGER_FULL_NAME>Qweqwe Qweqq Qwe</PASSENGER_FULL_NAME>
|
358
|
+
<PASSENGER_FIRST_NAME>qweqq</PASSENGER_FIRST_NAME>
|
359
|
+
<PASSENGER_LAST_NAME>qweqwe</PASSENGER_LAST_NAME>
|
360
|
+
<PASSENGER_BIRTHDAY>01.01.2013</PASSENGER_BIRTHDAY>
|
361
|
+
<PASSENGER_STUDENT_TICKET/>
|
362
|
+
<PASSENGER_PHONE>+79161017268</PASSENGER_PHONE>
|
363
|
+
<PASSENGER_PASSPORT>123123123</PASSENGER_PASSPORT>
|
364
|
+
<PASSENGER_DOCUMENT_TYPE>4</PASSENGER_DOCUMENT_TYPE>
|
365
|
+
<PASSENGER_PICKUPDROPOFF/>
|
366
|
+
<AGENT_NAME>"Басфор" ООО</AGENT_NAME>
|
367
|
+
<AGENT_PHONE>+74953747677</AGENT_PHONE>
|
368
|
+
<CARRIER_NAME>"ВАСИЛЬКОВТРАНСАВТО" ЧП</CARRIER_NAME>
|
369
|
+
<CARRIER_PHONE>+380457127827</CARRIER_PHONE>
|
370
|
+
<BUS_MODEL>Сетра 328</BUS_MODEL>
|
371
|
+
<PLATFORM/>
|
372
|
+
<BUS_CLASS>3</BUS_CLASS>
|
373
|
+
<CARRIAGE_NUMBER/>
|
374
|
+
<NUMBER_SEAT>32</NUMBER_SEAT>
|
375
|
+
<MINUTES_FOR_BUYOUT>40</MINUTES_FOR_BUYOUT>
|
376
|
+
<TOTAL>2500.02</TOTAL>
|
377
|
+
<TOTAL_CURRENCY>RUB</TOTAL_CURRENCY>
|
378
|
+
<TOTAL_CURRENCY_CODE>643</TOTAL_CURRENCY_CODE>
|
379
|
+
<TRIP_NUMBER>TEST - ВТА894 Трускавец - Киев</TRIP_NUMBER>
|
380
|
+
<TRIP_MODE>1</TRIP_MODE>
|
381
|
+
<INTERNATIONAL_TRIP>false</INTERNATIONAL_TRIP>
|
382
|
+
<START_TIMEZONE/>
|
383
|
+
<END_TIMEZONE/>
|
384
|
+
<START_CITY>Львов</START_CITY>
|
385
|
+
<START_DATE>19.10.2017</START_DATE>
|
386
|
+
<START_TIME>19:30</START_TIME>
|
387
|
+
<END_CITY>Киев</END_CITY>
|
388
|
+
<END_DATE>20.10.2017</END_DATE>
|
389
|
+
<END_TIME>05:00</END_TIME>
|
390
|
+
<STATION_ID>93A85E6A852855AFE040A8C01E02029E</STATION_ID>
|
391
|
+
<STATION_NAME>г. Львов, Стрийский автовокзал</STATION_NAME>
|
392
|
+
<STATION_END_NAME>Центральный автовокзал</STATION_END_NAME>
|
393
|
+
<TYPE_TARIFF_NAME>Y</TYPE_TARIFF_NAME>
|
394
|
+
<TYPE_TARIFF_FULL_NAME>Базовый тариф</TYPE_TARIFF_FULL_NAME>
|
395
|
+
<TYPE_TARIFF_DESCRIPTION>Базовый тариф стоимости проезда одного пассажиров в одном направлении</TYPE_TARIFF_DESCRIPTION>
|
396
|
+
<TARIFF>666.67</TARIFF>
|
397
|
+
<VAT_VALUE>0</VAT_VALUE>
|
398
|
+
<TARIFF_VAT>0</TARIFF_VAT>
|
399
|
+
<FOREIGN_TARIFF>0</FOREIGN_TARIFF>
|
400
|
+
<FOREIGN_TARIFF_VAT>0</FOREIGN_TARIFF_VAT>
|
401
|
+
<NOTE/>
|
402
|
+
<BARCODE>ВТА001951412BSF</BARCODE>
|
403
|
+
<INSURANCE_NAME/>
|
404
|
+
<INSURANCE_PHONE/>
|
405
|
+
<AGENT_REG>92511895</AGENT_REG>
|
406
|
+
<CARRIER_REG>34374306</CARRIER_REG>
|
407
|
+
<INSURANCE_REG/>
|
408
|
+
<TOTAL_TARIFF>666.67</TOTAL_TARIFF>
|
409
|
+
<TOTAL_TARIFF_IN_CURRENCY>300</TOTAL_TARIFF_IN_CURRENCY>
|
410
|
+
<TOTAL_TARIFF_VAT>0</TOTAL_TARIFF_VAT>
|
411
|
+
<TOTAL_TARIFF_VAT_IN_CURRENCY>0</TOTAL_TARIFF_VAT_IN_CURRENCY>
|
412
|
+
<TARIFF_CUR_CODE>UAH</TARIFF_CUR_CODE>
|
413
|
+
<TARIFF_CUR_RATE>2.22222222222</TARIFF_CUR_RATE>
|
414
|
+
<TOTAL_AMOUNT>833.34</TOTAL_AMOUNT>
|
415
|
+
<TOTAL_AGENT_INCOME>66.67</TOTAL_AGENT_INCOME>
|
416
|
+
<TOTAL_AMOUNT_VAT>25.42</TOTAL_AMOUNT_VAT>
|
417
|
+
<SALE_CUR_CODE>RUB</SALE_CUR_CODE>
|
418
|
+
<CUSTOMER_NAME/>
|
419
|
+
<CUSTOMER_PHONE/>
|
420
|
+
<CUSTOMER_ADDRESS/>
|
421
|
+
<AGENT_ADDRESS>г Москва, ул проспект Вернадского, д 8 А, оф 4 этаж</AGENT_ADDRESS>
|
422
|
+
<CARRIER_ADDRESS>г Васильков, ул Фрунзе, д 51-А</CARRIER_ADDRESS>
|
423
|
+
<STATION_ADDRESS>ул. Стрийская, 109</STATION_ADDRESS>
|
424
|
+
<STATION_END_ADDRESS>метро Демеевская; проспект Науки; дом 1/2</STATION_END_ADDRESS>
|
425
|
+
<INSURANCE_ADDRESS/>
|
426
|
+
<AGENT_CODE>BSF</AGENT_CODE>
|
427
|
+
<AGENT_CITY>Москва</AGENT_CITY>
|
428
|
+
<CARRIER_CODE>ВТА</CARRIER_CODE>
|
429
|
+
<BEGIN_AVIACODE>LWO</BEGIN_AVIACODE>
|
430
|
+
<END_AVIACODE>IEV</END_AVIACODE>
|
431
|
+
<XT>0</XT>
|
432
|
+
<XT_VAT>0</XT_VAT>
|
433
|
+
<SERVICE_TYPE>Автобусный</SERVICE_TYPE>
|
434
|
+
<RETURN_CAUSE>
|
435
|
+
<ID>A2FD124AAEA24B65E040A8C0630352B0</ID>
|
436
|
+
<APPROXIMATE_AMOUNT>833.34</APPROXIMATE_AMOUNT>
|
437
|
+
<CAUSE>Принудительно, при отмене рейса, при непредоставлении места.</CAUSE>
|
438
|
+
</RETURN_CAUSE>
|
439
|
+
<RETURN_CAUSE>
|
440
|
+
<ID>35C5919A80B419C0E0530300F00ACB13</ID>
|
441
|
+
<APPROXIMATE_AMOUNT>433.33</APPROXIMATE_AMOUNT>
|
442
|
+
<CAUSE>Добровольно, более чем за 72 ч., до отправления рейса</CAUSE>
|
443
|
+
</RETURN_CAUSE>
|
444
|
+
<RETURN_CAUSE>
|
445
|
+
<ID>35C5766BA72B1996E0530300F00A92CA</ID>
|
446
|
+
<APPROXIMATE_AMOUNT>-66.67</APPROXIMATE_AMOUNT>
|
447
|
+
<CAUSE>Добровольно, менее чем за 4 ч., до отправления рейса ВОЗВРАТ НЕ ДОПУСКАЕТСЯ</CAUSE>
|
448
|
+
</RETURN_CAUSE>
|
449
|
+
<RETURN_CAUSE>
|
450
|
+
<ID>35C572D81EC71998E0530300F00A9C5E</ID>
|
451
|
+
<APPROXIMATE_AMOUNT>266.67</APPROXIMATE_AMOUNT>
|
452
|
+
<CAUSE>Добровольно, более чем за 24 ч., менее чем за 72 ч., до отправления рейса</CAUSE>
|
453
|
+
</RETURN_CAUSE>
|
454
|
+
<RETURN_CAUSE>
|
455
|
+
<ID>35C57D92BFA71986E0530300F00A88FD</ID>
|
456
|
+
<APPROXIMATE_AMOUNT>100</APPROXIMATE_AMOUNT>
|
457
|
+
<CAUSE>Добровольно, более чем за 4 ч., менее чем за 24 ч., до отправления рейса</CAUSE>
|
458
|
+
</RETURN_CAUSE>
|
459
|
+
<COMMISSION>
|
460
|
+
<TYPE>-1</TYPE>
|
461
|
+
<CODE>XP</CODE>
|
462
|
+
<DESCRIPTION>Агентский сбор</DESCRIPTION>
|
463
|
+
<VALUE>166.67</VALUE>
|
464
|
+
<VAT_VALUE>0</VAT_VALUE>
|
465
|
+
<VAT>25.42</VAT>
|
466
|
+
<CURRENCY>RUB</CURRENCY>
|
467
|
+
<RATE>0</RATE>
|
468
|
+
<VALUE_IN_CURRENCY>141.25</VALUE_IN_CURRENCY>
|
469
|
+
<VAT_IN_CURRENCY>25.42</VAT_IN_CURRENCY>
|
470
|
+
</COMMISSION>
|
471
|
+
<COMMISSION>
|
472
|
+
<TYPE>3</TYPE>
|
473
|
+
<CODE>XP2</CODE>
|
474
|
+
<DESCRIPTION>Агентский сбор №2</DESCRIPTION>
|
475
|
+
<VALUE>0</VALUE>
|
476
|
+
<VAT_VALUE>18</VAT_VALUE>
|
477
|
+
<VAT>0</VAT>
|
478
|
+
<CURRENCY>UAH</CURRENCY>
|
479
|
+
<RATE>2.22222222222</RATE>
|
480
|
+
<VALUE_IN_CURRENCY>25.42</VALUE_IN_CURRENCY>
|
481
|
+
<VAT_IN_CURRENCY>4.58</VAT_IN_CURRENCY>
|
482
|
+
</COMMISSION>
|
483
|
+
<ALL_COMMISSIONS>
|
484
|
+
<COMMISSION>
|
485
|
+
<TYPE>3</TYPE>
|
486
|
+
<CODE>XP2</CODE>
|
487
|
+
<DESCRIPTION>Агентский сбор №2</DESCRIPTION>
|
488
|
+
<IN_OUT_TYPE>3</IN_OUT_TYPE>
|
489
|
+
<VALUE>56.49</VALUE>
|
490
|
+
<VAT_VALUE>18</VAT_VALUE>
|
491
|
+
<VAT>10.18</VAT>
|
492
|
+
<CURRENCY>UAH</CURRENCY>
|
493
|
+
<RATE>2.22222222222</RATE>
|
494
|
+
<VALUE_IN_CURRENCY>25.42</VALUE_IN_CURRENCY>
|
495
|
+
<VAT_IN_CURRENCY>4.58</VAT_IN_CURRENCY>
|
496
|
+
</COMMISSION>
|
497
|
+
<COMMISSION>
|
498
|
+
<TYPE>5</TYPE>
|
499
|
+
<CODE>XP1</CODE>
|
500
|
+
<DESCRIPTION>Агентский сбор №1</DESCRIPTION>
|
501
|
+
<IN_OUT_TYPE>2</IN_OUT_TYPE>
|
502
|
+
<VALUE>141.25</VALUE>
|
503
|
+
<VAT_VALUE>18</VAT_VALUE>
|
504
|
+
<VAT>25.42</VAT>
|
505
|
+
<CURRENCY>UAH</CURRENCY>
|
506
|
+
<RATE>2.22222222222</RATE>
|
507
|
+
<VALUE_IN_CURRENCY>63.56</VALUE_IN_CURRENCY>
|
508
|
+
<VAT_IN_CURRENCY>11.44</VAT_IN_CURRENCY>
|
509
|
+
</COMMISSION>
|
510
|
+
</ALL_COMMISSIONS>
|
511
|
+
</TICKET>
|
512
|
+
</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.16.
|
4
|
+
version: 0.16.2
|
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: 2017-10-
|
12
|
+
date: 2017-10-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_xml
|
@@ -205,6 +205,7 @@ files:
|
|
205
205
|
- script/example_canceling_booking.rb
|
206
206
|
- script/example_canceling_reservation.rb
|
207
207
|
- script/example_reservation.rb
|
208
|
+
- test/all_commissions_test.rb
|
208
209
|
- test/buy_booking_test.rb
|
209
210
|
- test/buy_tickets_test.rb
|
210
211
|
- test/cancel_order_test.rb
|
@@ -242,6 +243,7 @@ files:
|
|
242
243
|
- test/responses/searchTrips-segments.xml
|
243
244
|
- test/responses/sessionLogin.xml
|
244
245
|
- test/responses/ticketsBooking.xml
|
246
|
+
- test/responses/ticketsBookingAllCommissions.xml
|
245
247
|
- test/responses/very_empty.xml
|
246
248
|
- test/search_trips_test.rb
|
247
249
|
- test/session_login_test.rb
|
@@ -272,6 +274,7 @@ signing_key:
|
|
272
274
|
specification_version: 4
|
273
275
|
summary: Driver for Gillbus IDS API
|
274
276
|
test_files:
|
277
|
+
- test/all_commissions_test.rb
|
275
278
|
- test/buy_booking_test.rb
|
276
279
|
- test/buy_tickets_test.rb
|
277
280
|
- test/cancel_order_test.rb
|
@@ -309,6 +312,7 @@ test_files:
|
|
309
312
|
- test/responses/searchTrips-segments.xml
|
310
313
|
- test/responses/sessionLogin.xml
|
311
314
|
- test/responses/ticketsBooking.xml
|
315
|
+
- test/responses/ticketsBookingAllCommissions.xml
|
312
316
|
- test/responses/very_empty.xml
|
313
317
|
- test/search_trips_test.rb
|
314
318
|
- test/session_login_test.rb
|