Sha256: f7e766b2535cfab2bfb6a3c301953015c065011ea085f802b9d5b45537653a6c

Contents?: true

Size: 535 Bytes

Versions: 21

Compression:

Stored size: 535 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?
        "#{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

21 entries across 21 versions & 1 rubygems

Version Path
stripe-1.58.0 lib/stripe/bitcoin_receiver.rb
stripe-1.57.1 lib/stripe/bitcoin_receiver.rb
stripe-1.57.0 lib/stripe/bitcoin_receiver.rb
stripe-1.56.2 lib/stripe/bitcoin_receiver.rb
stripe-1.56.1 lib/stripe/bitcoin_receiver.rb
stripe-1.56.0 lib/stripe/bitcoin_receiver.rb
stripe-1.55.1 lib/stripe/bitcoin_receiver.rb
stripe-1.55.0 lib/stripe/bitcoin_receiver.rb
stripe-1.54.0 lib/stripe/bitcoin_receiver.rb
stripe-1.53.0 lib/stripe/bitcoin_receiver.rb
stripe-1.52.0 lib/stripe/bitcoin_receiver.rb
stripe-1.51.1 lib/stripe/bitcoin_receiver.rb
stripe-1.51.0 lib/stripe/bitcoin_receiver.rb
stripe-1.50.1 lib/stripe/bitcoin_receiver.rb
stripe-1.50.0 lib/stripe/bitcoin_receiver.rb
stripe-1.49.0 lib/stripe/bitcoin_receiver.rb
stripe-1.48.0 lib/stripe/bitcoin_receiver.rb
stripe-1.47.0 lib/stripe/bitcoin_receiver.rb
stripe-1.46.0 lib/stripe/bitcoin_receiver.rb
stripe-1.45.0 lib/stripe/bitcoin_receiver.rb