summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Norman <jared@super.gd>2019-01-20 18:00:32 -0800
committerJared Norman <jared@super.gd>2019-01-20 18:00:32 -0800
commit9c2d4462f4d8626f95fb21d2a920ad7b087d4254 (patch)
tree3de99a1e7274dcf899b3a827656f946e85ed8497
parent3a1aea93e236ec0a52fae0ef4ab949acccd2088f (diff)
Don't send amount
It's not necessary because we're sending line items.
-rw-r--r--lib/super_good/solidus_taxjar/api.rb1
-rw-r--r--spec/super_good/solidus_taxjar/api_spec.rb1
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/super_good/solidus_taxjar/api.rb b/lib/super_good/solidus_taxjar/api.rb
index 6d16388..8c624d4 100644
--- a/lib/super_good/solidus_taxjar/api.rb
+++ b/lib/super_good/solidus_taxjar/api.rb
@@ -30,7 +30,6 @@ module SuperGood
to_state: tax_address&.state&.abbr || tax_address.state_name,
to_street: tax_address.address1,
- amount: order.item_total,
shipping: order.shipment_total,
line_items: order.line_items.map do |line_item|
diff --git a/spec/super_good/solidus_taxjar/api_spec.rb b/spec/super_good/solidus_taxjar/api_spec.rb
index 826f598..510084a 100644
--- a/spec/super_good/solidus_taxjar/api_spec.rb
+++ b/spec/super_good/solidus_taxjar/api_spec.rb
@@ -118,7 +118,6 @@ RSpec.describe SuperGood::SolidusTaxJar::API do
to_state: "CA",
to_street: "475 N Beverly Dr",
- amount: 28.00,
shipping: 3.01,
line_items: [{