Skip to content

Commit

Permalink
API Updates for beta branch (#910)
Browse files Browse the repository at this point in the history
* Set version to 5.0.0 to simplify merge

* Reset version to 5.1.0b2

* Codegen for openapi v216
  • Loading branch information
richardm-stripe committed Dec 22, 2022
1 parent 3ddd2e2 commit 367cf20
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
@@ -1 +1 @@
v215
v216
3 changes: 1 addition & 2 deletions stripe/api_resources/__init__.py
Expand Up @@ -19,6 +19,7 @@
from stripe.api_resources import radar
from stripe.api_resources import reporting
from stripe.api_resources import sigma
from stripe.api_resources import tax
from stripe.api_resources import terminal
from stripe.api_resources import test_helpers
from stripe.api_resources import treasury
Expand Down Expand Up @@ -84,11 +85,9 @@
from stripe.api_resources.subscription import Subscription
from stripe.api_resources.subscription_item import SubscriptionItem
from stripe.api_resources.subscription_schedule import SubscriptionSchedule
from stripe.api_resources.tax_calculation import TaxCalculation
from stripe.api_resources.tax_code import TaxCode
from stripe.api_resources.tax_id import TaxId
from stripe.api_resources.tax_rate import TaxRate
from stripe.api_resources.tax_transaction import TaxTransaction
from stripe.api_resources.token import Token
from stripe.api_resources.topup import Topup
from stripe.api_resources.transfer import Transfer
Expand Down
8 changes: 8 additions & 0 deletions stripe/api_resources/tax/__init__.py
@@ -0,0 +1,8 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function

# flake8: noqa

from stripe.api_resources.tax.calculation import Calculation
from stripe.api_resources.tax.transaction import Transaction
Expand Up @@ -6,7 +6,7 @@
from stripe.api_resources.abstract import CreateableAPIResource


class TaxCalculation(CreateableAPIResource):
class Calculation(CreateableAPIResource):
"""
A Tax `Calculation` allows you to calculate the tax to collect from your customer.
"""
Expand Down
Expand Up @@ -5,7 +5,7 @@
from stripe.api_resources.abstract import CreateableAPIResource


class TaxTransaction(CreateableAPIResource):
class Transaction(CreateableAPIResource):
"""
A Tax `Transaction` records the tax collected from or refunded to your customer.
"""
Expand Down
4 changes: 2 additions & 2 deletions stripe/object_classes.py
Expand Up @@ -93,11 +93,11 @@
api_resources.Subscription.OBJECT_NAME: api_resources.Subscription,
api_resources.SubscriptionItem.OBJECT_NAME: api_resources.SubscriptionItem,
api_resources.SubscriptionSchedule.OBJECT_NAME: api_resources.SubscriptionSchedule,
api_resources.TaxCalculation.OBJECT_NAME: api_resources.TaxCalculation,
api_resources.tax.Calculation.OBJECT_NAME: api_resources.tax.Calculation,
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,
api_resources.TaxRate.OBJECT_NAME: api_resources.TaxRate,
api_resources.TaxTransaction.OBJECT_NAME: api_resources.TaxTransaction,
api_resources.terminal.Configuration.OBJECT_NAME: api_resources.terminal.Configuration,
api_resources.terminal.ConnectionToken.OBJECT_NAME: api_resources.terminal.ConnectionToken,
api_resources.terminal.Location.OBJECT_NAME: api_resources.terminal.Location,
Expand Down

0 comments on commit 367cf20

Please sign in to comment.