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

Merged
merged 3 commits into from Dec 22, 2022
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 @@
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