mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-05 00:02:50 -04:00
17 lines
366 B
Ruby
17 lines
366 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Stripe
|
|
class Topup < APIResource
|
|
extend Stripe::APIOperations::List
|
|
extend Stripe::APIOperations::Create
|
|
include Stripe::APIOperations::Save
|
|
|
|
OBJECT_NAME = "topup".freeze
|
|
|
|
def cancel
|
|
resp, api_key = request(:post, resource_url + "/cancel")
|
|
initialize_from(resp.data, api_key)
|
|
end
|
|
end
|
|
end
|