Skip to content

Commit

Permalink
add flexible_code_field to line item
Browse files Browse the repository at this point in the history
  • Loading branch information
mariyawhitcomb committed Dec 18, 2024
1 parent 86a5a1a commit 0045d14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/vertex_client/responses/line_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0045d14

Please sign in to comment.