Skip to content

Commit

Permalink
add flexible code field
Browse files Browse the repository at this point in the history
  • Loading branch information
mariyawhitcomb committed Dec 18, 2024
1 parent e71ce1c commit 86a5a1a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/vertex_client/responses/quotation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 86a5a1a

Please sign in to comment.