Sha256: 51388d319003cb960c88a18d106ebeba3d477c3cfa26df8ba5545ffffc4efb81

Contents?: true

Size: 478 Bytes

Versions: 8

Compression:

Stored size: 478 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.url
      "/v1/bitcoin/receivers"
    end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
stripe-1.32.0 lib/stripe/bitcoin_receiver.rb
stripe-1.31.0 lib/stripe/bitcoin_receiver.rb
stripe-1.30.3 lib/stripe/bitcoin_receiver.rb
stripe-1.30.2 lib/stripe/bitcoin_receiver.rb
stripe-1.30.1 lib/stripe/bitcoin_receiver.rb
stripe-1.30.0 lib/stripe/bitcoin_receiver.rb
stripe-1.29.1 lib/stripe/bitcoin_receiver.rb
stripe-1.29.0 lib/stripe/bitcoin_receiver.rb