mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-04 00:00:47 -04:00
19 lines
443 B
Ruby
19 lines
443 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Stripe
|
|
class Topup < APIResource
|
|
extend Stripe::APIOperations::Create
|
|
extend Stripe::APIOperations::List
|
|
include Stripe::APIOperations::Save
|
|
|
|
OBJECT_NAME = "topup".freeze
|
|
|
|
custom_method :cancel, http_verb: :post
|
|
|
|
def cancel(params = {}, opts = {})
|
|
resp, opts = request(:post, resource_url + "/cancel", params, opts)
|
|
initialize_from(resp.data, opts)
|
|
end
|
|
end
|
|
end
|