From ee7286c6d17641bbcc340e3e4b5e6f9e89737c6a Mon Sep 17 00:00:00 2001 From: Jared Norman Date: Wed, 30 Jan 2019 17:39:42 -0800 Subject: Add support for deleting order transactions --- lib/super_good/solidus_taxjar/api.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/super_good/solidus_taxjar') diff --git a/lib/super_good/solidus_taxjar/api.rb b/lib/super_good/solidus_taxjar/api.rb index 45a32b7..61fecae 100644 --- a/lib/super_good/solidus_taxjar/api.rb +++ b/lib/super_good/solidus_taxjar/api.rb @@ -28,6 +28,10 @@ module SuperGood taxjar_client.update_order APIParams.transaction_params(order) end + def delete_transaction_for(order) + taxjar_client.delete_order order.number + end + private attr_reader :taxjar_client -- cgit v1.2.3