mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-15 00:00:44 -04:00
As discussed in #325, this deprecates the public visibility of `#refresh_from` (by renaming it). It also adds some deprecation infrastructure to produce warnings when it's used.
20 lines
369 B
Ruby
20 lines
369 B
Ruby
module Stripe
|
|
class Order < APIResource
|
|
extend Stripe::APIOperations::List
|
|
extend Stripe::APIOperations::Create
|
|
include Stripe::APIOperations::Update
|
|
|
|
def pay(params, opts={})
|
|
response, opts = request(:post, pay_url, params, opts)
|
|
initialize_from(response, opts)
|
|
end
|
|
|
|
private
|
|
|
|
def pay_url
|
|
url + "/pay"
|
|
end
|
|
|
|
end
|
|
end
|