lib/stripe/order.rb in stripe-2.5.0 vs lib/stripe/order.rb in stripe-2.6.0
- old
+ new
@@ -2,9 +2,11 @@
class Order < APIResource
extend Stripe::APIOperations::List
extend Stripe::APIOperations::Create
include Stripe::APIOperations::Save
+ OBJECT_NAME = 'order'
+
def pay(params, opts={})
resp, opts = request(:post, pay_url, params, opts)
initialize_from(resp.data, opts)
end