lib/maxipago/xml_builder/builder_transaction.rb in maxipago-0.1.27 vs lib/maxipago/xml_builder/builder_transaction.rb in maxipago-0.1.28

- old
+ new

@@ -342,10 +342,11 @@ unless self.options[:billing_name].nil? xml.billing { xml.name self.options[:billing_name] xml.address self.options[:billing_address] unless self.options[:billing_address].nil? xml.address2 self.options[:billing_address2] unless self.options[:billing_address2].nil? + xml.district self.options[:billing_district] unless self.options[:billing_district].nil? xml.city self.options[:billing_city] unless self.options[:billing_city].nil? xml.state self.options[:billing_state] unless self.options[:billing_state].nil? xml.postalcode self.options[:billing_postalcode] unless self.options[:billing_postalcode].nil? xml.country self.options[:billing_country] unless self.options[:billing_country].nil? xml.phone self.options[:billing_phone] unless self.options[:billing_phone].nil? @@ -355,10 +356,11 @@ unless self.options[:shipping_name].nil? xml.shipping { xml.name self.options[:shipping_name] xml.address self.options[:shipping_address] unless self.options[:shipping_address].nil? xml.address2 self.options[:shipping_address2] unless self.options[:shipping_address2].nil? + xml.district self.options[:shipping_district] unless self.options[:shipping_district].nil? xml.city self.options[:shipping_city] unless self.options[:shipping_city].nil? xml.state self.options[:shipping_state] unless self.options[:shipping_state].nil? xml.postalcode self.options[:shipping_postalcode] unless self.options[:shipping_postalcode].nil? xml.country self.options[:shipping_country] unless self.options[:shipping_country].nil? xml.phone self.options[:shipping_phone] unless self.options[:shipping_phone].nil? @@ -383,16 +385,20 @@ end } } xml.payment { xml.chargeTotal self.options[:charge_total] + xml.currencyCode self.options[:currency_code] unless self.options[:currency_code].nil? } xml.recurring { xml.action "new" xml.startDate self.options[:start_date] xml.frequency self.options[:frequency] xml.period self.options[:period] xml.installments self.options[:installments] + xml.firstAmount self.options[:first_amount] + xml.lastAmount self.options[:last_amount] + xml.lastDate self.options[:last_date] xml.failureThreshold self.options[:failure_threshold] } } } } \ No newline at end of file