Skip to content
Open
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 CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
baff58c9d515cdd5f5c3231d101989d588788c6f
a048e64d0832201fc86c45de6f10db62ee780bef
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2442
v2458
4 changes: 2 additions & 2 deletions stripe/_discount.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# File generated from our OpenAPI spec
from stripe._expandable_field import ExpandableField
from stripe._stripe_object import StripeObject
from typing import ClassVar, Optional
from typing import ClassVar, Optional, Union
from typing_extensions import Literal, TYPE_CHECKING

if TYPE_CHECKING:
Expand All @@ -26,7 +26,7 @@ class Source(StripeObject):
"""
The coupon that was redeemed to create this discount.
"""
type: Literal["coupon"]
type: Union[Literal["coupon"], str]
"""
The source type of the discount.
"""
Expand Down
4 changes: 2 additions & 2 deletions stripe/_payment_attempt_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ class Card(StripeObject):
"""

card: Optional[Card]
type: Optional[Literal["card"]]
type: Optional[Union[Literal["card"], str]]
"""
funding type of the underlying payment method.
"""
Expand Down Expand Up @@ -1703,7 +1703,7 @@ class Card(StripeObject):
"""

card: Optional[Card]
type: Optional[Literal["card"]]
type: Optional[Union[Literal["card"], str]]
"""
Funding type of the underlying payment method.
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/_payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -2853,7 +2853,7 @@ class WechatPay(StripeObject):
"""
The client type that the end customer will pay from
"""
setup_future_usage: Optional[Literal["none"]]
setup_future_usage: Optional[Union[Literal["none"], str]]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.

Expand Down
4 changes: 2 additions & 2 deletions stripe/_payment_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ class Card(StripeObject):
"""

card: Optional[Card]
type: Optional[Literal["card"]]
type: Optional[Union[Literal["card"], str]]
"""
funding type of the underlying payment method.
"""
Expand Down Expand Up @@ -1723,7 +1723,7 @@ class Card(StripeObject):
"""

card: Optional[Card]
type: Optional[Literal["card"]]
type: Optional[Union[Literal["card"], str]]
"""
Funding type of the underlying payment method.
"""
Expand Down
4 changes: 2 additions & 2 deletions stripe/checkout/_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ class AfterpayClearpay(StripeObject):
"""

class Alipay(StripeObject):
setup_future_usage: Optional[Literal["none"]]
setup_future_usage: Optional[Union[Literal["none"], str]]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.

Expand Down Expand Up @@ -1817,7 +1817,7 @@ class WechatPay(StripeObject):
"""
The client type that the end customer will pay from
"""
setup_future_usage: Optional[Literal["none"]]
setup_future_usage: Optional[Union[Literal["none"], str]]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from stripe._stripe_response import StripeResponse
from stripe._util import get_api_mode
from stripe.v2.core._event import Event, EventNotification, RelatedObject
from typing import Any, Dict, Optional, cast
from typing import Any, Dict, Optional, Union, cast
from typing_extensions import Literal, TYPE_CHECKING, override

if TYPE_CHECKING:
Expand Down Expand Up @@ -98,7 +98,7 @@ class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent(
class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventData(
StripeObject,
):
updated_capability: Literal["automatic_indirect_tax"]
updated_capability: Union[Literal["automatic_indirect_tax"], str]
"""
Open Enum. The capability which had its status updated.
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_payment_intent_confirm_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3365,7 +3365,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsWechatPay(TypedDict):
"""
The client type that the end customer will pay from
"""
setup_future_usage: NotRequired[Literal["none"]]
setup_future_usage: NotRequired["Literal['none']|str"]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.

Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_payment_intent_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3494,7 +3494,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsWechatPay(TypedDict):
"""
The client type that the end customer will pay from
"""
setup_future_usage: NotRequired[Literal["none"]]
setup_future_usage: NotRequired["Literal['none']|str"]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.

Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_payment_intent_modify_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3326,7 +3326,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsWechatPay(TypedDict):
"""
The client type that the end customer will pay from
"""
setup_future_usage: NotRequired[Literal["none"]]
setup_future_usage: NotRequired["Literal['none']|str"]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.

Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_payment_intent_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3325,7 +3325,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsWechatPay(TypedDict):
"""
The client type that the end customer will pay from
"""
setup_future_usage: NotRequired[Literal["none"]]
setup_future_usage: NotRequired["Literal['none']|str"]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.

Expand Down
4 changes: 2 additions & 2 deletions stripe/params/checkout/_session_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,7 @@ class SessionCreateParamsPaymentMethodOptionsAfterpayClearpay(TypedDict):


class SessionCreateParamsPaymentMethodOptionsAlipay(TypedDict):
setup_future_usage: NotRequired[Literal["none"]]
setup_future_usage: NotRequired["Literal['none']|str"]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.

Expand Down Expand Up @@ -2508,7 +2508,7 @@ class SessionCreateParamsPaymentMethodOptionsWechatPay(TypedDict):
"""
The client type that the end customer will pay from
"""
setup_future_usage: NotRequired[Literal["none"]]
setup_future_usage: NotRequired["Literal['none']|str"]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.

Expand Down
2 changes: 1 addition & 1 deletion stripe/params/tax/_registration_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,7 @@ class RegistrationCreateParamsCountryOptionsSrStandard(TypedDict):


class RegistrationCreateParamsCountryOptionsTh(TypedDict):
type: Literal["simplified"]
type: Union[Literal["simplified"], str]
"""
Type of registration to be created in `country`.
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from typing import Union
from typing_extensions import Literal, TypedDict


Expand All @@ -12,7 +13,7 @@ class MeterEventAdjustmentCreateParams(TypedDict):
"""
The name of the meter event. Corresponds with the `event_name` field on a meter.
"""
type: Literal["cancel"]
type: Union[Literal["cancel"], str]
"""
Specifies the type of cancellation. Currently supports canceling a single event.
"""
Expand Down
30 changes: 15 additions & 15 deletions stripe/params/v2/core/_account_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVer
"""
One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
"""
type: Literal["files"]
type: Union[Literal["files"], str]
"""
The format of the document. Currently supports `files` only.
"""
Expand All @@ -1732,7 +1732,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense(
"""
One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
"""
type: Literal["files"]
type: Union[Literal["files"], str]
"""
The format of the document. Currently supports `files` only.
"""
Expand All @@ -1745,7 +1745,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsCompanyMemorandumOfAsso
"""
One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
"""
type: Literal["files"]
type: Union[Literal["files"], str]
"""
The format of the document. Currently supports `files` only.
"""
Expand All @@ -1758,7 +1758,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsCompanyMinisterialDecre
"""
One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
"""
type: Literal["files"]
type: Union[Literal["files"], str]
"""
The format of the document. Currently supports `files` only.
"""
Expand All @@ -1771,7 +1771,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsCompanyRegistrationVeri
"""
One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
"""
type: Literal["files"]
type: Union[Literal["files"], str]
"""
The format of the document. Currently supports `files` only.
"""
Expand All @@ -1784,7 +1784,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsCompanyTaxIdVerificatio
"""
One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
"""
type: Literal["files"]
type: Union[Literal["files"], str]
"""
The format of the document. Currently supports `files` only.
"""
Expand All @@ -1797,7 +1797,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerification(
"""
The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
"""
type: Literal["front_back"]
type: Union[Literal["front_back"], str]
"""
The format of the verification document. Currently supports `front_back` only.
"""
Expand All @@ -1823,7 +1823,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfAddress(
"""
One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
"""
type: Literal["files"]
type: Union[Literal["files"], str]
"""
The format of the document. Currently supports `files` only.
"""
Expand All @@ -1842,7 +1842,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration(
"""
Person that is signing the document.
"""
type: Literal["files"]
type: Union[Literal["files"], str]
"""
The format of the document. Currently supports `files` only.
"""
Expand Down Expand Up @@ -1870,7 +1870,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBenefici
"""
Person that is signing the document.
"""
type: Literal["files"]
type: Union[Literal["files"], str]
"""
The format of the document. Currently supports `files` only.
"""
Expand Down Expand Up @@ -2374,7 +2374,7 @@ class AccountCreateParamsIdentityIndividualDocumentsCompanyAuthorization(
"""
One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
"""
type: Literal["files"]
type: Union[Literal["files"], str]
"""
The format of the document. Currently supports `files` only.
"""
Expand All @@ -2385,7 +2385,7 @@ class AccountCreateParamsIdentityIndividualDocumentsPassport(TypedDict):
"""
One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
"""
type: Literal["files"]
type: Union[Literal["files"], str]
"""
The format of the document. Currently supports `files` only.
"""
Expand All @@ -2398,7 +2398,7 @@ class AccountCreateParamsIdentityIndividualDocumentsPrimaryVerification(
"""
The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
"""
type: Literal["front_back"]
type: Union[Literal["front_back"], str]
"""
The format of the verification document. Currently supports `front_back` only.
"""
Expand All @@ -2424,7 +2424,7 @@ class AccountCreateParamsIdentityIndividualDocumentsSecondaryVerification(
"""
The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
"""
type: Literal["front_back"]
type: Union[Literal["front_back"], str]
"""
The format of the verification document. Currently supports `front_back` only.
"""
Expand All @@ -2448,7 +2448,7 @@ class AccountCreateParamsIdentityIndividualDocumentsVisa(TypedDict):
"""
One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
"""
type: Literal["files"]
type: Union[Literal["files"], str]
"""
The format of the document. Currently supports `files` only.
"""
Expand Down
Loading