lib/stripe/resources/invoice.rb in stripe-4.21.1 vs lib/stripe/resources/invoice.rb in stripe-4.21.2

- old
+ new

@@ -15,30 +15,30 @@ custom_method :send_invoice, http_verb: :post, http_path: "send" custom_method :void_invoice, http_verb: :post, http_path: "void" def finalize_invoice(params = {}, opts = {}) resp, opts = request(:post, resource_url + "/finalize", params, opts) - Util.convert_to_stripe_object(resp.data, opts) + initialize_from(resp.data, opts) end def mark_uncollectible(params = {}, opts = {}) resp, opts = request(:post, resource_url + "/mark_uncollectible", params, opts) - Util.convert_to_stripe_object(resp.data, opts) + initialize_from(resp.data, opts) end def pay(params = {}, opts = {}) resp, opts = request(:post, resource_url + "/pay", params, opts) - Util.convert_to_stripe_object(resp.data, opts) + initialize_from(resp.data, opts) end def send_invoice(params = {}, opts = {}) resp, opts = request(:post, resource_url + "/send", params, opts) - Util.convert_to_stripe_object(resp.data, opts) + initialize_from(resp.data, opts) end def void_invoice(params = {}, opts = {}) resp, opts = request(:post, resource_url + "/void", params, opts) - Util.convert_to_stripe_object(resp.data, opts) + initialize_from(resp.data, opts) end def self.upcoming(params, opts = {}) resp, opts = request(:get, resource_url + "/upcoming", params, opts) Util.convert_to_stripe_object(resp.data, opts)