From 8581484be15ed19bbd37d861b082ba1e9b34b978 Mon Sep 17 00:00:00 2001 From: Jared Norman Date: Thu, 31 Jan 2019 09:24:44 -0800 Subject: Add ability to create refunds --- lib/super_good/solidus_taxjar/api.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/super_good/solidus_taxjar/api.rb') diff --git a/lib/super_good/solidus_taxjar/api.rb b/lib/super_good/solidus_taxjar/api.rb index 61fecae..7309a64 100644 --- a/lib/super_good/solidus_taxjar/api.rb +++ b/lib/super_good/solidus_taxjar/api.rb @@ -32,6 +32,10 @@ module SuperGood taxjar_client.delete_order order.number end + def create_refund_for(reimbursement) + taxjar_client.create_refund APIParams.refund_params(reimbursement) + end + private attr_reader :taxjar_client -- cgit v1.2.3