app/models/apidae/apidae_data_parser.rb in apidae-1.4.3 vs app/models/apidae/apidae_data_parser.rb in apidae-1.4.4

- old
+ new

@@ -260,10 +260,10 @@ if rates_hash desc = rates_hash[:gratuit] ? {DEFAULT_LOCALE => 'gratuit'} : node_value(rates_hash, :tarifsEnClair, *locales) values = rates_hash[:periodes].blank? ? [] : rates_hash[:periodes].map {|p| build_rate(p, *locales)} methods = rates_hash[:modesPaiement].blank? ? [] : rates_hash[:modesPaiement].map {|p| p[:id]} { - rates_desc: desc, rates: values, payment_methods: methods, + rates_desc: desc, rates: values, rates_category: rates_hash[:indicationTarif], payment_methods: methods, tax_included: rates_hash[:taxeDeSejourIncluse].blank? ? nil : (rates_hash[:taxeDeSejourIncluse] == 'OUI'), rates_desc_mode: rates_hash[:tarifsEnClairGenerationMode] == 'AUTOMATIQUE' ? MODE_AUTO : MODE_MANUAL, includes: node_value(rates_hash, :leTarifComprend, *locales), excludes: node_value(rates_hash, :leTarifNeComprendPas, *locales), rates_extra: node_value(rates_hash, :complement, *locales) \ No newline at end of file