lib/stripe/invoice.rb in stripe-1.58.0 vs lib/stripe/invoice.rb in stripe-2.0.0

- old
+ new

@@ -3,16 +3,16 @@ extend Stripe::APIOperations::List include Stripe::APIOperations::Save extend Stripe::APIOperations::Create def self.upcoming(params, opts={}) - response, opts = request(:get, upcoming_url, params, opts) - Util.convert_to_stripe_object(response, opts) + resp, opts = request(:get, upcoming_url, params, opts) + Util.convert_to_stripe_object(resp.data, opts) end def pay(opts={}) - response, opts = request(:post, pay_url, {}, opts) - initialize_from(response, opts) + resp, opts = request(:post, pay_url, {}, opts) + initialize_from(resp.data, opts) end private def self.upcoming_url