# frozen_string_literal: true module ShopifyAPI class Refund < Base init_prefix :order def self.calculate(*args) options = { refund: args[0] } params = {} params = args[1][:params] if args[1] && args[1][:params] resource = post(:calculate, params, options.to_json) instantiate_record(format.decode(resource.body), {}) end end end