diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 76d4091fa..f3da18c95 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v218 \ No newline at end of file +v219 \ No newline at end of file diff --git a/stripe/api_resources/tax/__init__.py b/stripe/api_resources/tax/__init__.py index a8c56db6b..7039cc4ac 100644 --- a/stripe/api_resources/tax/__init__.py +++ b/stripe/api_resources/tax/__init__.py @@ -6,4 +6,5 @@ from stripe.api_resources.tax.calculation import Calculation from stripe.api_resources.tax.registration import Registration +from stripe.api_resources.tax.settings import Settings from stripe.api_resources.tax.transaction import Transaction diff --git a/stripe/api_resources/tax/settings.py b/stripe/api_resources/tax/settings.py new file mode 100644 index 000000000..20310d3f2 --- /dev/null +++ b/stripe/api_resources/tax/settings.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from __future__ import absolute_import, division, print_function + +from stripe.api_resources.abstract import SingletonAPIResource +from stripe.api_resources.abstract import UpdateableAPIResource + + +class Settings(SingletonAPIResource, UpdateableAPIResource): + """ + You can use Tax `Settings` to manage configurations used by Stripe Tax calculations. + + Related guide: [Account settings](https://stripe.com/docs/tax/connect/settings). + """ + + OBJECT_NAME = "tax.settings" + + @classmethod + def class_url(cls): + return "/v1/tax/settings" diff --git a/stripe/object_classes.py b/stripe/object_classes.py index 5835f7b62..798a9cffd 100644 --- a/stripe/object_classes.py +++ b/stripe/object_classes.py @@ -95,6 +95,7 @@ api_resources.SubscriptionSchedule.OBJECT_NAME: api_resources.SubscriptionSchedule, api_resources.tax.Calculation.OBJECT_NAME: api_resources.tax.Calculation, api_resources.tax.Registration.OBJECT_NAME: api_resources.tax.Registration, + api_resources.tax.Settings.OBJECT_NAME: api_resources.tax.Settings, api_resources.tax.Transaction.OBJECT_NAME: api_resources.tax.Transaction, api_resources.TaxCode.OBJECT_NAME: api_resources.TaxCode, api_resources.TaxId.OBJECT_NAME: api_resources.TaxId,