Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Updates for beta branch #914

Merged
merged 4 commits into from Jan 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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