Sha256: ce9d9dbf0dfad2100d87b39fbd748ed5f7b62e978f12fc47b10f4dadd5d3b035
Contents?: true
Size: 666 Bytes
Versions: 2
Compression:
Stored size: 666 Bytes
Contents
# frozen_string_literal: true module Stripe class TaxId < APIResource include Stripe::APIOperations::Delete extend Stripe::APIOperations::List 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.18.0 | lib/stripe/tax_id.rb |
stripe-4.17.0 | lib/stripe/tax_id.rb |