Skip to content

Commit

Permalink
Codegen for openapi v219
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe committed Jan 19, 2023
1 parent 507cae0 commit f9c4760
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
@@ -1 +1 @@
v218
v219
1 change: 1 addition & 0 deletions stripe/api_resources/tax/__init__.py
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
@@ -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
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

0 comments on commit f9c4760

Please sign in to comment.