Sha256: 6a7c6a2b7b63543cce4dc4c8245865013220e5292ada3b21e05ef9d00577d171

Contents?: true

Size: 745 Bytes

Versions: 20

Compression:

Stored size: 745 Bytes

Contents

module Stripe
  class BitcoinReceiver < APIResource
    # Directly creating or retrieving BitcoinReceivers is deprecated. Please use
    # the Sources API instead: https://stripe.com/docs/sources/bitcoin
    extend Stripe::APIOperations::Create
    include Stripe::APIOperations::Save
    include Stripe::APIOperations::Delete
    extend Stripe::APIOperations::List

    OBJECT_NAME = "bitcoin_receiver".freeze

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

    def resource_url
      if respond_to?(:customer) && !customer.nil? && customer != ""
        "#{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

20 entries across 20 versions & 1 rubygems

Version Path
stripe-3.14.0 lib/stripe/bitcoin_receiver.rb
stripe-3.13.1 lib/stripe/bitcoin_receiver.rb
stripe-3.13.0 lib/stripe/bitcoin_receiver.rb
stripe-3.12.1 lib/stripe/bitcoin_receiver.rb
stripe-3.12.0 lib/stripe/bitcoin_receiver.rb
stripe-3.11.0 lib/stripe/bitcoin_receiver.rb
stripe-3.10.0 lib/stripe/bitcoin_receiver.rb
stripe-3.9.2 lib/stripe/bitcoin_receiver.rb
stripe-3.9.1 lib/stripe/bitcoin_receiver.rb
stripe-3.9.0 lib/stripe/bitcoin_receiver.rb
stripe-3.8.2 lib/stripe/bitcoin_receiver.rb
stripe-3.8.1 lib/stripe/bitcoin_receiver.rb
stripe-3.8.0 lib/stripe/bitcoin_receiver.rb
stripe-3.7.0 lib/stripe/bitcoin_receiver.rb
stripe-3.6.0 lib/stripe/bitcoin_receiver.rb
stripe-3.5.3 lib/stripe/bitcoin_receiver.rb
stripe-3.5.2 lib/stripe/bitcoin_receiver.rb
stripe-3.5.1 lib/stripe/bitcoin_receiver.rb
stripe-3.5.0 lib/stripe/bitcoin_receiver.rb
stripe-3.4.1 lib/stripe/bitcoin_receiver.rb