diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index fb2246f92..1b3017c05 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-6fc967cafa78afc6c6adb86802a26217fa770522
\ No newline at end of file
+85839f80afcaccd622aa30bf53a414cdffbd57bc
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 5928ed650..dea428aab 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2350
\ No newline at end of file
+v2369
\ No newline at end of file
diff --git a/stripe/_account.py b/stripe/_account.py
index bb238583d..0ee92707f 100644
--- a/stripe/_account.py
+++ b/stripe/_account.py
@@ -505,6 +505,10 @@ class Capabilities(StripeObject):
"""
The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
"""
+ sequra_payments: Optional[Literal["active", "inactive", "pending"]]
+ """
+ The status of the Sequra capability of the account, or whether the account can directly process Sequra payments.
+ """
shopeepay_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the ShopeePay capability of the account, or whether the account can directly process ShopeePay payments.
diff --git a/stripe/_charge.py b/stripe/_charge.py
index f5e4684f1..33c542cab 100644
--- a/stripe/_charge.py
+++ b/stripe/_charge.py
@@ -1221,6 +1221,10 @@ class Wallet(StripeObject):
"""
A collection of fields required to be displayed on receipts. Only required for EMV transactions.
"""
+ retrieval_reference_number: Optional[str]
+ """
+ The retrieval reference number assigned to this transaction.
+ """
wallet: Optional[Wallet]
_inner_class_types = {
"multicapture": Multicapture,
@@ -1805,6 +1809,10 @@ class Link(StripeObject):
Two-letter ISO code representing the funding source country beneath the Link payment.
You could use this attribute to get a sense of international fees.
"""
+ pricing_group: Optional[str]
+ """
+ The pricing bundle applied to this Link payment at confirmation time. Maps to a bundle in your Stripe pricing contract and on Stripe's published pricing page. Omitted if bundle lookup failed at confirmation time.
+ """
class MbWay(StripeObject):
pass
@@ -2254,6 +2262,12 @@ class SepaDebit(StripeObject):
Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://docs.stripe.com/api/mandates/retrieve).
"""
+ class Sequra(StripeObject):
+ transaction_id: Optional[str]
+ """
+ The Sequra transaction ID associated with this payment.
+ """
+
class Shopeepay(StripeObject):
pass
@@ -2467,6 +2481,7 @@ class Zip(StripeObject):
scalapay: Optional[Scalapay]
sepa_credit_transfer: Optional[SepaCreditTransfer]
sepa_debit: Optional[SepaDebit]
+ sequra: Optional[Sequra]
shopeepay: Optional[Shopeepay]
sofort: Optional[Sofort]
stripe_account: Optional[StripeAccount]
@@ -2544,6 +2559,7 @@ class Zip(StripeObject):
"scalapay": Scalapay,
"sepa_credit_transfer": SepaCreditTransfer,
"sepa_debit": SepaDebit,
+ "sequra": Sequra,
"shopeepay": Shopeepay,
"sofort": Sofort,
"stripe_account": StripeAccount,
diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py
index 8423171af..3fa50a15f 100644
--- a/stripe/_confirmation_token.py
+++ b/stripe/_confirmation_token.py
@@ -483,6 +483,10 @@ class Wallet(StripeObject):
"""
A collection of fields required to be displayed on receipts. Only required for EMV transactions.
"""
+ retrieval_reference_number: Optional[str]
+ """
+ The retrieval reference number assigned to this transaction.
+ """
wallet: Optional[Wallet]
_inner_class_types = {
"multicapture": Multicapture,
@@ -1487,6 +1491,9 @@ class GeneratedFrom(StripeObject):
"""
_inner_class_types = {"generated_from": GeneratedFrom}
+ class Sequra(StripeObject):
+ pass
+
class Shopeepay(StripeObject):
pass
@@ -1698,6 +1705,7 @@ class Zip(StripeObject):
satispay: Optional[Satispay]
scalapay: Optional[Scalapay]
sepa_debit: Optional[SepaDebit]
+ sequra: Optional[Sequra]
shopeepay: Optional[Shopeepay]
sofort: Optional[Sofort]
stripe_balance: Optional[StripeBalance]
@@ -1762,6 +1770,7 @@ class Zip(StripeObject):
"satispay",
"scalapay",
"sepa_debit",
+ "sequra",
"shopeepay",
"sofort",
"stripe_balance",
@@ -1841,6 +1850,7 @@ class Zip(StripeObject):
"satispay": Satispay,
"scalapay": Scalapay,
"sepa_debit": SepaDebit,
+ "sequra": Sequra,
"shopeepay": Shopeepay,
"sofort": Sofort,
"stripe_balance": StripeBalance,
diff --git a/stripe/_coupon.py b/stripe/_coupon.py
index fbc37ecf4..dfa4f6193 100644
--- a/stripe/_coupon.py
+++ b/stripe/_coupon.py
@@ -154,7 +154,7 @@ class Iterations(StripeObject):
"""
type: Optional[Union[Literal["amount_off", "percent_off", "script"], str]]
"""
- One of `amount_off`, `percent_off`, or `script`. Describes the type of coupon logic used to calculate the discount.
+ The type of coupon logic used to calculate the discount.
"""
valid: bool
"""
diff --git a/stripe/_object_classes.py b/stripe/_object_classes.py
index f257e368e..877b90e31 100644
--- a/stripe/_object_classes.py
+++ b/stripe/_object_classes.py
@@ -69,6 +69,10 @@
"CreditBalanceTransaction",
),
"billing.credit_grant": ("stripe.billing._credit_grant", "CreditGrant"),
+ "billing.feedback_options": (
+ "stripe.billing._feedback_options",
+ "FeedbackOptions",
+ ),
"billing.meter": ("stripe.billing._meter", "Meter"),
"billing.meter_event": ("stripe.billing._meter_event", "MeterEvent"),
"billing.meter_event_adjustment": (
diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py
index 37a1e6072..0e7b34a96 100644
--- a/stripe/_payment_attempt_record.py
+++ b/stripe/_payment_attempt_record.py
@@ -956,6 +956,10 @@ class Wallet(StripeObject):
"""
A collection of fields required to be displayed on receipts. Only required for EMV transactions.
"""
+ retrieval_reference_number: Optional[str]
+ """
+ The retrieval reference number assigned to this transaction.
+ """
wallet: Optional[Wallet]
_inner_class_types = {
"multicapture": Multicapture,
@@ -1995,6 +1999,12 @@ class SepaDebit(StripeObject):
Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://docs.stripe.com/api/mandates/retrieve).
"""
+ class Sequra(StripeObject):
+ transaction_id: Optional[str]
+ """
+ The Sequra transaction ID associated with this payment.
+ """
+
class Shopeepay(StripeObject):
pass
@@ -2223,6 +2233,7 @@ class Zip(StripeObject):
scalapay: Optional[Scalapay]
sepa_credit_transfer: Optional[SepaCreditTransfer]
sepa_debit: Optional[SepaDebit]
+ sequra: Optional[Sequra]
shopeepay: Optional[Shopeepay]
sofort: Optional[Sofort]
stripe_account: Optional[StripeAccount]
@@ -2302,6 +2313,7 @@ class Zip(StripeObject):
"scalapay": Scalapay,
"sepa_credit_transfer": SepaCreditTransfer,
"sepa_debit": SepaDebit,
+ "sequra": Sequra,
"shopeepay": Shopeepay,
"sofort": Sofort,
"stripe_account": StripeAccount,
diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py
index 0179254b0..af12d53f0 100644
--- a/stripe/_payment_intent.py
+++ b/stripe/_payment_intent.py
@@ -3896,6 +3896,34 @@ class Address(StripeObject):
}
class CardPresent(StripeObject):
+ class AadeData(StripeObject):
+ mark_data: Optional[str]
+ """
+ The canonical string that was signed by the e-invoicing provider to produce `signed_mark`, formatted per Appendix A of A.1155/2023. Required when `mode` is `standard`.
+ """
+ mode: Literal["autonomous", "standard"]
+ """
+ The e-invoicing mode under which the mark was generated.
+ """
+ provider_id: Optional[int]
+ """
+ The AADE-assigned approval number of the e-invoicing provider that generated the mark. Required when `mode` is `standard`.
+ """
+ signed_mark: Optional[str]
+ """
+ The cryptographic signature returned by the e-invoicing provider for this transaction, hex-encoded. Required when `mode` is `standard`.
+ """
+ unbound_pos: Optional[
+ Literal[
+ "interconnection_loss",
+ "lock",
+ "replacement_cash_system",
+ ]
+ ]
+ """
+ The reason for entering autonomous mode. Required when `mode` is `autonomous`.
+ """
+
class CaptureDelay(StripeObject):
days: Optional[int]
"""
@@ -3918,6 +3946,7 @@ class Routing(StripeObject):
Requested routing priority
"""
+ aade_data: Optional[AadeData]
capture_by: Optional[
Literal["auth_expiry", "end_of_day", "target_delay"]
]
@@ -3955,6 +3984,7 @@ class Routing(StripeObject):
"""
routing: Optional[Routing]
_inner_class_types = {
+ "aade_data": AadeData,
"capture_delay": CaptureDelay,
"routing": Routing,
}
@@ -4835,6 +4865,12 @@ class MandateOptions(StripeObject):
"""
_inner_class_types = {"mandate_options": MandateOptions}
+ class Sequra(StripeObject):
+ capture_method: Optional[Literal["manual"]]
+ """
+ Controls when the funds will be captured from the customer's account.
+ """
+
class Shopeepay(StripeObject):
setup_future_usage: Optional[Literal["none"]]
"""
@@ -5189,6 +5225,7 @@ class Zip(StripeObject):
satispay: Optional[Satispay]
scalapay: Optional[Scalapay]
sepa_debit: Optional[SepaDebit]
+ sequra: Optional[Sequra]
shopeepay: Optional[Shopeepay]
sofort: Optional[Sofort]
stripe_balance: Optional[StripeBalance]
@@ -5255,6 +5292,7 @@ class Zip(StripeObject):
"satispay": Satispay,
"scalapay": Scalapay,
"sepa_debit": SepaDebit,
+ "sequra": Sequra,
"shopeepay": Shopeepay,
"sofort": Sofort,
"stripe_balance": StripeBalance,
@@ -5655,6 +5693,7 @@ class PaymentData(StripeObject):
"satispay",
"scalapay",
"sepa_debit",
+ "sequra",
"shopeepay",
"sofort",
"stripe_balance",
diff --git a/stripe/_payment_link.py b/stripe/_payment_link.py
index b0fb6d883..d7bcb761d 100644
--- a/stripe/_payment_link.py
+++ b/stripe/_payment_link.py
@@ -81,7 +81,9 @@ class AutomaticSurcharge(StripeObject):
"""
Indicates whether automatic surcharge is enabled for the payment link.
"""
- provider: Optional[Literal["interpayments", "proserv", "yeeld"]]
+ provider: Optional[
+ Literal["daikin", "interpayments", "proserv", "yeeld"]
+ ]
"""
The surcharge provider used for this payment link.
"""
diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py
index 58b27e40a..1537ec509 100644
--- a/stripe/_payment_method.py
+++ b/stripe/_payment_method.py
@@ -431,6 +431,10 @@ class Wallet(StripeObject):
"""
A collection of fields required to be displayed on receipts. Only required for EMV transactions.
"""
+ retrieval_reference_number: Optional[str]
+ """
+ The retrieval reference number assigned to this transaction.
+ """
wallet: Optional[Wallet]
_inner_class_types = {
"multicapture": Multicapture,
@@ -1790,6 +1794,7 @@ class Zip(StripeObject):
"satispay",
"scalapay",
"sepa_debit",
+ "sequra",
"shopeepay",
"sofort",
"stripe_balance",
diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py
index 3b26d523f..e8ce0c306 100644
--- a/stripe/_payment_record.py
+++ b/stripe/_payment_record.py
@@ -973,6 +973,10 @@ class Wallet(StripeObject):
"""
A collection of fields required to be displayed on receipts. Only required for EMV transactions.
"""
+ retrieval_reference_number: Optional[str]
+ """
+ The retrieval reference number assigned to this transaction.
+ """
wallet: Optional[Wallet]
_inner_class_types = {
"multicapture": Multicapture,
@@ -2012,6 +2016,12 @@ class SepaDebit(StripeObject):
Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://docs.stripe.com/api/mandates/retrieve).
"""
+ class Sequra(StripeObject):
+ transaction_id: Optional[str]
+ """
+ The Sequra transaction ID associated with this payment.
+ """
+
class Shopeepay(StripeObject):
pass
@@ -2240,6 +2250,7 @@ class Zip(StripeObject):
scalapay: Optional[Scalapay]
sepa_credit_transfer: Optional[SepaCreditTransfer]
sepa_debit: Optional[SepaDebit]
+ sequra: Optional[Sequra]
shopeepay: Optional[Shopeepay]
sofort: Optional[Sofort]
stripe_account: Optional[StripeAccount]
@@ -2319,6 +2330,7 @@ class Zip(StripeObject):
"scalapay": Scalapay,
"sepa_credit_transfer": SepaCreditTransfer,
"sepa_debit": SepaDebit,
+ "sequra": Sequra,
"shopeepay": Shopeepay,
"sofort": Sofort,
"stripe_account": StripeAccount,
diff --git a/stripe/_quote_line.py b/stripe/_quote_line.py
index 086b77696..be059f1cc 100644
--- a/stripe/_quote_line.py
+++ b/stripe/_quote_line.py
@@ -696,7 +696,7 @@ class EndBehavior(StripeObject):
Union[Literal["automatic", "line_starts_at"], str]
]
"""
- For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
+ For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp. For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
"""
cancel_subscription_schedule: Optional[CancelSubscriptionSchedule]
"""
diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py
index c22d79cf2..3e588e805 100644
--- a/stripe/_setup_intent.py
+++ b/stripe/_setup_intent.py
@@ -1230,6 +1230,7 @@ class FrMealVoucher(StripeObject):
"satispay",
"scalapay",
"sepa_debit",
+ "sequra",
"shopeepay",
"sofort",
"stripe_balance",
diff --git a/stripe/_subscription.py b/stripe/_subscription.py
index 9311db7ca..90ae354a6 100644
--- a/stripe/_subscription.py
+++ b/stripe/_subscription.py
@@ -38,6 +38,7 @@
from stripe._subscription_schedule import SubscriptionSchedule
from stripe._tax_id import TaxId
from stripe._tax_rate import TaxRate
+ from stripe.billing._feedback_options import FeedbackOptions
from stripe.params._subscription_attach_cadence_params import (
SubscriptionAttachCadenceParams,
)
@@ -242,6 +243,10 @@ class CancellationDetails(StripeObject):
"""
The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user.
"""
+ feedback_option: Optional[ExpandableField["FeedbackOptions"]]
+ """
+ Customized feedback options that provide deeper insight into why the subscription was canceled, if the subscription was canceled explicitly by the user.
+ """
reason: Optional[
Union[
Literal[
@@ -1752,7 +1757,7 @@ def modify(
When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint.
- By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.
+ By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. You can also [use scripts to prorate your billing. To learn more, see Prorations](https://docs.stripe.com/billing/scripts/stripe-authored/proration).
Switching prices does not normally change the billing date or generate an immediate charge unless:
@@ -1789,7 +1794,7 @@ async def modify_async(
When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint.
- By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.
+ By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. You can also [use scripts to prorate your billing. To learn more, see Prorations](https://docs.stripe.com/billing/scripts/stripe-authored/proration).
Switching prices does not normally change the billing date or generate an immediate charge unless:
diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py
index 2edf059e6..097b85e15 100644
--- a/stripe/_subscription_service.py
+++ b/stripe/_subscription_service.py
@@ -163,7 +163,7 @@ def update(
When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint.
- By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.
+ By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. You can also [use scripts to prorate your billing. To learn more, see Prorations](https://docs.stripe.com/billing/scripts/stripe-authored/proration).
Switching prices does not normally change the billing date or generate an immediate charge unless:
@@ -207,7 +207,7 @@ async def update_async(
When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint.
- By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.
+ By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. You can also [use scripts to prorate your billing. To learn more, see Prorations](https://docs.stripe.com/billing/scripts/stripe-authored/proration).
Switching prices does not normally change the billing date or generate an immediate charge unless:
diff --git a/stripe/billing/__init__.py b/stripe/billing/__init__.py
index eabc51c3a..8d5194149 100644
--- a/stripe/billing/__init__.py
+++ b/stripe/billing/__init__.py
@@ -38,6 +38,9 @@
from stripe.billing._credit_grant_service import (
CreditGrantService as CreditGrantService,
)
+ from stripe.billing._feedback_options import (
+ FeedbackOptions as FeedbackOptions,
+ )
from stripe.billing._meter import Meter as Meter
from stripe.billing._meter_event import MeterEvent as MeterEvent
from stripe.billing._meter_event_adjustment import (
@@ -85,6 +88,7 @@
),
"CreditGrant": ("stripe.billing._credit_grant", False),
"CreditGrantService": ("stripe.billing._credit_grant_service", False),
+ "FeedbackOptions": ("stripe.billing._feedback_options", False),
"Meter": ("stripe.billing._meter", False),
"MeterEvent": ("stripe.billing._meter_event", False),
"MeterEventAdjustment": ("stripe.billing._meter_event_adjustment", False),
diff --git a/stripe/billing/_feedback_options.py b/stripe/billing/_feedback_options.py
new file mode 100644
index 000000000..53a50e80d
--- /dev/null
+++ b/stripe/billing/_feedback_options.py
@@ -0,0 +1,44 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Optional
+from typing_extensions import Literal
+
+
+class FeedbackOptions(StripeObject):
+ """
+ A resource for the feedback options model (for custom cancellation reasons)
+ """
+
+ OBJECT_NAME: ClassVar[Literal["billing.feedback_options"]] = (
+ "billing.feedback_options"
+ )
+
+ class StatusTransitions(StripeObject):
+ deactivated_at: Optional[int]
+ """
+ The time the feedback option was deactivated, if any. Measured in seconds since Unix epoch.
+ """
+
+ description: str
+ """
+ An arbitrary string attached to the object. Often useful for displaying to users.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ livemode: bool
+ """
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
+ """
+ object: Literal["billing.feedback_options"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ status: Literal["active", "inactive"]
+ """
+ The feedback option's status.
+ """
+ status_transitions: StatusTransitions
+ _inner_class_types = {"status_transitions": StatusTransitions}
diff --git a/stripe/billing_portal/_configuration.py b/stripe/billing_portal/_configuration.py
index 2bdad7f3c..eaa717b9c 100644
--- a/stripe/billing_portal/_configuration.py
+++ b/stripe/billing_portal/_configuration.py
@@ -12,6 +12,7 @@
if TYPE_CHECKING:
from stripe._application import Application
+ from stripe.billing._feedback_options import FeedbackOptions
from stripe.params.billing_portal._configuration_create_params import (
ConfigurationCreateParams,
)
@@ -98,6 +99,12 @@ class CancellationReason(StripeObject):
"""
Whether the feature is enabled.
"""
+ feedback_options: Optional[
+ List[ExpandableField["FeedbackOptions"]]
+ ]
+ """
+ The IDs of custom feedback options configured for this cancellation reason.
+ """
options: List[
Union[
Literal[
diff --git a/stripe/capital/_financing_summary.py b/stripe/capital/_financing_summary.py
index 8c38156a4..9f6ac1bb4 100644
--- a/stripe/capital/_financing_summary.py
+++ b/stripe/capital/_financing_summary.py
@@ -97,7 +97,7 @@ class CurrentRepaymentInterval(StripeObject):
fee amount, withhold rate, remaining amount, paid amount, current repayment interval,
repayment start date, and advance payout date.
- Only present for financing offers with the `paid_out` status.
+ Only present for financing offers with a `status` other than `none`.
"""
financing_offer: Optional[str]
"""
diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py
index 9fc1096dc..b34760ce9 100644
--- a/stripe/checkout/_session.py
+++ b/stripe/checkout/_session.py
@@ -117,7 +117,9 @@ class AutomaticSurcharge(StripeObject):
"""
Indicates whether automatic surcharge is enabled for the session.
"""
- provider: Optional[Literal["interpayments", "proserv", "yeeld"]]
+ provider: Optional[
+ Literal["daikin", "interpayments", "proserv", "yeeld"]
+ ]
"""
The surcharge provider used for this session.
"""
@@ -1553,6 +1555,12 @@ class Restrictions(StripeObject):
"""
The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment.
"""
+ funding_types_blocked: Optional[
+ List[Literal["credit", "debit", "prepaid"]]
+ ]
+ """
+ Card funding types to block for this Checkout Session. Supported values are `credit`, `debit`, and `prepaid`.
+ """
capture_method: Optional[Literal["manual"]]
"""
@@ -2201,6 +2209,12 @@ class MandateOptions(StripeObject):
"""
_inner_class_types = {"mandate_options": MandateOptions}
+ class Sequra(StripeObject):
+ capture_method: Optional[Literal["manual"]]
+ """
+ Controls when the funds will be captured from the customer's account.
+ """
+
class Sofort(StripeObject):
setup_future_usage: Optional[Literal["none"]]
"""
@@ -2433,6 +2447,7 @@ class WechatPay(StripeObject):
satispay: Optional[Satispay]
scalapay: Optional[Scalapay]
sepa_debit: Optional[SepaDebit]
+ sequra: Optional[Sequra]
sofort: Optional[Sofort]
sunbit: Optional[Sunbit]
swish: Optional[Swish]
@@ -2481,6 +2496,7 @@ class WechatPay(StripeObject):
"satispay": Satispay,
"scalapay": Scalapay,
"sepa_debit": SepaDebit,
+ "sequra": Sequra,
"sofort": Sofort,
"sunbit": Sunbit,
"swish": Swish,
@@ -2899,6 +2915,10 @@ class ShippingOption(StripeObject):
"""
The shipping rate.
"""
+ tax_rates: Optional[List[str]]
+ """
+ The tax rates applied to this shipping option.
+ """
class SurchargeCost(StripeObject):
amount_subtotal: int
diff --git a/stripe/issuing/_authorization.py b/stripe/issuing/_authorization.py
index 58bae5794..949820c91 100644
--- a/stripe/issuing/_authorization.py
+++ b/stripe/issuing/_authorization.py
@@ -893,7 +893,7 @@ class Healthcare(StripeObject):
]
]
"""
- IIAS verification status from the merchant terminal. For Visa, this value will always be iias_verified.
+ IIAS verification status from the merchant terminal. For Visa, this value will always be iias_verified. Defaults to not_verified when the network does not provide IIAS status.
"""
vision_amount: Optional[int]
"""
diff --git a/stripe/params/_account_create_params.py b/stripe/params/_account_create_params.py
index f76d362ff..2476a6bde 100644
--- a/stripe/params/_account_create_params.py
+++ b/stripe/params/_account_create_params.py
@@ -1251,6 +1251,9 @@ class AccountCreateParamsCompany(TypedDict):
administrative_address: NotRequired[
"AccountCreateParamsCompanyAdministrativeAddress"
]
+ """
+ The location where the business is administered.
+ """
directors_provided: NotRequired[bool]
"""
Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
@@ -1308,6 +1311,9 @@ class AccountCreateParamsCompany(TypedDict):
principal_place_of_business: NotRequired[
"AccountCreateParamsCompanyPrincipalPlaceOfBusiness"
]
+ """
+ The primary location where the business conducts operations.
+ """
registration_date: NotRequired[
"Literal['']|AccountCreateParamsCompanyRegistrationDate"
]
diff --git a/stripe/params/_account_update_params.py b/stripe/params/_account_update_params.py
index 2c23760e2..342909cea 100644
--- a/stripe/params/_account_update_params.py
+++ b/stripe/params/_account_update_params.py
@@ -1238,6 +1238,9 @@ class AccountUpdateParamsCompany(TypedDict):
administrative_address: NotRequired[
"AccountUpdateParamsCompanyAdministrativeAddress"
]
+ """
+ The location where the business is administered.
+ """
directors_provided: NotRequired[bool]
"""
Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
@@ -1295,6 +1298,9 @@ class AccountUpdateParamsCompany(TypedDict):
principal_place_of_business: NotRequired[
"AccountUpdateParamsCompanyPrincipalPlaceOfBusiness"
]
+ """
+ The primary location where the business conducts operations.
+ """
registration_date: NotRequired[
"Literal['']|AccountUpdateParamsCompanyRegistrationDate"
]
diff --git a/stripe/params/_confirmation_token_create_params.py b/stripe/params/_confirmation_token_create_params.py
index 8bb668376..ab48b94f6 100644
--- a/stripe/params/_confirmation_token_create_params.py
+++ b/stripe/params/_confirmation_token_create_params.py
@@ -419,6 +419,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"satispay",
"scalapay",
"sepa_debit",
+ "sequra",
"shopeepay",
"sofort",
"stripe_balance",
diff --git a/stripe/params/_customer_list_payment_methods_params.py b/stripe/params/_customer_list_payment_methods_params.py
index f4ab10b8f..c9c017593 100644
--- a/stripe/params/_customer_list_payment_methods_params.py
+++ b/stripe/params/_customer_list_payment_methods_params.py
@@ -29,7 +29,7 @@ class CustomerListPaymentMethodsParams(RequestOptions):
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""
type: NotRequired[
- "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str"
+ "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str"
]
"""
An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request.
diff --git a/stripe/params/_customer_payment_method_list_params.py b/stripe/params/_customer_payment_method_list_params.py
index ce95b1089..f8140a3e0 100644
--- a/stripe/params/_customer_payment_method_list_params.py
+++ b/stripe/params/_customer_payment_method_list_params.py
@@ -28,7 +28,7 @@ class CustomerPaymentMethodListParams(TypedDict):
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""
type: NotRequired[
- "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str"
+ "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str"
]
"""
An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request.
diff --git a/stripe/params/_invoice_create_preview_params.py b/stripe/params/_invoice_create_preview_params.py
index 3fc72df42..ce1a5ce82 100644
--- a/stripe/params/_invoice_create_preview_params.py
+++ b/stripe/params/_invoice_create_preview_params.py
@@ -683,7 +683,7 @@ class InvoiceCreatePreviewParamsScheduleDetailsAmendment(TypedDict):
"Literal['amendment_start', 'automatic']|str"
]
"""
- For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp.For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
+ For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp. For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
"""
billing_schedules_actions: NotRequired[
List[
diff --git a/stripe/params/_payment_attempt_record_report_guaranteed_params.py b/stripe/params/_payment_attempt_record_report_guaranteed_params.py
index e997fbd5e..45e74af62 100644
--- a/stripe/params/_payment_attempt_record_report_guaranteed_params.py
+++ b/stripe/params/_payment_attempt_record_report_guaranteed_params.py
@@ -15,6 +15,10 @@ class PaymentAttemptRecordReportGuaranteedParams(RequestOptions):
"""
When the reported payment was guaranteed. Measured in seconds since the Unix epoch.
"""
+ is_anomalous: NotRequired[bool]
+ """
+ Set to `true` to enable writing an anomalous guaranteed payment to an outdated PaymentAttemptRecord. This parameter defaults to `false`.
+ """
metadata: NotRequired[
"Literal['']|Dict[str, str]|UntypedStripeObject[str]"
]
diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py
index 9201df553..8766ff916 100644
--- a/stripe/params/_payment_intent_confirm_params.py
+++ b/stripe/params/_payment_intent_confirm_params.py
@@ -150,7 +150,7 @@ class PaymentIntentConfirmParams(RequestOptions):
Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. This parameter is intended for simpler integrations that do not handle customer actions, like [saving cards without authentication](https://docs.stripe.com/payments/save-card-without-authentication).
"""
excluded_payment_method_types: NotRequired[
- "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]"
+ "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]"
]
"""
The list of payment method types to exclude from use with this payment.
@@ -3164,6 +3164,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict):
"satispay",
"scalapay",
"sepa_debit",
+ "sequra",
"shopeepay",
"sofort",
"stripe_balance",
diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py
index b2c99cf5e..3b4e83428 100644
--- a/stripe/params/_payment_intent_create_params.py
+++ b/stripe/params/_payment_intent_create_params.py
@@ -240,6 +240,7 @@ class PaymentIntentCreateParams(RequestOptions):
"satispay",
"scalapay",
"sepa_debit",
+ "sequra",
"shopeepay",
"sofort",
"stripe_balance",
@@ -3299,6 +3300,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict):
"satispay",
"scalapay",
"sepa_debit",
+ "sequra",
"shopeepay",
"sofort",
"stripe_balance",
diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py
index 25c41e1c7..c4c5cfb15 100644
--- a/stripe/params/_payment_intent_modify_params.py
+++ b/stripe/params/_payment_intent_modify_params.py
@@ -164,7 +164,7 @@ class PaymentIntentModifyParams(RequestOptions):
An arbitrary string attached to the object. Often useful for displaying to users.
"""
excluded_payment_method_types: NotRequired[
- "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]"
+ "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]"
]
"""
The list of payment method types to exclude from use with this payment.
@@ -3143,6 +3143,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict):
"satispay",
"scalapay",
"sepa_debit",
+ "sequra",
"shopeepay",
"sofort",
"stripe_balance",
diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py
index db5230cbe..a53072736 100644
--- a/stripe/params/_payment_intent_update_params.py
+++ b/stripe/params/_payment_intent_update_params.py
@@ -163,7 +163,7 @@ class PaymentIntentUpdateParams(TypedDict):
An arbitrary string attached to the object. Often useful for displaying to users.
"""
excluded_payment_method_types: NotRequired[
- "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]"
+ "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]"
]
"""
The list of payment method types to exclude from use with this payment.
@@ -3142,6 +3142,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict):
"satispay",
"scalapay",
"sepa_debit",
+ "sequra",
"shopeepay",
"sofort",
"stripe_balance",
diff --git a/stripe/params/_payment_link_create_params.py b/stripe/params/_payment_link_create_params.py
index 5e268f62a..ef406d7ae 100644
--- a/stripe/params/_payment_link_create_params.py
+++ b/stripe/params/_payment_link_create_params.py
@@ -357,7 +357,7 @@ class PaymentLinkCreateParamsCustomField(TypedDict):
class PaymentLinkCreateParamsCustomFieldDropdown(TypedDict):
default_value: NotRequired[str]
"""
- The value that pre-fills the field on the payment page.Must match a `value` in the `options` array.
+ The value that pre-fills the field on the payment page. Must match a `value` in the `options` array.
"""
options: List["PaymentLinkCreateParamsCustomFieldDropdownOption"]
"""
diff --git a/stripe/params/_payment_link_modify_params.py b/stripe/params/_payment_link_modify_params.py
index ee799c4b0..604557d11 100644
--- a/stripe/params/_payment_link_modify_params.py
+++ b/stripe/params/_payment_link_modify_params.py
@@ -268,7 +268,7 @@ class PaymentLinkModifyParamsCustomField(TypedDict):
class PaymentLinkModifyParamsCustomFieldDropdown(TypedDict):
default_value: NotRequired[str]
"""
- The value that pre-fills the field on the payment page.Must match a `value` in the `options` array.
+ The value that pre-fills the field on the payment page. Must match a `value` in the `options` array.
"""
options: List["PaymentLinkModifyParamsCustomFieldDropdownOption"]
"""
diff --git a/stripe/params/_payment_link_update_params.py b/stripe/params/_payment_link_update_params.py
index 245297022..65c61aae3 100644
--- a/stripe/params/_payment_link_update_params.py
+++ b/stripe/params/_payment_link_update_params.py
@@ -267,7 +267,7 @@ class PaymentLinkUpdateParamsCustomField(TypedDict):
class PaymentLinkUpdateParamsCustomFieldDropdown(TypedDict):
default_value: NotRequired[str]
"""
- The value that pre-fills the field on the payment page.Must match a `value` in the `options` array.
+ The value that pre-fills the field on the payment page. Must match a `value` in the `options` array.
"""
options: List["PaymentLinkUpdateParamsCustomFieldDropdownOption"]
"""
diff --git a/stripe/params/_payment_method_create_params.py b/stripe/params/_payment_method_create_params.py
index a2ea57ade..96a1448d0 100644
--- a/stripe/params/_payment_method_create_params.py
+++ b/stripe/params/_payment_method_create_params.py
@@ -282,7 +282,7 @@ class PaymentMethodCreateParams(RequestOptions):
If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
"""
type: NotRequired[
- "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str"
+ "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str"
]
"""
The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
diff --git a/stripe/params/_payment_method_list_params.py b/stripe/params/_payment_method_list_params.py
index ad6d0cb70..718e073ac 100644
--- a/stripe/params/_payment_method_list_params.py
+++ b/stripe/params/_payment_method_list_params.py
@@ -37,7 +37,7 @@ class PaymentMethodListParams(RequestOptions):
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""
type: NotRequired[
- "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str"
+ "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str"
]
"""
Filters the list by the object `type` field. Unfiltered, the list returns all payment method types except `custom`. If your integration expects only one type of payment method in the response, specify that type value in the request to reduce your payload.
diff --git a/stripe/params/_quote_create_params.py b/stripe/params/_quote_create_params.py
index 26fcf09a1..662e81dea 100644
--- a/stripe/params/_quote_create_params.py
+++ b/stripe/params/_quote_create_params.py
@@ -358,7 +358,7 @@ class QuoteCreateParamsLine(TypedDict):
"Literal['automatic', 'line_starts_at']|str"
]
"""
- For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
+ For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp. For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
"""
cancel_subscription_schedule: NotRequired[
"QuoteCreateParamsLineCancelSubscriptionSchedule"
diff --git a/stripe/params/_quote_modify_params.py b/stripe/params/_quote_modify_params.py
index 7218d3893..ffc12ea35 100644
--- a/stripe/params/_quote_modify_params.py
+++ b/stripe/params/_quote_modify_params.py
@@ -343,7 +343,7 @@ class QuoteModifyParamsLine(TypedDict):
"Literal['automatic', 'line_starts_at']|str"
]
"""
- For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
+ For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp. For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
"""
cancel_subscription_schedule: NotRequired[
"QuoteModifyParamsLineCancelSubscriptionSchedule"
diff --git a/stripe/params/_quote_update_params.py b/stripe/params/_quote_update_params.py
index c99b3bbf1..fce92ab84 100644
--- a/stripe/params/_quote_update_params.py
+++ b/stripe/params/_quote_update_params.py
@@ -342,7 +342,7 @@ class QuoteUpdateParamsLine(TypedDict):
"Literal['automatic', 'line_starts_at']|str"
]
"""
- For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
+ For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp. For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
"""
cancel_subscription_schedule: NotRequired[
"QuoteUpdateParamsLineCancelSubscriptionSchedule"
diff --git a/stripe/params/_setup_intent_confirm_params.py b/stripe/params/_setup_intent_confirm_params.py
index 8c63a8f0c..6897c474b 100644
--- a/stripe/params/_setup_intent_confirm_params.py
+++ b/stripe/params/_setup_intent_confirm_params.py
@@ -562,6 +562,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict):
"satispay",
"scalapay",
"sepa_debit",
+ "sequra",
"shopeepay",
"sofort",
"stripe_balance",
diff --git a/stripe/params/_setup_intent_create_params.py b/stripe/params/_setup_intent_create_params.py
index c71ee3b7d..e64afb96d 100644
--- a/stripe/params/_setup_intent_create_params.py
+++ b/stripe/params/_setup_intent_create_params.py
@@ -208,6 +208,7 @@ class SetupIntentCreateParams(RequestOptions):
"satispay",
"scalapay",
"sepa_debit",
+ "sequra",
"shopeepay",
"sofort",
"stripe_balance",
@@ -707,6 +708,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict):
"satispay",
"scalapay",
"sepa_debit",
+ "sequra",
"shopeepay",
"sofort",
"stripe_balance",
diff --git a/stripe/params/_setup_intent_modify_params.py b/stripe/params/_setup_intent_modify_params.py
index 848477419..afdf22fe7 100644
--- a/stripe/params/_setup_intent_modify_params.py
+++ b/stripe/params/_setup_intent_modify_params.py
@@ -36,7 +36,7 @@ class SetupIntentModifyParams(RequestOptions):
An arbitrary string attached to the object. Often useful for displaying to users.
"""
excluded_payment_method_types: NotRequired[
- "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]"
+ "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]"
]
"""
The list of payment method types to exclude from use with this SetupIntent.
@@ -438,6 +438,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict):
"satispay",
"scalapay",
"sepa_debit",
+ "sequra",
"shopeepay",
"sofort",
"stripe_balance",
diff --git a/stripe/params/_setup_intent_update_params.py b/stripe/params/_setup_intent_update_params.py
index e1a6e22c4..ea5c5af86 100644
--- a/stripe/params/_setup_intent_update_params.py
+++ b/stripe/params/_setup_intent_update_params.py
@@ -35,7 +35,7 @@ class SetupIntentUpdateParams(TypedDict):
An arbitrary string attached to the object. Often useful for displaying to users.
"""
excluded_payment_method_types: NotRequired[
- "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]"
+ "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]"
]
"""
The list of payment method types to exclude from use with this SetupIntent.
@@ -437,6 +437,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict):
"satispay",
"scalapay",
"sepa_debit",
+ "sequra",
"shopeepay",
"sofort",
"stripe_balance",
diff --git a/stripe/params/_subscription_schedule_amend_params.py b/stripe/params/_subscription_schedule_amend_params.py
index 31849bff5..8f021012d 100644
--- a/stripe/params/_subscription_schedule_amend_params.py
+++ b/stripe/params/_subscription_schedule_amend_params.py
@@ -51,7 +51,7 @@ class SubscriptionScheduleAmendParamsAmendment(TypedDict):
"Literal['amendment_start', 'automatic']|str"
]
"""
- For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp.For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
+ For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp. For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
"""
billing_schedules_actions: NotRequired[
List["SubscriptionScheduleAmendParamsAmendmentBillingSchedulesAction"]
diff --git a/stripe/params/_token_create_params.py b/stripe/params/_token_create_params.py
index 7e224db68..34fb7ed72 100644
--- a/stripe/params/_token_create_params.py
+++ b/stripe/params/_token_create_params.py
@@ -78,6 +78,9 @@ class TokenCreateParamsAccountCompany(TypedDict):
administrative_address: NotRequired[
"TokenCreateParamsAccountCompanyAdministrativeAddress"
]
+ """
+ The location where the business is administered.
+ """
directors_provided: NotRequired[bool]
"""
Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
@@ -139,6 +142,9 @@ class TokenCreateParamsAccountCompany(TypedDict):
principal_place_of_business: NotRequired[
"TokenCreateParamsAccountCompanyPrincipalPlaceOfBusiness"
]
+ """
+ The primary location where the business conducts operations.
+ """
registration_date: NotRequired[
"Literal['']|TokenCreateParamsAccountCompanyRegistrationDate"
]
diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py
index bf15b88cb..a4bfbf3ef 100644
--- a/stripe/params/checkout/_session_create_params.py
+++ b/stripe/params/checkout/_session_create_params.py
@@ -665,7 +665,7 @@ class SessionCreateParamsCustomField(TypedDict):
class SessionCreateParamsCustomFieldDropdown(TypedDict):
default_value: NotRequired[str]
"""
- The value that pre-fills the field on the payment page.Must match a `value` in the `options` array.
+ The value that pre-fills the field on the payment page. Must match a `value` in the `options` array.
"""
options: List["SessionCreateParamsCustomFieldDropdownOption"]
"""
@@ -1028,11 +1028,11 @@ class SessionCreateParamsItemSubscriptionBillingModeFlexible(TypedDict):
class SessionCreateParamsItemSubscriptionItem(TypedDict):
price: NotRequired[str]
"""
- The ID of the price for this subscription item.
+ The ID of the [Price](https://docs.stripe.com/api/prices). One of `price` or `price_data` is required.
"""
price_data: NotRequired["SessionCreateParamsItemSubscriptionItemPriceData"]
"""
- Data used to generate a new Price object inline.
+ Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
@@ -3283,6 +3283,10 @@ class SessionCreateParamsShippingOption(TypedDict):
"""
Parameters to be passed to Shipping Rate creation for this shipping option.
"""
+ tax_rates: NotRequired[List[str]]
+ """
+ The tax rates that will be applied to this shipping option. This parameter is only supported for Checkout Sessions with `ui_mode` set to `form` or `elements`.
+ """
class SessionCreateParamsShippingOptionShippingRateData(TypedDict):
diff --git a/stripe/params/checkout/_session_modify_params.py b/stripe/params/checkout/_session_modify_params.py
index 7e5935c2c..c8cd12d93 100644
--- a/stripe/params/checkout/_session_modify_params.py
+++ b/stripe/params/checkout/_session_modify_params.py
@@ -345,6 +345,10 @@ class SessionModifyParamsShippingOption(TypedDict):
"""
Parameters to be passed to Shipping Rate creation for this shipping option.
"""
+ tax_rates: NotRequired["Literal['']|List[str]"]
+ """
+ The tax rates that will be applied to this shipping option. This parameter is only supported for Checkout Sessions with `ui_mode` set to `form` or `elements`.
+ """
class SessionModifyParamsShippingOptionShippingRateData(TypedDict):
diff --git a/stripe/params/checkout/_session_update_params.py b/stripe/params/checkout/_session_update_params.py
index 43d5944ec..7b14816f4 100644
--- a/stripe/params/checkout/_session_update_params.py
+++ b/stripe/params/checkout/_session_update_params.py
@@ -344,6 +344,10 @@ class SessionUpdateParamsShippingOption(TypedDict):
"""
Parameters to be passed to Shipping Rate creation for this shipping option.
"""
+ tax_rates: NotRequired["Literal['']|List[str]"]
+ """
+ The tax rates that will be applied to this shipping option. This parameter is only supported for Checkout Sessions with `ui_mode` set to `form` or `elements`.
+ """
class SessionUpdateParamsShippingOptionShippingRateData(TypedDict):
diff --git a/stripe/params/issuing/__init__.py b/stripe/params/issuing/__init__.py
index 7d92f7358..b688620ec 100644
--- a/stripe/params/issuing/__init__.py
+++ b/stripe/params/issuing/__init__.py
@@ -20,6 +20,7 @@
AuthorizationCaptureParamsPurchaseDetailsFlight as AuthorizationCaptureParamsPurchaseDetailsFlight,
AuthorizationCaptureParamsPurchaseDetailsFlightSegment as AuthorizationCaptureParamsPurchaseDetailsFlightSegment,
AuthorizationCaptureParamsPurchaseDetailsFuel as AuthorizationCaptureParamsPurchaseDetailsFuel,
+ AuthorizationCaptureParamsPurchaseDetailsHealthcare as AuthorizationCaptureParamsPurchaseDetailsHealthcare,
AuthorizationCaptureParamsPurchaseDetailsLodging as AuthorizationCaptureParamsPurchaseDetailsLodging,
AuthorizationCaptureParamsPurchaseDetailsReceipt as AuthorizationCaptureParamsPurchaseDetailsReceipt,
)
@@ -33,6 +34,7 @@
AuthorizationCreateParamsFleetReportedBreakdownNonFuel as AuthorizationCreateParamsFleetReportedBreakdownNonFuel,
AuthorizationCreateParamsFleetReportedBreakdownTax as AuthorizationCreateParamsFleetReportedBreakdownTax,
AuthorizationCreateParamsFuel as AuthorizationCreateParamsFuel,
+ AuthorizationCreateParamsHealthcare as AuthorizationCreateParamsHealthcare,
AuthorizationCreateParamsMerchantData as AuthorizationCreateParamsMerchantData,
AuthorizationCreateParamsNetworkData as AuthorizationCreateParamsNetworkData,
AuthorizationCreateParamsRiskAssessment as AuthorizationCreateParamsRiskAssessment,
@@ -388,6 +390,7 @@
TransactionCreateForceCaptureParamsPurchaseDetailsFlight as TransactionCreateForceCaptureParamsPurchaseDetailsFlight,
TransactionCreateForceCaptureParamsPurchaseDetailsFlightSegment as TransactionCreateForceCaptureParamsPurchaseDetailsFlightSegment,
TransactionCreateForceCaptureParamsPurchaseDetailsFuel as TransactionCreateForceCaptureParamsPurchaseDetailsFuel,
+ TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare as TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare,
TransactionCreateForceCaptureParamsPurchaseDetailsLodging as TransactionCreateForceCaptureParamsPurchaseDetailsLodging,
TransactionCreateForceCaptureParamsPurchaseDetailsReceipt as TransactionCreateForceCaptureParamsPurchaseDetailsReceipt,
)
@@ -404,6 +407,7 @@
TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlight as TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlight,
TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlightSegment as TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlightSegment,
TransactionCreateUnlinkedRefundParamsPurchaseDetailsFuel as TransactionCreateUnlinkedRefundParamsPurchaseDetailsFuel,
+ TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare as TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare,
TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging as TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging,
TransactionCreateUnlinkedRefundParamsPurchaseDetailsReceipt as TransactionCreateUnlinkedRefundParamsPurchaseDetailsReceipt,
)
@@ -478,6 +482,10 @@
"stripe.params.issuing._authorization_capture_params",
False,
),
+ "AuthorizationCaptureParamsPurchaseDetailsHealthcare": (
+ "stripe.params.issuing._authorization_capture_params",
+ False,
+ ),
"AuthorizationCaptureParamsPurchaseDetailsLodging": (
"stripe.params.issuing._authorization_capture_params",
False,
@@ -522,6 +530,10 @@
"stripe.params.issuing._authorization_create_params",
False,
),
+ "AuthorizationCreateParamsHealthcare": (
+ "stripe.params.issuing._authorization_create_params",
+ False,
+ ),
"AuthorizationCreateParamsMerchantData": (
"stripe.params.issuing._authorization_create_params",
False,
@@ -1379,6 +1391,10 @@
"stripe.params.issuing._transaction_create_force_capture_params",
False,
),
+ "TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare": (
+ "stripe.params.issuing._transaction_create_force_capture_params",
+ False,
+ ),
"TransactionCreateForceCaptureParamsPurchaseDetailsLodging": (
"stripe.params.issuing._transaction_create_force_capture_params",
False,
@@ -1435,6 +1451,10 @@
"stripe.params.issuing._transaction_create_unlinked_refund_params",
False,
),
+ "TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare": (
+ "stripe.params.issuing._transaction_create_unlinked_refund_params",
+ False,
+ ),
"TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging": (
"stripe.params.issuing._transaction_create_unlinked_refund_params",
False,
diff --git a/stripe/params/issuing/_authorization_capture_params.py b/stripe/params/issuing/_authorization_capture_params.py
index e82727958..001cb8960 100644
--- a/stripe/params/issuing/_authorization_capture_params.py
+++ b/stripe/params/issuing/_authorization_capture_params.py
@@ -49,6 +49,12 @@ class AuthorizationCaptureParamsPurchaseDetails(TypedDict):
"""
Information about fuel that was purchased with this transaction.
"""
+ healthcare: NotRequired[
+ "AuthorizationCaptureParamsPurchaseDetailsHealthcare"
+ ]
+ """
+ Healthcare sub-amounts for IIAS-eligible transactions.
+ """
lodging: NotRequired["AuthorizationCaptureParamsPurchaseDetailsLodging"]
"""
Information about lodging that was purchased with this transaction.
@@ -267,6 +273,46 @@ class AuthorizationCaptureParamsPurchaseDetailsFuel(TypedDict):
"""
+class AuthorizationCaptureParamsPurchaseDetailsHealthcare(TypedDict):
+ clinic_amount: NotRequired[int]
+ """
+ Clinic and urgent care sub-amount for Visa only.
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ dental_amount: NotRequired[int]
+ """
+ Dental care sub-amount for Visa only.
+ """
+ prescription_amount: NotRequired[int]
+ """
+ Prescription drug sub-amount. Null if the merchant did not send this amount.
+ """
+ purchase_type: NotRequired[Literal["medical", "transit_for_healthcare"]]
+ """
+ The type of healthcare transaction. `medical` for FSA/HSA-eligible healthcare purchases; `transit_for_healthcare` for FSA/HSA-eligible transit for healthcare purchases.
+ """
+ total_qualified_amount: int
+ """
+ Total FSA/HSA-eligible amount in the smallest currency unit.
+ """
+ verification_status: Literal[
+ "iias_merchant_exempt",
+ "iias_merchant_not_certified",
+ "iias_verified",
+ "not_verified",
+ ]
+ """
+ IIAS verification status from the merchant terminal. For Visa, this is always iias_verified.
+ """
+ vision_amount: NotRequired[int]
+ """
+ Vision/optical sub-amount. Null if the merchant did not send this amount.
+ """
+
+
class AuthorizationCaptureParamsPurchaseDetailsLodging(TypedDict):
check_in_at: NotRequired[int]
"""
diff --git a/stripe/params/issuing/_authorization_create_params.py b/stripe/params/issuing/_authorization_create_params.py
index c4c77585a..fcd56e67b 100644
--- a/stripe/params/issuing/_authorization_create_params.py
+++ b/stripe/params/issuing/_authorization_create_params.py
@@ -47,6 +47,10 @@ class AuthorizationCreateParams(RequestOptions):
"""
Information about fuel that was purchased with this transaction.
"""
+ healthcare: NotRequired["AuthorizationCreateParamsHealthcare"]
+ """
+ Healthcare-specific information for IIAS-eligible authorizations.
+ """
is_amount_controllable: NotRequired[bool]
"""
If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization.
@@ -230,6 +234,46 @@ class AuthorizationCreateParamsFuel(TypedDict):
"""
+class AuthorizationCreateParamsHealthcare(TypedDict):
+ clinic_amount: NotRequired[int]
+ """
+ Clinic and urgent care sub-amount for Visa only.
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ dental_amount: NotRequired[int]
+ """
+ Dental care sub-amount for Visa only.
+ """
+ prescription_amount: NotRequired[int]
+ """
+ Prescription drug sub-amount. Null if the merchant did not send this amount.
+ """
+ purchase_type: NotRequired[Literal["medical", "transit_for_healthcare"]]
+ """
+ The type of healthcare transaction. `medical` for FSA/HSA-eligible healthcare purchases; `transit_for_healthcare` for FSA/HSA-eligible transit for healthcare purchases.
+ """
+ total_qualified_amount: int
+ """
+ Total FSA/HSA-eligible amount in the smallest currency unit.
+ """
+ verification_status: Literal[
+ "iias_merchant_exempt",
+ "iias_merchant_not_certified",
+ "iias_verified",
+ "not_verified",
+ ]
+ """
+ IIAS verification status from the merchant terminal. For Visa, this is always iias_verified.
+ """
+ vision_amount: NotRequired[int]
+ """
+ Vision/optical sub-amount. Null if the merchant did not send this amount.
+ """
+
+
class AuthorizationCreateParamsMerchantData(TypedDict):
category: NotRequired[
Literal[
diff --git a/stripe/params/issuing/_transaction_create_force_capture_params.py b/stripe/params/issuing/_transaction_create_force_capture_params.py
index 2b33360d8..cab19f113 100644
--- a/stripe/params/issuing/_transaction_create_force_capture_params.py
+++ b/stripe/params/issuing/_transaction_create_force_capture_params.py
@@ -409,6 +409,12 @@ class TransactionCreateForceCaptureParamsPurchaseDetails(TypedDict):
"""
Information about fuel that was purchased with this transaction.
"""
+ healthcare: NotRequired[
+ "TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare"
+ ]
+ """
+ Healthcare sub-amounts for IIAS-eligible transactions.
+ """
lodging: NotRequired[
"TransactionCreateForceCaptureParamsPurchaseDetailsLodging"
]
@@ -631,6 +637,46 @@ class TransactionCreateForceCaptureParamsPurchaseDetailsFuel(TypedDict):
"""
+class TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare(TypedDict):
+ clinic_amount: NotRequired[int]
+ """
+ Clinic and urgent care sub-amount for Visa only.
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ dental_amount: NotRequired[int]
+ """
+ Dental care sub-amount for Visa only.
+ """
+ prescription_amount: NotRequired[int]
+ """
+ Prescription drug sub-amount. Null if the merchant did not send this amount.
+ """
+ purchase_type: NotRequired[Literal["medical", "transit_for_healthcare"]]
+ """
+ The type of healthcare transaction. `medical` for FSA/HSA-eligible healthcare purchases; `transit_for_healthcare` for FSA/HSA-eligible transit for healthcare purchases.
+ """
+ total_qualified_amount: int
+ """
+ Total FSA/HSA-eligible amount in the smallest currency unit.
+ """
+ verification_status: Literal[
+ "iias_merchant_exempt",
+ "iias_merchant_not_certified",
+ "iias_verified",
+ "not_verified",
+ ]
+ """
+ IIAS verification status from the merchant terminal. For Visa, this is always iias_verified.
+ """
+ vision_amount: NotRequired[int]
+ """
+ Vision/optical sub-amount. Null if the merchant did not send this amount.
+ """
+
+
class TransactionCreateForceCaptureParamsPurchaseDetailsLodging(TypedDict):
check_in_at: NotRequired[int]
"""
diff --git a/stripe/params/issuing/_transaction_create_unlinked_refund_params.py b/stripe/params/issuing/_transaction_create_unlinked_refund_params.py
index d49ef8cfa..8803e157b 100644
--- a/stripe/params/issuing/_transaction_create_unlinked_refund_params.py
+++ b/stripe/params/issuing/_transaction_create_unlinked_refund_params.py
@@ -400,6 +400,12 @@ class TransactionCreateUnlinkedRefundParamsPurchaseDetails(TypedDict):
"""
Information about fuel that was purchased with this transaction.
"""
+ healthcare: NotRequired[
+ "TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare"
+ ]
+ """
+ Healthcare sub-amounts for IIAS-eligible transactions.
+ """
lodging: NotRequired[
"TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging"
]
@@ -624,6 +630,48 @@ class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFuel(TypedDict):
"""
+class TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare(
+ TypedDict
+):
+ clinic_amount: NotRequired[int]
+ """
+ Clinic and urgent care sub-amount for Visa only.
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ dental_amount: NotRequired[int]
+ """
+ Dental care sub-amount for Visa only.
+ """
+ prescription_amount: NotRequired[int]
+ """
+ Prescription drug sub-amount. Null if the merchant did not send this amount.
+ """
+ purchase_type: NotRequired[Literal["medical", "transit_for_healthcare"]]
+ """
+ The type of healthcare transaction. `medical` for FSA/HSA-eligible healthcare purchases; `transit_for_healthcare` for FSA/HSA-eligible transit for healthcare purchases.
+ """
+ total_qualified_amount: int
+ """
+ Total FSA/HSA-eligible amount in the smallest currency unit.
+ """
+ verification_status: Literal[
+ "iias_merchant_exempt",
+ "iias_merchant_not_certified",
+ "iias_verified",
+ "not_verified",
+ ]
+ """
+ IIAS verification status from the merchant terminal. For Visa, this is always iias_verified.
+ """
+ vision_amount: NotRequired[int]
+ """
+ Vision/optical sub-amount. Null if the merchant did not send this amount.
+ """
+
+
class TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging(TypedDict):
check_in_at: NotRequired[int]
"""
diff --git a/stripe/params/test_helpers/_confirmation_token_create_params.py b/stripe/params/test_helpers/_confirmation_token_create_params.py
index 073021093..4bed35765 100644
--- a/stripe/params/test_helpers/_confirmation_token_create_params.py
+++ b/stripe/params/test_helpers/_confirmation_token_create_params.py
@@ -418,6 +418,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"satispay",
"scalapay",
"sepa_debit",
+ "sequra",
"shopeepay",
"sofort",
"stripe_balance",
diff --git a/stripe/params/test_helpers/issuing/__init__.py b/stripe/params/test_helpers/issuing/__init__.py
index 9efb47a67..1035e88a3 100644
--- a/stripe/params/test_helpers/issuing/__init__.py
+++ b/stripe/params/test_helpers/issuing/__init__.py
@@ -17,6 +17,7 @@
AuthorizationCaptureParamsPurchaseDetailsFlight as AuthorizationCaptureParamsPurchaseDetailsFlight,
AuthorizationCaptureParamsPurchaseDetailsFlightSegment as AuthorizationCaptureParamsPurchaseDetailsFlightSegment,
AuthorizationCaptureParamsPurchaseDetailsFuel as AuthorizationCaptureParamsPurchaseDetailsFuel,
+ AuthorizationCaptureParamsPurchaseDetailsHealthcare as AuthorizationCaptureParamsPurchaseDetailsHealthcare,
AuthorizationCaptureParamsPurchaseDetailsLodging as AuthorizationCaptureParamsPurchaseDetailsLodging,
AuthorizationCaptureParamsPurchaseDetailsReceipt as AuthorizationCaptureParamsPurchaseDetailsReceipt,
)
@@ -30,6 +31,7 @@
AuthorizationCreateParamsFleetReportedBreakdownNonFuel as AuthorizationCreateParamsFleetReportedBreakdownNonFuel,
AuthorizationCreateParamsFleetReportedBreakdownTax as AuthorizationCreateParamsFleetReportedBreakdownTax,
AuthorizationCreateParamsFuel as AuthorizationCreateParamsFuel,
+ AuthorizationCreateParamsHealthcare as AuthorizationCreateParamsHealthcare,
AuthorizationCreateParamsMerchantData as AuthorizationCreateParamsMerchantData,
AuthorizationCreateParamsNetworkData as AuthorizationCreateParamsNetworkData,
AuthorizationCreateParamsRiskAssessment as AuthorizationCreateParamsRiskAssessment,
@@ -119,6 +121,7 @@
TransactionCreateForceCaptureParamsPurchaseDetailsFlight as TransactionCreateForceCaptureParamsPurchaseDetailsFlight,
TransactionCreateForceCaptureParamsPurchaseDetailsFlightSegment as TransactionCreateForceCaptureParamsPurchaseDetailsFlightSegment,
TransactionCreateForceCaptureParamsPurchaseDetailsFuel as TransactionCreateForceCaptureParamsPurchaseDetailsFuel,
+ TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare as TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare,
TransactionCreateForceCaptureParamsPurchaseDetailsLodging as TransactionCreateForceCaptureParamsPurchaseDetailsLodging,
TransactionCreateForceCaptureParamsPurchaseDetailsReceipt as TransactionCreateForceCaptureParamsPurchaseDetailsReceipt,
)
@@ -135,6 +138,7 @@
TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlight as TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlight,
TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlightSegment as TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlightSegment,
TransactionCreateUnlinkedRefundParamsPurchaseDetailsFuel as TransactionCreateUnlinkedRefundParamsPurchaseDetailsFuel,
+ TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare as TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare,
TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging as TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging,
TransactionCreateUnlinkedRefundParamsPurchaseDetailsReceipt as TransactionCreateUnlinkedRefundParamsPurchaseDetailsReceipt,
)
@@ -192,6 +196,10 @@
"stripe.params.test_helpers.issuing._authorization_capture_params",
False,
),
+ "AuthorizationCaptureParamsPurchaseDetailsHealthcare": (
+ "stripe.params.test_helpers.issuing._authorization_capture_params",
+ False,
+ ),
"AuthorizationCaptureParamsPurchaseDetailsLodging": (
"stripe.params.test_helpers.issuing._authorization_capture_params",
False,
@@ -236,6 +244,10 @@
"stripe.params.test_helpers.issuing._authorization_create_params",
False,
),
+ "AuthorizationCreateParamsHealthcare": (
+ "stripe.params.test_helpers.issuing._authorization_create_params",
+ False,
+ ),
"AuthorizationCreateParamsMerchantData": (
"stripe.params.test_helpers.issuing._authorization_create_params",
False,
@@ -440,6 +452,10 @@
"stripe.params.test_helpers.issuing._transaction_create_force_capture_params",
False,
),
+ "TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare": (
+ "stripe.params.test_helpers.issuing._transaction_create_force_capture_params",
+ False,
+ ),
"TransactionCreateForceCaptureParamsPurchaseDetailsLodging": (
"stripe.params.test_helpers.issuing._transaction_create_force_capture_params",
False,
@@ -496,6 +512,10 @@
"stripe.params.test_helpers.issuing._transaction_create_unlinked_refund_params",
False,
),
+ "TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare": (
+ "stripe.params.test_helpers.issuing._transaction_create_unlinked_refund_params",
+ False,
+ ),
"TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging": (
"stripe.params.test_helpers.issuing._transaction_create_unlinked_refund_params",
False,
diff --git a/stripe/params/test_helpers/issuing/_authorization_capture_params.py b/stripe/params/test_helpers/issuing/_authorization_capture_params.py
index 88ace1e6f..a396965d6 100644
--- a/stripe/params/test_helpers/issuing/_authorization_capture_params.py
+++ b/stripe/params/test_helpers/issuing/_authorization_capture_params.py
@@ -48,6 +48,12 @@ class AuthorizationCaptureParamsPurchaseDetails(TypedDict):
"""
Information about fuel that was purchased with this transaction.
"""
+ healthcare: NotRequired[
+ "AuthorizationCaptureParamsPurchaseDetailsHealthcare"
+ ]
+ """
+ Healthcare sub-amounts for IIAS-eligible transactions.
+ """
lodging: NotRequired["AuthorizationCaptureParamsPurchaseDetailsLodging"]
"""
Information about lodging that was purchased with this transaction.
@@ -266,6 +272,46 @@ class AuthorizationCaptureParamsPurchaseDetailsFuel(TypedDict):
"""
+class AuthorizationCaptureParamsPurchaseDetailsHealthcare(TypedDict):
+ clinic_amount: NotRequired[int]
+ """
+ Clinic and urgent care sub-amount for Visa only.
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ dental_amount: NotRequired[int]
+ """
+ Dental care sub-amount for Visa only.
+ """
+ prescription_amount: NotRequired[int]
+ """
+ Prescription drug sub-amount. Null if the merchant did not send this amount.
+ """
+ purchase_type: NotRequired[Literal["medical", "transit_for_healthcare"]]
+ """
+ The type of healthcare transaction. `medical` for FSA/HSA-eligible healthcare purchases; `transit_for_healthcare` for FSA/HSA-eligible transit for healthcare purchases.
+ """
+ total_qualified_amount: int
+ """
+ Total FSA/HSA-eligible amount in the smallest currency unit.
+ """
+ verification_status: Literal[
+ "iias_merchant_exempt",
+ "iias_merchant_not_certified",
+ "iias_verified",
+ "not_verified",
+ ]
+ """
+ IIAS verification status from the merchant terminal. For Visa, this is always iias_verified.
+ """
+ vision_amount: NotRequired[int]
+ """
+ Vision/optical sub-amount. Null if the merchant did not send this amount.
+ """
+
+
class AuthorizationCaptureParamsPurchaseDetailsLodging(TypedDict):
check_in_at: NotRequired[int]
"""
diff --git a/stripe/params/test_helpers/issuing/_authorization_create_params.py b/stripe/params/test_helpers/issuing/_authorization_create_params.py
index 718442b25..f997afb7c 100644
--- a/stripe/params/test_helpers/issuing/_authorization_create_params.py
+++ b/stripe/params/test_helpers/issuing/_authorization_create_params.py
@@ -46,6 +46,10 @@ class AuthorizationCreateParams(TypedDict):
"""
Information about fuel that was purchased with this transaction.
"""
+ healthcare: NotRequired["AuthorizationCreateParamsHealthcare"]
+ """
+ Healthcare-specific information for IIAS-eligible authorizations.
+ """
is_amount_controllable: NotRequired[bool]
"""
If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization.
@@ -229,6 +233,46 @@ class AuthorizationCreateParamsFuel(TypedDict):
"""
+class AuthorizationCreateParamsHealthcare(TypedDict):
+ clinic_amount: NotRequired[int]
+ """
+ Clinic and urgent care sub-amount for Visa only.
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ dental_amount: NotRequired[int]
+ """
+ Dental care sub-amount for Visa only.
+ """
+ prescription_amount: NotRequired[int]
+ """
+ Prescription drug sub-amount. Null if the merchant did not send this amount.
+ """
+ purchase_type: NotRequired[Literal["medical", "transit_for_healthcare"]]
+ """
+ The type of healthcare transaction. `medical` for FSA/HSA-eligible healthcare purchases; `transit_for_healthcare` for FSA/HSA-eligible transit for healthcare purchases.
+ """
+ total_qualified_amount: int
+ """
+ Total FSA/HSA-eligible amount in the smallest currency unit.
+ """
+ verification_status: Literal[
+ "iias_merchant_exempt",
+ "iias_merchant_not_certified",
+ "iias_verified",
+ "not_verified",
+ ]
+ """
+ IIAS verification status from the merchant terminal. For Visa, this is always iias_verified.
+ """
+ vision_amount: NotRequired[int]
+ """
+ Vision/optical sub-amount. Null if the merchant did not send this amount.
+ """
+
+
class AuthorizationCreateParamsMerchantData(TypedDict):
category: NotRequired[
Literal[
diff --git a/stripe/params/test_helpers/issuing/_transaction_create_force_capture_params.py b/stripe/params/test_helpers/issuing/_transaction_create_force_capture_params.py
index 2c34dc945..4d2b92c42 100644
--- a/stripe/params/test_helpers/issuing/_transaction_create_force_capture_params.py
+++ b/stripe/params/test_helpers/issuing/_transaction_create_force_capture_params.py
@@ -408,6 +408,12 @@ class TransactionCreateForceCaptureParamsPurchaseDetails(TypedDict):
"""
Information about fuel that was purchased with this transaction.
"""
+ healthcare: NotRequired[
+ "TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare"
+ ]
+ """
+ Healthcare sub-amounts for IIAS-eligible transactions.
+ """
lodging: NotRequired[
"TransactionCreateForceCaptureParamsPurchaseDetailsLodging"
]
@@ -630,6 +636,46 @@ class TransactionCreateForceCaptureParamsPurchaseDetailsFuel(TypedDict):
"""
+class TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare(TypedDict):
+ clinic_amount: NotRequired[int]
+ """
+ Clinic and urgent care sub-amount for Visa only.
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ dental_amount: NotRequired[int]
+ """
+ Dental care sub-amount for Visa only.
+ """
+ prescription_amount: NotRequired[int]
+ """
+ Prescription drug sub-amount. Null if the merchant did not send this amount.
+ """
+ purchase_type: NotRequired[Literal["medical", "transit_for_healthcare"]]
+ """
+ The type of healthcare transaction. `medical` for FSA/HSA-eligible healthcare purchases; `transit_for_healthcare` for FSA/HSA-eligible transit for healthcare purchases.
+ """
+ total_qualified_amount: int
+ """
+ Total FSA/HSA-eligible amount in the smallest currency unit.
+ """
+ verification_status: Literal[
+ "iias_merchant_exempt",
+ "iias_merchant_not_certified",
+ "iias_verified",
+ "not_verified",
+ ]
+ """
+ IIAS verification status from the merchant terminal. For Visa, this is always iias_verified.
+ """
+ vision_amount: NotRequired[int]
+ """
+ Vision/optical sub-amount. Null if the merchant did not send this amount.
+ """
+
+
class TransactionCreateForceCaptureParamsPurchaseDetailsLodging(TypedDict):
check_in_at: NotRequired[int]
"""
diff --git a/stripe/params/test_helpers/issuing/_transaction_create_unlinked_refund_params.py b/stripe/params/test_helpers/issuing/_transaction_create_unlinked_refund_params.py
index 52c1cb8ce..ac89c3b23 100644
--- a/stripe/params/test_helpers/issuing/_transaction_create_unlinked_refund_params.py
+++ b/stripe/params/test_helpers/issuing/_transaction_create_unlinked_refund_params.py
@@ -399,6 +399,12 @@ class TransactionCreateUnlinkedRefundParamsPurchaseDetails(TypedDict):
"""
Information about fuel that was purchased with this transaction.
"""
+ healthcare: NotRequired[
+ "TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare"
+ ]
+ """
+ Healthcare sub-amounts for IIAS-eligible transactions.
+ """
lodging: NotRequired[
"TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging"
]
@@ -623,6 +629,48 @@ class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFuel(TypedDict):
"""
+class TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare(
+ TypedDict
+):
+ clinic_amount: NotRequired[int]
+ """
+ Clinic and urgent care sub-amount for Visa only.
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ dental_amount: NotRequired[int]
+ """
+ Dental care sub-amount for Visa only.
+ """
+ prescription_amount: NotRequired[int]
+ """
+ Prescription drug sub-amount. Null if the merchant did not send this amount.
+ """
+ purchase_type: NotRequired[Literal["medical", "transit_for_healthcare"]]
+ """
+ The type of healthcare transaction. `medical` for FSA/HSA-eligible healthcare purchases; `transit_for_healthcare` for FSA/HSA-eligible transit for healthcare purchases.
+ """
+ total_qualified_amount: int
+ """
+ Total FSA/HSA-eligible amount in the smallest currency unit.
+ """
+ verification_status: Literal[
+ "iias_merchant_exempt",
+ "iias_merchant_not_certified",
+ "iias_verified",
+ "not_verified",
+ ]
+ """
+ IIAS verification status from the merchant terminal. For Visa, this is always iias_verified.
+ """
+ vision_amount: NotRequired[int]
+ """
+ Vision/optical sub-amount. Null if the merchant did not send this amount.
+ """
+
+
class TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging(TypedDict):
check_in_at: NotRequired[int]
"""
diff --git a/stripe/params/v2/billing/_contract_create_params.py b/stripe/params/v2/billing/_contract_create_params.py
index 575ea1ab4..25ebaead9 100644
--- a/stripe/params/v2/billing/_contract_create_params.py
+++ b/stripe/params/v2/billing/_contract_create_params.py
@@ -41,7 +41,7 @@ class ContractCreateParams(TypedDict):
"""
Set of key-value pairs that you can attach to an object.
"""
- pricing_lines: List["ContractCreateParamsPricingLine"]
+ pricing_lines: NotRequired[List["ContractCreateParamsPricingLine"]]
"""
A list of pricing lines to create with the contract.
"""
diff --git a/stripe/params/v2/money_management/financial_accounts/_statement_list_params.py b/stripe/params/v2/money_management/financial_accounts/_statement_list_params.py
index 868e4de8e..5a26484ff 100644
--- a/stripe/params/v2/money_management/financial_accounts/_statement_list_params.py
+++ b/stripe/params/v2/money_management/financial_accounts/_statement_list_params.py
@@ -12,3 +12,7 @@ class StatementListParams(TypedDict):
"""
The field by which to sort results. Defaults to "created".
"""
+ status: NotRequired[Literal["active", "restated"]]
+ """
+ Filter results by status. If omitted, statements of all statuses are returned.
+ """
diff --git a/stripe/radar/_payment_evaluation.py b/stripe/radar/_payment_evaluation.py
index 2c9a4c310..0e3dc3910 100644
--- a/stripe/radar/_payment_evaluation.py
+++ b/stripe/radar/_payment_evaluation.py
@@ -429,11 +429,11 @@ class Card(StripeObject):
"""
Four-digit number representing the card's expiration year.
"""
- first6: Optional[str]
+ first6: str
"""
First six digits of the card number.
"""
- last4: Optional[str]
+ last4: str
"""
Last four digits of the card number.
"""
diff --git a/stripe/v2/core/_event.py b/stripe/v2/core/_event.py
index 4be975bc9..3818ced87 100644
--- a/stripe/v2/core/_event.py
+++ b/stripe/v2/core/_event.py
@@ -3,7 +3,11 @@
# -*- coding: utf-8 -*-
import json
-from typing import Any, ClassVar, Dict, Optional, cast, Union
+from typing import Any, ClassVar, Dict, Optional, cast
+
+# v2-event-imports: The beginning of the section generated from our OpenAPI spec
+from typing import Union
+# v2-event-imports: The end of the section generated from our OpenAPI spec
from typing_extensions import Literal, TYPE_CHECKING
diff --git a/stripe/v2/payments/_off_session_payment.py b/stripe/v2/payments/_off_session_payment.py
index 785f783e9..3ab6cd496 100644
--- a/stripe/v2/payments/_off_session_payment.py
+++ b/stripe/v2/payments/_off_session_payment.py
@@ -200,6 +200,10 @@ class TransferData(StripeObject):
"""
The “presentment amount” to be collected from the customer.
"""
+ application: Optional[str]
+ """
+ The application associated with this OffSessionPayment.
+ """
application_fee_amount_requested: Optional[Amount]
"""
The amount of the application fee requested to be applied to the payment.
diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py
index 8fcff9b65..7a068ef8d 100644
--- a/tests/test_generated_examples.py
+++ b/tests/test_generated_examples.py
@@ -43948,54 +43948,6 @@ def test_v2_billing_contract_post_service(
{
"contract_number": "contract_number",
"currency": "usd",
- "pricing_lines": [
- {
- "ends_at": {
- "timestamp": "1970-01-01T15:18:46.294Z",
- "type": "timestamp",
- },
- "lookup_key": "lookup_key",
- "metadata": {"key": "metadata"},
- "pricing": {
- "price_details": {
- "price": "price",
- "pricing_overrides": [
- {
- "ends_at": {
- "timestamp": "1970-01-01T15:18:46.294Z",
- "type": "timestamp",
- },
- "lookup_key": "lookup_key",
- "metadata": {"key": "metadata"},
- "overwrite_price": {
- "unit_amount": "unit_amount",
- },
- "priority": 1165461084,
- "starts_at": {
- "timestamp": "1970-01-01T15:18:46.294Z",
- "type": "timestamp",
- },
- "type": "overwrite_price",
- },
- ],
- "quantity_changes": [
- {
- "effective_at": {
- "timestamp": "1970-01-01T15:18:46.294Z",
- "type": "timestamp",
- },
- "set": Decimal("75841.33333333333"),
- },
- ],
- },
- "type": "price",
- },
- "starts_at": {
- "timestamp": "1970-01-01T15:18:46.294Z",
- "type": "timestamp",
- },
- },
- ],
}
)
http_client_mock.assert_requested(
@@ -44003,7 +43955,7 @@ def test_v2_billing_contract_post_service(
path="/v2/billing/contracts",
query_string="",
api_base="https://api.stripe.com",
- post_data='{"contract_number":"contract_number","currency":"usd","pricing_lines":[{"ends_at":{"timestamp":"1970-01-01T15:18:46.294Z","type":"timestamp"},"lookup_key":"lookup_key","metadata":{"key":"metadata"},"pricing":{"price_details":{"price":"price","pricing_overrides":[{"ends_at":{"timestamp":"1970-01-01T15:18:46.294Z","type":"timestamp"},"lookup_key":"lookup_key","metadata":{"key":"metadata"},"overwrite_price":{"unit_amount":"unit_amount"},"priority":1165461084,"starts_at":{"timestamp":"1970-01-01T15:18:46.294Z","type":"timestamp"},"type":"overwrite_price"}],"quantity_changes":[{"effective_at":{"timestamp":"1970-01-01T15:18:46.294Z","type":"timestamp"},"set":"75841.33333333333"}]},"type":"price"},"starts_at":{"timestamp":"1970-01-01T15:18:46.294Z","type":"timestamp"}}]}',
+ post_data='{"contract_number":"contract_number","currency":"usd"}',
is_json=True,
)