lib/waveapps/invoice.rb in waveapps-0.1.5 vs lib/waveapps/invoice.rb in waveapps-0.1.6

- old
+ new

@@ -270,10 +270,16 @@ items: items.map do |pid| { productId: pid[:product_id], quantity: pid[:quantity], description: pid[:description], - unitPrice: pid[:unit_price] + unitPrice: pid[:unit_price], + taxes: pid[:taxes] && pid[:taxes].map do |tax| + { + salesTaxId: tax[:sales_tax_id], + amount: tax[:amount] + } + end } end, status: status, currency: currency, title: title,