Sha256: 32979883f597d92e7761b899823836165e6bde7a81e094d5d6f671bbba986087
Contents?: true
Size: 666 Bytes
Versions: 2
Compression:
Stored size: 666 Bytes
Contents
# frozen_string_literal: true module Stripe class TaxId < APIResource extend Stripe::APIOperations::List include Stripe::APIOperations::Delete OBJECT_NAME = "tax_id".freeze 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('tax_id')" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stripe-4.16.0 | lib/stripe/tax_id.rb |
stripe-4.15.0 | lib/stripe/tax_id.rb |