gillbus 0.16.7 → 0.16.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +88 -0
- data/Rakefile +3 -3
- data/gillbus.gemspec +16 -15
- data/lib/gillbus.rb +10 -9
- data/lib/gillbus/base_request.rb +17 -19
- data/lib/gillbus/base_response.rb +11 -13
- data/lib/gillbus/buy_booking.rb +1 -9
- data/lib/gillbus/buy_tickets.rb +1 -8
- data/lib/gillbus/cancel_order.rb +0 -10
- data/lib/gillbus/drivers/faraday_response_file_logger.rb +1 -3
- data/lib/gillbus/find_order.rb +0 -5
- data/lib/gillbus/get_all_cities.rb +0 -2
- data/lib/gillbus/get_bus_image.rb +0 -3
- data/lib/gillbus/get_cities.rb +0 -4
- data/lib/gillbus/get_countries.rb +0 -4
- data/lib/gillbus/get_dates_new.rb +0 -4
- data/lib/gillbus/get_order_status.rb +1 -6
- data/lib/gillbus/get_order_ticket.rb +4 -7
- data/lib/gillbus/get_time_table.rb +0 -4
- data/lib/gillbus/get_trip_seats.rb +8 -11
- data/lib/gillbus/get_trip_segments.rb +0 -2
- data/lib/gillbus/get_trips.rb +0 -2
- data/lib/gillbus/helpers/fields.rb +5 -7
- data/lib/gillbus/helpers/parser.rb +10 -13
- data/lib/gillbus/helpers/update_attrs.rb +2 -4
- data/lib/gillbus/lock_seats.rb +7 -10
- data/lib/gillbus/logout.rb +0 -6
- data/lib/gillbus/parse_error.rb +3 -1
- data/lib/gillbus/reserve_tickets.rb +0 -2
- data/lib/gillbus/return_position.rb +0 -1
- data/lib/gillbus/search_trips.rb +5 -6
- data/lib/gillbus/session_login.rb +0 -6
- data/lib/gillbus/structs/commission.rb +4 -4
- data/lib/gillbus/structs/item.rb +0 -2
- data/lib/gillbus/structs/passenger_discount.rb +2 -3
- data/lib/gillbus/structs/point.rb +0 -1
- data/lib/gillbus/structs/return_cause.rb +0 -2
- data/lib/gillbus/structs/seat.rb +0 -2
- data/lib/gillbus/structs/segment.rb +5 -6
- data/lib/gillbus/structs/tariff.rb +1 -2
- data/lib/gillbus/structs/tariff/return_cause.rb +3 -3
- data/lib/gillbus/structs/ticket.rb +0 -2
- data/lib/gillbus/structs/timetable_trip.rb +4 -4
- data/lib/gillbus/structs/trip.rb +5 -6
- data/lib/gillbus/structs/trip_options.rb +0 -1
- data/lib/gillbus/structs/trip_service.rb +0 -2
- data/lib/gillbus/tickets_booking.rb +17 -13
- data/lib/gillbus/unlock_seats.rb +0 -2
- data/lib/gillbus/version.rb +1 -1
- data/script/example_booking.rb +16 -18
- data/script/example_booking_with_segments.rb +0 -1
- data/script/example_canceling_booking.rb +12 -13
- data/script/example_canceling_reservation.rb +11 -12
- data/script/example_reservation.rb +14 -15
- data/test/all_commissions_test.rb +1 -2
- data/test/buy_booking_test.rb +14 -13
- data/test/buy_tickets_test.rb +1 -2
- data/test/cancel_order_test.rb +1 -2
- data/test/error_test.rb +1 -3
- data/test/find_order_test.rb +3 -4
- data/test/get_bus_image_test.rb +0 -1
- data/test/get_cities_test.rb +1 -2
- data/test/get_countries_test.rb +1 -2
- data/test/get_dates_new_test.rb +0 -1
- data/test/get_order_ticket_test.rb +1 -2
- data/test/get_time_table_test.rb +0 -1
- data/test/get_trip_seats_test.rb +3 -4
- data/test/get_trip_segments_test.rb +5 -6
- data/test/lock_seats_test.rb +43 -33
- data/test/reserve_tickets_test.rb +10 -3
- data/test/return_position_test.rb +8 -5
- data/test/search_trips_test.rb +15 -19
- data/test/session_login_test.rb +0 -1
- data/test/tickets_booking_test.rb +2 -3
- metadata +24 -9
@@ -1,10 +1,8 @@
|
|
1
1
|
class Gillbus
|
2
2
|
module TicketsBooking
|
3
|
-
|
4
3
|
Gillbus.register self, :tickets_booking
|
5
4
|
|
6
5
|
class Request < BaseRequest
|
7
|
-
|
8
6
|
def path; '/online2/ticketsBooking' end
|
9
7
|
|
10
8
|
# orderId
|
@@ -16,7 +14,12 @@ class Gillbus
|
|
16
14
|
attr_accessor :terminal_number
|
17
15
|
|
18
16
|
# applyDiscount (не обязательный)
|
19
|
-
# Если при поиске рейсов не были указаны скидочные данные но есть возможность их применить
|
17
|
+
# Если при поиске рейсов не были указаны скидочные данные но есть возможность их применить
|
18
|
+
# при оформлении отложенной продажи (параметр CAN_DISCOUNT = true при поиске рейсов),
|
19
|
+
# то для применения скидочных данных необходимо этот параметр установить в true.
|
20
|
+
# Если на оформляемый рейс действуют скидки, то стоимость тарифа может быть пересчитана
|
21
|
+
# по переданным данным в параметрах passenger(0 - N)studentTicket, passenger(0 - N)birthday,
|
22
|
+
# passenger(0 - N)ISIC. По умолчанию false (скидочные данные не применяются ).
|
20
23
|
attr_accessor :apply_discount
|
21
24
|
|
22
25
|
# paymentMethod (не обязательный)
|
@@ -40,7 +43,8 @@ class Gillbus
|
|
40
43
|
attr_accessor :phone_number
|
41
44
|
|
42
45
|
# mailAddress (не обязательный)
|
43
|
-
# Адрес электронной почты пассажира.
|
46
|
+
# Адрес электронной почты пассажира.
|
47
|
+
# Если указан, то на него будет отправлен маршрутный лист соответствующий форме утвержденной с перевозчиком.
|
44
48
|
attr_accessor :mail_address
|
45
49
|
|
46
50
|
# note (не обязательный)
|
@@ -48,7 +52,8 @@ class Gillbus
|
|
48
52
|
attr_accessor :note
|
49
53
|
|
50
54
|
# ticketLocale (не обязательный)
|
51
|
-
# Язык, на котором будут возвращены данные для печати билета.
|
55
|
+
# Язык, на котором будут возвращены данные для печати билета.
|
56
|
+
# Если язык не передан или ошибочный, то будет установлен язык переданный при вызове команды входа в систему.
|
52
57
|
# rus – русский;
|
53
58
|
# ukr – украинский; lat – английский.
|
54
59
|
attr_accessor :ticket_locale
|
@@ -71,14 +76,12 @@ class Gillbus
|
|
71
76
|
note: note,
|
72
77
|
ticketLocale: translated_locale(ticket_locale),
|
73
78
|
sendTo: send_to,
|
74
|
-
**pax
|
79
|
+
**pax,
|
75
80
|
)
|
76
|
-
|
77
81
|
end
|
78
82
|
|
79
83
|
# not a request, just a record for BookTickets
|
80
84
|
class Passenger < BaseRequest
|
81
|
-
|
82
85
|
# passenger0studentTicket... passengerNstudentTicket (не обязательный)
|
83
86
|
# Номер студенческого билета пассажира с порядковым номером 0... N.
|
84
87
|
|
@@ -103,11 +106,13 @@ class Gillbus
|
|
103
106
|
attr_accessor :second_name
|
104
107
|
|
105
108
|
# passenger0tariffShortName... passengerNtariffShortName (не обязательный)
|
106
|
-
# Краткое обозначение тарифа, полученное при поиске рейсов в списке тарифов,
|
109
|
+
# Краткое обозначение тарифа, полученное при поиске рейсов в списке тарифов,
|
110
|
+
# по указанным passenger0studentTicket, passenger0birthday, passenger0ISIC.
|
107
111
|
attr_accessor :tariff_short_name
|
108
112
|
|
109
113
|
# passenger0tariffCost... passengerNtariffCost (не обязательный)
|
110
|
-
# Стоимость тарифа, полученное при поиске рейсов в списке тарифов,
|
114
|
+
# Стоимость тарифа, полученное при поиске рейсов в списке тарифов,
|
115
|
+
# с кратким обозначением passenger0tariffShortName с порядковым номером 0...N.
|
111
116
|
attr_accessor :tariff_cost
|
112
117
|
|
113
118
|
# passenger0documentType... passengerNdocumentType (не обязательный)
|
@@ -142,7 +147,7 @@ class Gillbus
|
|
142
147
|
# Величина скидки в валюте продажи для пассажира с порядковым номером 0…N.
|
143
148
|
attr_accessor :discount
|
144
149
|
|
145
|
-
def params(prefix=
|
150
|
+
def params(prefix = '')
|
146
151
|
compact(
|
147
152
|
birthday: date(birthday),
|
148
153
|
ISIC: isic,
|
@@ -157,7 +162,7 @@ class Gillbus
|
|
157
162
|
citizenship: citizenship,
|
158
163
|
gender: gender,
|
159
164
|
discountValue: discount.to_f.to_s,
|
160
|
-
).map {|k, v| [:"#{prefix}#{k}", v] }.to_h
|
165
|
+
).map { |k, v| [:"#{prefix}#{k}", v] }.to_h
|
161
166
|
end
|
162
167
|
|
163
168
|
def document_type_to_int(value)
|
@@ -177,6 +182,5 @@ class Gillbus
|
|
177
182
|
class Response < BaseResponse
|
178
183
|
field :tickets, [Ticket], key: 'TICKET'
|
179
184
|
end
|
180
|
-
|
181
185
|
end
|
182
186
|
end
|
data/lib/gillbus/unlock_seats.rb
CHANGED
data/lib/gillbus/version.rb
CHANGED
data/script/example_booking.rb
CHANGED
@@ -6,27 +6,26 @@ require 'pry'
|
|
6
6
|
require 'logger'
|
7
7
|
require 'securerandom'
|
8
8
|
|
9
|
-
GILLBUS_SERVER =
|
10
|
-
GILLBUS_PASSWORD =
|
9
|
+
GILLBUS_SERVER = 'http://mdc.demo.gillbus.com'.freeze
|
10
|
+
GILLBUS_PASSWORD = '3DVG/x1AOk+xwNlAEXytMCxZMsb73r39DOg97k8b8c4YaMrlOar071diefS0IyZT'.freeze
|
11
11
|
|
12
|
-
driver = Faraday.new(url: GILLBUS_SERVER)
|
12
|
+
driver = Faraday.new(url: GILLBUS_SERVER) do |c|
|
13
13
|
c.response :logger, Logger.new(STDOUT), bodies: true
|
14
14
|
c.request :url_encoded
|
15
15
|
c.adapter Faraday.default_adapter
|
16
|
-
|
16
|
+
end
|
17
17
|
|
18
18
|
g = Gillbus.new(driver: driver).login(
|
19
19
|
password: GILLBUS_PASSWORD,
|
20
|
-
locale: :ru
|
20
|
+
locale: :ru,
|
21
21
|
)
|
22
22
|
|
23
23
|
# getCities
|
24
24
|
|
25
25
|
cities = g.get_cities.cities
|
26
26
|
|
27
|
-
kiiv_id = cities.find {|c| c.name ==
|
28
|
-
lviv_id = cities.find {|c| c.name ==
|
29
|
-
|
27
|
+
kiiv_id = cities.find { |c| c.name == 'Киев' }.id
|
28
|
+
lviv_id = cities.find { |c| c.name == 'Львов' }.id
|
30
29
|
|
31
30
|
# searchTrips
|
32
31
|
|
@@ -37,9 +36,9 @@ trips = g.search_trips(
|
|
37
36
|
start_date_search: tomorrow,
|
38
37
|
ticket_count: 2,
|
39
38
|
passengers: [
|
40
|
-
{ birthday: Date.new(1983,4,19) },
|
41
|
-
{ birthday: Date.new(2007,10,15) },
|
42
|
-
]
|
39
|
+
{ birthday: Date.new(1983, 4, 19) },
|
40
|
+
{ birthday: Date.new(2007, 10, 15) },
|
41
|
+
],
|
43
42
|
).trips
|
44
43
|
|
45
44
|
trip_id = trips.first.id
|
@@ -53,15 +52,15 @@ order_id = SecureRandom.uuid
|
|
53
52
|
|
54
53
|
puts "making order: #{order_id}"
|
55
54
|
passengers = [
|
56
|
-
{ first_name: 'Иван', last_name: 'Иванов', passport:
|
57
|
-
{ first_name: 'Петр', last_name: 'Петров', passport:
|
55
|
+
{ first_name: 'Иван', last_name: 'Иванов', passport: '123' },
|
56
|
+
{ first_name: 'Петр', last_name: 'Петров', passport: '123' },
|
58
57
|
]
|
59
58
|
|
60
59
|
tb = g.tickets_booking(
|
61
60
|
order_id: order_id,
|
62
61
|
mail_address: 'invanov@mail.ru',
|
63
62
|
note: 'test',
|
64
|
-
passengers: passengers
|
63
|
+
passengers: passengers,
|
65
64
|
)
|
66
65
|
|
67
66
|
# relogging again
|
@@ -69,14 +68,13 @@ tb = g.tickets_booking(
|
|
69
68
|
g = Gillbus.new(driver: driver).login(password: GILLBUS_PASSWORD, locale: :ru)
|
70
69
|
|
71
70
|
# buyTickets
|
72
|
-
puts
|
71
|
+
puts 'confirmation: ' + g.buy_tickets(order_id: order_id).ticket.confirmation.inspect
|
73
72
|
|
74
73
|
# getOrderTicket
|
75
74
|
ot = g.get_order_ticket order_id: order_id, base64: true
|
76
75
|
|
77
|
-
filename = order_id +
|
78
|
-
puts
|
76
|
+
filename = order_id + '.pdf'
|
77
|
+
puts 'saving ' + filename
|
79
78
|
File.open filename, 'wb' do |f|
|
80
79
|
f << ot.ticket
|
81
80
|
end
|
82
|
-
|
@@ -6,27 +6,26 @@ require 'pry'
|
|
6
6
|
require 'logger'
|
7
7
|
require 'securerandom'
|
8
8
|
|
9
|
-
GILLBUS_SERVER =
|
10
|
-
GILLBUS_PASSWORD =
|
9
|
+
GILLBUS_SERVER = 'http://mdc.demo.gillbus.com'.freeze
|
10
|
+
GILLBUS_PASSWORD = '3DVG/x1AOk+xwNlAEXytMCxZMsb73r39DOg97k8b8c4YaMrlOar071diefS0IyZT'.freeze
|
11
11
|
|
12
|
-
driver = Faraday.new(url: GILLBUS_SERVER)
|
12
|
+
driver = Faraday.new(url: GILLBUS_SERVER) do |c|
|
13
13
|
c.response :logger, Logger.new(STDOUT), bodies: true
|
14
14
|
c.request :url_encoded
|
15
15
|
c.adapter Faraday.default_adapter
|
16
|
-
|
16
|
+
end
|
17
17
|
|
18
18
|
g = Gillbus.new(driver: driver).login(
|
19
19
|
password: GILLBUS_PASSWORD,
|
20
|
-
locale: :ru
|
20
|
+
locale: :ru,
|
21
21
|
)
|
22
22
|
|
23
23
|
# getCities
|
24
24
|
|
25
25
|
cities = g.get_cities.cities
|
26
26
|
|
27
|
-
kiiv_id = cities.find {|c| c.name ==
|
28
|
-
lviv_id = cities.find {|c| c.name ==
|
29
|
-
|
27
|
+
kiiv_id = cities.find { |c| c.name == 'Киев' }.id
|
28
|
+
lviv_id = cities.find { |c| c.name == 'Львов' }.id
|
30
29
|
|
31
30
|
# searchTrips
|
32
31
|
|
@@ -35,7 +34,7 @@ trips = g.search_trips(
|
|
35
34
|
start_city_id: kiiv_id,
|
36
35
|
end_city_id: lviv_id,
|
37
36
|
start_date_search: tomorrow,
|
38
|
-
ticket_count: 2
|
37
|
+
ticket_count: 2,
|
39
38
|
).trips
|
40
39
|
|
41
40
|
trip_id = trips.first.id
|
@@ -50,18 +49,18 @@ order_id = SecureRandom.uuid
|
|
50
49
|
puts "making order: #{order_id}"
|
51
50
|
passengers = [
|
52
51
|
{ first_name: 'Иван', last_name: 'Иванов' },
|
53
|
-
{ first_name: 'Петр', last_name: 'Петров' }
|
52
|
+
{ first_name: 'Петр', last_name: 'Петров' },
|
54
53
|
]
|
55
54
|
|
56
55
|
tb = g.tickets_booking(
|
57
56
|
order_id: order_id,
|
58
57
|
mail_address: 'ivan@mail.ru',
|
59
58
|
note: 'test',
|
60
|
-
passengers: passengers
|
59
|
+
passengers: passengers,
|
61
60
|
)
|
62
61
|
|
63
62
|
# отмена отложенной продажи
|
64
63
|
order_number = tb.tickets.first.order_number
|
65
64
|
canceling = g.cancel_order(order_number: order_number, cancel_reason: 'no_reason')
|
66
|
-
puts
|
67
|
-
puts
|
65
|
+
puts 'canceling: ' + canceling.inspect
|
66
|
+
puts 'success? ' + canceling.order_cancel.confirmation.inspect
|
@@ -5,29 +5,28 @@ require 'gillbus'
|
|
5
5
|
require 'pry'
|
6
6
|
require 'securerandom'
|
7
7
|
|
8
|
-
GILLBUS_SERVER =
|
9
|
-
GILLBUS_PASSWORD =
|
8
|
+
GILLBUS_SERVER = 'http://mdc.demo.gillbus.com'.freeze
|
9
|
+
GILLBUS_PASSWORD = '3DVG/x1AOk+xwNlAEXytMCxZMsb73r39DOg97k8b8c4YaMrlOar071diefS0IyZT'.freeze
|
10
10
|
|
11
11
|
require 'logger'
|
12
12
|
|
13
|
-
driver = Faraday.new(url: GILLBUS_SERVER)
|
13
|
+
driver = Faraday.new(url: GILLBUS_SERVER) do |c|
|
14
14
|
c.response :logger, Logger.new(STDOUT), bodies: true
|
15
15
|
c.request :url_encoded
|
16
16
|
c.adapter Faraday.default_adapter
|
17
|
-
|
17
|
+
end
|
18
18
|
|
19
19
|
g = Gillbus.new(driver: driver).login(
|
20
20
|
password: GILLBUS_PASSWORD,
|
21
|
-
locale: :ru
|
21
|
+
locale: :ru,
|
22
22
|
)
|
23
23
|
|
24
24
|
# getCities
|
25
25
|
|
26
26
|
cities = g.get_cities.cities
|
27
27
|
|
28
|
-
kiiv_id = cities.find {|c| c.name ==
|
29
|
-
odessa_id = cities.find {|c| c.name ==
|
30
|
-
|
28
|
+
kiiv_id = cities.find { |c| c.name == 'Киев' }.id
|
29
|
+
odessa_id = cities.find { |c| c.name == 'Львов' }.id
|
31
30
|
|
32
31
|
# searchTrips
|
33
32
|
|
@@ -52,18 +51,18 @@ order_id = SecureRandom.uuid
|
|
52
51
|
puts "making order: #{order_id}"
|
53
52
|
passengers = [
|
54
53
|
{ first_name: 'Иван', last_name: 'Иванов' },
|
55
|
-
{ first_name: 'Петр', last_name: 'Петров' }
|
54
|
+
{ first_name: 'Петр', last_name: 'Петров' },
|
56
55
|
]
|
57
56
|
|
58
57
|
rt = g.reserve_tickets(
|
59
58
|
order_id: order_id,
|
60
59
|
mail_address: 'ivan@mail.ru',
|
61
60
|
note: 'test',
|
62
|
-
passengers: passengers
|
61
|
+
passengers: passengers,
|
63
62
|
)
|
64
63
|
|
65
64
|
# отмена брони
|
66
65
|
order_number = rt.tickets.first.order_number
|
67
66
|
canceling = g.cancel_order(order_number: order_number, cancel_reason: 'no_reason')
|
68
|
-
puts
|
69
|
-
puts
|
67
|
+
puts 'canceling: ' + canceling.inspect
|
68
|
+
puts 'success? ' + canceling.order_cancel.confirmation.inspect
|
@@ -5,29 +5,28 @@ require 'gillbus'
|
|
5
5
|
require 'pry'
|
6
6
|
require 'securerandom'
|
7
7
|
|
8
|
-
GILLBUS_SERVER =
|
9
|
-
GILLBUS_PASSWORD =
|
8
|
+
GILLBUS_SERVER = 'http://mdc.demo.gillbus.com'.freeze
|
9
|
+
GILLBUS_PASSWORD = '3DVG/x1AOk+xwNlAEXytMCxZMsb73r39DOg97k8b8c4YaMrlOar071diefS0IyZT'.freeze
|
10
10
|
|
11
11
|
require 'logger'
|
12
12
|
|
13
|
-
driver = Faraday.new(url: GILLBUS_SERVER)
|
13
|
+
driver = Faraday.new(url: GILLBUS_SERVER) do |c|
|
14
14
|
c.response :logger, Logger.new(STDOUT), bodies: true
|
15
15
|
c.request :url_encoded
|
16
16
|
c.adapter Faraday.default_adapter
|
17
|
-
|
17
|
+
end
|
18
18
|
|
19
19
|
g = Gillbus.new(driver: driver).login(
|
20
20
|
password: GILLBUS_PASSWORD,
|
21
|
-
locale: :ru
|
21
|
+
locale: :ru,
|
22
22
|
)
|
23
23
|
|
24
24
|
# getCities
|
25
25
|
|
26
26
|
cities = g.get_cities.cities
|
27
27
|
|
28
|
-
kiiv_id = cities.find {|c| c.name ==
|
29
|
-
lviv_id = cities.find {|c| c.name ==
|
30
|
-
|
28
|
+
kiiv_id = cities.find { |c| c.name == 'Киев' }.id
|
29
|
+
lviv_id = cities.find { |c| c.name == 'Львов' }.id
|
31
30
|
|
32
31
|
# searchTrips
|
33
32
|
|
@@ -54,14 +53,14 @@ order_id = SecureRandom.uuid
|
|
54
53
|
puts "making order: #{order_id}"
|
55
54
|
passengers = [
|
56
55
|
{ first_name: 'Иван', last_name: 'Иванов' },
|
57
|
-
{ first_name: 'Петр', last_name: 'Петров' }
|
56
|
+
{ first_name: 'Петр', last_name: 'Петров' },
|
58
57
|
]
|
59
58
|
|
60
59
|
rt = g.reserve_tickets(
|
61
60
|
order_id: order_id,
|
62
61
|
mail_address: 'ivan@mail.ru',
|
63
62
|
note: 'test',
|
64
|
-
passengers: passengers
|
63
|
+
passengers: passengers,
|
65
64
|
)
|
66
65
|
ticket_numbers = rt.tickets.map(&:ticket_number)
|
67
66
|
|
@@ -73,16 +72,16 @@ g = Gillbus.new(driver: driver).login(password: GILLBUS_PASSWORD, locale: :ru)
|
|
73
72
|
response = g.buy_booking(
|
74
73
|
ticket_count: 2,
|
75
74
|
ticket_numbers: ticket_numbers,
|
76
|
-
order_ids: [order_id, order_id]
|
75
|
+
order_ids: [order_id, order_id],
|
77
76
|
)
|
78
|
-
p
|
79
|
-
p
|
77
|
+
p 'confirmation: ' + response.ticket.confirmation.inspect
|
78
|
+
p 'ticket_numbers: ' + response.ticket.position_numbers.inspect
|
80
79
|
|
81
80
|
# getOrderTicket
|
82
81
|
ot = g.get_order_ticket order_id: order_id, base64: true
|
83
82
|
|
84
|
-
filename = order_id +
|
85
|
-
puts
|
83
|
+
filename = order_id + '.pdf'
|
84
|
+
puts 'saving ' + filename
|
86
85
|
File.open filename, 'wb' do |f|
|
87
86
|
f << ot.ticket
|
88
87
|
end
|
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
3
|
class AllCommissionsTest < Minitest::Test
|
4
|
-
|
5
4
|
def response
|
6
5
|
Gillbus::FindOrder::Response.parse_string(File.read('test/responses/ticketsBookingAllCommissions.xml'))
|
7
6
|
end
|
@@ -11,6 +10,6 @@ class AllCommissionsTest < Minitest::Test
|
|
11
10
|
end
|
12
11
|
|
13
12
|
def test_in_out_value
|
14
|
-
assert_equal
|
13
|
+
assert_equal '3', response.tickets.first.all_commissions.first.in_out_type
|
15
14
|
end
|
16
15
|
end
|