lib/stripe/order.rb in stripe-4.18.0 vs lib/stripe/order.rb in stripe-4.18.1
- old
+ new
@@ -9,26 +9,24 @@
OBJECT_NAME = "order".freeze
custom_method :pay, http_verb: :post
custom_method :return_order, http_verb: :post, http_path: "returns"
- def pay(params, opts = {})
+ def pay(params = {}, opts = {})
resp, opts = request(:post, pay_url, params, opts)
initialize_from(resp.data, opts)
end
def return_order(params, opts = {})
resp, opts = request(:post, returns_url, params, opts)
Util.convert_to_stripe_object(resp.data, opts)
end
- private
-
- def pay_url
+ private def pay_url
resource_url + "/pay"
end
- def returns_url
+ private def returns_url
resource_url + "/returns"
end
end
end