Sha256: c25fa98f26ca17052e2d2e21d2eecda8edf50d7deeb62ff8d172364f418f913e

Contents?: true

Size: 775 Bytes

Versions: 28

Compression:

Stored size: 775 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  class TaxId < APIResource
    include Stripe::APIOperations::Delete
    extend Stripe::APIOperations::List

    OBJECT_NAME = "tax_id"

    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

    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
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
stripe-7.1.0 lib/stripe/resources/tax_id.rb
stripe-7.1.0.pre.beta.2 lib/stripe/resources/tax_id.rb
stripe-7.1.0.pre.beta.1 lib/stripe/resources/tax_id.rb
stripe-7.0.0 lib/stripe/resources/tax_id.rb
stripe-6.6.0.pre.beta.1 lib/stripe/resources/tax_id.rb
stripe-6.5.0 lib/stripe/resources/tax_id.rb
stripe-6.4.0 lib/stripe/resources/tax_id.rb
stripe-6.3.0 lib/stripe/resources/tax_id.rb
stripe-6.2.0 lib/stripe/resources/tax_id.rb
stripe-6.1.0 lib/stripe/resources/tax_id.rb
stripe-6.0.0 lib/stripe/resources/tax_id.rb
stripe-5.55.0 lib/stripe/resources/tax_id.rb
stripe-5.54.0 lib/stripe/resources/tax_id.rb
stripe-5.53.0 lib/stripe/resources/tax_id.rb
stripe-5.52.0 lib/stripe/resources/tax_id.rb
stripe-5.50.0 lib/stripe/resources/tax_id.rb
stripe-5.49.0 lib/stripe/resources/tax_id.rb
stripe-5.48.0 lib/stripe/resources/tax_id.rb
stripe-5.47.0 lib/stripe/resources/tax_id.rb
stripe-5.46.0 lib/stripe/resources/tax_id.rb