lib/stripe/resources/tax_code.rb in stripe-10.9.0.pre.beta.1 vs lib/stripe/resources/tax_code.rb in stripe-10.9.0
- old
+ new
@@ -5,9 +5,12 @@
# [Tax codes](https://stripe.com/docs/tax/tax-categories) classify goods and services for tax purposes.
class TaxCode < APIResource
extend Stripe::APIOperations::List
OBJECT_NAME = "tax_code"
+ def self.object_name
+ "tax_code"
+ end
# A list of [all tax codes available](https://stripe.com/docs/tax/tax-categories) to add to Products in order to allow specific tax calculations.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/tax_codes", params: filters, opts: opts)
end