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 #915

Merged
merged 4 commits into from
Jan 19, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v218
v219
1 change: 1 addition & 0 deletions stripe/api_resources/tax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
20 changes: 20 additions & 0 deletions stripe/api_resources/tax/settings.py
Original file line number Diff line number Diff line change
@@ -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"
1 change: 1 addition & 0 deletions stripe/object_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down