lib/alfa_insurance/insurance.rb in alfa_insurance-0.1.4 vs lib/alfa_insurance/insurance.rb in alfa_insurance-0.1.5
- old
+ new
@@ -31,11 +31,11 @@
params.each do |attr, value|
instance_variable_set("@#{attr}", value)
end
end
- def generate_xml(xml)
+ def generate_xml(xml, ticket_issue_date)
xml.insuredFirstName(insured_first_name)
xml.insuredLastName(insured_last_name)
xml.insuredPatronymic(insured_patronymic)
xml.insuredBirthDate(insured_birth_date)
xml.insuredCount(1)
@@ -71,9 +71,10 @@
}
end
xml.busSegmentsCount(bus_segments.size)
xml.ticketInformation {
xml.ticketTotalValue(total_value.to_f)
+ xml.ticketIssueDate(ticket_issue_date.iso8601)
}
xml.customerPhoneType 'MOBILE'
xml.customerPhone customer_phone
xml.customerEmail customer_email
xml