mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-11-22 00:05:58 -05:00
* Update generated code for v1399 * Update generated code for v1409 * Update generated code for v1412 * Update generated code for v1412 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: jar-stripe <jar@stripe.com>
20 lines
643 B
Ruby
20 lines
643 B
Ruby
# File generated from our OpenAPI spec
|
|
# frozen_string_literal: true
|
|
|
|
module Stripe
|
|
# [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(params = {}, opts = {})
|
|
request_stripe_object(method: :get, path: "/v1/tax_codes", params: params, opts: opts)
|
|
end
|
|
end
|
|
end
|