Sha256: d75265f53cbef7e566024be884bce9a6fa38cd9177fa9a043433a622ae53481a

Contents?: true

Size: 443 Bytes

Versions: 7

Compression:

Stored size: 443 Bytes

Contents

# 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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
stripe-4.22.0 lib/stripe/resources/topup.rb
bongloy-4.21.3 lib/stripe/resources/topup.rb
stripe-4.21.3 lib/stripe/resources/topup.rb
stripe-4.21.2 lib/stripe/resources/topup.rb
stripe-4.18.1 lib/stripe/topup.rb
stripe-4.18.0 lib/stripe/topup.rb
stripe-4.17.0 lib/stripe/topup.rb