mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-16 00:02:00 -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.
18 lines
363 B
Ruby
18 lines
363 B
Ruby
module Stripe
|
|
class Transfer < APIResource
|
|
extend Stripe::APIOperations::List
|
|
extend Stripe::APIOperations::Create
|
|
include Stripe::APIOperations::Update
|
|
|
|
def cancel
|
|
response, api_key = Stripe.request(:post, cancel_url, @api_key)
|
|
initialize_from(response, api_key)
|
|
end
|
|
|
|
def cancel_url
|
|
url + '/cancel'
|
|
end
|
|
|
|
end
|
|
end
|