lib/gillbus/tickets_booking.rb in gillbus-0.17.1 vs lib/gillbus/tickets_booking.rb in gillbus-0.17.2
- old
+ new
@@ -146,13 +146,12 @@
# passenger0discountValue... passengerNdiscountValue (не обязательный)
# Величина скидки в валюте продажи для пассажира с порядковым номером 0…N.
attr_accessor :discount
- attr_accessor :insurance
-
attr_accessor :insurance_id
+ attr_accessor :insurance_cost
def params(prefix = '')
compact(
birthday: date(birthday),
ISIC: isic,
@@ -165,11 +164,11 @@
passport: passport,
passportExpireDate: passport_expire_date,
citizenship: citizenship,
gender: gender,
discountValue: discount.to_f.to_s,
- insurance: insurance,
insuranceId: insurance_id,
+ insurance: insurance_cost,
).map { |k, v| [:"#{prefix}#{k}", v] }.to_h
end
def document_type_to_int(value)
{