module Taxjar::API::Refund

Public Instance Methods

create_refund(options = {}) click to toggle source
# File lib/taxjar/api/refund.rb, line 16
def create_refund(options = {})
  perform_post_with_object("/v2/transactions/refunds", 'refund', options, Taxjar::Refund)
end
delete_refund(id, options={}) click to toggle source
# File lib/taxjar/api/refund.rb, line 25
def delete_refund(id, options={})
  perform_delete_with_object("/v2/transactions/refunds/#{id}", 'refund', options, Taxjar::Refund)
end
list_refunds(options = {}) click to toggle source
# File lib/taxjar/api/refund.rb, line 8
def list_refunds(options = {})
  perform_get_with_array("/v2/transactions/refunds", 'refunds', options)
end
show_refund(id, options = {}) click to toggle source
# File lib/taxjar/api/refund.rb, line 12
def show_refund(id, options = {})
  perform_get_with_object("/v2/transactions/refunds/#{id}", 'refund', options, Taxjar::Refund)
end
update_refund(options = {}) click to toggle source
# File lib/taxjar/api/refund.rb, line 20
def update_refund(options = {})
  id = options.fetch(:transaction_id)
  perform_put_with_object("/v2/transactions/refunds/#{id}", 'refund', options, Taxjar::Refund)
end