Skip to content

Commit

Permalink
API Updates for beta branch (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Jan 12, 2023
1 parent b3e8f18 commit 497e16a
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
@@ -1 +1 @@
v217
v218
6 changes: 4 additions & 2 deletions stripe/api_resources/quote.py
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/tax/__init__.py
Expand Up @@ -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
21 changes: 21 additions & 0 deletions 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"
1 change: 1 addition & 0 deletions stripe/object_classes.py
Expand Up @@ -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,
Expand Down

0 comments on commit 497e16a

Please sign in to comment.