super_good-solidus_taxjar 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5c894c77b9759569d51ee5f1e8812e87141354365db29a5dc7d901b1daf7bd5
4
- data.tar.gz: 523521443feeb3ce517fda157af541e9b08d2d1c0c2c458066e7fd761dea3bf7
3
+ metadata.gz: 16f78fd5b5f06f886e1155ac73da728cafe195ccbf6680cad6399ce8048fcb96
4
+ data.tar.gz: dd18d3f4cf47e6eda8a2d537cbfac8ef82d15bb49e4042122f18f40e7ba14975
5
5
  SHA512:
6
- metadata.gz: 1cf54bcbf49aec4cf143d1353d6025d1acd2350b3432fd071d5a27ac309f366e634a84cc6774f35172638afba8fd2e04c77494dbdcca511dc2894d78f8f03a39
7
- data.tar.gz: 359013164861393434349aaee5c02632f1c5d10665402222572921cf5fa22d1a67b455d78502cd79183bc83e8f4f7d2fb2d94c163e82c6e966bc8646f6d4d536
6
+ metadata.gz: bca92e9d73c6cbb601f551aef6ba99a19a0780aa351c82fab1281b6cf27c75c6cc931802e537dcff84012b92697b4510a2e0b02297c3a55ee2dff32bac8ee8cf
7
+ data.tar.gz: 75097f4c136e756add39300058309c7253f889006f52c781aa8b39514310906eaa1bdacf85c7f4d55585ceb1e1bb4e4f069c20e66a8a5150157a197a25823ab1
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## v0.11.1
6
+
7
+ - Avoid sending negative amounts for order totals.
8
+
5
9
  ## v0.11.0
6
10
 
7
11
  - Avoid sending 0 quantity line items. TaxJar doesn't like them.
@@ -28,7 +28,7 @@ module SuperGood
28
28
  .merge(
29
29
  transaction_id: order.number,
30
30
  transaction_date: order.completed_at.to_formatted_s(:iso8601),
31
- amount: order.total - order.additional_tax_total,
31
+ amount: [order.total - order.additional_tax_total, 0].max,
32
32
  shipping: shipping(order),
33
33
  sales_tax: order.additional_tax_total
34
34
  )
@@ -1,5 +1,5 @@
1
1
  module SuperGood
2
2
  module SolidusTaxJar
3
- VERSION = "0.11.0"
3
+ VERSION = "0.11.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: super_good-solidus_taxjar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared Norman