diff --git a/lib/vertex_client/responses/line_item.rb b/lib/vertex_client/responses/line_item.rb index 268b16a..3bc5889 100644 --- a/lib/vertex_client/responses/line_item.rb +++ b/lib/vertex_client/responses/line_item.rb @@ -2,13 +2,14 @@ module VertexClient module Response class LineItem - attr_reader :total_tax, :product, :quantity, :price + attr_reader :total_tax, :product, :quantity, :price, :flexible_code_field def initialize(params={}) @product = params[:product] @quantity = params[:quantity] ? params[:quantity].to_i : 0 @price = BigDecimal(params[:price] || 0) @total_tax = BigDecimal(params[:total_tax] || 0) + @flexible_code_field = params[:flexible_code_field] end end end