From 86a5a1a4aeab132aa12454c96c0ee0bc8e81b0f6 Mon Sep 17 00:00:00 2001 From: Mariya Whitcomb Date: Wed, 18 Dec 2024 10:05:42 -0500 Subject: [PATCH] add flexible code field --- lib/vertex_client/responses/quotation.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/vertex_client/responses/quotation.rb b/lib/vertex_client/responses/quotation.rb index 6c2b4c0..f0c7b89 100644 --- a/lib/vertex_client/responses/quotation.rb +++ b/lib/vertex_client/responses/quotation.rb @@ -16,12 +16,13 @@ def total def line_items @line_items ||= normalized_line_items.map do |line_item| - LineItem.new( + LineItem.new( product: product_for_line_item(line_item[:product]), quantity: line_item[:quantity], price: line_item[:extended_price], - total_tax: tax_for_line_item(line_item) - ) + total_tax: tax_for_line_item(line_item), + flexible_code_field: line_item[:flexible_fields].try(:[], :flexible_code_field) + ) end end