Sha256: ef72ba8ce70ce6c68c871cfbfbe165234765e4d3d6bfe1e8a0438fa58e86e972

Contents?: true

Size: 558 Bytes

Versions: 10

Compression:

Stored size: 558 Bytes

Contents

module Stripe
  class BitcoinReceiver < APIResource
    extend Stripe::APIOperations::Create
    include Stripe::APIOperations::Save
    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? && self.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

10 entries across 10 versions & 1 rubygems

Version Path
stripe-2.5.0 lib/stripe/bitcoin_receiver.rb
stripe-2.4.0 lib/stripe/bitcoin_receiver.rb
stripe-2.3.0 lib/stripe/bitcoin_receiver.rb
stripe-2.2.1 lib/stripe/bitcoin_receiver.rb
stripe-2.2.0 lib/stripe/bitcoin_receiver.rb
stripe-2.1.0 lib/stripe/bitcoin_receiver.rb
stripe-2.0.3 lib/stripe/bitcoin_receiver.rb
stripe-2.0.2 lib/stripe/bitcoin_receiver.rb
stripe-2.0.1 lib/stripe/bitcoin_receiver.rb
stripe-2.0.0 lib/stripe/bitcoin_receiver.rb