summaryrefslogtreecommitdiff
path: root/lib/super_good/solidus_taxjar/api.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/super_good/solidus_taxjar/api.rb')
-rw-r--r--lib/super_good/solidus_taxjar/api.rb4
1 files changed, 4 insertions, 0 deletions
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