lib/gillbus/tickets_booking.rb in gillbus-0.16.10 vs lib/gillbus/tickets_booking.rb in gillbus-0.17.1

- old
+ new

@@ -145,10 +145,15 @@ # passenger0discountValue... passengerNdiscountValue (не обязательный) # Величина скидки в валюте продажи для пассажира с порядковым номером 0…N. attr_accessor :discount + + attr_accessor :insurance + + attr_accessor :insurance_id + def params(prefix = '') compact( birthday: date(birthday), ISIC: isic, firstName: first_name, @@ -160,9 +165,11 @@ passport: passport, passportExpireDate: passport_expire_date, citizenship: citizenship, gender: gender, discountValue: discount.to_f.to_s, + insurance: insurance, + insuranceId: insurance_id, ).map { |k, v| [:"#{prefix}#{k}", v] }.to_h end def document_type_to_int(value) {