class Stripe::CustomerBalanceTransaction

Constants

OBJECT_NAME

Public Class Methods

retrieve(_id, _opts = {}) click to toggle source
# File lib/stripe/resources/customer_balance_transaction.rb, line 19
def self.retrieve(_id, _opts = {})
  raise NotImplementedError,
        "Customer Balance Transactions cannot be retrieved without a customer ID. " \
        "Retrieve a Customer Balance Transaction using `Customer.retrieve_balance_transaction('cus_123', 'cbtxn_123')`"
end
update(_id, _params = nil, _opts = nil) click to toggle source
# File lib/stripe/resources/customer_balance_transaction.rb, line 25
def self.update(_id, _params = nil, _opts = nil)
  raise NotImplementedError,
        "Customer Balance Transactions cannot be retrieved without a customer ID. " \
        "Update a Customer Balance Transaction using `Customer.update_balance_transaction('cus_123', 'cbtxn_123', params)`"
end

Public Instance Methods

resource_url() click to toggle source
# File lib/stripe/resources/customer_balance_transaction.rb, line 11
def resource_url
  if !respond_to?(:customer) || customer.nil?
    raise NotImplementedError,
          "Customer Balance Transactions cannot be accessed without a customer ID."
  end
  "#{Customer.resource_url}/#{CGI.escape(customer)}/balance_transactions/#{CGI.escape(id)}"
end