class Stripe::TaxId

Constants

OBJECT_NAME

Public Class Methods

retrieve(_id, _opts = {}) click to toggle source
# File lib/stripe/resources/tax_id.rb, line 19
def self.retrieve(_id, _opts = {})
  raise NotImplementedError,
        "Tax IDs cannot be retrieved without a customer ID. Retrieve a " \
        "tax ID using `Customer.retrieve_tax_id('customer_id', " \
        "'tax_id_id')`"
end

Public Instance Methods

resource_url() click to toggle source
# File lib/stripe/resources/tax_id.rb, line 10
def resource_url
  if !respond_to?(:customer) || customer.nil?
    raise NotImplementedError,
          "Tax IDs cannot be accessed without a customer ID."
  end
  "#{Customer.resource_url}/#{CGI.escape(customer)}/tax_ids" \
  "/#{CGI.escape(id)}"
end