Skip to content
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.
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 @@
5a12435b3b09ae0579265713bb543b4bd962f424
b51a9d09327603fa3a61d076f4bf7f07b43e1659
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2204
v2205
2 changes: 0 additions & 2 deletions stripe/_payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1482,8 +1482,6 @@ class PaymentDetails(StripeObject):
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.

Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.

For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
"""

Expand Down
8 changes: 8 additions & 0 deletions stripe/_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,12 @@ class PendingUpdate(StripeObject):
Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](https://docs.stripe.com/billing/subscriptions/trials) to learn more.
"""

class PresentmentDetails(StripeObject):
presentment_currency: str
"""
Currency used for customer payments.
"""

class TransferData(StripeObject):
amount_percent: Optional[float]
"""
Expand Down Expand Up @@ -699,6 +705,7 @@ class EndBehavior(StripeObject):
"""
If specified, [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates) that will be applied to the subscription once the `latest_invoice` has been paid.
"""
presentment_details: Optional[PresentmentDetails]
schedule: Optional[ExpandableField["SubscriptionSchedule"]]
"""
The schedule attached to the subscription
Expand Down Expand Up @@ -1474,6 +1481,7 @@ async def search_auto_paging_iter_async(
"payment_settings": PaymentSettings,
"pending_invoice_item_interval": PendingInvoiceItemInterval,
"pending_update": PendingUpdate,
"presentment_details": PresentmentDetails,
"transfer_data": TransferData,
"trial_settings": TrialSettings,
}
12 changes: 2 additions & 10 deletions stripe/checkout/_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -2488,18 +2488,10 @@ class Link(StripeObject):
Tax and discount details for the computed total amount.
"""
ui_mode: Optional[
Literal[
"custom",
"elements",
"embedded",
"embedded_page",
"form",
"hosted",
"hosted_page",
]
Literal["elements", "embedded_page", "form", "hosted_page"]
]
"""
The UI mode of the Session. Defaults to `hosted`.
The UI mode of the Session. Defaults to `hosted_page`.
"""
url: Optional[str]
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/issuing/_cardholder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ class SpendingLimit(StripeObject):
"""
preferred_locales: Optional[List[Literal["de", "en", "es", "fr", "it"]]]
"""
The cardholder's preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`.
The cardholder's preferred locales (languages), ordered by preference. Locales can be `da`, `de`, `en`, `es`, `fr`, `it`, `pl`, or `sv`.
This changes the language of the [3D Secure flow](https://docs.stripe.com/issuing/3d-secure) and one-time password messages sent to the cardholder.
"""
requirements: Requirements
Expand Down
2 changes: 0 additions & 2 deletions stripe/params/_payment_intent_capture_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,6 @@ class PaymentIntentCaptureParamsPaymentDetails(TypedDict):
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.

Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.

For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
"""

Expand Down
2 changes: 0 additions & 2 deletions stripe/params/_payment_intent_confirm_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,6 @@ class PaymentIntentConfirmParamsPaymentDetails(TypedDict):
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.

Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.

For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
"""

Expand Down
2 changes: 0 additions & 2 deletions stripe/params/_payment_intent_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,6 @@ class PaymentIntentCreateParamsPaymentDetails(TypedDict):
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.

Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.

For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,6 @@ class PaymentIntentIncrementAuthorizationParamsPaymentDetails(TypedDict):
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.

Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.

For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
"""

Expand Down
2 changes: 0 additions & 2 deletions stripe/params/_payment_intent_modify_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,6 @@ class PaymentIntentModifyParamsPaymentDetails(TypedDict):
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.

Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.

For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
"""

Expand Down
2 changes: 0 additions & 2 deletions stripe/params/_payment_intent_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,6 @@ class PaymentIntentUpdateParamsPaymentDetails(TypedDict):
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.

Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.

For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
"""

Expand Down
10 changes: 1 addition & 9 deletions stripe/params/checkout/_session_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,15 +438,7 @@ class SessionCreateParams(RequestOptions):
Controls tax ID collection during checkout.
"""
ui_mode: NotRequired[
Literal[
"custom",
"elements",
"embedded",
"embedded_page",
"form",
"hosted",
"hosted_page",
]
Literal["elements", "embedded_page", "form", "hosted_page"]
]
"""
The UI mode of the Session. Defaults to `hosted`.
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/issuing/_cardholder_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class CardholderCreateParams(RequestOptions):
"""
preferred_locales: NotRequired[List[Literal["de", "en", "es", "fr", "it"]]]
"""
The cardholder's preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`.
The cardholder's preferred locales (languages), ordered by preference. Locales can be `da`, `de`, `en`, `es`, `fr`, `it`, `pl`, or `sv`.
This changes the language of the [3D Secure flow](https://docs.stripe.com/issuing/3d-secure) and one-time password messages sent to the cardholder.
"""
spending_controls: NotRequired["CardholderCreateParamsSpendingControls"]
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/issuing/_cardholder_modify_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class CardholderModifyParams(RequestOptions):
"""
preferred_locales: NotRequired[List[Literal["de", "en", "es", "fr", "it"]]]
"""
The cardholder's preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`.
The cardholder's preferred locales (languages), ordered by preference. Locales can be `da`, `de`, `en`, `es`, `fr`, `it`, `pl`, or `sv`.
This changes the language of the [3D Secure flow](https://docs.stripe.com/issuing/3d-secure) and one-time password messages sent to the cardholder.
"""
spending_controls: NotRequired["CardholderModifyParamsSpendingControls"]
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/issuing/_cardholder_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class CardholderUpdateParams(TypedDict):
"""
preferred_locales: NotRequired[List[Literal["de", "en", "es", "fr", "it"]]]
"""
The cardholder's preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`.
The cardholder's preferred locales (languages), ordered by preference. Locales can be `da`, `de`, `en`, `es`, `fr`, `it`, `pl`, or `sv`.
This changes the language of the [3D Secure flow](https://docs.stripe.com/issuing/3d-secure) and one-time password messages sent to the cardholder.
"""
spending_controls: NotRequired["CardholderUpdateParamsSpendingControls"]
Expand Down
Loading