Sha256: 980a5c1af5c21e7e5ee5c03631d9893ec5096c5b21f587a4acb6c2b7b0ac5ddd

Contents?: true

Size: 596 Bytes

Versions: 15

Compression:

Stored size: 596 Bytes

Contents

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

    OBJECT_NAME = 'bitcoin_receiver'

    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

15 entries across 15 versions & 1 rubygems

Version Path
stripe-3.3.2 lib/stripe/bitcoin_receiver.rb
stripe-3.3.1 lib/stripe/bitcoin_receiver.rb
stripe-3.3.0 lib/stripe/bitcoin_receiver.rb
stripe-3.2.0 lib/stripe/bitcoin_receiver.rb
stripe-3.1.0 lib/stripe/bitcoin_receiver.rb
stripe-3.0.3 lib/stripe/bitcoin_receiver.rb
stripe-3.0.1 lib/stripe/bitcoin_receiver.rb
stripe-3.0.0 lib/stripe/bitcoin_receiver.rb
stripe-2.12.0 lib/stripe/bitcoin_receiver.rb
stripe-2.11.0 lib/stripe/bitcoin_receiver.rb
stripe-2.10.0 lib/stripe/bitcoin_receiver.rb
stripe-2.9.0 lib/stripe/bitcoin_receiver.rb
stripe-2.8.0 lib/stripe/bitcoin_receiver.rb
stripe-2.7.0 lib/stripe/bitcoin_receiver.rb
stripe-2.6.0 lib/stripe/bitcoin_receiver.rb