Sha256: 9c45fe47a099f28cbadf4390db107c32a825164a905db66854bfd8c79500c905

Contents?: true

Size: 537 Bytes

Versions: 9

Compression:

Stored size: 537 Bytes

Contents

module Stripe
  class BitcoinReceiver < APIResource
    extend Stripe::APIOperations::Create
    include Stripe::APIOperations::Update
    include Stripe::APIOperations::Delete
    extend Stripe::APIOperations::List

    def self.resource_url
      "/v1/bitcoin/receivers"
    end

    def resource_url
      if respond_to?(:customer) && !self.customer.nil?
        "#{Customer.resource_url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}"
      else
        "#{self.class.resource_url}/#{CGI.escape(id)}"
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
stripe-1.43.1 lib/stripe/bitcoin_receiver.rb
stripe-1.43.0 lib/stripe/bitcoin_receiver.rb
stripe-1.42.0 lib/stripe/bitcoin_receiver.rb
stripe-1.41.0 lib/stripe/bitcoin_receiver.rb
stripe-1.40.0 lib/stripe/bitcoin_receiver.rb
stripe-1.39.0 lib/stripe/bitcoin_receiver.rb
stripe-1.38.0 lib/stripe/bitcoin_receiver.rb
stripe-1.37.0 lib/stripe/bitcoin_receiver.rb
stripe-1.36.2 lib/stripe/bitcoin_receiver.rb