lib/stripe/resources/order.rb in stripe-4.24.0 vs lib/stripe/resources/order.rb in stripe-5.0.0

- old
+ new

@@ -4,11 +4,11 @@ class Order < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List include Stripe::APIOperations::Save - OBJECT_NAME = "order".freeze + OBJECT_NAME = "order" custom_method :pay, http_verb: :post custom_method :return_order, http_verb: :post, http_path: "returns" def pay(params = {}, opts = {}) @@ -25,16 +25,8 @@ method: :post, path: resource_url + "/returns", params: params, opts: opts ) - end - - private def pay_url - resource_url + "/pay" - end - - private def returns_url - resource_url + "/returns" end end end