From 0045d14633479ed16084acd8fffb7872fefb00d1 Mon Sep 17 00:00:00 2001 From: Mariya Whitcomb Date: Wed, 18 Dec 2024 11:23:30 -0500 Subject: [PATCH] add flexible_code_field to line item --- lib/vertex_client/responses/line_item.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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