Skip to content

Commit

Permalink
Let's test adding @roundAtLineLevel=true to Vertex via SOAP
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwheeler1987 committed Oct 17, 2024
1 parent e71ce1c commit bbcccbd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/vertex_client/payloads/quotation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module Payload
class Quotation < Base

SALE_TRANSACTION_TYPE = 'SALE'.freeze
ROUND_AT_LINE_LEVEL_BOOLEAN = true.freeze

def validate!
raise VertexClient::ValidationError.new('customer requires either state or country and postal_code') if customer_missing_location?
Expand All @@ -12,6 +13,7 @@ def validate!
def body
{}.tap do |data|
data[:'@transactionType'] = SALE_TRANSACTION_TYPE
date[:'@roundAtLineLevel'] = ROUND_AT_LINE_LEVEL_BOOLEAN
data[:'@isTaxOnlyAdjustmentIndicator'] = true if params[:tax_only_adjustment]
data[:'@deliveryTerm'] = params[:delivery_term] if params[:delivery_term]
data[:line_item] = params[:line_items].map.with_index do |line_item, index|
Expand Down

0 comments on commit bbcccbd

Please sign in to comment.