Skip to content

Commit

Permalink
Update generated code for v413 (#990)
Browse files Browse the repository at this point in the history
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Jul 13, 2023
1 parent d1ab2e4 commit dae5a67
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v406
v413
1 change: 1 addition & 0 deletions stripe/api_resources/tax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
# flake8: noqa

from stripe.api_resources.tax.calculation import Calculation
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: [Using the Settings API](https://stripe.com/docs/tax/settings-api)
"""

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 @@ -86,6 +86,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.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

0 comments on commit dae5a67

Please sign in to comment.