diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b87b42e0c..76d4091fa 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v217 \ No newline at end of file +v218 \ No newline at end of file diff --git a/stripe/api_resources/quote.py b/stripe/api_resources/quote.py index 21e2fc7f0..cb0027843 100644 --- a/stripe/api_resources/quote.py +++ b/stripe/api_resources/quote.py @@ -88,7 +88,9 @@ def _cls_draft_quote( ): return cls._static_request( "post", - "/v1/quotes/{quote}/draft".format(quote=util.sanitize_id(quote)), + "/v1/quotes/{quote}/mark_draft".format( + quote=util.sanitize_id(quote) + ), api_key=api_key, stripe_version=stripe_version, stripe_account=stripe_account, @@ -99,7 +101,7 @@ def _cls_draft_quote( def draft_quote(self, idempotency_key=None, **params): return self._request( "post", - "/v1/quotes/{quote}/draft".format( + "/v1/quotes/{quote}/mark_draft".format( quote=util.sanitize_id(self.get("id")) ), idempotency_key=idempotency_key, diff --git a/stripe/api_resources/tax/__init__.py b/stripe/api_resources/tax/__init__.py index 6d642cbe7..a8c56db6b 100644 --- a/stripe/api_resources/tax/__init__.py +++ b/stripe/api_resources/tax/__init__.py @@ -5,4 +5,5 @@ # flake8: noqa from stripe.api_resources.tax.calculation import Calculation +from stripe.api_resources.tax.registration import Registration from stripe.api_resources.tax.transaction import Transaction diff --git a/stripe/api_resources/tax/registration.py b/stripe/api_resources/tax/registration.py new file mode 100644 index 000000000..fba03990c --- /dev/null +++ b/stripe/api_resources/tax/registration.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from __future__ import absolute_import, division, print_function + +from stripe.api_resources.abstract import CreateableAPIResource +from stripe.api_resources.abstract import ListableAPIResource +from stripe.api_resources.abstract import UpdateableAPIResource + + +class Registration( + CreateableAPIResource, + ListableAPIResource, + UpdateableAPIResource, +): + """ + A Tax `Registration` lets us know that your business is registered to collect tax on payments within a region, enabling you to [automatically collect tax](https://stripe.com/docs/tax). + + Stripe will not register on your behalf with the relevant authorities when you create a Tax `Registration` object. For more information on how to register to collect tax, see [our guide](https://stripe.com/docs/tax/registering). + """ + + OBJECT_NAME = "tax.registration" diff --git a/stripe/object_classes.py b/stripe/object_classes.py index f4de2d0d4..5835f7b62 100644 --- a/stripe/object_classes.py +++ b/stripe/object_classes.py @@ -94,6 +94,7 @@ api_resources.SubscriptionItem.OBJECT_NAME: api_resources.SubscriptionItem, 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.Transaction.OBJECT_NAME: api_resources.tax.Transaction, api_resources.TaxCode.OBJECT_NAME: api_resources.TaxCode, api_resources.TaxId.OBJECT_NAME: api_resources.TaxId,