From f0babffe71008b98af1a4f332e99e850e23e163e Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Thu, 5 Mar 2026 19:41:46 +0000
Subject: [PATCH 1/7] Update generated code for v2189 and
---
CODEGEN_VERSION | 2 +-
OPENAPI_VERSION | 2 +-
.../_v1_billing_meter_error_report_triggered_event.py | 7 +------
stripe/events/_v2_core_account_closed_event.py | 7 +------
stripe/events/_v2_core_account_created_event.py | 7 +------
...nfiguration_customer_capability_status_updated_event.py | 7 +------
...count_including_configuration_customer_updated_event.py | 7 +------
...nfiguration_merchant_capability_status_updated_event.py | 7 +------
...count_including_configuration_merchant_updated_event.py | 7 +------
...figuration_recipient_capability_status_updated_event.py | 7 +------
...ount_including_configuration_recipient_updated_event.py | 7 +------
.../_v2_core_account_including_defaults_updated_event.py | 7 +------
..._account_including_future_requirements_updated_event.py | 7 +------
.../_v2_core_account_including_identity_updated_event.py | 7 +------
...v2_core_account_including_requirements_updated_event.py | 7 +------
stripe/events/_v2_core_account_person_created_event.py | 7 +------
stripe/events/_v2_core_account_person_deleted_event.py | 7 +------
stripe/events/_v2_core_account_person_updated_event.py | 7 +------
stripe/events/_v2_core_account_updated_event.py | 7 +------
stripe/events/_v2_core_event_destination_ping_event.py | 7 +------
20 files changed, 20 insertions(+), 110 deletions(-)
diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index 17557a68f..35857003c 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-e65e48569f6dfad2d5f1b58018017856520c3ae6
\ No newline at end of file
+e382d3775a1654ee3c0e28a2c8e33704a1312132
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 58dae7935..4c2310759 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2186
\ No newline at end of file
+v2189
\ No newline at end of file
diff --git a/stripe/events/_v1_billing_meter_error_report_triggered_event.py b/stripe/events/_v1_billing_meter_error_report_triggered_event.py
index 4162d1af4..0d8d7e01b 100644
--- a/stripe/events/_v1_billing_meter_error_report_triggered_event.py
+++ b/stripe/events/_v1_billing_meter_error_report_triggered_event.py
@@ -40,7 +40,6 @@ def fetch_related_object(self) -> "Meter":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -65,7 +64,6 @@ async def fetch_related_object_async(self) -> "Meter":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -211,9 +209,6 @@ def fetch_related_object(self) -> "Meter":
"get",
self.related_object.url,
base_address="api",
- options={
- "stripe_context": self.context,
- "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
- },
+ options={"stripe_context": self.context},
),
)
diff --git a/stripe/events/_v2_core_account_closed_event.py b/stripe/events/_v2_core_account_closed_event.py
index 4664d7cfd..30edcb63a 100644
--- a/stripe/events/_v2_core_account_closed_event.py
+++ b/stripe/events/_v2_core_account_closed_event.py
@@ -37,7 +37,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -60,7 +59,6 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -105,9 +103,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={
- "stripe_context": self.context,
- "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
- },
+ options={"stripe_context": self.context},
),
)
diff --git a/stripe/events/_v2_core_account_created_event.py b/stripe/events/_v2_core_account_created_event.py
index fd67a4053..0b2feb4eb 100644
--- a/stripe/events/_v2_core_account_created_event.py
+++ b/stripe/events/_v2_core_account_created_event.py
@@ -37,7 +37,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -60,7 +59,6 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -105,9 +103,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={
- "stripe_context": self.context,
- "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
- },
+ options={"stripe_context": self.context},
),
)
diff --git a/stripe/events/_v2_core_account_including_configuration_customer_capability_status_updated_event.py b/stripe/events/_v2_core_account_including_configuration_customer_capability_status_updated_event.py
index e15b8704b..7530b4f26 100644
--- a/stripe/events/_v2_core_account_including_configuration_customer_capability_status_updated_event.py
+++ b/stripe/events/_v2_core_account_including_configuration_customer_capability_status_updated_event.py
@@ -48,7 +48,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -73,7 +72,6 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -161,9 +159,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={
- "stripe_context": self.context,
- "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
- },
+ options={"stripe_context": self.context},
),
)
diff --git a/stripe/events/_v2_core_account_including_configuration_customer_updated_event.py b/stripe/events/_v2_core_account_including_configuration_customer_updated_event.py
index 06dcdf929..eac734ee6 100644
--- a/stripe/events/_v2_core_account_including_configuration_customer_updated_event.py
+++ b/stripe/events/_v2_core_account_including_configuration_customer_updated_event.py
@@ -41,7 +41,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -66,7 +65,6 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -111,9 +109,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={
- "stripe_context": self.context,
- "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
- },
+ options={"stripe_context": self.context},
),
)
diff --git a/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py b/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py
index e49fce024..6f9610ff9 100644
--- a/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py
+++ b/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py
@@ -48,7 +48,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -73,7 +72,6 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -207,9 +205,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={
- "stripe_context": self.context,
- "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
- },
+ options={"stripe_context": self.context},
),
)
diff --git a/stripe/events/_v2_core_account_including_configuration_merchant_updated_event.py b/stripe/events/_v2_core_account_including_configuration_merchant_updated_event.py
index 26214979e..90970c245 100644
--- a/stripe/events/_v2_core_account_including_configuration_merchant_updated_event.py
+++ b/stripe/events/_v2_core_account_including_configuration_merchant_updated_event.py
@@ -41,7 +41,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -66,7 +65,6 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -111,9 +109,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={
- "stripe_context": self.context,
- "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
- },
+ options={"stripe_context": self.context},
),
)
diff --git a/stripe/events/_v2_core_account_including_configuration_recipient_capability_status_updated_event.py b/stripe/events/_v2_core_account_including_configuration_recipient_capability_status_updated_event.py
index 5c11a2e32..12911bd54 100644
--- a/stripe/events/_v2_core_account_including_configuration_recipient_capability_status_updated_event.py
+++ b/stripe/events/_v2_core_account_including_configuration_recipient_capability_status_updated_event.py
@@ -48,7 +48,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -73,7 +72,6 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -168,9 +166,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={
- "stripe_context": self.context,
- "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
- },
+ options={"stripe_context": self.context},
),
)
diff --git a/stripe/events/_v2_core_account_including_configuration_recipient_updated_event.py b/stripe/events/_v2_core_account_including_configuration_recipient_updated_event.py
index 34451392f..245c65102 100644
--- a/stripe/events/_v2_core_account_including_configuration_recipient_updated_event.py
+++ b/stripe/events/_v2_core_account_including_configuration_recipient_updated_event.py
@@ -41,7 +41,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -66,7 +65,6 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -111,9 +109,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={
- "stripe_context": self.context,
- "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
- },
+ options={"stripe_context": self.context},
),
)
diff --git a/stripe/events/_v2_core_account_including_defaults_updated_event.py b/stripe/events/_v2_core_account_including_defaults_updated_event.py
index a97102e35..469d65d22 100644
--- a/stripe/events/_v2_core_account_including_defaults_updated_event.py
+++ b/stripe/events/_v2_core_account_including_defaults_updated_event.py
@@ -39,7 +39,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -64,7 +63,6 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -109,9 +107,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={
- "stripe_context": self.context,
- "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
- },
+ options={"stripe_context": self.context},
),
)
diff --git a/stripe/events/_v2_core_account_including_future_requirements_updated_event.py b/stripe/events/_v2_core_account_including_future_requirements_updated_event.py
index b4b64ed1d..0e471082b 100644
--- a/stripe/events/_v2_core_account_including_future_requirements_updated_event.py
+++ b/stripe/events/_v2_core_account_including_future_requirements_updated_event.py
@@ -41,7 +41,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -66,7 +65,6 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -111,9 +109,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={
- "stripe_context": self.context,
- "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
- },
+ options={"stripe_context": self.context},
),
)
diff --git a/stripe/events/_v2_core_account_including_identity_updated_event.py b/stripe/events/_v2_core_account_including_identity_updated_event.py
index be4883a86..7f8249375 100644
--- a/stripe/events/_v2_core_account_including_identity_updated_event.py
+++ b/stripe/events/_v2_core_account_including_identity_updated_event.py
@@ -39,7 +39,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -64,7 +63,6 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -109,9 +107,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={
- "stripe_context": self.context,
- "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
- },
+ options={"stripe_context": self.context},
),
)
diff --git a/stripe/events/_v2_core_account_including_requirements_updated_event.py b/stripe/events/_v2_core_account_including_requirements_updated_event.py
index d372b422f..3d06e3a4f 100644
--- a/stripe/events/_v2_core_account_including_requirements_updated_event.py
+++ b/stripe/events/_v2_core_account_including_requirements_updated_event.py
@@ -39,7 +39,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -64,7 +63,6 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -109,9 +107,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={
- "stripe_context": self.context,
- "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
- },
+ options={"stripe_context": self.context},
),
)
diff --git a/stripe/events/_v2_core_account_person_created_event.py b/stripe/events/_v2_core_account_person_created_event.py
index d4deb8411..ef8068d39 100644
--- a/stripe/events/_v2_core_account_person_created_event.py
+++ b/stripe/events/_v2_core_account_person_created_event.py
@@ -40,7 +40,6 @@ def fetch_related_object(self) -> "AccountPerson":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -63,7 +62,6 @@ async def fetch_related_object_async(self) -> "AccountPerson":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -143,9 +141,6 @@ def fetch_related_object(self) -> "AccountPerson":
"get",
self.related_object.url,
base_address="api",
- options={
- "stripe_context": self.context,
- "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
- },
+ options={"stripe_context": self.context},
),
)
diff --git a/stripe/events/_v2_core_account_person_deleted_event.py b/stripe/events/_v2_core_account_person_deleted_event.py
index 580daeb27..e55a1e835 100644
--- a/stripe/events/_v2_core_account_person_deleted_event.py
+++ b/stripe/events/_v2_core_account_person_deleted_event.py
@@ -40,7 +40,6 @@ def fetch_related_object(self) -> "AccountPerson":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -63,7 +62,6 @@ async def fetch_related_object_async(self) -> "AccountPerson":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -143,9 +141,6 @@ def fetch_related_object(self) -> "AccountPerson":
"get",
self.related_object.url,
base_address="api",
- options={
- "stripe_context": self.context,
- "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
- },
+ options={"stripe_context": self.context},
),
)
diff --git a/stripe/events/_v2_core_account_person_updated_event.py b/stripe/events/_v2_core_account_person_updated_event.py
index 237a20955..293a7b069 100644
--- a/stripe/events/_v2_core_account_person_updated_event.py
+++ b/stripe/events/_v2_core_account_person_updated_event.py
@@ -40,7 +40,6 @@ def fetch_related_object(self) -> "AccountPerson":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -63,7 +62,6 @@ async def fetch_related_object_async(self) -> "AccountPerson":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -143,9 +141,6 @@ def fetch_related_object(self) -> "AccountPerson":
"get",
self.related_object.url,
base_address="api",
- options={
- "stripe_context": self.context,
- "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
- },
+ options={"stripe_context": self.context},
),
)
diff --git a/stripe/events/_v2_core_account_updated_event.py b/stripe/events/_v2_core_account_updated_event.py
index 4f9c43003..34a6c1d9c 100644
--- a/stripe/events/_v2_core_account_updated_event.py
+++ b/stripe/events/_v2_core_account_updated_event.py
@@ -37,7 +37,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -60,7 +59,6 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -105,9 +103,6 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={
- "stripe_context": self.context,
- "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
- },
+ options={"stripe_context": self.context},
),
)
diff --git a/stripe/events/_v2_core_event_destination_ping_event.py b/stripe/events/_v2_core_event_destination_ping_event.py
index bc20ed474..222cfb429 100644
--- a/stripe/events/_v2_core_event_destination_ping_event.py
+++ b/stripe/events/_v2_core_event_destination_ping_event.py
@@ -37,7 +37,6 @@ def fetch_related_object(self) -> "EventDestination":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -60,7 +59,6 @@ async def fetch_related_object_async(self) -> "EventDestination":
"get",
self.related_object.url,
stripe_context=self.context,
- headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -105,9 +103,6 @@ def fetch_related_object(self) -> "EventDestination":
"get",
self.related_object.url,
base_address="api",
- options={
- "stripe_context": self.context,
- "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
- },
+ options={"stripe_context": self.context},
),
)
From f5ba0b1cc6451bc17c595f229a80c8117194aaf2 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Thu, 5 Mar 2026 21:46:44 +0000
Subject: [PATCH 2/7] Update generated code for v2189 and
---
CODEGEN_VERSION | 2 +-
.../_v1_billing_meter_error_report_triggered_event.py | 7 ++++++-
stripe/events/_v2_core_account_closed_event.py | 7 ++++++-
stripe/events/_v2_core_account_created_event.py | 7 ++++++-
...nfiguration_customer_capability_status_updated_event.py | 7 ++++++-
...count_including_configuration_customer_updated_event.py | 7 ++++++-
...nfiguration_merchant_capability_status_updated_event.py | 7 ++++++-
...count_including_configuration_merchant_updated_event.py | 7 ++++++-
...figuration_recipient_capability_status_updated_event.py | 7 ++++++-
...ount_including_configuration_recipient_updated_event.py | 7 ++++++-
.../_v2_core_account_including_defaults_updated_event.py | 7 ++++++-
..._account_including_future_requirements_updated_event.py | 7 ++++++-
.../_v2_core_account_including_identity_updated_event.py | 7 ++++++-
...v2_core_account_including_requirements_updated_event.py | 7 ++++++-
stripe/events/_v2_core_account_person_created_event.py | 7 ++++++-
stripe/events/_v2_core_account_person_deleted_event.py | 7 ++++++-
stripe/events/_v2_core_account_person_updated_event.py | 7 ++++++-
stripe/events/_v2_core_account_updated_event.py | 7 ++++++-
stripe/events/_v2_core_event_destination_ping_event.py | 7 ++++++-
19 files changed, 109 insertions(+), 19 deletions(-)
diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index 35857003c..58968e137 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-e382d3775a1654ee3c0e28a2c8e33704a1312132
\ No newline at end of file
+c2fdb8b70a4520e54d461041362bece6a6df54e9
\ No newline at end of file
diff --git a/stripe/events/_v1_billing_meter_error_report_triggered_event.py b/stripe/events/_v1_billing_meter_error_report_triggered_event.py
index 0d8d7e01b..4162d1af4 100644
--- a/stripe/events/_v1_billing_meter_error_report_triggered_event.py
+++ b/stripe/events/_v1_billing_meter_error_report_triggered_event.py
@@ -40,6 +40,7 @@ def fetch_related_object(self) -> "Meter":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -64,6 +65,7 @@ async def fetch_related_object_async(self) -> "Meter":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -209,6 +211,9 @@ def fetch_related_object(self) -> "Meter":
"get",
self.related_object.url,
base_address="api",
- options={"stripe_context": self.context},
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
),
)
diff --git a/stripe/events/_v2_core_account_closed_event.py b/stripe/events/_v2_core_account_closed_event.py
index 30edcb63a..4664d7cfd 100644
--- a/stripe/events/_v2_core_account_closed_event.py
+++ b/stripe/events/_v2_core_account_closed_event.py
@@ -37,6 +37,7 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -59,6 +60,7 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -103,6 +105,9 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={"stripe_context": self.context},
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
),
)
diff --git a/stripe/events/_v2_core_account_created_event.py b/stripe/events/_v2_core_account_created_event.py
index 0b2feb4eb..fd67a4053 100644
--- a/stripe/events/_v2_core_account_created_event.py
+++ b/stripe/events/_v2_core_account_created_event.py
@@ -37,6 +37,7 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -59,6 +60,7 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -103,6 +105,9 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={"stripe_context": self.context},
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
),
)
diff --git a/stripe/events/_v2_core_account_including_configuration_customer_capability_status_updated_event.py b/stripe/events/_v2_core_account_including_configuration_customer_capability_status_updated_event.py
index 7530b4f26..e15b8704b 100644
--- a/stripe/events/_v2_core_account_including_configuration_customer_capability_status_updated_event.py
+++ b/stripe/events/_v2_core_account_including_configuration_customer_capability_status_updated_event.py
@@ -48,6 +48,7 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -72,6 +73,7 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -159,6 +161,9 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={"stripe_context": self.context},
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
),
)
diff --git a/stripe/events/_v2_core_account_including_configuration_customer_updated_event.py b/stripe/events/_v2_core_account_including_configuration_customer_updated_event.py
index eac734ee6..06dcdf929 100644
--- a/stripe/events/_v2_core_account_including_configuration_customer_updated_event.py
+++ b/stripe/events/_v2_core_account_including_configuration_customer_updated_event.py
@@ -41,6 +41,7 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -65,6 +66,7 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -109,6 +111,9 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={"stripe_context": self.context},
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
),
)
diff --git a/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py b/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py
index 6f9610ff9..e49fce024 100644
--- a/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py
+++ b/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py
@@ -48,6 +48,7 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -72,6 +73,7 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -205,6 +207,9 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={"stripe_context": self.context},
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
),
)
diff --git a/stripe/events/_v2_core_account_including_configuration_merchant_updated_event.py b/stripe/events/_v2_core_account_including_configuration_merchant_updated_event.py
index 90970c245..26214979e 100644
--- a/stripe/events/_v2_core_account_including_configuration_merchant_updated_event.py
+++ b/stripe/events/_v2_core_account_including_configuration_merchant_updated_event.py
@@ -41,6 +41,7 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -65,6 +66,7 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -109,6 +111,9 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={"stripe_context": self.context},
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
),
)
diff --git a/stripe/events/_v2_core_account_including_configuration_recipient_capability_status_updated_event.py b/stripe/events/_v2_core_account_including_configuration_recipient_capability_status_updated_event.py
index 12911bd54..5c11a2e32 100644
--- a/stripe/events/_v2_core_account_including_configuration_recipient_capability_status_updated_event.py
+++ b/stripe/events/_v2_core_account_including_configuration_recipient_capability_status_updated_event.py
@@ -48,6 +48,7 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -72,6 +73,7 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -166,6 +168,9 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={"stripe_context": self.context},
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
),
)
diff --git a/stripe/events/_v2_core_account_including_configuration_recipient_updated_event.py b/stripe/events/_v2_core_account_including_configuration_recipient_updated_event.py
index 245c65102..34451392f 100644
--- a/stripe/events/_v2_core_account_including_configuration_recipient_updated_event.py
+++ b/stripe/events/_v2_core_account_including_configuration_recipient_updated_event.py
@@ -41,6 +41,7 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -65,6 +66,7 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -109,6 +111,9 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={"stripe_context": self.context},
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
),
)
diff --git a/stripe/events/_v2_core_account_including_defaults_updated_event.py b/stripe/events/_v2_core_account_including_defaults_updated_event.py
index 469d65d22..a97102e35 100644
--- a/stripe/events/_v2_core_account_including_defaults_updated_event.py
+++ b/stripe/events/_v2_core_account_including_defaults_updated_event.py
@@ -39,6 +39,7 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -63,6 +64,7 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -107,6 +109,9 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={"stripe_context": self.context},
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
),
)
diff --git a/stripe/events/_v2_core_account_including_future_requirements_updated_event.py b/stripe/events/_v2_core_account_including_future_requirements_updated_event.py
index 0e471082b..b4b64ed1d 100644
--- a/stripe/events/_v2_core_account_including_future_requirements_updated_event.py
+++ b/stripe/events/_v2_core_account_including_future_requirements_updated_event.py
@@ -41,6 +41,7 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -65,6 +66,7 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -109,6 +111,9 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={"stripe_context": self.context},
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
),
)
diff --git a/stripe/events/_v2_core_account_including_identity_updated_event.py b/stripe/events/_v2_core_account_including_identity_updated_event.py
index 7f8249375..be4883a86 100644
--- a/stripe/events/_v2_core_account_including_identity_updated_event.py
+++ b/stripe/events/_v2_core_account_including_identity_updated_event.py
@@ -39,6 +39,7 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -63,6 +64,7 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -107,6 +109,9 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={"stripe_context": self.context},
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
),
)
diff --git a/stripe/events/_v2_core_account_including_requirements_updated_event.py b/stripe/events/_v2_core_account_including_requirements_updated_event.py
index 3d06e3a4f..d372b422f 100644
--- a/stripe/events/_v2_core_account_including_requirements_updated_event.py
+++ b/stripe/events/_v2_core_account_including_requirements_updated_event.py
@@ -39,6 +39,7 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -63,6 +64,7 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -107,6 +109,9 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={"stripe_context": self.context},
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
),
)
diff --git a/stripe/events/_v2_core_account_person_created_event.py b/stripe/events/_v2_core_account_person_created_event.py
index ef8068d39..d4deb8411 100644
--- a/stripe/events/_v2_core_account_person_created_event.py
+++ b/stripe/events/_v2_core_account_person_created_event.py
@@ -40,6 +40,7 @@ def fetch_related_object(self) -> "AccountPerson":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -62,6 +63,7 @@ async def fetch_related_object_async(self) -> "AccountPerson":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -141,6 +143,9 @@ def fetch_related_object(self) -> "AccountPerson":
"get",
self.related_object.url,
base_address="api",
- options={"stripe_context": self.context},
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
),
)
diff --git a/stripe/events/_v2_core_account_person_deleted_event.py b/stripe/events/_v2_core_account_person_deleted_event.py
index e55a1e835..580daeb27 100644
--- a/stripe/events/_v2_core_account_person_deleted_event.py
+++ b/stripe/events/_v2_core_account_person_deleted_event.py
@@ -40,6 +40,7 @@ def fetch_related_object(self) -> "AccountPerson":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -62,6 +63,7 @@ async def fetch_related_object_async(self) -> "AccountPerson":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -141,6 +143,9 @@ def fetch_related_object(self) -> "AccountPerson":
"get",
self.related_object.url,
base_address="api",
- options={"stripe_context": self.context},
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
),
)
diff --git a/stripe/events/_v2_core_account_person_updated_event.py b/stripe/events/_v2_core_account_person_updated_event.py
index 293a7b069..237a20955 100644
--- a/stripe/events/_v2_core_account_person_updated_event.py
+++ b/stripe/events/_v2_core_account_person_updated_event.py
@@ -40,6 +40,7 @@ def fetch_related_object(self) -> "AccountPerson":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -62,6 +63,7 @@ async def fetch_related_object_async(self) -> "AccountPerson":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -141,6 +143,9 @@ def fetch_related_object(self) -> "AccountPerson":
"get",
self.related_object.url,
base_address="api",
- options={"stripe_context": self.context},
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
),
)
diff --git a/stripe/events/_v2_core_account_updated_event.py b/stripe/events/_v2_core_account_updated_event.py
index 34a6c1d9c..4f9c43003 100644
--- a/stripe/events/_v2_core_account_updated_event.py
+++ b/stripe/events/_v2_core_account_updated_event.py
@@ -37,6 +37,7 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -59,6 +60,7 @@ async def fetch_related_object_async(self) -> "Account":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -103,6 +105,9 @@ def fetch_related_object(self) -> "Account":
"get",
self.related_object.url,
base_address="api",
- options={"stripe_context": self.context},
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
),
)
diff --git a/stripe/events/_v2_core_event_destination_ping_event.py b/stripe/events/_v2_core_event_destination_ping_event.py
index 222cfb429..bc20ed474 100644
--- a/stripe/events/_v2_core_event_destination_ping_event.py
+++ b/stripe/events/_v2_core_event_destination_ping_event.py
@@ -37,6 +37,7 @@ def fetch_related_object(self) -> "EventDestination":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -59,6 +60,7 @@ async def fetch_related_object_async(self) -> "EventDestination":
"get",
self.related_object.url,
stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["fetch_related_object"],
)
return cast(
@@ -103,6 +105,9 @@ def fetch_related_object(self) -> "EventDestination":
"get",
self.related_object.url,
base_address="api",
- options={"stripe_context": self.context},
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
),
)
From c3bf7a1f6ddb0c366314eb0810115e797537f7ca Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Mon, 16 Mar 2026 21:01:01 +0000
Subject: [PATCH 3/7] Update generated code for v2202 and
---
CODEGEN_VERSION | 2 +-
OPENAPI_VERSION | 2 +-
stripe/params/v2/core/__init__.py | 30 ----------------
.../params/v2/core/_account_create_params.py | 33 ++---------------
.../v2/core/_account_token_create_params.py | 35 ++-----------------
.../params/v2/core/_account_update_params.py | 33 ++---------------
stripe/v2/core/_account.py | 23 +-----------
7 files changed, 12 insertions(+), 146 deletions(-)
diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index 58968e137..86c9b57e8 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-c2fdb8b70a4520e54d461041362bece6a6df54e9
\ No newline at end of file
+f504fb42951e8181250357c8af0cab513111e480
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 4c2310759..8110841c8 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2189
\ No newline at end of file
+v2202
\ No newline at end of file
diff --git a/stripe/params/v2/core/__init__.py b/stripe/params/v2/core/__init__.py
index 432b4593f..ab9fca8eb 100644
--- a/stripe/params/v2/core/__init__.py
+++ b/stripe/params/v2/core/__init__.py
@@ -98,7 +98,6 @@
AccountCreateParamsIdentityBusinessDetails as AccountCreateParamsIdentityBusinessDetails,
AccountCreateParamsIdentityBusinessDetailsAddress as AccountCreateParamsIdentityBusinessDetailsAddress,
AccountCreateParamsIdentityBusinessDetailsAnnualRevenue as AccountCreateParamsIdentityBusinessDetailsAnnualRevenue,
- AccountCreateParamsIdentityBusinessDetailsAnnualRevenueAmount as AccountCreateParamsIdentityBusinessDetailsAnnualRevenueAmount,
AccountCreateParamsIdentityBusinessDetailsDocuments as AccountCreateParamsIdentityBusinessDetailsDocuments,
AccountCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification as AccountCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification,
AccountCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense as AccountCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense,
@@ -113,7 +112,6 @@
AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership as AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership,
AccountCreateParamsIdentityBusinessDetailsIdNumber as AccountCreateParamsIdentityBusinessDetailsIdNumber,
AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue as AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue,
- AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount as AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount,
AccountCreateParamsIdentityBusinessDetailsRegistrationDate as AccountCreateParamsIdentityBusinessDetailsRegistrationDate,
AccountCreateParamsIdentityBusinessDetailsScriptAddresses as AccountCreateParamsIdentityBusinessDetailsScriptAddresses,
AccountCreateParamsIdentityBusinessDetailsScriptAddressesKana as AccountCreateParamsIdentityBusinessDetailsScriptAddressesKana,
@@ -170,7 +168,6 @@
AccountTokenCreateParamsIdentityBusinessDetails as AccountTokenCreateParamsIdentityBusinessDetails,
AccountTokenCreateParamsIdentityBusinessDetailsAddress as AccountTokenCreateParamsIdentityBusinessDetailsAddress,
AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue as AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue,
- AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenueAmount as AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenueAmount,
AccountTokenCreateParamsIdentityBusinessDetailsDocuments as AccountTokenCreateParamsIdentityBusinessDetailsDocuments,
AccountTokenCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification,
AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense,
@@ -185,7 +182,6 @@
AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership,
AccountTokenCreateParamsIdentityBusinessDetailsIdNumber as AccountTokenCreateParamsIdentityBusinessDetailsIdNumber,
AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue as AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue,
- AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount as AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount,
AccountTokenCreateParamsIdentityBusinessDetailsRegistrationDate as AccountTokenCreateParamsIdentityBusinessDetailsRegistrationDate,
AccountTokenCreateParamsIdentityBusinessDetailsScriptAddresses as AccountTokenCreateParamsIdentityBusinessDetailsScriptAddresses,
AccountTokenCreateParamsIdentityBusinessDetailsScriptAddressesKana as AccountTokenCreateParamsIdentityBusinessDetailsScriptAddressesKana,
@@ -310,7 +306,6 @@
AccountUpdateParamsIdentityBusinessDetails as AccountUpdateParamsIdentityBusinessDetails,
AccountUpdateParamsIdentityBusinessDetailsAddress as AccountUpdateParamsIdentityBusinessDetailsAddress,
AccountUpdateParamsIdentityBusinessDetailsAnnualRevenue as AccountUpdateParamsIdentityBusinessDetailsAnnualRevenue,
- AccountUpdateParamsIdentityBusinessDetailsAnnualRevenueAmount as AccountUpdateParamsIdentityBusinessDetailsAnnualRevenueAmount,
AccountUpdateParamsIdentityBusinessDetailsDocuments as AccountUpdateParamsIdentityBusinessDetailsDocuments,
AccountUpdateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification as AccountUpdateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification,
AccountUpdateParamsIdentityBusinessDetailsDocumentsCompanyLicense as AccountUpdateParamsIdentityBusinessDetailsDocumentsCompanyLicense,
@@ -325,7 +320,6 @@
AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership as AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership,
AccountUpdateParamsIdentityBusinessDetailsIdNumber as AccountUpdateParamsIdentityBusinessDetailsIdNumber,
AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue as AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue,
- AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount as AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount,
AccountUpdateParamsIdentityBusinessDetailsRegistrationDate as AccountUpdateParamsIdentityBusinessDetailsRegistrationDate,
AccountUpdateParamsIdentityBusinessDetailsScriptAddresses as AccountUpdateParamsIdentityBusinessDetailsScriptAddresses,
AccountUpdateParamsIdentityBusinessDetailsScriptAddressesKana as AccountUpdateParamsIdentityBusinessDetailsScriptAddressesKana,
@@ -753,10 +747,6 @@
"stripe.params.v2.core._account_create_params",
False,
),
- "AccountCreateParamsIdentityBusinessDetailsAnnualRevenueAmount": (
- "stripe.params.v2.core._account_create_params",
- False,
- ),
"AccountCreateParamsIdentityBusinessDetailsDocuments": (
"stripe.params.v2.core._account_create_params",
False,
@@ -813,10 +803,6 @@
"stripe.params.v2.core._account_create_params",
False,
),
- "AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount": (
- "stripe.params.v2.core._account_create_params",
- False,
- ),
"AccountCreateParamsIdentityBusinessDetailsRegistrationDate": (
"stripe.params.v2.core._account_create_params",
False,
@@ -1006,10 +992,6 @@
"stripe.params.v2.core._account_token_create_params",
False,
),
- "AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenueAmount": (
- "stripe.params.v2.core._account_token_create_params",
- False,
- ),
"AccountTokenCreateParamsIdentityBusinessDetailsDocuments": (
"stripe.params.v2.core._account_token_create_params",
False,
@@ -1066,10 +1048,6 @@
"stripe.params.v2.core._account_token_create_params",
False,
),
- "AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount": (
- "stripe.params.v2.core._account_token_create_params",
- False,
- ),
"AccountTokenCreateParamsIdentityBusinessDetailsRegistrationDate": (
"stripe.params.v2.core._account_token_create_params",
False,
@@ -1550,10 +1528,6 @@
"stripe.params.v2.core._account_update_params",
False,
),
- "AccountUpdateParamsIdentityBusinessDetailsAnnualRevenueAmount": (
- "stripe.params.v2.core._account_update_params",
- False,
- ),
"AccountUpdateParamsIdentityBusinessDetailsDocuments": (
"stripe.params.v2.core._account_update_params",
False,
@@ -1610,10 +1584,6 @@
"stripe.params.v2.core._account_update_params",
False,
),
- "AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount": (
- "stripe.params.v2.core._account_update_params",
- False,
- ),
"AccountUpdateParamsIdentityBusinessDetailsRegistrationDate": (
"stripe.params.v2.core._account_update_params",
False,
diff --git a/stripe/params/v2/core/_account_create_params.py b/stripe/params/v2/core/_account_create_params.py
index df66c0851..fe9fc9d17 100644
--- a/stripe/params/v2/core/_account_create_params.py
+++ b/stripe/params/v2/core/_account_create_params.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
+from stripe.v2._amount import AmountParam
from typing import Dict, List
from typing_extensions import Literal, NotRequired, TypedDict
@@ -1605,9 +1606,7 @@ class AccountCreateParamsIdentityBusinessDetailsAddress(TypedDict):
class AccountCreateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
- amount: NotRequired[
- "AccountCreateParamsIdentityBusinessDetailsAnnualRevenueAmount"
- ]
+ amount: NotRequired[AmountParam]
"""
A non-negative integer representing the amount in the smallest currency unit.
"""
@@ -1617,17 +1616,6 @@ class AccountCreateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
"""
-class AccountCreateParamsIdentityBusinessDetailsAnnualRevenueAmount(TypedDict):
- value: NotRequired[int]
- """
- A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
- """
- currency: NotRequired[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).
- """
-
-
class AccountCreateParamsIdentityBusinessDetailsDocuments(TypedDict):
bank_account_ownership_verification: NotRequired[
"AccountCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification"
@@ -1968,27 +1956,12 @@ class AccountCreateParamsIdentityBusinessDetailsIdNumber(TypedDict):
class AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue(
TypedDict,
):
- amount: NotRequired[
- "AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount"
- ]
+ amount: NotRequired[AmountParam]
"""
A non-negative integer representing the amount in the smallest currency unit.
"""
-class AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount(
- TypedDict,
-):
- value: NotRequired[int]
- """
- A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
- """
- currency: NotRequired[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).
- """
-
-
class AccountCreateParamsIdentityBusinessDetailsRegistrationDate(TypedDict):
day: int
"""
diff --git a/stripe/params/v2/core/_account_token_create_params.py b/stripe/params/v2/core/_account_token_create_params.py
index 27caa5617..ad853f64b 100644
--- a/stripe/params/v2/core/_account_token_create_params.py
+++ b/stripe/params/v2/core/_account_token_create_params.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
+from stripe.v2._amount import AmountParam
from typing import Dict, List, Optional
from typing_extensions import Literal, NotRequired, TypedDict
@@ -277,9 +278,7 @@ class AccountTokenCreateParamsIdentityBusinessDetailsAddress(TypedDict):
class AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
- amount: NotRequired[
- "AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenueAmount"
- ]
+ amount: NotRequired[AmountParam]
"""
A non-negative integer representing the amount in the smallest currency unit.
"""
@@ -289,19 +288,6 @@ class AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
"""
-class AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenueAmount(
- TypedDict,
-):
- value: NotRequired[int]
- """
- A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
- """
- currency: NotRequired[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).
- """
-
-
class AccountTokenCreateParamsIdentityBusinessDetailsDocuments(TypedDict):
bank_account_ownership_verification: NotRequired[
"AccountTokenCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification"
@@ -642,27 +628,12 @@ class AccountTokenCreateParamsIdentityBusinessDetailsIdNumber(TypedDict):
class AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue(
TypedDict,
):
- amount: NotRequired[
- "AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount"
- ]
+ amount: NotRequired[AmountParam]
"""
A non-negative integer representing the amount in the smallest currency unit.
"""
-class AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount(
- TypedDict,
-):
- value: NotRequired[int]
- """
- A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
- """
- currency: NotRequired[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).
- """
-
-
class AccountTokenCreateParamsIdentityBusinessDetailsRegistrationDate(
TypedDict,
):
diff --git a/stripe/params/v2/core/_account_update_params.py b/stripe/params/v2/core/_account_update_params.py
index 4547db2a5..6b7c41e1f 100644
--- a/stripe/params/v2/core/_account_update_params.py
+++ b/stripe/params/v2/core/_account_update_params.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
+from stripe.v2._amount import AmountParam
from typing import Dict, List, Optional
from typing_extensions import Literal, NotRequired, TypedDict
@@ -1669,9 +1670,7 @@ class AccountUpdateParamsIdentityBusinessDetailsAddress(TypedDict):
class AccountUpdateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
- amount: NotRequired[
- "AccountUpdateParamsIdentityBusinessDetailsAnnualRevenueAmount"
- ]
+ amount: NotRequired[AmountParam]
"""
A non-negative integer representing the amount in the smallest currency unit.
"""
@@ -1681,17 +1680,6 @@ class AccountUpdateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
"""
-class AccountUpdateParamsIdentityBusinessDetailsAnnualRevenueAmount(TypedDict):
- value: NotRequired[int]
- """
- A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
- """
- currency: NotRequired[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).
- """
-
-
class AccountUpdateParamsIdentityBusinessDetailsDocuments(TypedDict):
bank_account_ownership_verification: NotRequired[
"AccountUpdateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification"
@@ -2032,27 +2020,12 @@ class AccountUpdateParamsIdentityBusinessDetailsIdNumber(TypedDict):
class AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue(
TypedDict,
):
- amount: NotRequired[
- "AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount"
- ]
+ amount: NotRequired[AmountParam]
"""
A non-negative integer representing the amount in the smallest currency unit.
"""
-class AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount(
- TypedDict,
-):
- value: NotRequired[int]
- """
- A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
- """
- currency: NotRequired[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).
- """
-
-
class AccountUpdateParamsIdentityBusinessDetailsRegistrationDate(TypedDict):
day: int
"""
diff --git a/stripe/v2/core/_account.py b/stripe/v2/core/_account.py
index dbd504df6..95c0b0352 100644
--- a/stripe/v2/core/_account.py
+++ b/stripe/v2/core/_account.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._stripe_object import StripeObject
+from stripe.v2._amount import Amount
from typing import ClassVar, Dict, List, Optional
from typing_extensions import Literal
@@ -2878,16 +2879,6 @@ class Address(StripeObject):
"""
class AnnualRevenue(StripeObject):
- class Amount(StripeObject):
- currency: Optional[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).
- """
- value: Optional[int]
- """
- A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
- """
-
amount: Optional[Amount]
"""
Annual revenue amount in minor currency units (for example, '123' for 1.23 USD).
@@ -2896,7 +2887,6 @@ class Amount(StripeObject):
"""
The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
"""
- _inner_class_types = {"amount": Amount}
class Documents(StripeObject):
class BankAccountOwnershipVerification(StripeObject):
@@ -3198,21 +3188,10 @@ class IdNumber(StripeObject):
"""
class MonthlyEstimatedRevenue(StripeObject):
- class Amount(StripeObject):
- currency: Optional[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).
- """
- value: Optional[int]
- """
- A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
- """
-
amount: Optional[Amount]
"""
Estimated monthly revenue amount in minor currency units (for example, '123' for 1.23 USD).
"""
- _inner_class_types = {"amount": Amount}
class RegistrationDate(StripeObject):
day: int
From 8b78e487f2fba81b80f1c0e2cbb9e1cdbd872fa0 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Mon, 16 Mar 2026 22:32:30 +0000
Subject: [PATCH 4/7] Update generated code for v2202 and
---
CODEGEN_VERSION | 2 +-
stripe/params/v2/core/__init__.py | 30 ++++++++++++++++
.../params/v2/core/_account_create_params.py | 33 +++++++++++++++--
.../v2/core/_account_token_create_params.py | 35 +++++++++++++++++--
.../params/v2/core/_account_update_params.py | 33 +++++++++++++++--
stripe/v2/core/_account.py | 23 +++++++++++-
6 files changed, 145 insertions(+), 11 deletions(-)
diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index 86c9b57e8..8576feb6a 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-f504fb42951e8181250357c8af0cab513111e480
\ No newline at end of file
+9e950cbf7b5a814a98f27d1a94b72cd6f1df2078
\ No newline at end of file
diff --git a/stripe/params/v2/core/__init__.py b/stripe/params/v2/core/__init__.py
index ab9fca8eb..432b4593f 100644
--- a/stripe/params/v2/core/__init__.py
+++ b/stripe/params/v2/core/__init__.py
@@ -98,6 +98,7 @@
AccountCreateParamsIdentityBusinessDetails as AccountCreateParamsIdentityBusinessDetails,
AccountCreateParamsIdentityBusinessDetailsAddress as AccountCreateParamsIdentityBusinessDetailsAddress,
AccountCreateParamsIdentityBusinessDetailsAnnualRevenue as AccountCreateParamsIdentityBusinessDetailsAnnualRevenue,
+ AccountCreateParamsIdentityBusinessDetailsAnnualRevenueAmount as AccountCreateParamsIdentityBusinessDetailsAnnualRevenueAmount,
AccountCreateParamsIdentityBusinessDetailsDocuments as AccountCreateParamsIdentityBusinessDetailsDocuments,
AccountCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification as AccountCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification,
AccountCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense as AccountCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense,
@@ -112,6 +113,7 @@
AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership as AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership,
AccountCreateParamsIdentityBusinessDetailsIdNumber as AccountCreateParamsIdentityBusinessDetailsIdNumber,
AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue as AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue,
+ AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount as AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount,
AccountCreateParamsIdentityBusinessDetailsRegistrationDate as AccountCreateParamsIdentityBusinessDetailsRegistrationDate,
AccountCreateParamsIdentityBusinessDetailsScriptAddresses as AccountCreateParamsIdentityBusinessDetailsScriptAddresses,
AccountCreateParamsIdentityBusinessDetailsScriptAddressesKana as AccountCreateParamsIdentityBusinessDetailsScriptAddressesKana,
@@ -168,6 +170,7 @@
AccountTokenCreateParamsIdentityBusinessDetails as AccountTokenCreateParamsIdentityBusinessDetails,
AccountTokenCreateParamsIdentityBusinessDetailsAddress as AccountTokenCreateParamsIdentityBusinessDetailsAddress,
AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue as AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue,
+ AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenueAmount as AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenueAmount,
AccountTokenCreateParamsIdentityBusinessDetailsDocuments as AccountTokenCreateParamsIdentityBusinessDetailsDocuments,
AccountTokenCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification,
AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense,
@@ -182,6 +185,7 @@
AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership,
AccountTokenCreateParamsIdentityBusinessDetailsIdNumber as AccountTokenCreateParamsIdentityBusinessDetailsIdNumber,
AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue as AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue,
+ AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount as AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount,
AccountTokenCreateParamsIdentityBusinessDetailsRegistrationDate as AccountTokenCreateParamsIdentityBusinessDetailsRegistrationDate,
AccountTokenCreateParamsIdentityBusinessDetailsScriptAddresses as AccountTokenCreateParamsIdentityBusinessDetailsScriptAddresses,
AccountTokenCreateParamsIdentityBusinessDetailsScriptAddressesKana as AccountTokenCreateParamsIdentityBusinessDetailsScriptAddressesKana,
@@ -306,6 +310,7 @@
AccountUpdateParamsIdentityBusinessDetails as AccountUpdateParamsIdentityBusinessDetails,
AccountUpdateParamsIdentityBusinessDetailsAddress as AccountUpdateParamsIdentityBusinessDetailsAddress,
AccountUpdateParamsIdentityBusinessDetailsAnnualRevenue as AccountUpdateParamsIdentityBusinessDetailsAnnualRevenue,
+ AccountUpdateParamsIdentityBusinessDetailsAnnualRevenueAmount as AccountUpdateParamsIdentityBusinessDetailsAnnualRevenueAmount,
AccountUpdateParamsIdentityBusinessDetailsDocuments as AccountUpdateParamsIdentityBusinessDetailsDocuments,
AccountUpdateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification as AccountUpdateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification,
AccountUpdateParamsIdentityBusinessDetailsDocumentsCompanyLicense as AccountUpdateParamsIdentityBusinessDetailsDocumentsCompanyLicense,
@@ -320,6 +325,7 @@
AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership as AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership,
AccountUpdateParamsIdentityBusinessDetailsIdNumber as AccountUpdateParamsIdentityBusinessDetailsIdNumber,
AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue as AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue,
+ AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount as AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount,
AccountUpdateParamsIdentityBusinessDetailsRegistrationDate as AccountUpdateParamsIdentityBusinessDetailsRegistrationDate,
AccountUpdateParamsIdentityBusinessDetailsScriptAddresses as AccountUpdateParamsIdentityBusinessDetailsScriptAddresses,
AccountUpdateParamsIdentityBusinessDetailsScriptAddressesKana as AccountUpdateParamsIdentityBusinessDetailsScriptAddressesKana,
@@ -747,6 +753,10 @@
"stripe.params.v2.core._account_create_params",
False,
),
+ "AccountCreateParamsIdentityBusinessDetailsAnnualRevenueAmount": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
"AccountCreateParamsIdentityBusinessDetailsDocuments": (
"stripe.params.v2.core._account_create_params",
False,
@@ -803,6 +813,10 @@
"stripe.params.v2.core._account_create_params",
False,
),
+ "AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
"AccountCreateParamsIdentityBusinessDetailsRegistrationDate": (
"stripe.params.v2.core._account_create_params",
False,
@@ -992,6 +1006,10 @@
"stripe.params.v2.core._account_token_create_params",
False,
),
+ "AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenueAmount": (
+ "stripe.params.v2.core._account_token_create_params",
+ False,
+ ),
"AccountTokenCreateParamsIdentityBusinessDetailsDocuments": (
"stripe.params.v2.core._account_token_create_params",
False,
@@ -1048,6 +1066,10 @@
"stripe.params.v2.core._account_token_create_params",
False,
),
+ "AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount": (
+ "stripe.params.v2.core._account_token_create_params",
+ False,
+ ),
"AccountTokenCreateParamsIdentityBusinessDetailsRegistrationDate": (
"stripe.params.v2.core._account_token_create_params",
False,
@@ -1528,6 +1550,10 @@
"stripe.params.v2.core._account_update_params",
False,
),
+ "AccountUpdateParamsIdentityBusinessDetailsAnnualRevenueAmount": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
"AccountUpdateParamsIdentityBusinessDetailsDocuments": (
"stripe.params.v2.core._account_update_params",
False,
@@ -1584,6 +1610,10 @@
"stripe.params.v2.core._account_update_params",
False,
),
+ "AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
"AccountUpdateParamsIdentityBusinessDetailsRegistrationDate": (
"stripe.params.v2.core._account_update_params",
False,
diff --git a/stripe/params/v2/core/_account_create_params.py b/stripe/params/v2/core/_account_create_params.py
index fe9fc9d17..df66c0851 100644
--- a/stripe/params/v2/core/_account_create_params.py
+++ b/stripe/params/v2/core/_account_create_params.py
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
-from stripe.v2._amount import AmountParam
from typing import Dict, List
from typing_extensions import Literal, NotRequired, TypedDict
@@ -1606,7 +1605,9 @@ class AccountCreateParamsIdentityBusinessDetailsAddress(TypedDict):
class AccountCreateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
- amount: NotRequired[AmountParam]
+ amount: NotRequired[
+ "AccountCreateParamsIdentityBusinessDetailsAnnualRevenueAmount"
+ ]
"""
A non-negative integer representing the amount in the smallest currency unit.
"""
@@ -1616,6 +1617,17 @@ class AccountCreateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
"""
+class AccountCreateParamsIdentityBusinessDetailsAnnualRevenueAmount(TypedDict):
+ value: NotRequired[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+ currency: NotRequired[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).
+ """
+
+
class AccountCreateParamsIdentityBusinessDetailsDocuments(TypedDict):
bank_account_ownership_verification: NotRequired[
"AccountCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification"
@@ -1956,12 +1968,27 @@ class AccountCreateParamsIdentityBusinessDetailsIdNumber(TypedDict):
class AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue(
TypedDict,
):
- amount: NotRequired[AmountParam]
+ amount: NotRequired[
+ "AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount"
+ ]
"""
A non-negative integer representing the amount in the smallest currency unit.
"""
+class AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount(
+ TypedDict,
+):
+ value: NotRequired[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+ currency: NotRequired[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).
+ """
+
+
class AccountCreateParamsIdentityBusinessDetailsRegistrationDate(TypedDict):
day: int
"""
diff --git a/stripe/params/v2/core/_account_token_create_params.py b/stripe/params/v2/core/_account_token_create_params.py
index ad853f64b..27caa5617 100644
--- a/stripe/params/v2/core/_account_token_create_params.py
+++ b/stripe/params/v2/core/_account_token_create_params.py
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
-from stripe.v2._amount import AmountParam
from typing import Dict, List, Optional
from typing_extensions import Literal, NotRequired, TypedDict
@@ -278,7 +277,9 @@ class AccountTokenCreateParamsIdentityBusinessDetailsAddress(TypedDict):
class AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
- amount: NotRequired[AmountParam]
+ amount: NotRequired[
+ "AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenueAmount"
+ ]
"""
A non-negative integer representing the amount in the smallest currency unit.
"""
@@ -288,6 +289,19 @@ class AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
"""
+class AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenueAmount(
+ TypedDict,
+):
+ value: NotRequired[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+ currency: NotRequired[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).
+ """
+
+
class AccountTokenCreateParamsIdentityBusinessDetailsDocuments(TypedDict):
bank_account_ownership_verification: NotRequired[
"AccountTokenCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification"
@@ -628,12 +642,27 @@ class AccountTokenCreateParamsIdentityBusinessDetailsIdNumber(TypedDict):
class AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue(
TypedDict,
):
- amount: NotRequired[AmountParam]
+ amount: NotRequired[
+ "AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount"
+ ]
"""
A non-negative integer representing the amount in the smallest currency unit.
"""
+class AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount(
+ TypedDict,
+):
+ value: NotRequired[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+ currency: NotRequired[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).
+ """
+
+
class AccountTokenCreateParamsIdentityBusinessDetailsRegistrationDate(
TypedDict,
):
diff --git a/stripe/params/v2/core/_account_update_params.py b/stripe/params/v2/core/_account_update_params.py
index 6b7c41e1f..4547db2a5 100644
--- a/stripe/params/v2/core/_account_update_params.py
+++ b/stripe/params/v2/core/_account_update_params.py
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
-from stripe.v2._amount import AmountParam
from typing import Dict, List, Optional
from typing_extensions import Literal, NotRequired, TypedDict
@@ -1670,7 +1669,9 @@ class AccountUpdateParamsIdentityBusinessDetailsAddress(TypedDict):
class AccountUpdateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
- amount: NotRequired[AmountParam]
+ amount: NotRequired[
+ "AccountUpdateParamsIdentityBusinessDetailsAnnualRevenueAmount"
+ ]
"""
A non-negative integer representing the amount in the smallest currency unit.
"""
@@ -1680,6 +1681,17 @@ class AccountUpdateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
"""
+class AccountUpdateParamsIdentityBusinessDetailsAnnualRevenueAmount(TypedDict):
+ value: NotRequired[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+ currency: NotRequired[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).
+ """
+
+
class AccountUpdateParamsIdentityBusinessDetailsDocuments(TypedDict):
bank_account_ownership_verification: NotRequired[
"AccountUpdateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification"
@@ -2020,12 +2032,27 @@ class AccountUpdateParamsIdentityBusinessDetailsIdNumber(TypedDict):
class AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue(
TypedDict,
):
- amount: NotRequired[AmountParam]
+ amount: NotRequired[
+ "AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount"
+ ]
"""
A non-negative integer representing the amount in the smallest currency unit.
"""
+class AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount(
+ TypedDict,
+):
+ value: NotRequired[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+ currency: NotRequired[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).
+ """
+
+
class AccountUpdateParamsIdentityBusinessDetailsRegistrationDate(TypedDict):
day: int
"""
diff --git a/stripe/v2/core/_account.py b/stripe/v2/core/_account.py
index 95c0b0352..dbd504df6 100644
--- a/stripe/v2/core/_account.py
+++ b/stripe/v2/core/_account.py
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._stripe_object import StripeObject
-from stripe.v2._amount import Amount
from typing import ClassVar, Dict, List, Optional
from typing_extensions import Literal
@@ -2879,6 +2878,16 @@ class Address(StripeObject):
"""
class AnnualRevenue(StripeObject):
+ class Amount(StripeObject):
+ currency: Optional[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).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
amount: Optional[Amount]
"""
Annual revenue amount in minor currency units (for example, '123' for 1.23 USD).
@@ -2887,6 +2896,7 @@ class AnnualRevenue(StripeObject):
"""
The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
"""
+ _inner_class_types = {"amount": Amount}
class Documents(StripeObject):
class BankAccountOwnershipVerification(StripeObject):
@@ -3188,10 +3198,21 @@ class IdNumber(StripeObject):
"""
class MonthlyEstimatedRevenue(StripeObject):
+ class Amount(StripeObject):
+ currency: Optional[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).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
amount: Optional[Amount]
"""
Estimated monthly revenue amount in minor currency units (for example, '123' for 1.23 USD).
"""
+ _inner_class_types = {"amount": Amount}
class RegistrationDate(StripeObject):
day: int
From 5b141887a72358aef95958041ce2070668574440 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Tue, 17 Mar 2026 22:20:43 +0000
Subject: [PATCH 5/7] Update generated code for v2203 and
---
CODEGEN_VERSION | 2 +-
OPENAPI_VERSION | 2 +-
stripe/params/v2/core/_event_destination_create_params.py | 8 ++++++--
stripe/v2/core/_event_destination.py | 8 ++++++--
4 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index 8576feb6a..b42cfff0d 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-9e950cbf7b5a814a98f27d1a94b72cd6f1df2078
\ No newline at end of file
+c984abe057903e3c87e3af2de080985aff08a44e
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 8110841c8..604997fea 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2202
\ No newline at end of file
+v2203
\ No newline at end of file
diff --git a/stripe/params/v2/core/_event_destination_create_params.py b/stripe/params/v2/core/_event_destination_create_params.py
index 63aee13ee..ecb2aa31c 100644
--- a/stripe/params/v2/core/_event_destination_create_params.py
+++ b/stripe/params/v2/core/_event_destination_create_params.py
@@ -17,9 +17,13 @@ class EventDestinationCreateParams(TypedDict):
"""
Payload type of events being subscribed to.
"""
- events_from: NotRequired[List[Literal["other_accounts", "self"]]]
+ events_from: NotRequired[List[str]]
"""
- Where events should be routed from.
+ Specifies which accounts' events route to this destination.
+ `@self`: Receive events from the account that owns the event destination.
+ `@accounts`: Receive events emitted from other accounts you manage which includes your v1 and v2 accounts.
+ `@organization_members`: Receive events from accounts directly linked to the organization.
+ `@organization_members/@accounts`: Receive events from all accounts connected to any platform accounts in the organization.
"""
include: NotRequired[
List[
diff --git a/stripe/v2/core/_event_destination.py b/stripe/v2/core/_event_destination.py
index 02d4ca172..01fbabbfb 100644
--- a/stripe/v2/core/_event_destination.py
+++ b/stripe/v2/core/_event_destination.py
@@ -73,9 +73,13 @@ class WebhookEndpoint(StripeObject):
"""
Payload type of events being subscribed to.
"""
- events_from: Optional[List[Literal["other_accounts", "self"]]]
+ events_from: Optional[List[str]]
"""
- Where events should be routed from.
+ Specifies which accounts' events route to this destination.
+ `@self`: Receive events from the account that owns the event destination.
+ `@accounts`: Receive events emitted from other accounts you manage which includes your v1 and v2 accounts.
+ `@organization_members`: Receive events from accounts directly linked to the organization.
+ `@organization_members/@accounts`: Receive events from all accounts connected to any platform accounts in the organization.
"""
id: str
"""
From 9ba5f88dc0208ec15a02922368bc0deaf5de89cb Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Tue, 17 Mar 2026 22:52:40 +0000
Subject: [PATCH 6/7] Update generated code for v2204 and
---
CODEGEN_VERSION | 2 +-
OPENAPI_VERSION | 2 +-
stripe/_account.py | 6 +
stripe/_account_session.py | 2 +-
stripe/_api_requestor.py | 2 +
stripe/_api_version.py | 4 +-
stripe/_apple_pay_domain.py | 2 +-
stripe/_application_fee.py | 2 +-
stripe/_balance.py | 2 +-
stripe/_cash_balance.py | 2 +-
stripe/_charge.py | 14 +-
stripe/_confirmation_token.py | 11 +-
stripe/_connect_collection_transfer.py | 2 +-
stripe/_coupon.py | 4 +-
stripe/_credit_note.py | 2 +-
stripe/_credit_note_line_item.py | 8 +-
stripe/_customer.py | 6 +-
stripe/_customer_balance_transaction.py | 2 +-
stripe/_customer_cash_balance_transaction.py | 2 +-
stripe/_customer_payment_source_service.py | 4 +-
stripe/_customer_session.py | 2 +-
stripe/_dispute.py | 2 +-
stripe/_ephemeral_key.py | 2 +-
stripe/_event.py | 2 +-
stripe/_file_link.py | 2 +-
stripe/_funding_instructions.py | 2 +-
stripe/_invoice.py | 59 ++---
stripe/_invoice_item.py | 8 +-
stripe/_invoice_line_item.py | 8 +-
stripe/_invoice_payment.py | 2 +-
stripe/_invoice_rendering_template.py | 2 +-
stripe/_invoice_service.py | 16 +-
stripe/_mandate.py | 22 +-
stripe/_payment_attempt_record.py | 77 ++++--
stripe/_payment_intent.py | 72 ++++--
stripe/_payment_intent_service.py | 4 +-
stripe/_payment_link.py | 3 +-
stripe/_payment_method.py | 11 +-
stripe/_payment_method_configuration.py | 26 ++-
stripe/_payment_method_domain.py | 2 +-
stripe/_payment_record.py | 77 ++++--
stripe/_payout.py | 6 +-
stripe/_payout_service.py | 4 +-
stripe/_plan.py | 2 +-
stripe/_price.py | 2 +-
stripe/_product.py | 2 +-
stripe/_product_feature.py | 2 +-
stripe/_promotion_code.py | 2 +-
stripe/_quote.py | 2 +-
stripe/_review.py | 2 +-
stripe/_setup_attempt.py | 8 +-
stripe/_setup_intent.py | 60 ++++-
stripe/_shipping_rate.py | 2 +-
stripe/_source.py | 2 +-
stripe/_source_mandate_notification.py | 2 +-
stripe/_source_transaction.py | 2 +-
stripe/_subscription.py | 33 +--
stripe/_subscription_schedule.py | 2 +-
stripe/_subscription_service.py | 4 +-
stripe/_tax_id.py | 2 +-
stripe/_tax_rate.py | 2 +-
stripe/_token.py | 2 +-
stripe/_topup.py | 4 +-
stripe/_transfer.py | 2 +-
stripe/_webhook_endpoint.py | 2 +-
stripe/apps/_secret.py | 2 +-
stripe/billing/_alert.py | 2 +-
stripe/billing/_alert_triggered.py | 2 +-
stripe/billing/_credit_balance_summary.py | 2 +-
stripe/billing/_credit_balance_transaction.py | 2 +-
stripe/billing/_credit_grant.py | 2 +-
stripe/billing/_meter.py | 2 +-
stripe/billing/_meter_event.py | 2 +-
stripe/billing/_meter_event_adjustment.py | 2 +-
stripe/billing/_meter_event_summary.py | 2 +-
stripe/billing_portal/_configuration.py | 2 +-
stripe/billing_portal/_session.py | 2 +-
stripe/checkout/_session.py | 58 ++++-
stripe/climate/_supplier.py | 1 +
stripe/entitlements/_active_entitlement.py | 2 +-
.../_active_entitlement_summary.py | 2 +-
stripe/entitlements/_feature.py | 2 +-
stripe/financial_connections/_account.py | 2 +-
stripe/financial_connections/_session.py | 2 +-
stripe/financial_connections/_transaction.py | 2 +-
stripe/forwarding/_request.py | 2 +-
stripe/identity/_verification_report.py | 2 +-
stripe/identity/_verification_session.py | 2 +-
stripe/issuing/_authorization.py | 2 +-
stripe/issuing/_card.py | 17 +-
stripe/issuing/_cardholder.py | 2 +-
stripe/issuing/_dispute.py | 2 +-
stripe/issuing/_personalization_design.py | 2 +-
stripe/issuing/_physical_bundle.py | 2 +-
stripe/issuing/_token.py | 4 +-
stripe/issuing/_transaction.py | 2 +-
stripe/params/__init__.py | 220 ++++++++++++++++++
stripe/params/_account_create_params.py | 11 +
stripe/params/_account_update_params.py | 11 +
.../_confirmation_token_create_params.py | 35 +++
stripe/params/_credit_note_create_params.py | 4 +
.../_credit_note_preview_lines_list_params.py | 4 +
.../_credit_note_preview_lines_params.py | 4 +
stripe/params/_credit_note_preview_params.py | 4 +
.../_customer_list_payment_methods_params.py | 1 +
.../_customer_payment_method_list_params.py | 1 +
stripe/params/_invoice_add_lines_params.py | 6 +-
.../params/_invoice_create_preview_params.py | 6 +-
stripe/params/_invoice_item_create_params.py | 6 +-
stripe/params/_invoice_item_modify_params.py | 6 +-
stripe/params/_invoice_item_update_params.py | 6 +-
.../_invoice_line_item_update_params.py | 8 +-
stripe/params/_invoice_update_lines_params.py | 6 +-
.../params/_payment_intent_confirm_params.py | 86 ++++++-
.../params/_payment_intent_create_params.py | 85 ++++++-
.../params/_payment_intent_modify_params.py | 86 ++++++-
.../params/_payment_intent_update_params.py | 86 ++++++-
stripe/params/_payment_link_create_params.py | 1 +
stripe/params/_payment_link_modify_params.py | 2 +-
stripe/params/_payment_link_update_params.py | 2 +-
...ment_method_configuration_create_params.py | 20 ++
...ment_method_configuration_modify_params.py | 20 ++
...ment_method_configuration_update_params.py | 20 ++
.../params/_payment_method_create_params.py | 31 +++
stripe/params/_payment_method_list_params.py | 1 +
stripe/params/_setup_intent_confirm_params.py | 74 +++++-
stripe/params/_setup_intent_create_params.py | 75 +++++-
stripe/params/_setup_intent_modify_params.py | 76 +++++-
stripe/params/_setup_intent_update_params.py | 76 +++++-
stripe/params/_subscription_create_params.py | 4 +-
.../_subscription_item_create_params.py | 2 +-
.../_subscription_item_delete_params.py | 2 +-
.../_subscription_item_modify_params.py | 2 +-
.../_subscription_item_update_params.py | 2 +-
stripe/params/_subscription_modify_params.py | 6 +-
stripe/params/_subscription_update_params.py | 6 +-
.../params/_webhook_endpoint_create_params.py | 1 +
stripe/params/checkout/__init__.py | 20 ++
.../params/checkout/_session_create_params.py | 87 ++++++-
stripe/params/issuing/__init__.py | 10 +
.../issuing/_authorization_create_params.py | 4 +-
stripe/params/issuing/_card_create_params.py | 18 ++
.../issuing/_cardholder_create_params.py | 4 +-
.../issuing/_cardholder_modify_params.py | 4 +-
.../issuing/_cardholder_update_params.py | 4 +-
.../params/radar/_value_list_create_params.py | 3 +-
.../params/tax/_calculation_create_params.py | 4 +-
.../_transaction_create_reversal_params.py | 10 +-
stripe/params/test_helpers/__init__.py | 10 +
.../_confirmation_token_create_params.py | 35 +++
.../issuing/_authorization_create_params.py | 4 +-
.../params/v2/core/_account_create_params.py | 8 +-
.../v2/core/_account_token_create_params.py | 8 +-
.../params/v2/core/_account_update_params.py | 8 +-
stripe/radar/_early_fraud_warning.py | 2 +-
stripe/radar/_payment_evaluation.py | 58 ++---
stripe/radar/_value_list.py | 5 +-
stripe/radar/_value_list_item.py | 2 +-
stripe/reporting/_report_type.py | 2 +-
stripe/reserve/_hold.py | 2 +-
stripe/reserve/_plan.py | 2 +-
stripe/reserve/_release.py | 2 +-
stripe/sigma/_scheduled_query_run.py | 2 +-
stripe/tax/_calculation.py | 16 +-
stripe/tax/_calculation_line_item.py | 10 +-
stripe/tax/_registration.py | 2 +-
stripe/tax/_settings.py | 2 +-
stripe/tax/_transaction.py | 10 +-
stripe/tax/_transaction_line_item.py | 6 +-
stripe/terminal/_configuration.py | 2 +-
stripe/terminal/_location.py | 2 +-
stripe/terminal/_reader.py | 2 +-
stripe/test_helpers/_test_clock.py | 2 +-
stripe/treasury/_credit_reversal.py | 2 +-
stripe/treasury/_debit_reversal.py | 2 +-
stripe/treasury/_financial_account.py | 2 +-
stripe/treasury/_inbound_transfer.py | 2 +-
stripe/treasury/_outbound_payment.py | 2 +-
stripe/treasury/_outbound_transfer.py | 2 +-
stripe/treasury/_received_credit.py | 2 +-
stripe/treasury/_received_debit.py | 2 +-
stripe/treasury/_transaction.py | 2 +-
stripe/treasury/_transaction_entry.py | 2 +-
stripe/v2/core/_account.py | 8 +-
tests/test_generated_examples.py | 25 ++
185 files changed, 1887 insertions(+), 412 deletions(-)
diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index b42cfff0d..50664d873 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-c984abe057903e3c87e3af2de080985aff08a44e
\ No newline at end of file
+7e4b403fdf4c0324e5e9c1abe3fdfd4d0e968551
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 604997fea..ad0b5d451 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2203
\ No newline at end of file
+v2204
\ No newline at end of file
diff --git a/stripe/_account.py b/stripe/_account.py
index 30582b94d..93b260644 100644
--- a/stripe/_account.py
+++ b/stripe/_account.py
@@ -81,6 +81,8 @@ class Account(
UpdateableAPIResource["Account"],
):
"""
+ For new integrations, we recommend using the [Accounts v2 API](https://docs.stripe.com/api/v2/core/accounts), in place of /v1/accounts and /v1/customers to represent a user.
+
This is an object representing a Stripe account. You can retrieve it to see
properties on the account like its current requirements or if the account is
enabled to make live charges or receive payouts.
@@ -472,6 +474,10 @@ class Capabilities(StripeObject):
"""
The status of the TWINT capability of the account, or whether the account can directly process TWINT charges.
"""
+ upi_payments: Optional[Literal["active", "inactive", "pending"]]
+ """
+ The status of the upi payments capability of the account, or whether the account can directly process upi charges.
+ """
us_bank_account_ach_payments: Optional[
Literal["active", "inactive", "pending"]
]
diff --git a/stripe/_account_session.py b/stripe/_account_session.py
index 3cc4c3219..1b0e409c3 100644
--- a/stripe/_account_session.py
+++ b/stripe/_account_session.py
@@ -472,7 +472,7 @@ class Features(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["account_session"]
"""
diff --git a/stripe/_api_requestor.py b/stripe/_api_requestor.py
index da73bbf3f..b5cd39533 100644
--- a/stripe/_api_requestor.py
+++ b/stripe/_api_requestor.py
@@ -382,6 +382,8 @@ def specific_v2_api_error(self, rbody, rcode, resp, rheaders, error_data):
code,
)
# switchCases: The beginning of the section generated from our OpenAPI spec
+ elif type == "rate_limit":
+ return error.RateLimitError(**error_args)
elif type == "temporary_session_expired":
return error.TemporarySessionExpiredError(**error_args)
# switchCases: The end of the section generated from our OpenAPI spec
diff --git a/stripe/_api_version.py b/stripe/_api_version.py
index f76b3fe03..ca5e4670e 100644
--- a/stripe/_api_version.py
+++ b/stripe/_api_version.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
class _ApiVersion:
- CURRENT = "2026-02-25.clover"
- CURRENT_MAJOR = "clover"
+ CURRENT = "2026-03-25.dahlia"
+ CURRENT_MAJOR = "dahlia"
diff --git a/stripe/_apple_pay_domain.py b/stripe/_apple_pay_domain.py
index 3ed5195a9..c1691cf24 100644
--- a/stripe/_apple_pay_domain.py
+++ b/stripe/_apple_pay_domain.py
@@ -44,7 +44,7 @@ class ApplePayDomain(
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["apple_pay_domain"]
"""
diff --git a/stripe/_application_fee.py b/stripe/_application_fee.py
index f83ab1ead..455c0bea1 100644
--- a/stripe/_application_fee.py
+++ b/stripe/_application_fee.py
@@ -98,7 +98,7 @@ class FeeSource(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["application_fee"]
"""
diff --git a/stripe/_balance.py b/stripe/_balance.py
index 4824ba22c..e92b86349 100644
--- a/stripe/_balance.py
+++ b/stripe/_balance.py
@@ -269,7 +269,7 @@ class SourceTypes(StripeObject):
issuing: Optional[Issuing]
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["balance"]
"""
diff --git a/stripe/_cash_balance.py b/stripe/_cash_balance.py
index acd08a752..4164a8fb4 100644
--- a/stripe/_cash_balance.py
+++ b/stripe/_cash_balance.py
@@ -38,7 +38,7 @@ class Settings(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["cash_balance"]
"""
diff --git a/stripe/_charge.py b/stripe/_charge.py
index 25f58914b..c21a4bf90 100644
--- a/stripe/_charge.py
+++ b/stripe/_charge.py
@@ -1112,7 +1112,9 @@ class Crypto(StripeObject):
"""
The wallet address of the customer.
"""
- network: Optional[Literal["base", "ethereum", "polygon", "solana"]]
+ network: Optional[
+ Literal["base", "ethereum", "polygon", "solana", "tempo"]
+ ]
"""
The blockchain network that the transaction was sent on.
"""
@@ -1947,6 +1949,12 @@ class Swish(StripeObject):
class Twint(StripeObject):
pass
+ class Upi(StripeObject):
+ vpa: Optional[str]
+ """
+ Customer's unique Virtual Payment Address.
+ """
+
class UsBankAccount(StripeObject):
account_holder_type: Optional[Literal["company", "individual"]]
"""
@@ -2068,6 +2076,7 @@ class Zip(StripeObject):
An additional hash is included on `payment_method_details` with a name matching this value.
It contains information specific to the payment method.
"""
+ upi: Optional[Upi]
us_bank_account: Optional[UsBankAccount]
wechat: Optional[Wechat]
wechat_pay: Optional[WechatPay]
@@ -2126,6 +2135,7 @@ class Zip(StripeObject):
"stripe_account": StripeAccount,
"swish": Swish,
"twint": Twint,
+ "upi": Upi,
"us_bank_account": UsBankAccount,
"wechat": Wechat,
"wechat_pay": WechatPay,
@@ -2290,7 +2300,7 @@ class TransferData(StripeObject):
level3: Optional[Level3]
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py
index 88f9ee0ee..4af11a634 100644
--- a/stripe/_confirmation_token.py
+++ b/stripe/_confirmation_token.py
@@ -1338,6 +1338,12 @@ class Swish(StripeObject):
class Twint(StripeObject):
pass
+ class Upi(StripeObject):
+ vpa: Optional[str]
+ """
+ Customer's unique Virtual Payment Address
+ """
+
class UsBankAccount(StripeObject):
class Networks(StripeObject):
preferred: Optional[str]
@@ -1545,6 +1551,7 @@ class Zip(StripeObject):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -1552,6 +1559,7 @@ class Zip(StripeObject):
"""
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.
"""
+ upi: Optional[Upi]
us_bank_account: Optional[UsBankAccount]
wechat_pay: Optional[WechatPay]
zip: Optional[Zip]
@@ -1606,6 +1614,7 @@ class Zip(StripeObject):
"sofort": Sofort,
"swish": Swish,
"twint": Twint,
+ "upi": Upi,
"us_bank_account": UsBankAccount,
"wechat_pay": WechatPay,
"zip": Zip,
@@ -1663,7 +1672,7 @@ class Address(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
mandate_data: Optional[MandateData]
"""
diff --git a/stripe/_connect_collection_transfer.py b/stripe/_connect_collection_transfer.py
index 397e20d15..b77ffa6f0 100644
--- a/stripe/_connect_collection_transfer.py
+++ b/stripe/_connect_collection_transfer.py
@@ -31,7 +31,7 @@ class ConnectCollectionTransfer(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["connect_collection_transfer"]
"""
diff --git a/stripe/_coupon.py b/stripe/_coupon.py
index ef159f3f7..cf0b49440 100644
--- a/stripe/_coupon.py
+++ b/stripe/_coupon.py
@@ -27,7 +27,7 @@ class Coupon(
"""
A coupon contains information about a percent-off or amount-off discount you
might want to apply to a customer. Coupons may be applied to [subscriptions](https://api.stripe.com#subscriptions), [invoices](https://api.stripe.com#invoices),
- [checkout sessions](https://docs.stripe.com/api/checkout/sessions), [quotes](https://api.stripe.com#quotes), and more. Coupons do not work with conventional one-off [charges](https://api.stripe.com#create_charge) or [payment intents](https://docs.stripe.com/api/payment_intents).
+ [checkout sessions](https://docs.stripe.com/api/checkout/sessions), [quotes](https://api.stripe.com#quotes), and more. Coupons do not work with conventional one-off [charges](https://docs.stripe.com/api/charges/create) or [payment intents](https://docs.stripe.com/api/payment_intents).
"""
OBJECT_NAME: ClassVar[Literal["coupon"]] = "coupon"
@@ -79,7 +79,7 @@ class CurrencyOptions(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
max_redemptions: Optional[int]
"""
diff --git a/stripe/_credit_note.py b/stripe/_credit_note.py
index 921d368a2..f973fa63d 100644
--- a/stripe/_credit_note.py
+++ b/stripe/_credit_note.py
@@ -283,7 +283,7 @@ class TaxRateDetails(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
memo: Optional[str]
"""
diff --git a/stripe/_credit_note_line_item.py b/stripe/_credit_note_line_item.py
index 87c510da8..68948f055 100644
--- a/stripe/_credit_note_line_item.py
+++ b/stripe/_credit_note_line_item.py
@@ -2,7 +2,7 @@
# File generated from our OpenAPI spec
from stripe._expandable_field import ExpandableField
from stripe._stripe_object import StripeObject
-from typing import ClassVar, List, Optional
+from typing import ClassVar, Dict, List, Optional
from typing_extensions import Literal, TYPE_CHECKING
if TYPE_CHECKING:
@@ -128,7 +128,11 @@ class TaxRateDetails(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
"""
object: Literal["credit_note_line_item"]
"""
diff --git a/stripe/_customer.py b/stripe/_customer.py
index 6486461b9..803def869 100644
--- a/stripe/_customer.py
+++ b/stripe/_customer.py
@@ -366,7 +366,7 @@ class Location(StripeObject):
invoice_settings: Optional[InvoiceSettings]
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
@@ -1469,7 +1469,7 @@ def create_source(
If the card's owner has no default card, then the new card will become the default.
However, if the owner already has a default, then it will not change.
- To change the default, you should [update the customer](https://docs.stripe.com/docs/api#update_customer) to have a new default_source.
+ To change the default, you should [update the customer](https://docs.stripe.com/api/customers/update) to have a new default_source.
"""
return cast(
Union["Account", "BankAccount", "Card", "Source"],
@@ -1491,7 +1491,7 @@ async def create_source_async(
If the card's owner has no default card, then the new card will become the default.
However, if the owner already has a default, then it will not change.
- To change the default, you should [update the customer](https://docs.stripe.com/docs/api#update_customer) to have a new default_source.
+ To change the default, you should [update the customer](https://docs.stripe.com/api/customers/update) to have a new default_source.
"""
return cast(
Union["Account", "BankAccount", "Card", "Source"],
diff --git a/stripe/_customer_balance_transaction.py b/stripe/_customer_balance_transaction.py
index dafe4b81b..1c600800e 100644
--- a/stripe/_customer_balance_transaction.py
+++ b/stripe/_customer_balance_transaction.py
@@ -72,7 +72,7 @@ class CustomerBalanceTransaction(APIResource["CustomerBalanceTransaction"]):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
diff --git a/stripe/_customer_cash_balance_transaction.py b/stripe/_customer_cash_balance_transaction.py
index e2aba6550..aeb4f2b7d 100644
--- a/stripe/_customer_cash_balance_transaction.py
+++ b/stripe/_customer_cash_balance_transaction.py
@@ -169,7 +169,7 @@ class UnappliedFromPayment(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
net_amount: int
"""
diff --git a/stripe/_customer_payment_source_service.py b/stripe/_customer_payment_source_service.py
index 7ea89ac77..589ccff6d 100644
--- a/stripe/_customer_payment_source_service.py
+++ b/stripe/_customer_payment_source_service.py
@@ -89,7 +89,7 @@ def create(
If the card's owner has no default card, then the new card will become the default.
However, if the owner already has a default, then it will not change.
- To change the default, you should [update the customer](https://docs.stripe.com/docs/api#update_customer) to have a new default_source.
+ To change the default, you should [update the customer](https://docs.stripe.com/api/customers/update) to have a new default_source.
"""
return cast(
"Union[Account, BankAccount, Card, Source]",
@@ -115,7 +115,7 @@ async def create_async(
If the card's owner has no default card, then the new card will become the default.
However, if the owner already has a default, then it will not change.
- To change the default, you should [update the customer](https://docs.stripe.com/docs/api#update_customer) to have a new default_source.
+ To change the default, you should [update the customer](https://docs.stripe.com/api/customers/update) to have a new default_source.
"""
return cast(
"Union[Account, BankAccount, Card, Source]",
diff --git a/stripe/_customer_session.py b/stripe/_customer_session.py
index 581274e47..844aad1f3 100644
--- a/stripe/_customer_session.py
+++ b/stripe/_customer_session.py
@@ -217,7 +217,7 @@ class PricingTable(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["customer_session"]
"""
diff --git a/stripe/_dispute.py b/stripe/_dispute.py
index 2109b7de4..c6cd7d827 100644
--- a/stripe/_dispute.py
+++ b/stripe/_dispute.py
@@ -449,7 +449,7 @@ class Paypal(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/_ephemeral_key.py b/stripe/_ephemeral_key.py
index 3b7d0b66b..2c0564c26 100644
--- a/stripe/_ephemeral_key.py
+++ b/stripe/_ephemeral_key.py
@@ -31,7 +31,7 @@ class EphemeralKey(
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["ephemeral_key"]
"""
diff --git a/stripe/_event.py b/stripe/_event.py
index 776df42d2..d5386612c 100644
--- a/stripe/_event.py
+++ b/stripe/_event.py
@@ -78,7 +78,7 @@ class Request(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["event"]
"""
diff --git a/stripe/_file_link.py b/stripe/_file_link.py
index 620bede1d..5dcbf652f 100644
--- a/stripe/_file_link.py
+++ b/stripe/_file_link.py
@@ -51,7 +51,7 @@ class FileLink(
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/_funding_instructions.py b/stripe/_funding_instructions.py
index 5e7841e77..11a50543c 100644
--- a/stripe/_funding_instructions.py
+++ b/stripe/_funding_instructions.py
@@ -573,7 +573,7 @@ class BankAddress(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["funding_instructions"]
"""
diff --git a/stripe/_invoice.py b/stripe/_invoice.py
index 8d5526c4e..758bfcc4e 100644
--- a/stripe/_invoice.py
+++ b/stripe/_invoice.py
@@ -564,6 +564,7 @@ class LastFinalizationError(StripeObject):
"routing_number_invalid",
"secret_key_required",
"sepa_unsupported_account",
+ "service_period_coupon_with_metered_tiered_item_unsupported",
"setup_attempt_failed",
"setup_intent_authentication_failure",
"setup_intent_invalid_parameter",
@@ -746,7 +747,7 @@ class MandateOptions(StripeObject):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
_inner_class_types = {"mandate_options": MandateOptions}
@@ -869,7 +870,7 @@ class Filters(StripeObject):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
_inner_class_types = {
"financial_connections": FinancialConnections,
@@ -1438,7 +1439,7 @@ class TaxRateDetails(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
@@ -1847,7 +1848,7 @@ async def attach_payment_async( # pyright: ignore[reportGeneralTypeIssues]
@classmethod
def create(cls, **params: Unpack["InvoiceCreateParams"]) -> "Invoice":
"""
- This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](https://docs.stripe.com/api#finalize_invoice) or send](https://docs.stripe.com/api/invoices/pay) the invoice to your customers.
+ This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](/api/invoices/pay) or send](https://docs.stripe.com/api/invoices/finalize) the invoice to your customers.
"""
return cast(
"Invoice",
@@ -1863,7 +1864,7 @@ async def create_async(
cls, **params: Unpack["InvoiceCreateParams"]
) -> "Invoice":
"""
- This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](https://docs.stripe.com/api#finalize_invoice) or send](https://docs.stripe.com/api/invoices/pay) the invoice to your customers.
+ This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](/api/invoices/pay) or send](https://docs.stripe.com/api/invoices/finalize) the invoice to your customers.
"""
return cast(
"Invoice",
@@ -1927,7 +1928,7 @@ def _cls_delete(
cls, sid: str, **params: Unpack["InvoiceDeleteParams"]
) -> "Invoice":
"""
- Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api#void_invoice).
+ Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api/invoices/void).
"""
url = "%s/%s" % (cls.class_url(), sanitize_id(sid))
return cast(
@@ -1943,14 +1944,14 @@ def _cls_delete(
@staticmethod
def delete(sid: str, **params: Unpack["InvoiceDeleteParams"]) -> "Invoice":
"""
- Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api#void_invoice).
+ Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api/invoices/void).
"""
...
@overload
def delete(self, **params: Unpack["InvoiceDeleteParams"]) -> "Invoice":
"""
- Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api#void_invoice).
+ Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api/invoices/void).
"""
...
@@ -1959,7 +1960,7 @@ def delete( # pyright: ignore[reportGeneralTypeIssues]
self, **params: Unpack["InvoiceDeleteParams"]
) -> "Invoice":
"""
- Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api#void_invoice).
+ Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api/invoices/void).
"""
return self._request_and_refresh(
"delete",
@@ -1972,7 +1973,7 @@ async def _cls_delete_async(
cls, sid: str, **params: Unpack["InvoiceDeleteParams"]
) -> "Invoice":
"""
- Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api#void_invoice).
+ Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api/invoices/void).
"""
url = "%s/%s" % (cls.class_url(), sanitize_id(sid))
return cast(
@@ -1990,7 +1991,7 @@ async def delete_async(
sid: str, **params: Unpack["InvoiceDeleteParams"]
) -> "Invoice":
"""
- Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api#void_invoice).
+ Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api/invoices/void).
"""
...
@@ -1999,7 +2000,7 @@ async def delete_async(
self, **params: Unpack["InvoiceDeleteParams"]
) -> "Invoice":
"""
- Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api#void_invoice).
+ Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api/invoices/void).
"""
...
@@ -2008,7 +2009,7 @@ async def delete_async( # pyright: ignore[reportGeneralTypeIssues]
self, **params: Unpack["InvoiceDeleteParams"]
) -> "Invoice":
"""
- Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api#void_invoice).
+ Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api/invoices/void).
"""
return await self._request_and_refresh_async(
"delete",
@@ -2799,9 +2800,9 @@ def _cls_void_invoice(
cls, invoice: str, **params: Unpack["InvoiceVoidInvoiceParams"]
) -> "Invoice":
"""
- Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api#delete_invoice), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
+ Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api/invoices/delete), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
- Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
+ Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api/invoices/create) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
"""
return cast(
"Invoice",
@@ -2820,9 +2821,9 @@ def void_invoice(
invoice: str, **params: Unpack["InvoiceVoidInvoiceParams"]
) -> "Invoice":
"""
- Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api#delete_invoice), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
+ Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api/invoices/delete), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
- Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
+ Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api/invoices/create) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
"""
...
@@ -2831,9 +2832,9 @@ def void_invoice(
self, **params: Unpack["InvoiceVoidInvoiceParams"]
) -> "Invoice":
"""
- Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api#delete_invoice), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
+ Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api/invoices/delete), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
- Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
+ Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api/invoices/create) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
"""
...
@@ -2842,9 +2843,9 @@ def void_invoice( # pyright: ignore[reportGeneralTypeIssues]
self, **params: Unpack["InvoiceVoidInvoiceParams"]
) -> "Invoice":
"""
- Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api#delete_invoice), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
+ Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api/invoices/delete), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
- Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
+ Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api/invoices/create) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
"""
return cast(
"Invoice",
@@ -2862,9 +2863,9 @@ async def _cls_void_invoice_async(
cls, invoice: str, **params: Unpack["InvoiceVoidInvoiceParams"]
) -> "Invoice":
"""
- Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api#delete_invoice), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
+ Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api/invoices/delete), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
- Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
+ Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api/invoices/create) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
"""
return cast(
"Invoice",
@@ -2883,9 +2884,9 @@ async def void_invoice_async(
invoice: str, **params: Unpack["InvoiceVoidInvoiceParams"]
) -> "Invoice":
"""
- Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api#delete_invoice), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
+ Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api/invoices/delete), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
- Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
+ Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api/invoices/create) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
"""
...
@@ -2894,9 +2895,9 @@ async def void_invoice_async(
self, **params: Unpack["InvoiceVoidInvoiceParams"]
) -> "Invoice":
"""
- Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api#delete_invoice), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
+ Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api/invoices/delete), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
- Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
+ Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api/invoices/create) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
"""
...
@@ -2905,9 +2906,9 @@ async def void_invoice_async( # pyright: ignore[reportGeneralTypeIssues]
self, **params: Unpack["InvoiceVoidInvoiceParams"]
) -> "Invoice":
"""
- Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api#delete_invoice), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
+ Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api/invoices/delete), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
- Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
+ Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api/invoices/create) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
"""
return cast(
"Invoice",
diff --git a/stripe/_invoice_item.py b/stripe/_invoice_item.py
index 6fe83f387..b507ee8ae 100644
--- a/stripe/_invoice_item.py
+++ b/stripe/_invoice_item.py
@@ -168,7 +168,7 @@ class DiscountAmount(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
@@ -198,7 +198,11 @@ class DiscountAmount(StripeObject):
proration_details: Optional[ProrationDetails]
quantity: int
"""
- Quantity of units for the invoice item. If the invoice item is a proration, the quantity of the subscription that the proration was computed for.
+ Quantity of units for the invoice item in integer format, with any decimal precision truncated. For the item's full-precision decimal quantity, use `quantity_decimal`. This field will be deprecated in favor of `quantity_decimal` in a future version. If the invoice item is a proration, the quantity of the subscription that the proration was computed for.
+ """
+ quantity_decimal: str
+ """
+ Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
"""
tax_rates: Optional[List["TaxRate"]]
"""
diff --git a/stripe/_invoice_line_item.py b/stripe/_invoice_line_item.py
index edcfcf2fe..190863831 100644
--- a/stripe/_invoice_line_item.py
+++ b/stripe/_invoice_line_item.py
@@ -265,7 +265,7 @@ class TaxRateDetails(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
@@ -290,7 +290,11 @@ class TaxRateDetails(StripeObject):
"""
quantity: Optional[int]
"""
- The quantity of the subscription, if the line item is a subscription or a proration.
+ Quantity of units for the invoice line item in integer format, with any decimal precision truncated. For the line item's full-precision decimal quantity, use `quantity_decimal`. This field will be deprecated in favor of `quantity_decimal` in a future version. If the line item is a proration or subscription, the quantity of the subscription that the proration was computed for.
+ """
+ quantity_decimal: Optional[str]
+ """
+ Non-negative decimal with at most 12 decimal places. The quantity of units for the line item.
"""
subscription: Optional[ExpandableField["Subscription"]]
subtotal: int
diff --git a/stripe/_invoice_payment.py b/stripe/_invoice_payment.py
index 2ae5a43a2..f88523c6f 100644
--- a/stripe/_invoice_payment.py
+++ b/stripe/_invoice_payment.py
@@ -92,7 +92,7 @@ class StatusTransitions(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["invoice_payment"]
"""
diff --git a/stripe/_invoice_rendering_template.py b/stripe/_invoice_rendering_template.py
index 3991ec483..c5a0a4c40 100644
--- a/stripe/_invoice_rendering_template.py
+++ b/stripe/_invoice_rendering_template.py
@@ -42,7 +42,7 @@ class InvoiceRenderingTemplate(
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
diff --git a/stripe/_invoice_service.py b/stripe/_invoice_service.py
index 3a389612a..a201d0504 100644
--- a/stripe/_invoice_service.py
+++ b/stripe/_invoice_service.py
@@ -82,7 +82,7 @@ def delete(
options: Optional["RequestOptions"] = None,
) -> "Invoice":
"""
- Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api#void_invoice).
+ Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api/invoices/void).
"""
return cast(
"Invoice",
@@ -102,7 +102,7 @@ async def delete_async(
options: Optional["RequestOptions"] = None,
) -> "Invoice":
"""
- Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api#void_invoice).
+ Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api/invoices/void).
"""
return cast(
"Invoice",
@@ -249,7 +249,7 @@ def create(
options: Optional["RequestOptions"] = None,
) -> "Invoice":
"""
- This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](https://docs.stripe.com/api#finalize_invoice) or send](https://docs.stripe.com/api/invoices/pay) the invoice to your customers.
+ This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](/api/invoices/pay) or send](https://docs.stripe.com/api/invoices/finalize) the invoice to your customers.
"""
return cast(
"Invoice",
@@ -268,7 +268,7 @@ async def create_async(
options: Optional["RequestOptions"] = None,
) -> "Invoice":
"""
- This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](https://docs.stripe.com/api#finalize_invoice) or send](https://docs.stripe.com/api/invoices/pay) the invoice to your customers.
+ This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](/api/invoices/pay) or send](https://docs.stripe.com/api/invoices/finalize) the invoice to your customers.
"""
return cast(
"Invoice",
@@ -706,9 +706,9 @@ def void_invoice(
options: Optional["RequestOptions"] = None,
) -> "Invoice":
"""
- Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api#delete_invoice), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
+ Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api/invoices/delete), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
- Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
+ Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api/invoices/create) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
"""
return cast(
"Invoice",
@@ -730,9 +730,9 @@ async def void_invoice_async(
options: Optional["RequestOptions"] = None,
) -> "Invoice":
"""
- Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api#delete_invoice), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
+ Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api/invoices/delete), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
- Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
+ Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api/invoices/create) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
"""
return cast(
"Invoice",
diff --git a/stripe/_mandate.py b/stripe/_mandate.py
index d204b2a8c..912c1a358 100644
--- a/stripe/_mandate.py
+++ b/stripe/_mandate.py
@@ -211,6 +211,24 @@ class SepaDebit(StripeObject):
The URL of the mandate. This URL generally contains sensitive information about the customer and should be shared with them exclusively.
"""
+ class Upi(StripeObject):
+ amount: Optional[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: Optional[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: Optional[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: Optional[int]
+ """
+ End date of the mandate or subscription.
+ """
+
class UsBankAccount(StripeObject):
collection_method: Optional[Literal["paper"]]
"""
@@ -237,6 +255,7 @@ class UsBankAccount(StripeObject):
"""
This mandate corresponds with a specific payment method type. The `payment_method_details` includes an additional hash with the same name and contains mandate information that's specific to that payment method.
"""
+ upi: Optional[Upi]
us_bank_account: Optional[UsBankAccount]
_inner_class_types = {
"acss_debit": AcssDebit,
@@ -255,6 +274,7 @@ class UsBankAccount(StripeObject):
"payto": Payto,
"revolut_pay": RevolutPay,
"sepa_debit": SepaDebit,
+ "upi": Upi,
"us_bank_account": UsBankAccount,
}
@@ -275,7 +295,7 @@ class SingleUse(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
multi_use: Optional[MultiUse]
object: Literal["mandate"]
diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py
index 9fd003aab..d419b53bb 100644
--- a/stripe/_payment_attempt_record.py
+++ b/stripe/_payment_attempt_record.py
@@ -483,6 +483,24 @@ class ThreeDSecure(StripeObject):
"""
For authenticated transactions: Indicates how the issuing bank authenticated the customer.
"""
+ cryptogram: Optional[str]
+ """
+ The 3D Secure cryptogram, also known as the "authentication value" (AAV, CAVV or AEVV).
+ """
+ electronic_commerce_indicator: Optional[
+ Literal["01", "02", "03", "04", "05", "06", "07"]
+ ]
+ """
+ The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of authentication was performed.
+ """
+ exemption_indicator: Optional[Literal["low_risk", "none"]]
+ """
+ The exemption requested via 3DS and accepted by the issuer at authentication time.
+ """
+ exemption_indicator_applied: Optional[bool]
+ """
+ Whether Stripe requested the value of `exemption_indicator` in the transaction. This will depend on the outcome of Stripe's internal risk assessment.
+ """
result: Optional[
Literal[
"attempt_acknowledged",
@@ -544,19 +562,21 @@ class GooglePay(StripeObject):
"""
The authorization code of the payment.
"""
- brand: Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
+ brand: Optional[
+ Literal[
+ "amex",
+ "cartes_bancaires",
+ "diners",
+ "discover",
+ "eftpos_au",
+ "interac",
+ "jcb",
+ "link",
+ "mastercard",
+ "unionpay",
+ "unknown",
+ "visa",
+ ]
]
"""
Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
@@ -577,11 +597,11 @@ class GooglePay(StripeObject):
"""
A high-level description of the type of cards issued in this range.
"""
- exp_month: int
+ exp_month: Optional[int]
"""
Two-digit number representing the card's expiration month.
"""
- exp_year: int
+ exp_year: Optional[int]
"""
Four-digit number representing the card's expiration year.
"""
@@ -591,7 +611,7 @@ class GooglePay(StripeObject):
*As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
"""
- funding: Literal["credit", "debit", "prepaid", "unknown"]
+ funding: Optional[Literal["credit", "debit", "prepaid", "unknown"]]
"""
Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
"""
@@ -607,7 +627,7 @@ class GooglePay(StripeObject):
"""
The name of the card's issuing bank.
"""
- last4: str
+ last4: Optional[str]
"""
The last four digits of the card.
"""
@@ -871,7 +891,9 @@ class Crypto(StripeObject):
"""
The wallet address of the customer.
"""
- network: Optional[Literal["base", "ethereum", "polygon", "solana"]]
+ network: Optional[
+ Literal["base", "ethereum", "polygon", "solana", "tempo"]
+ ]
"""
The blockchain network that the transaction was sent on.
"""
@@ -1075,8 +1097,7 @@ class Ideal(StripeObject):
"""
verified_name: Optional[str]
"""
- Owner's verified full name. Values are verified or provided by iDEAL directly
- (if supported) at the time of authorization or settlement. They cannot be set or mutated.
+ Owner's verified full name. Values are verified or provided by iDEAL directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
"""
class InteracPresent(StripeObject):
@@ -1685,13 +1706,11 @@ class Sofort(StripeObject):
Literal["de", "en", "es", "fr", "it", "nl", "pl"]
]
"""
- Preferred language of the SOFORT authorization page that the customer is redirected to.
- Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl`
+ Preferred language of the SOFORT authorization page that the customer is redirected to. Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl`
"""
verified_name: Optional[str]
"""
- Owner's verified full name. Values are verified or provided by SOFORT directly
- (if supported) at the time of authorization or settlement. They cannot be set or mutated.
+ Owner's verified full name. Values are verified or provided by SOFORT directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
"""
class StripeAccount(StripeObject):
@@ -1714,6 +1733,12 @@ class Swish(StripeObject):
class Twint(StripeObject):
pass
+ class Upi(StripeObject):
+ vpa: Optional[str]
+ """
+ Customer's unique Virtual Payment Address.
+ """
+
class UsBankAccount(StripeObject):
account_holder_type: Optional[Literal["company", "individual"]]
"""
@@ -1852,6 +1877,7 @@ class Zip(StripeObject):
An additional hash is included on `payment_method_details` with a name matching this value.
It contains information specific to the payment method.
"""
+ upi: Optional[Upi]
us_bank_account: Optional[UsBankAccount]
wechat: Optional[Wechat]
wechat_pay: Optional[WechatPay]
@@ -1912,6 +1938,7 @@ class Zip(StripeObject):
"stripe_account": StripeAccount,
"swish": Swish,
"twint": Twint,
+ "upi": Upi,
"us_bank_account": UsBankAccount,
"wechat": Wechat,
"wechat_pay": WechatPay,
@@ -2032,7 +2059,7 @@ class Address(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py
index 8526643f2..0fe6a467b 100644
--- a/stripe/_payment_intent.py
+++ b/stripe/_payment_intent.py
@@ -353,6 +353,7 @@ class LastPaymentError(StripeObject):
"routing_number_invalid",
"secret_key_required",
"sepa_unsupported_account",
+ "service_period_coupon_with_metered_tiered_item_unsupported",
"setup_attempt_failed",
"setup_intent_authentication_failure",
"setup_intent_invalid_parameter",
@@ -1319,6 +1320,28 @@ class QrCode(StripeObject):
qr_code: QrCode
_inner_class_types = {"qr_code": QrCode}
+ class UpiHandleRedirectOrDisplayQrCode(StripeObject):
+ class QrCode(StripeObject):
+ expires_at: int
+ """
+ The date (unix timestamp) when the QR code expires.
+ """
+ image_url_png: str
+ """
+ The image_url_png string used to render QR code
+ """
+ image_url_svg: str
+ """
+ The image_url_svg string used to render QR code
+ """
+
+ hosted_instructions_url: str
+ """
+ The URL to the hosted UPI instructions page, which allows customers to view the QR code.
+ """
+ qr_code: QrCode
+ _inner_class_types = {"qr_code": QrCode}
+
class VerifyWithMicrodeposits(StripeObject):
arrival_date: int
"""
@@ -1414,6 +1437,9 @@ class WechatPayRedirectToIosApp(StripeObject):
"""
Type of the next action to perform. Refer to the other child attributes under `next_action` for available values. Examples include: `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`.
"""
+ upi_handle_redirect_or_display_qr_code: Optional[
+ UpiHandleRedirectOrDisplayQrCode
+ ]
use_stripe_sdk: Optional[Dict[str, Any]]
"""
When confirming a PaymentIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js.
@@ -1438,6 +1464,7 @@ class WechatPayRedirectToIosApp(StripeObject):
"promptpay_display_qr_code": PromptpayDisplayQrCode,
"redirect_to_url": RedirectToUrl,
"swish_handle_redirect_or_display_qr_code": SwishHandleRedirectOrDisplayQrCode,
+ "upi_handle_redirect_or_display_qr_code": UpiHandleRedirectOrDisplayQrCode,
"verify_with_microdeposits": VerifyWithMicrodeposits,
"wechat_pay_display_qr_code": WechatPayDisplayQrCode,
"wechat_pay_redirect_to_android_app": WechatPayRedirectToAndroidApp,
@@ -1513,7 +1540,7 @@ class MandateOptions(StripeObject):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
_inner_class_types = {"mandate_options": MandateOptions}
@@ -1740,7 +1767,7 @@ class Plan(StripeObject):
class MandateOptions(StripeObject):
amount: int
"""
- Amount to be charged for future payments.
+ Amount to be charged for future payments, specified in the presentment currency.
"""
amount_type: Literal["fixed", "maximum"]
"""
@@ -2489,6 +2516,18 @@ class Twint(StripeObject):
When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
"""
+ class Upi(StripeObject):
+ setup_future_usage: Optional[Literal["off_session", "on_session"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
class UsBankAccount(StripeObject):
class FinancialConnections(StripeObject):
class Filters(StripeObject):
@@ -2533,12 +2572,6 @@ class MandateOptions(StripeObject):
financial_connections: Optional[FinancialConnections]
mandate_options: Optional[MandateOptions]
- preferred_settlement_speed: Optional[
- Literal["fastest", "standard"]
- ]
- """
- Preferred transaction settlement speed
- """
setup_future_usage: Optional[
Literal["none", "off_session", "on_session"]
]
@@ -2565,7 +2598,7 @@ class MandateOptions(StripeObject):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
_inner_class_types = {
"financial_connections": FinancialConnections,
@@ -2653,6 +2686,7 @@ class Zip(StripeObject):
sofort: Optional[Sofort]
swish: Optional[Swish]
twint: Optional[Twint]
+ upi: Optional[Upi]
us_bank_account: Optional[UsBankAccount]
wechat_pay: Optional[WechatPay]
zip: Optional[Zip]
@@ -2706,6 +2740,7 @@ class Zip(StripeObject):
"sofort": Sofort,
"swish": Swish,
"twint": Twint,
+ "upi": Upi,
"us_bank_account": UsBankAccount,
"wechat_pay": WechatPay,
"zip": Zip,
@@ -2940,6 +2975,7 @@ class TransferData(StripeObject):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -2964,7 +3000,7 @@ class TransferData(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
@@ -3193,7 +3229,7 @@ def _cls_cancel(
After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
- You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
+ You can directly cancel the PaymentIntent for a Checkout Session only when the PaymentIntent has a status of requires_capture. Otherwise, you must [expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire).
"""
return cast(
"PaymentIntent",
@@ -3216,7 +3252,7 @@ def cancel(
After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
- You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
+ You can directly cancel the PaymentIntent for a Checkout Session only when the PaymentIntent has a status of requires_capture. Otherwise, you must [expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire).
"""
...
@@ -3229,7 +3265,7 @@ def cancel(
After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
- You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
+ You can directly cancel the PaymentIntent for a Checkout Session only when the PaymentIntent has a status of requires_capture. Otherwise, you must [expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire).
"""
...
@@ -3242,7 +3278,7 @@ def cancel( # pyright: ignore[reportGeneralTypeIssues]
After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
- You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
+ You can directly cancel the PaymentIntent for a Checkout Session only when the PaymentIntent has a status of requires_capture. Otherwise, you must [expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire).
"""
return cast(
"PaymentIntent",
@@ -3264,7 +3300,7 @@ async def _cls_cancel_async(
After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
- You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
+ You can directly cancel the PaymentIntent for a Checkout Session only when the PaymentIntent has a status of requires_capture. Otherwise, you must [expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire).
"""
return cast(
"PaymentIntent",
@@ -3287,7 +3323,7 @@ async def cancel_async(
After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
- You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
+ You can directly cancel the PaymentIntent for a Checkout Session only when the PaymentIntent has a status of requires_capture. Otherwise, you must [expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire).
"""
...
@@ -3300,7 +3336,7 @@ async def cancel_async(
After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
- You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
+ You can directly cancel the PaymentIntent for a Checkout Session only when the PaymentIntent has a status of requires_capture. Otherwise, you must [expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire).
"""
...
@@ -3313,7 +3349,7 @@ async def cancel_async( # pyright: ignore[reportGeneralTypeIssues]
After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
- You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
+ You can directly cancel the PaymentIntent for a Checkout Session only when the PaymentIntent has a status of requires_capture. Otherwise, you must [expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire).
"""
return cast(
"PaymentIntent",
diff --git a/stripe/_payment_intent_service.py b/stripe/_payment_intent_service.py
index 8c55091fc..2370ce4e4 100644
--- a/stripe/_payment_intent_service.py
+++ b/stripe/_payment_intent_service.py
@@ -379,7 +379,7 @@ def cancel(
After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
- You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
+ You can directly cancel the PaymentIntent for a Checkout Session only when the PaymentIntent has a status of requires_capture. Otherwise, you must [expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire).
"""
return cast(
"PaymentIntent",
@@ -405,7 +405,7 @@ async def cancel_async(
After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
- You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
+ You can directly cancel the PaymentIntent for a Checkout Session only when the PaymentIntent has a status of requires_capture. Otherwise, you must [expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire).
"""
return cast(
"PaymentIntent",
diff --git a/stripe/_payment_link.py b/stripe/_payment_link.py
index 1b2f91f3f..57278bc04 100644
--- a/stripe/_payment_link.py
+++ b/stripe/_payment_link.py
@@ -807,7 +807,7 @@ class TransferData(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
@@ -873,6 +873,7 @@ class TransferData(StripeObject):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py
index debb3e03b..f9ec2088b 100644
--- a/stripe/_payment_method.py
+++ b/stripe/_payment_method.py
@@ -1313,6 +1313,12 @@ class Swish(StripeObject):
class Twint(StripeObject):
pass
+ class Upi(StripeObject):
+ vpa: Optional[str]
+ """
+ Customer's unique Virtual Payment Address
+ """
+
class UsBankAccount(StripeObject):
class Networks(StripeObject):
preferred: Optional[str]
@@ -1459,7 +1465,7 @@ class Zip(StripeObject):
link: Optional[Link]
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
mb_way: Optional[MbWay]
metadata: Optional[Dict[str, str]]
@@ -1545,6 +1551,7 @@ class Zip(StripeObject):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -1552,6 +1559,7 @@ class Zip(StripeObject):
"""
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.
"""
+ upi: Optional[Upi]
us_bank_account: Optional[UsBankAccount]
wechat_pay: Optional[WechatPay]
zip: Optional[Zip]
@@ -2057,6 +2065,7 @@ async def retrieve_async(
"sofort": Sofort,
"swish": Swish,
"twint": Twint,
+ "upi": Upi,
"us_bank_account": UsBankAccount,
"wechat_pay": WechatPay,
"zip": Zip,
diff --git a/stripe/_payment_method_configuration.py b/stripe/_payment_method_configuration.py
index 710a23580..f12653e49 100644
--- a/stripe/_payment_method_configuration.py
+++ b/stripe/_payment_method_configuration.py
@@ -1172,6 +1172,28 @@ class DisplayPreference(StripeObject):
display_preference: DisplayPreference
_inner_class_types = {"display_preference": DisplayPreference}
+ class Upi(StripeObject):
+ class DisplayPreference(StripeObject):
+ overridable: Optional[bool]
+ """
+ For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
+ """
+ preference: Literal["none", "off", "on"]
+ """
+ The account's display preference.
+ """
+ value: Literal["off", "on"]
+ """
+ The effective display preference value.
+ """
+
+ available: bool
+ """
+ Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
+ """
+ display_preference: DisplayPreference
+ _inner_class_types = {"display_preference": DisplayPreference}
+
class UsBankAccount(StripeObject):
class DisplayPreference(StripeObject):
overridable: Optional[bool]
@@ -1286,7 +1308,7 @@ class DisplayPreference(StripeObject):
link: Optional[Link]
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
mb_way: Optional[MbWay]
mobilepay: Optional[Mobilepay]
@@ -1321,6 +1343,7 @@ class DisplayPreference(StripeObject):
sofort: Optional[Sofort]
swish: Optional[Swish]
twint: Optional[Twint]
+ upi: Optional[Upi]
us_bank_account: Optional[UsBankAccount]
wechat_pay: Optional[WechatPay]
zip: Optional[Zip]
@@ -1513,6 +1536,7 @@ async def retrieve_async(
"sofort": Sofort,
"swish": Swish,
"twint": Twint,
+ "upi": Upi,
"us_bank_account": UsBankAccount,
"wechat_pay": WechatPay,
"zip": Zip,
diff --git a/stripe/_payment_method_domain.py b/stripe/_payment_method_domain.py
index c60a1c116..3c5f48193 100644
--- a/stripe/_payment_method_domain.py
+++ b/stripe/_payment_method_domain.py
@@ -183,7 +183,7 @@ class StatusDetails(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["payment_method_domain"]
"""
diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py
index 3e30c3d8c..3ba77ca81 100644
--- a/stripe/_payment_record.py
+++ b/stripe/_payment_record.py
@@ -499,6 +499,24 @@ class ThreeDSecure(StripeObject):
"""
For authenticated transactions: Indicates how the issuing bank authenticated the customer.
"""
+ cryptogram: Optional[str]
+ """
+ The 3D Secure cryptogram, also known as the "authentication value" (AAV, CAVV or AEVV).
+ """
+ electronic_commerce_indicator: Optional[
+ Literal["01", "02", "03", "04", "05", "06", "07"]
+ ]
+ """
+ The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of authentication was performed.
+ """
+ exemption_indicator: Optional[Literal["low_risk", "none"]]
+ """
+ The exemption requested via 3DS and accepted by the issuer at authentication time.
+ """
+ exemption_indicator_applied: Optional[bool]
+ """
+ Whether Stripe requested the value of `exemption_indicator` in the transaction. This will depend on the outcome of Stripe's internal risk assessment.
+ """
result: Optional[
Literal[
"attempt_acknowledged",
@@ -560,19 +578,21 @@ class GooglePay(StripeObject):
"""
The authorization code of the payment.
"""
- brand: Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
+ brand: Optional[
+ Literal[
+ "amex",
+ "cartes_bancaires",
+ "diners",
+ "discover",
+ "eftpos_au",
+ "interac",
+ "jcb",
+ "link",
+ "mastercard",
+ "unionpay",
+ "unknown",
+ "visa",
+ ]
]
"""
Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
@@ -593,11 +613,11 @@ class GooglePay(StripeObject):
"""
A high-level description of the type of cards issued in this range.
"""
- exp_month: int
+ exp_month: Optional[int]
"""
Two-digit number representing the card's expiration month.
"""
- exp_year: int
+ exp_year: Optional[int]
"""
Four-digit number representing the card's expiration year.
"""
@@ -607,7 +627,7 @@ class GooglePay(StripeObject):
*As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
"""
- funding: Literal["credit", "debit", "prepaid", "unknown"]
+ funding: Optional[Literal["credit", "debit", "prepaid", "unknown"]]
"""
Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
"""
@@ -623,7 +643,7 @@ class GooglePay(StripeObject):
"""
The name of the card's issuing bank.
"""
- last4: str
+ last4: Optional[str]
"""
The last four digits of the card.
"""
@@ -887,7 +907,9 @@ class Crypto(StripeObject):
"""
The wallet address of the customer.
"""
- network: Optional[Literal["base", "ethereum", "polygon", "solana"]]
+ network: Optional[
+ Literal["base", "ethereum", "polygon", "solana", "tempo"]
+ ]
"""
The blockchain network that the transaction was sent on.
"""
@@ -1091,8 +1113,7 @@ class Ideal(StripeObject):
"""
verified_name: Optional[str]
"""
- Owner's verified full name. Values are verified or provided by iDEAL directly
- (if supported) at the time of authorization or settlement. They cannot be set or mutated.
+ Owner's verified full name. Values are verified or provided by iDEAL directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
"""
class InteracPresent(StripeObject):
@@ -1701,13 +1722,11 @@ class Sofort(StripeObject):
Literal["de", "en", "es", "fr", "it", "nl", "pl"]
]
"""
- Preferred language of the SOFORT authorization page that the customer is redirected to.
- Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl`
+ Preferred language of the SOFORT authorization page that the customer is redirected to. Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl`
"""
verified_name: Optional[str]
"""
- Owner's verified full name. Values are verified or provided by SOFORT directly
- (if supported) at the time of authorization or settlement. They cannot be set or mutated.
+ Owner's verified full name. Values are verified or provided by SOFORT directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
"""
class StripeAccount(StripeObject):
@@ -1730,6 +1749,12 @@ class Swish(StripeObject):
class Twint(StripeObject):
pass
+ class Upi(StripeObject):
+ vpa: Optional[str]
+ """
+ Customer's unique Virtual Payment Address.
+ """
+
class UsBankAccount(StripeObject):
account_holder_type: Optional[Literal["company", "individual"]]
"""
@@ -1868,6 +1893,7 @@ class Zip(StripeObject):
An additional hash is included on `payment_method_details` with a name matching this value.
It contains information specific to the payment method.
"""
+ upi: Optional[Upi]
us_bank_account: Optional[UsBankAccount]
wechat: Optional[Wechat]
wechat_pay: Optional[WechatPay]
@@ -1928,6 +1954,7 @@ class Zip(StripeObject):
"stripe_account": StripeAccount,
"swish": Swish,
"twint": Twint,
+ "upi": Upi,
"us_bank_account": UsBankAccount,
"wechat": Wechat,
"wechat_pay": WechatPay,
@@ -2052,7 +2079,7 @@ class Address(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/_payout.py b/stripe/_payout.py
index 93d1652cb..d70c97516 100644
--- a/stripe/_payout.py
+++ b/stripe/_payout.py
@@ -111,7 +111,7 @@ class TraceId(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
@@ -279,7 +279,7 @@ def create(cls, **params: Unpack["PayoutCreateParams"]) -> "Payout":
If your API key is in test mode, money won't actually be sent, though every other action occurs as if you're in live mode.
- If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api#balance_object) details available and pending amounts by source type.
+ If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api/balances/object) details available and pending amounts by source type.
"""
return cast(
"Payout",
@@ -299,7 +299,7 @@ async def create_async(
If your API key is in test mode, money won't actually be sent, though every other action occurs as if you're in live mode.
- If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api#balance_object) details available and pending amounts by source type.
+ If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api/balances/object) details available and pending amounts by source type.
"""
return cast(
"Payout",
diff --git a/stripe/_payout_service.py b/stripe/_payout_service.py
index db8177c53..14920cc3a 100644
--- a/stripe/_payout_service.py
+++ b/stripe/_payout_service.py
@@ -66,7 +66,7 @@ def create(
If your API key is in test mode, money won't actually be sent, though every other action occurs as if you're in live mode.
- If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api#balance_object) details available and pending amounts by source type.
+ If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api/balances/object) details available and pending amounts by source type.
"""
return cast(
"Payout",
@@ -89,7 +89,7 @@ async def create_async(
If your API key is in test mode, money won't actually be sent, though every other action occurs as if you're in live mode.
- If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api#balance_object) details available and pending amounts by source type.
+ If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api/balances/object) details available and pending amounts by source type.
"""
return cast(
"Payout",
diff --git a/stripe/_plan.py b/stripe/_plan.py
index 27ac67046..fbf1c59e2 100644
--- a/stripe/_plan.py
+++ b/stripe/_plan.py
@@ -113,7 +113,7 @@ class TransformUsage(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
diff --git a/stripe/_price.py b/stripe/_price.py
index 42e5de8d5..79e83621f 100644
--- a/stripe/_price.py
+++ b/stripe/_price.py
@@ -212,7 +212,7 @@ class TransformQuantity(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
lookup_key: Optional[str]
"""
diff --git a/stripe/_product.py b/stripe/_product.py
index 3eac066e0..9ebec26fe 100644
--- a/stripe/_product.py
+++ b/stripe/_product.py
@@ -122,7 +122,7 @@ class PackageDimensions(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
marketing_features: List[MarketingFeature]
"""
diff --git a/stripe/_product_feature.py b/stripe/_product_feature.py
index 322a8367e..580ede870 100644
--- a/stripe/_product_feature.py
+++ b/stripe/_product_feature.py
@@ -30,7 +30,7 @@ class ProductFeature(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["product_feature"]
"""
diff --git a/stripe/_promotion_code.py b/stripe/_promotion_code.py
index 54dc7c5d0..73c9dc48a 100644
--- a/stripe/_promotion_code.py
+++ b/stripe/_promotion_code.py
@@ -108,7 +108,7 @@ class CurrencyOptions(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
max_redemptions: Optional[int]
"""
diff --git a/stripe/_quote.py b/stripe/_quote.py
index 9c19717ee..71231d1b9 100644
--- a/stripe/_quote.py
+++ b/stripe/_quote.py
@@ -538,7 +538,7 @@ class TransferData(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/_review.py b/stripe/_review.py
index 13a14b9d4..69af2eabf 100644
--- a/stripe/_review.py
+++ b/stripe/_review.py
@@ -107,7 +107,7 @@ class Session(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["review"]
"""
diff --git a/stripe/_setup_attempt.py b/stripe/_setup_attempt.py
index 9244263ad..f91f3db63 100644
--- a/stripe/_setup_attempt.py
+++ b/stripe/_setup_attempt.py
@@ -402,6 +402,9 @@ class Sofort(StripeObject):
(if supported) at the time of authorization or settlement. They cannot be set or mutated.
"""
+ class Upi(StripeObject):
+ pass
+
class UsBankAccount(StripeObject):
pass
@@ -430,6 +433,7 @@ class UsBankAccount(StripeObject):
"""
The type of the payment method used in the SetupIntent (e.g., `card`). An additional hash is included on `payment_method_details` with a name matching this value. It contains confirmation-specific information for the payment method.
"""
+ upi: Optional[Upi]
us_bank_account: Optional[UsBankAccount]
_inner_class_types = {
"acss_debit": AcssDebit,
@@ -453,6 +457,7 @@ class UsBankAccount(StripeObject):
"revolut_pay": RevolutPay,
"sepa_debit": SepaDebit,
"sofort": Sofort,
+ "upi": Upi,
"us_bank_account": UsBankAccount,
}
@@ -619,6 +624,7 @@ class SetupError(StripeObject):
"routing_number_invalid",
"secret_key_required",
"sepa_unsupported_account",
+ "service_period_coupon_with_metered_tiered_item_unsupported",
"setup_attempt_failed",
"setup_intent_authentication_failure",
"setup_intent_invalid_parameter",
@@ -782,7 +788,7 @@ class SetupError(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["setup_attempt"]
"""
diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py
index b8e319381..c121cd418 100644
--- a/stripe/_setup_intent.py
+++ b/stripe/_setup_intent.py
@@ -248,6 +248,7 @@ class LastSetupError(StripeObject):
"routing_number_invalid",
"secret_key_required",
"sepa_unsupported_account",
+ "service_period_coupon_with_metered_tiered_item_unsupported",
"setup_attempt_failed",
"setup_intent_authentication_failure",
"setup_intent_invalid_parameter",
@@ -414,6 +415,28 @@ class RedirectToUrl(StripeObject):
The URL you must redirect your customer to in order to authenticate.
"""
+ class UpiHandleRedirectOrDisplayQrCode(StripeObject):
+ class QrCode(StripeObject):
+ expires_at: int
+ """
+ The date (unix timestamp) when the QR code expires.
+ """
+ image_url_png: str
+ """
+ The image_url_png string used to render QR code
+ """
+ image_url_svg: str
+ """
+ The image_url_svg string used to render QR code
+ """
+
+ hosted_instructions_url: str
+ """
+ The URL to the hosted UPI instructions page, which allows customers to view the QR code.
+ """
+ qr_code: QrCode
+ _inner_class_types = {"qr_code": QrCode}
+
class VerifyWithMicrodeposits(StripeObject):
arrival_date: int
"""
@@ -436,6 +459,9 @@ class VerifyWithMicrodeposits(StripeObject):
"""
Type of the next action to perform. Refer to the other child attributes under `next_action` for available values. Examples include: `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`.
"""
+ upi_handle_redirect_or_display_qr_code: Optional[
+ UpiHandleRedirectOrDisplayQrCode
+ ]
use_stripe_sdk: Optional[Dict[str, Any]]
"""
When confirming a SetupIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js.
@@ -444,6 +470,7 @@ class VerifyWithMicrodeposits(StripeObject):
_inner_class_types = {
"cashapp_handle_redirect_or_display_qr_code": CashappHandleRedirectOrDisplayQrCode,
"redirect_to_url": RedirectToUrl,
+ "upi_handle_redirect_or_display_qr_code": UpiHandleRedirectOrDisplayQrCode,
"verify_with_microdeposits": VerifyWithMicrodeposits,
}
@@ -492,7 +519,7 @@ class MandateOptions(StripeObject):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
_inner_class_types = {"mandate_options": MandateOptions}
@@ -513,7 +540,7 @@ class Card(StripeObject):
class MandateOptions(StripeObject):
amount: int
"""
- Amount to be charged for future payments.
+ Amount to be charged for future payments, specified in the presentment currency.
"""
amount_type: Literal["fixed", "maximum"]
"""
@@ -678,6 +705,28 @@ class MandateOptions(StripeObject):
mandate_options: Optional[MandateOptions]
_inner_class_types = {"mandate_options": MandateOptions}
+ class Upi(StripeObject):
+ class MandateOptions(StripeObject):
+ amount: Optional[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: Optional[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: Optional[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: Optional[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+ mandate_options: Optional[MandateOptions]
+ _inner_class_types = {"mandate_options": MandateOptions}
+
class UsBankAccount(StripeObject):
class FinancialConnections(StripeObject):
class Filters(StripeObject):
@@ -726,7 +775,7 @@ class MandateOptions(StripeObject):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
_inner_class_types = {
"financial_connections": FinancialConnections,
@@ -743,6 +792,7 @@ class MandateOptions(StripeObject):
paypal: Optional[Paypal]
payto: Optional[Payto]
sepa_debit: Optional[SepaDebit]
+ upi: Optional[Upi]
us_bank_account: Optional[UsBankAccount]
_inner_class_types = {
"acss_debit": AcssDebit,
@@ -755,6 +805,7 @@ class MandateOptions(StripeObject):
"paypal": Paypal,
"payto": Payto,
"sepa_debit": SepaDebit,
+ "upi": Upi,
"us_bank_account": UsBankAccount,
}
@@ -853,6 +904,7 @@ class MandateOptions(StripeObject):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -882,7 +934,7 @@ class MandateOptions(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
mandate: Optional[ExpandableField["Mandate"]]
"""
diff --git a/stripe/_shipping_rate.py b/stripe/_shipping_rate.py
index d62ef0b46..f3118d93d 100644
--- a/stripe/_shipping_rate.py
+++ b/stripe/_shipping_rate.py
@@ -116,7 +116,7 @@ class CurrencyOptions(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/_source.py b/stripe/_source.py
index 27d5795cd..e5a9677f4 100644
--- a/stripe/_source.py
+++ b/stripe/_source.py
@@ -532,7 +532,7 @@ class Wechat(StripeObject):
klarna: Optional[Klarna]
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
diff --git a/stripe/_source_mandate_notification.py b/stripe/_source_mandate_notification.py
index 4d99bffe1..3f5fbae43 100644
--- a/stripe/_source_mandate_notification.py
+++ b/stripe/_source_mandate_notification.py
@@ -61,7 +61,7 @@ class SepaDebit(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["source_mandate_notification"]
"""
diff --git a/stripe/_source_transaction.py b/stripe/_source_transaction.py
index c1aa0d013..52a4fc278 100644
--- a/stripe/_source_transaction.py
+++ b/stripe/_source_transaction.py
@@ -130,7 +130,7 @@ class SepaCreditTransfer(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["source_transaction"]
"""
diff --git a/stripe/_subscription.py b/stripe/_subscription.py
index 5efecb7e8..356bf2ebf 100644
--- a/stripe/_subscription.py
+++ b/stripe/_subscription.py
@@ -181,7 +181,10 @@ class CancellationDetails(StripeObject):
"""
reason: Optional[
Literal[
- "cancellation_requested", "payment_disputed", "payment_failed"
+ "canceled_by_retention_policy",
+ "cancellation_requested",
+ "payment_disputed",
+ "payment_failed",
]
]
"""
@@ -209,7 +212,7 @@ class Issuer(StripeObject):
class PauseCollection(StripeObject):
behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
"""
- The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
+ The payment collection behavior for this subscription while paused.
"""
resumes_at: Optional[int]
"""
@@ -230,7 +233,7 @@ class MandateOptions(StripeObject):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
_inner_class_types = {"mandate_options": MandateOptions}
@@ -244,7 +247,7 @@ class Card(StripeObject):
class MandateOptions(StripeObject):
amount: Optional[int]
"""
- Amount to be charged for future payments.
+ Amount to be charged for future payments, specified in the presentment currency.
"""
amount_type: Optional[Literal["fixed", "maximum"]]
"""
@@ -381,7 +384,7 @@ class Filters(StripeObject):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
_inner_class_types = {
"financial_connections": FinancialConnections,
@@ -658,7 +661,7 @@ class EndBehavior(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
@@ -686,7 +689,7 @@ class EndBehavior(StripeObject):
"""
pending_invoice_item_interval: Optional[PendingInvoiceItemInterval]
"""
- Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api#create_invoice) for the given subscription at the specified interval.
+ Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api/invoices/create) for the given subscription at the specified interval.
"""
pending_setup_intent: Optional[ExpandableField["SetupIntent"]]
"""
@@ -757,7 +760,7 @@ def _cls_cancel(
"""
Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata).
- Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
+ Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
"""
@@ -783,7 +786,7 @@ def cancel(
"""
Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata).
- Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
+ Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
"""
@@ -796,7 +799,7 @@ def cancel(
"""
Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata).
- Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
+ Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
"""
@@ -809,7 +812,7 @@ def cancel( # pyright: ignore[reportGeneralTypeIssues]
"""
Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata).
- Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
+ Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
"""
@@ -833,7 +836,7 @@ async def _cls_cancel_async(
"""
Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata).
- Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
+ Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
"""
@@ -859,7 +862,7 @@ async def cancel_async(
"""
Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata).
- Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
+ Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
"""
@@ -872,7 +875,7 @@ async def cancel_async(
"""
Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata).
- Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
+ Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
"""
@@ -885,7 +888,7 @@ async def cancel_async( # pyright: ignore[reportGeneralTypeIssues]
"""
Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata).
- Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
+ Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
"""
diff --git a/stripe/_subscription_schedule.py b/stripe/_subscription_schedule.py
index 310f53f35..3400a9a99 100644
--- a/stripe/_subscription_schedule.py
+++ b/stripe/_subscription_schedule.py
@@ -541,7 +541,7 @@ class TransferData(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py
index 58e6a02bc..bd44c71ab 100644
--- a/stripe/_subscription_service.py
+++ b/stripe/_subscription_service.py
@@ -48,7 +48,7 @@ def cancel(
"""
Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata).
- Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
+ Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
"""
@@ -76,7 +76,7 @@ async def cancel_async(
"""
Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata).
- Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
+ Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
"""
diff --git a/stripe/_tax_id.py b/stripe/_tax_id.py
index d53d614fc..c50ced8cc 100644
--- a/stripe/_tax_id.py
+++ b/stripe/_tax_id.py
@@ -96,7 +96,7 @@ class Verification(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["tax_id"]
"""
diff --git a/stripe/_tax_rate.py b/stripe/_tax_rate.py
index 017cbf94f..16c407bb0 100644
--- a/stripe/_tax_rate.py
+++ b/stripe/_tax_rate.py
@@ -89,7 +89,7 @@ class FlatAmount(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
diff --git a/stripe/_token.py b/stripe/_token.py
index 4415cb529..d316f43f5 100644
--- a/stripe/_token.py
+++ b/stripe/_token.py
@@ -68,7 +68,7 @@ class Token(CreateableAPIResource["Token"]):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["token"]
"""
diff --git a/stripe/_topup.py b/stripe/_topup.py
index dab41171d..ca1d20f3f 100644
--- a/stripe/_topup.py
+++ b/stripe/_topup.py
@@ -59,7 +59,7 @@ class Topup(
"""
failure_code: Optional[str]
"""
- Error code explaining reason for top-up failure if available (see [the errors section](https://docs.stripe.com/api#errors) for a list of codes).
+ Error code explaining reason for top-up failure if available (see [the errors section](https://docs.stripe.com/api/errors) for a list of codes).
"""
failure_message: Optional[str]
"""
@@ -71,7 +71,7 @@ class Topup(
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/_transfer.py b/stripe/_transfer.py
index d7a6a2179..489907ab5 100644
--- a/stripe/_transfer.py
+++ b/stripe/_transfer.py
@@ -91,7 +91,7 @@ class Transfer(
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/_webhook_endpoint.py b/stripe/_webhook_endpoint.py
index 100640ce0..4ea07b9f8 100644
--- a/stripe/_webhook_endpoint.py
+++ b/stripe/_webhook_endpoint.py
@@ -74,7 +74,7 @@ class WebhookEndpoint(
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/apps/_secret.py b/stripe/apps/_secret.py
index d258c4ddc..6a6a9e756 100644
--- a/stripe/apps/_secret.py
+++ b/stripe/apps/_secret.py
@@ -59,7 +59,7 @@ class Scope(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
name: str
"""
diff --git a/stripe/billing/_alert.py b/stripe/billing/_alert.py
index 3699c662c..e35800949 100644
--- a/stripe/billing/_alert.py
+++ b/stripe/billing/_alert.py
@@ -69,7 +69,7 @@ class Filter(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ 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.alert"]
"""
diff --git a/stripe/billing/_alert_triggered.py b/stripe/billing/_alert_triggered.py
index 3e33e9406..b74c4c36d 100644
--- a/stripe/billing/_alert_triggered.py
+++ b/stripe/billing/_alert_triggered.py
@@ -26,7 +26,7 @@ class AlertTriggered(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ 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.alert_triggered"]
"""
diff --git a/stripe/billing/_credit_balance_summary.py b/stripe/billing/_credit_balance_summary.py
index c7a5c9a18..c87a468b2 100644
--- a/stripe/billing/_credit_balance_summary.py
+++ b/stripe/billing/_credit_balance_summary.py
@@ -86,7 +86,7 @@ class Monetary(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ 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.credit_balance_summary"]
"""
diff --git a/stripe/billing/_credit_balance_transaction.py b/stripe/billing/_credit_balance_transaction.py
index f66eb7b02..667756fac 100644
--- a/stripe/billing/_credit_balance_transaction.py
+++ b/stripe/billing/_credit_balance_transaction.py
@@ -150,7 +150,7 @@ class CreditsApplied(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ 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.credit_balance_transaction"]
"""
diff --git a/stripe/billing/_credit_grant.py b/stripe/billing/_credit_grant.py
index 2c091e302..1a157d22b 100644
--- a/stripe/billing/_credit_grant.py
+++ b/stripe/billing/_credit_grant.py
@@ -122,7 +122,7 @@ class Price(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/billing/_meter.py b/stripe/billing/_meter.py
index 5f7d7b114..28c7b998a 100644
--- a/stripe/billing/_meter.py
+++ b/stripe/billing/_meter.py
@@ -95,7 +95,7 @@ class ValueSettings(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ 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.meter"]
"""
diff --git a/stripe/billing/_meter_event.py b/stripe/billing/_meter_event.py
index 8fa8003d3..dd2abf576 100644
--- a/stripe/billing/_meter_event.py
+++ b/stripe/billing/_meter_event.py
@@ -32,7 +32,7 @@ class MeterEvent(CreateableAPIResource["MeterEvent"]):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ 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.meter_event"]
"""
diff --git a/stripe/billing/_meter_event_adjustment.py b/stripe/billing/_meter_event_adjustment.py
index be7a0b935..9e506e3ee 100644
--- a/stripe/billing/_meter_event_adjustment.py
+++ b/stripe/billing/_meter_event_adjustment.py
@@ -36,7 +36,7 @@ class Cancel(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ 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.meter_event_adjustment"]
"""
diff --git a/stripe/billing/_meter_event_summary.py b/stripe/billing/_meter_event_summary.py
index 823b330c3..76e123fb2 100644
--- a/stripe/billing/_meter_event_summary.py
+++ b/stripe/billing/_meter_event_summary.py
@@ -30,7 +30,7 @@ class MeterEventSummary(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
meter: str
"""
diff --git a/stripe/billing_portal/_configuration.py b/stripe/billing_portal/_configuration.py
index 3dc14ebc1..a51ecdb2f 100644
--- a/stripe/billing_portal/_configuration.py
+++ b/stripe/billing_portal/_configuration.py
@@ -254,7 +254,7 @@ class LoginPage(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
login_page: LoginPage
metadata: Optional[Dict[str, str]]
diff --git a/stripe/billing_portal/_session.py b/stripe/billing_portal/_session.py
index fe61bda62..ae74b82e8 100644
--- a/stripe/billing_portal/_session.py
+++ b/stripe/billing_portal/_session.py
@@ -194,7 +194,7 @@ class Item(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
locale: Optional[
Literal[
diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py
index 569118419..324c7a80b 100644
--- a/stripe/checkout/_session.py
+++ b/stripe/checkout/_session.py
@@ -813,7 +813,7 @@ class MandateOptions(StripeObject):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
_inner_class_types = {"mandate_options": MandateOptions}
@@ -1541,6 +1541,40 @@ class Twint(StripeObject):
When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
"""
+ class Upi(StripeObject):
+ class MandateOptions(StripeObject):
+ amount: Optional[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: Optional[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: Optional[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: Optional[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+ mandate_options: Optional[MandateOptions]
+ setup_future_usage: Optional[
+ Literal["none", "off_session", "on_session"]
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+ _inner_class_types = {"mandate_options": MandateOptions}
+
class UsBankAccount(StripeObject):
class FinancialConnections(StripeObject):
class Filters(StripeObject):
@@ -1596,7 +1630,7 @@ class Filters(StripeObject):
"""
verification_method: Optional[Literal["automatic", "instant"]]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
_inner_class_types = {
"financial_connections": FinancialConnections
@@ -1643,6 +1677,7 @@ class Filters(StripeObject):
sofort: Optional[Sofort]
swish: Optional[Swish]
twint: Optional[Twint]
+ upi: Optional[Upi]
us_bank_account: Optional[UsBankAccount]
_inner_class_types = {
"acss_debit": AcssDebit,
@@ -1686,6 +1721,7 @@ class Filters(StripeObject):
"sofort": Sofort,
"swish": Swish,
"twint": Twint,
+ "upi": Upi,
"us_bank_account": UsBankAccount,
}
@@ -2264,6 +2300,10 @@ class Link(StripeObject):
"""
Unique identifier for the object.
"""
+ integration_identifier: Optional[str]
+ """
+ The integration identifier for this Checkout Session. Multiple Checkout Sessions can have the same integration identifier.
+ """
invoice: Optional[ExpandableField["Invoice"]]
"""
ID of the invoice created by the Checkout Session, if it exists.
@@ -2278,7 +2318,7 @@ class Link(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
locale: Optional[
Literal[
@@ -2447,7 +2487,17 @@ class Link(StripeObject):
"""
Tax and discount details for the computed total amount.
"""
- ui_mode: Optional[Literal["custom", "embedded", "hosted"]]
+ ui_mode: Optional[
+ Literal[
+ "custom",
+ "elements",
+ "embedded",
+ "embedded_page",
+ "form",
+ "hosted",
+ "hosted_page",
+ ]
+ ]
"""
The UI mode of the Session. Defaults to `hosted`.
"""
diff --git a/stripe/climate/_supplier.py b/stripe/climate/_supplier.py
index d65e2100d..d1a4233e6 100644
--- a/stripe/climate/_supplier.py
+++ b/stripe/climate/_supplier.py
@@ -70,6 +70,7 @@ class Location(StripeObject):
"biomass_carbon_removal_and_storage",
"direct_air_capture",
"enhanced_weathering",
+ "marine_carbon_removal",
]
"""
The scientific pathway used for carbon removal.
diff --git a/stripe/entitlements/_active_entitlement.py b/stripe/entitlements/_active_entitlement.py
index b9b6c4ead..a70757a74 100644
--- a/stripe/entitlements/_active_entitlement.py
+++ b/stripe/entitlements/_active_entitlement.py
@@ -34,7 +34,7 @@ class ActiveEntitlement(ListableAPIResource["ActiveEntitlement"]):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
lookup_key: str
"""
diff --git a/stripe/entitlements/_active_entitlement_summary.py b/stripe/entitlements/_active_entitlement_summary.py
index d6eb62bad..bc9b3036b 100644
--- a/stripe/entitlements/_active_entitlement_summary.py
+++ b/stripe/entitlements/_active_entitlement_summary.py
@@ -27,7 +27,7 @@ class ActiveEntitlementSummary(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["entitlements.active_entitlement_summary"]
"""
diff --git a/stripe/entitlements/_feature.py b/stripe/entitlements/_feature.py
index c9954ef1e..68a5ef7f7 100644
--- a/stripe/entitlements/_feature.py
+++ b/stripe/entitlements/_feature.py
@@ -46,7 +46,7 @@ class Feature(
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
lookup_key: str
"""
diff --git a/stripe/financial_connections/_account.py b/stripe/financial_connections/_account.py
index 60377b1d6..aba2dc7b2 100644
--- a/stripe/financial_connections/_account.py
+++ b/stripe/financial_connections/_account.py
@@ -209,7 +209,7 @@ class TransactionRefresh(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["financial_connections.account"]
"""
diff --git a/stripe/financial_connections/_session.py b/stripe/financial_connections/_session.py
index c466897b2..cc2ad808a 100644
--- a/stripe/financial_connections/_session.py
+++ b/stripe/financial_connections/_session.py
@@ -84,7 +84,7 @@ class Filters(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["financial_connections.session"]
"""
diff --git a/stripe/financial_connections/_transaction.py b/stripe/financial_connections/_transaction.py
index 9a5369584..970366ec2 100644
--- a/stripe/financial_connections/_transaction.py
+++ b/stripe/financial_connections/_transaction.py
@@ -56,7 +56,7 @@ class StatusTransitions(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["financial_connections.transaction"]
"""
diff --git a/stripe/forwarding/_request.py b/stripe/forwarding/_request.py
index 2c6f23971..4e3cd5e63 100644
--- a/stripe/forwarding/_request.py
+++ b/stripe/forwarding/_request.py
@@ -111,7 +111,7 @@ class Header(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
diff --git a/stripe/identity/_verification_report.py b/stripe/identity/_verification_report.py
index df53ce6fb..3ffc9a0c0 100644
--- a/stripe/identity/_verification_report.py
+++ b/stripe/identity/_verification_report.py
@@ -396,7 +396,7 @@ class Error(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["identity.verification_report"]
"""
diff --git a/stripe/identity/_verification_session.py b/stripe/identity/_verification_session.py
index 374f3d5bd..5e7a40514 100644
--- a/stripe/identity/_verification_session.py
+++ b/stripe/identity/_verification_session.py
@@ -285,7 +285,7 @@ class Dob(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/issuing/_authorization.py b/stripe/issuing/_authorization.py
index 55dbb593d..bd9f02c57 100644
--- a/stripe/issuing/_authorization.py
+++ b/stripe/issuing/_authorization.py
@@ -543,7 +543,7 @@ class ThreeDSecure(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
merchant_amount: int
"""
diff --git a/stripe/issuing/_card.py b/stripe/issuing/_card.py
index c45204df3..3cf9e180f 100644
--- a/stripe/issuing/_card.py
+++ b/stripe/issuing/_card.py
@@ -59,6 +59,16 @@ class LatestFraudWarning(StripeObject):
The type of fraud warning that most recently took place on this card. This field updates with every new fraud warning, so the value changes over time. If populated, cancel and reissue the card.
"""
+ class LifecycleControls(StripeObject):
+ class CancelAfter(StripeObject):
+ payment_count: int
+ """
+ The card is automatically cancelled when it makes this number of non-zero payment authorizations and transactions. The count includes penny authorizations, but doesn't include non-payment actions, such as authorization advice.
+ """
+
+ cancel_after: CancelAfter
+ _inner_class_types = {"cancel_after": CancelAfter}
+
class Shipping(StripeObject):
class Address(StripeObject):
city: Optional[str]
@@ -1247,9 +1257,13 @@ class GooglePay(StripeObject):
"""
Stripe's assessment of whether this card's details have been compromised. If this property isn't null, cancel and reissue the card to prevent fraudulent activity risk.
"""
+ lifecycle_controls: Optional[LifecycleControls]
+ """
+ Rules that control the lifecycle of this card, such as automatic cancellation. Refer to our [documentation](https://docs.stripe.com/issuing/controls/lifecycle-controls) for more details.
+ """
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
@@ -1980,6 +1994,7 @@ def test_helpers(self):
_inner_class_types = {
"latest_fraud_warning": LatestFraudWarning,
+ "lifecycle_controls": LifecycleControls,
"shipping": Shipping,
"spending_controls": SpendingControls,
"wallets": Wallets,
diff --git a/stripe/issuing/_cardholder.py b/stripe/issuing/_cardholder.py
index 15aecebe0..d3df65b6c 100644
--- a/stripe/issuing/_cardholder.py
+++ b/stripe/issuing/_cardholder.py
@@ -1156,7 +1156,7 @@ class SpendingLimit(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/issuing/_dispute.py b/stripe/issuing/_dispute.py
index b9a4a9fd3..37735a4b9 100644
--- a/stripe/issuing/_dispute.py
+++ b/stripe/issuing/_dispute.py
@@ -284,7 +284,7 @@ class Treasury(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
loss_reason: Optional[
Literal[
diff --git a/stripe/issuing/_personalization_design.py b/stripe/issuing/_personalization_design.py
index fcdcc5e96..466c9f0f0 100644
--- a/stripe/issuing/_personalization_design.py
+++ b/stripe/issuing/_personalization_design.py
@@ -131,7 +131,7 @@ class RejectionReasons(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
lookup_key: Optional[str]
"""
diff --git a/stripe/issuing/_physical_bundle.py b/stripe/issuing/_physical_bundle.py
index 0e5b33878..7b29c2055 100644
--- a/stripe/issuing/_physical_bundle.py
+++ b/stripe/issuing/_physical_bundle.py
@@ -45,7 +45,7 @@ class Features(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
name: str
"""
diff --git a/stripe/issuing/_token.py b/stripe/issuing/_token.py
index 1a76ce121..71a87a2aa 100644
--- a/stripe/issuing/_token.py
+++ b/stripe/issuing/_token.py
@@ -71,7 +71,7 @@ class Mastercard(StripeObject):
"""
class Visa(StripeObject):
- card_reference_id: str
+ card_reference_id: Optional[str]
"""
A unique reference ID from Visa to represent the card account number.
"""
@@ -212,7 +212,7 @@ class CardholderAddress(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
network: Literal["mastercard", "visa"]
"""
diff --git a/stripe/issuing/_transaction.py b/stripe/issuing/_transaction.py
index c5b3dff39..f78435861 100644
--- a/stripe/issuing/_transaction.py
+++ b/stripe/issuing/_transaction.py
@@ -392,7 +392,7 @@ class Treasury(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
merchant_amount: int
"""
diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py
index a1e842e09..3a98bf711 100644
--- a/stripe/params/__init__.py
+++ b/stripe/params/__init__.py
@@ -107,6 +107,7 @@
AccountCreateParamsCapabilitiesTransfers as AccountCreateParamsCapabilitiesTransfers,
AccountCreateParamsCapabilitiesTreasury as AccountCreateParamsCapabilitiesTreasury,
AccountCreateParamsCapabilitiesTwintPayments as AccountCreateParamsCapabilitiesTwintPayments,
+ AccountCreateParamsCapabilitiesUpiPayments as AccountCreateParamsCapabilitiesUpiPayments,
AccountCreateParamsCapabilitiesUsBankAccountAchPayments as AccountCreateParamsCapabilitiesUsBankAccountAchPayments,
AccountCreateParamsCapabilitiesUsBankTransferPayments as AccountCreateParamsCapabilitiesUsBankTransferPayments,
AccountCreateParamsCapabilitiesZipPayments as AccountCreateParamsCapabilitiesZipPayments,
@@ -446,6 +447,7 @@
AccountUpdateParamsCapabilitiesTransfers as AccountUpdateParamsCapabilitiesTransfers,
AccountUpdateParamsCapabilitiesTreasury as AccountUpdateParamsCapabilitiesTreasury,
AccountUpdateParamsCapabilitiesTwintPayments as AccountUpdateParamsCapabilitiesTwintPayments,
+ AccountUpdateParamsCapabilitiesUpiPayments as AccountUpdateParamsCapabilitiesUpiPayments,
AccountUpdateParamsCapabilitiesUsBankAccountAchPayments as AccountUpdateParamsCapabilitiesUsBankAccountAchPayments,
AccountUpdateParamsCapabilitiesUsBankTransferPayments as AccountUpdateParamsCapabilitiesUsBankTransferPayments,
AccountUpdateParamsCapabilitiesZipPayments as AccountUpdateParamsCapabilitiesZipPayments,
@@ -672,6 +674,8 @@
ConfirmationTokenCreateParamsPaymentMethodDataSofort as ConfirmationTokenCreateParamsPaymentMethodDataSofort,
ConfirmationTokenCreateParamsPaymentMethodDataSwish as ConfirmationTokenCreateParamsPaymentMethodDataSwish,
ConfirmationTokenCreateParamsPaymentMethodDataTwint as ConfirmationTokenCreateParamsPaymentMethodDataTwint,
+ ConfirmationTokenCreateParamsPaymentMethodDataUpi as ConfirmationTokenCreateParamsPaymentMethodDataUpi,
+ ConfirmationTokenCreateParamsPaymentMethodDataUpiMandateOptions as ConfirmationTokenCreateParamsPaymentMethodDataUpiMandateOptions,
ConfirmationTokenCreateParamsPaymentMethodDataUsBankAccount as ConfirmationTokenCreateParamsPaymentMethodDataUsBankAccount,
ConfirmationTokenCreateParamsPaymentMethodDataWechatPay as ConfirmationTokenCreateParamsPaymentMethodDataWechatPay,
ConfirmationTokenCreateParamsPaymentMethodDataZip as ConfirmationTokenCreateParamsPaymentMethodDataZip,
@@ -1445,6 +1449,8 @@
PaymentIntentConfirmParamsPaymentMethodDataSofort as PaymentIntentConfirmParamsPaymentMethodDataSofort,
PaymentIntentConfirmParamsPaymentMethodDataSwish as PaymentIntentConfirmParamsPaymentMethodDataSwish,
PaymentIntentConfirmParamsPaymentMethodDataTwint as PaymentIntentConfirmParamsPaymentMethodDataTwint,
+ PaymentIntentConfirmParamsPaymentMethodDataUpi as PaymentIntentConfirmParamsPaymentMethodDataUpi,
+ PaymentIntentConfirmParamsPaymentMethodDataUpiMandateOptions as PaymentIntentConfirmParamsPaymentMethodDataUpiMandateOptions,
PaymentIntentConfirmParamsPaymentMethodDataUsBankAccount as PaymentIntentConfirmParamsPaymentMethodDataUsBankAccount,
PaymentIntentConfirmParamsPaymentMethodDataWechatPay as PaymentIntentConfirmParamsPaymentMethodDataWechatPay,
PaymentIntentConfirmParamsPaymentMethodDataZip as PaymentIntentConfirmParamsPaymentMethodDataZip,
@@ -1514,6 +1520,8 @@
PaymentIntentConfirmParamsPaymentMethodOptionsSofort as PaymentIntentConfirmParamsPaymentMethodOptionsSofort,
PaymentIntentConfirmParamsPaymentMethodOptionsSwish as PaymentIntentConfirmParamsPaymentMethodOptionsSwish,
PaymentIntentConfirmParamsPaymentMethodOptionsTwint as PaymentIntentConfirmParamsPaymentMethodOptionsTwint,
+ PaymentIntentConfirmParamsPaymentMethodOptionsUpi as PaymentIntentConfirmParamsPaymentMethodOptionsUpi,
+ PaymentIntentConfirmParamsPaymentMethodOptionsUpiMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsUpiMandateOptions,
PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccount as PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccount,
PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections as PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
@@ -1598,6 +1606,8 @@
PaymentIntentCreateParamsPaymentMethodDataSofort as PaymentIntentCreateParamsPaymentMethodDataSofort,
PaymentIntentCreateParamsPaymentMethodDataSwish as PaymentIntentCreateParamsPaymentMethodDataSwish,
PaymentIntentCreateParamsPaymentMethodDataTwint as PaymentIntentCreateParamsPaymentMethodDataTwint,
+ PaymentIntentCreateParamsPaymentMethodDataUpi as PaymentIntentCreateParamsPaymentMethodDataUpi,
+ PaymentIntentCreateParamsPaymentMethodDataUpiMandateOptions as PaymentIntentCreateParamsPaymentMethodDataUpiMandateOptions,
PaymentIntentCreateParamsPaymentMethodDataUsBankAccount as PaymentIntentCreateParamsPaymentMethodDataUsBankAccount,
PaymentIntentCreateParamsPaymentMethodDataWechatPay as PaymentIntentCreateParamsPaymentMethodDataWechatPay,
PaymentIntentCreateParamsPaymentMethodDataZip as PaymentIntentCreateParamsPaymentMethodDataZip,
@@ -1667,6 +1677,8 @@
PaymentIntentCreateParamsPaymentMethodOptionsSofort as PaymentIntentCreateParamsPaymentMethodOptionsSofort,
PaymentIntentCreateParamsPaymentMethodOptionsSwish as PaymentIntentCreateParamsPaymentMethodOptionsSwish,
PaymentIntentCreateParamsPaymentMethodOptionsTwint as PaymentIntentCreateParamsPaymentMethodOptionsTwint,
+ PaymentIntentCreateParamsPaymentMethodOptionsUpi as PaymentIntentCreateParamsPaymentMethodOptionsUpi,
+ PaymentIntentCreateParamsPaymentMethodOptionsUpiMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsUpiMandateOptions,
PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccount as PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccount,
PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections as PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
@@ -1772,6 +1784,8 @@
PaymentIntentModifyParamsPaymentMethodDataSofort as PaymentIntentModifyParamsPaymentMethodDataSofort,
PaymentIntentModifyParamsPaymentMethodDataSwish as PaymentIntentModifyParamsPaymentMethodDataSwish,
PaymentIntentModifyParamsPaymentMethodDataTwint as PaymentIntentModifyParamsPaymentMethodDataTwint,
+ PaymentIntentModifyParamsPaymentMethodDataUpi as PaymentIntentModifyParamsPaymentMethodDataUpi,
+ PaymentIntentModifyParamsPaymentMethodDataUpiMandateOptions as PaymentIntentModifyParamsPaymentMethodDataUpiMandateOptions,
PaymentIntentModifyParamsPaymentMethodDataUsBankAccount as PaymentIntentModifyParamsPaymentMethodDataUsBankAccount,
PaymentIntentModifyParamsPaymentMethodDataWechatPay as PaymentIntentModifyParamsPaymentMethodDataWechatPay,
PaymentIntentModifyParamsPaymentMethodDataZip as PaymentIntentModifyParamsPaymentMethodDataZip,
@@ -1841,6 +1855,8 @@
PaymentIntentModifyParamsPaymentMethodOptionsSofort as PaymentIntentModifyParamsPaymentMethodOptionsSofort,
PaymentIntentModifyParamsPaymentMethodOptionsSwish as PaymentIntentModifyParamsPaymentMethodOptionsSwish,
PaymentIntentModifyParamsPaymentMethodOptionsTwint as PaymentIntentModifyParamsPaymentMethodOptionsTwint,
+ PaymentIntentModifyParamsPaymentMethodOptionsUpi as PaymentIntentModifyParamsPaymentMethodOptionsUpi,
+ PaymentIntentModifyParamsPaymentMethodOptionsUpiMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsUpiMandateOptions,
PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccount as PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccount,
PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections as PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
@@ -1926,6 +1942,8 @@
PaymentIntentUpdateParamsPaymentMethodDataSofort as PaymentIntentUpdateParamsPaymentMethodDataSofort,
PaymentIntentUpdateParamsPaymentMethodDataSwish as PaymentIntentUpdateParamsPaymentMethodDataSwish,
PaymentIntentUpdateParamsPaymentMethodDataTwint as PaymentIntentUpdateParamsPaymentMethodDataTwint,
+ PaymentIntentUpdateParamsPaymentMethodDataUpi as PaymentIntentUpdateParamsPaymentMethodDataUpi,
+ PaymentIntentUpdateParamsPaymentMethodDataUpiMandateOptions as PaymentIntentUpdateParamsPaymentMethodDataUpiMandateOptions,
PaymentIntentUpdateParamsPaymentMethodDataUsBankAccount as PaymentIntentUpdateParamsPaymentMethodDataUsBankAccount,
PaymentIntentUpdateParamsPaymentMethodDataWechatPay as PaymentIntentUpdateParamsPaymentMethodDataWechatPay,
PaymentIntentUpdateParamsPaymentMethodDataZip as PaymentIntentUpdateParamsPaymentMethodDataZip,
@@ -1995,6 +2013,8 @@
PaymentIntentUpdateParamsPaymentMethodOptionsSofort as PaymentIntentUpdateParamsPaymentMethodOptionsSofort,
PaymentIntentUpdateParamsPaymentMethodOptionsSwish as PaymentIntentUpdateParamsPaymentMethodOptionsSwish,
PaymentIntentUpdateParamsPaymentMethodOptionsTwint as PaymentIntentUpdateParamsPaymentMethodOptionsTwint,
+ PaymentIntentUpdateParamsPaymentMethodOptionsUpi as PaymentIntentUpdateParamsPaymentMethodOptionsUpi,
+ PaymentIntentUpdateParamsPaymentMethodOptionsUpiMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsUpiMandateOptions,
PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccount as PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccount,
PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections as PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
@@ -2265,6 +2285,8 @@
PaymentMethodConfigurationCreateParamsSwishDisplayPreference as PaymentMethodConfigurationCreateParamsSwishDisplayPreference,
PaymentMethodConfigurationCreateParamsTwint as PaymentMethodConfigurationCreateParamsTwint,
PaymentMethodConfigurationCreateParamsTwintDisplayPreference as PaymentMethodConfigurationCreateParamsTwintDisplayPreference,
+ PaymentMethodConfigurationCreateParamsUpi as PaymentMethodConfigurationCreateParamsUpi,
+ PaymentMethodConfigurationCreateParamsUpiDisplayPreference as PaymentMethodConfigurationCreateParamsUpiDisplayPreference,
PaymentMethodConfigurationCreateParamsUsBankAccount as PaymentMethodConfigurationCreateParamsUsBankAccount,
PaymentMethodConfigurationCreateParamsUsBankAccountDisplayPreference as PaymentMethodConfigurationCreateParamsUsBankAccountDisplayPreference,
PaymentMethodConfigurationCreateParamsWechatPay as PaymentMethodConfigurationCreateParamsWechatPay,
@@ -2383,6 +2405,8 @@
PaymentMethodConfigurationModifyParamsSwishDisplayPreference as PaymentMethodConfigurationModifyParamsSwishDisplayPreference,
PaymentMethodConfigurationModifyParamsTwint as PaymentMethodConfigurationModifyParamsTwint,
PaymentMethodConfigurationModifyParamsTwintDisplayPreference as PaymentMethodConfigurationModifyParamsTwintDisplayPreference,
+ PaymentMethodConfigurationModifyParamsUpi as PaymentMethodConfigurationModifyParamsUpi,
+ PaymentMethodConfigurationModifyParamsUpiDisplayPreference as PaymentMethodConfigurationModifyParamsUpiDisplayPreference,
PaymentMethodConfigurationModifyParamsUsBankAccount as PaymentMethodConfigurationModifyParamsUsBankAccount,
PaymentMethodConfigurationModifyParamsUsBankAccountDisplayPreference as PaymentMethodConfigurationModifyParamsUsBankAccountDisplayPreference,
PaymentMethodConfigurationModifyParamsWechatPay as PaymentMethodConfigurationModifyParamsWechatPay,
@@ -2501,6 +2525,8 @@
PaymentMethodConfigurationUpdateParamsSwishDisplayPreference as PaymentMethodConfigurationUpdateParamsSwishDisplayPreference,
PaymentMethodConfigurationUpdateParamsTwint as PaymentMethodConfigurationUpdateParamsTwint,
PaymentMethodConfigurationUpdateParamsTwintDisplayPreference as PaymentMethodConfigurationUpdateParamsTwintDisplayPreference,
+ PaymentMethodConfigurationUpdateParamsUpi as PaymentMethodConfigurationUpdateParamsUpi,
+ PaymentMethodConfigurationUpdateParamsUpiDisplayPreference as PaymentMethodConfigurationUpdateParamsUpiDisplayPreference,
PaymentMethodConfigurationUpdateParamsUsBankAccount as PaymentMethodConfigurationUpdateParamsUsBankAccount,
PaymentMethodConfigurationUpdateParamsUsBankAccountDisplayPreference as PaymentMethodConfigurationUpdateParamsUsBankAccountDisplayPreference,
PaymentMethodConfigurationUpdateParamsWechatPay as PaymentMethodConfigurationUpdateParamsWechatPay,
@@ -2564,6 +2590,8 @@
PaymentMethodCreateParamsSofort as PaymentMethodCreateParamsSofort,
PaymentMethodCreateParamsSwish as PaymentMethodCreateParamsSwish,
PaymentMethodCreateParamsTwint as PaymentMethodCreateParamsTwint,
+ PaymentMethodCreateParamsUpi as PaymentMethodCreateParamsUpi,
+ PaymentMethodCreateParamsUpiMandateOptions as PaymentMethodCreateParamsUpiMandateOptions,
PaymentMethodCreateParamsUsBankAccount as PaymentMethodCreateParamsUsBankAccount,
PaymentMethodCreateParamsWechatPay as PaymentMethodCreateParamsWechatPay,
PaymentMethodCreateParamsZip as PaymentMethodCreateParamsZip,
@@ -2996,6 +3024,8 @@
SetupIntentConfirmParamsPaymentMethodDataSofort as SetupIntentConfirmParamsPaymentMethodDataSofort,
SetupIntentConfirmParamsPaymentMethodDataSwish as SetupIntentConfirmParamsPaymentMethodDataSwish,
SetupIntentConfirmParamsPaymentMethodDataTwint as SetupIntentConfirmParamsPaymentMethodDataTwint,
+ SetupIntentConfirmParamsPaymentMethodDataUpi as SetupIntentConfirmParamsPaymentMethodDataUpi,
+ SetupIntentConfirmParamsPaymentMethodDataUpiMandateOptions as SetupIntentConfirmParamsPaymentMethodDataUpiMandateOptions,
SetupIntentConfirmParamsPaymentMethodDataUsBankAccount as SetupIntentConfirmParamsPaymentMethodDataUsBankAccount,
SetupIntentConfirmParamsPaymentMethodDataWechatPay as SetupIntentConfirmParamsPaymentMethodDataWechatPay,
SetupIntentConfirmParamsPaymentMethodDataZip as SetupIntentConfirmParamsPaymentMethodDataZip,
@@ -3021,6 +3051,8 @@
SetupIntentConfirmParamsPaymentMethodOptionsPaytoMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsPaytoMandateOptions,
SetupIntentConfirmParamsPaymentMethodOptionsSepaDebit as SetupIntentConfirmParamsPaymentMethodOptionsSepaDebit,
SetupIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions,
+ SetupIntentConfirmParamsPaymentMethodOptionsUpi as SetupIntentConfirmParamsPaymentMethodOptionsUpi,
+ SetupIntentConfirmParamsPaymentMethodOptionsUpiMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsUpiMandateOptions,
SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccount as SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccount,
SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections as SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
@@ -3086,6 +3118,8 @@
SetupIntentCreateParamsPaymentMethodDataSofort as SetupIntentCreateParamsPaymentMethodDataSofort,
SetupIntentCreateParamsPaymentMethodDataSwish as SetupIntentCreateParamsPaymentMethodDataSwish,
SetupIntentCreateParamsPaymentMethodDataTwint as SetupIntentCreateParamsPaymentMethodDataTwint,
+ SetupIntentCreateParamsPaymentMethodDataUpi as SetupIntentCreateParamsPaymentMethodDataUpi,
+ SetupIntentCreateParamsPaymentMethodDataUpiMandateOptions as SetupIntentCreateParamsPaymentMethodDataUpiMandateOptions,
SetupIntentCreateParamsPaymentMethodDataUsBankAccount as SetupIntentCreateParamsPaymentMethodDataUsBankAccount,
SetupIntentCreateParamsPaymentMethodDataWechatPay as SetupIntentCreateParamsPaymentMethodDataWechatPay,
SetupIntentCreateParamsPaymentMethodDataZip as SetupIntentCreateParamsPaymentMethodDataZip,
@@ -3111,6 +3145,8 @@
SetupIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions,
SetupIntentCreateParamsPaymentMethodOptionsSepaDebit as SetupIntentCreateParamsPaymentMethodOptionsSepaDebit,
SetupIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions,
+ SetupIntentCreateParamsPaymentMethodOptionsUpi as SetupIntentCreateParamsPaymentMethodOptionsUpi,
+ SetupIntentCreateParamsPaymentMethodOptionsUpiMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsUpiMandateOptions,
SetupIntentCreateParamsPaymentMethodOptionsUsBankAccount as SetupIntentCreateParamsPaymentMethodOptionsUsBankAccount,
SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections as SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
@@ -3176,6 +3212,8 @@
SetupIntentModifyParamsPaymentMethodDataSofort as SetupIntentModifyParamsPaymentMethodDataSofort,
SetupIntentModifyParamsPaymentMethodDataSwish as SetupIntentModifyParamsPaymentMethodDataSwish,
SetupIntentModifyParamsPaymentMethodDataTwint as SetupIntentModifyParamsPaymentMethodDataTwint,
+ SetupIntentModifyParamsPaymentMethodDataUpi as SetupIntentModifyParamsPaymentMethodDataUpi,
+ SetupIntentModifyParamsPaymentMethodDataUpiMandateOptions as SetupIntentModifyParamsPaymentMethodDataUpiMandateOptions,
SetupIntentModifyParamsPaymentMethodDataUsBankAccount as SetupIntentModifyParamsPaymentMethodDataUsBankAccount,
SetupIntentModifyParamsPaymentMethodDataWechatPay as SetupIntentModifyParamsPaymentMethodDataWechatPay,
SetupIntentModifyParamsPaymentMethodDataZip as SetupIntentModifyParamsPaymentMethodDataZip,
@@ -3201,6 +3239,8 @@
SetupIntentModifyParamsPaymentMethodOptionsPaytoMandateOptions as SetupIntentModifyParamsPaymentMethodOptionsPaytoMandateOptions,
SetupIntentModifyParamsPaymentMethodOptionsSepaDebit as SetupIntentModifyParamsPaymentMethodOptionsSepaDebit,
SetupIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions as SetupIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions,
+ SetupIntentModifyParamsPaymentMethodOptionsUpi as SetupIntentModifyParamsPaymentMethodOptionsUpi,
+ SetupIntentModifyParamsPaymentMethodOptionsUpiMandateOptions as SetupIntentModifyParamsPaymentMethodOptionsUpiMandateOptions,
SetupIntentModifyParamsPaymentMethodOptionsUsBankAccount as SetupIntentModifyParamsPaymentMethodOptionsUsBankAccount,
SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections as SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
@@ -3264,6 +3304,8 @@
SetupIntentUpdateParamsPaymentMethodDataSofort as SetupIntentUpdateParamsPaymentMethodDataSofort,
SetupIntentUpdateParamsPaymentMethodDataSwish as SetupIntentUpdateParamsPaymentMethodDataSwish,
SetupIntentUpdateParamsPaymentMethodDataTwint as SetupIntentUpdateParamsPaymentMethodDataTwint,
+ SetupIntentUpdateParamsPaymentMethodDataUpi as SetupIntentUpdateParamsPaymentMethodDataUpi,
+ SetupIntentUpdateParamsPaymentMethodDataUpiMandateOptions as SetupIntentUpdateParamsPaymentMethodDataUpiMandateOptions,
SetupIntentUpdateParamsPaymentMethodDataUsBankAccount as SetupIntentUpdateParamsPaymentMethodDataUsBankAccount,
SetupIntentUpdateParamsPaymentMethodDataWechatPay as SetupIntentUpdateParamsPaymentMethodDataWechatPay,
SetupIntentUpdateParamsPaymentMethodDataZip as SetupIntentUpdateParamsPaymentMethodDataZip,
@@ -3289,6 +3331,8 @@
SetupIntentUpdateParamsPaymentMethodOptionsPaytoMandateOptions as SetupIntentUpdateParamsPaymentMethodOptionsPaytoMandateOptions,
SetupIntentUpdateParamsPaymentMethodOptionsSepaDebit as SetupIntentUpdateParamsPaymentMethodOptionsSepaDebit,
SetupIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions as SetupIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions,
+ SetupIntentUpdateParamsPaymentMethodOptionsUpi as SetupIntentUpdateParamsPaymentMethodOptionsUpi,
+ SetupIntentUpdateParamsPaymentMethodOptionsUpiMandateOptions as SetupIntentUpdateParamsPaymentMethodOptionsUpiMandateOptions,
SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccount as SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccount,
SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections as SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
@@ -4149,6 +4193,10 @@
"stripe.params._account_create_params",
False,
),
+ "AccountCreateParamsCapabilitiesUpiPayments": (
+ "stripe.params._account_create_params",
+ False,
+ ),
"AccountCreateParamsCapabilitiesUsBankAccountAchPayments": (
"stripe.params._account_create_params",
False,
@@ -5225,6 +5273,10 @@
"stripe.params._account_update_params",
False,
),
+ "AccountUpdateParamsCapabilitiesUpiPayments": (
+ "stripe.params._account_update_params",
+ False,
+ ),
"AccountUpdateParamsCapabilitiesUsBankAccountAchPayments": (
"stripe.params._account_update_params",
False,
@@ -5832,6 +5884,14 @@
"stripe.params._confirmation_token_create_params",
False,
),
+ "ConfirmationTokenCreateParamsPaymentMethodDataUpi": (
+ "stripe.params._confirmation_token_create_params",
+ False,
+ ),
+ "ConfirmationTokenCreateParamsPaymentMethodDataUpiMandateOptions": (
+ "stripe.params._confirmation_token_create_params",
+ False,
+ ),
"ConfirmationTokenCreateParamsPaymentMethodDataUsBankAccount": (
"stripe.params._confirmation_token_create_params",
False,
@@ -7758,6 +7818,14 @@
"stripe.params._payment_intent_confirm_params",
False,
),
+ "PaymentIntentConfirmParamsPaymentMethodDataUpi": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentMethodDataUpiMandateOptions": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
"PaymentIntentConfirmParamsPaymentMethodDataUsBankAccount": (
"stripe.params._payment_intent_confirm_params",
False,
@@ -8034,6 +8102,14 @@
"stripe.params._payment_intent_confirm_params",
False,
),
+ "PaymentIntentConfirmParamsPaymentMethodOptionsUpi": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentMethodOptionsUpiMandateOptions": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
"PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccount": (
"stripe.params._payment_intent_confirm_params",
False,
@@ -8362,6 +8438,14 @@
"stripe.params._payment_intent_create_params",
False,
),
+ "PaymentIntentCreateParamsPaymentMethodDataUpi": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodDataUpiMandateOptions": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
"PaymentIntentCreateParamsPaymentMethodDataUsBankAccount": (
"stripe.params._payment_intent_create_params",
False,
@@ -8638,6 +8722,14 @@
"stripe.params._payment_intent_create_params",
False,
),
+ "PaymentIntentCreateParamsPaymentMethodOptionsUpi": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsUpiMandateOptions": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
"PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccount": (
"stripe.params._payment_intent_create_params",
False,
@@ -9026,6 +9118,14 @@
"stripe.params._payment_intent_modify_params",
False,
),
+ "PaymentIntentModifyParamsPaymentMethodDataUpi": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataUpiMandateOptions": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
"PaymentIntentModifyParamsPaymentMethodDataUsBankAccount": (
"stripe.params._payment_intent_modify_params",
False,
@@ -9302,6 +9402,14 @@
"stripe.params._payment_intent_modify_params",
False,
),
+ "PaymentIntentModifyParamsPaymentMethodOptionsUpi": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsUpiMandateOptions": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
"PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccount": (
"stripe.params._payment_intent_modify_params",
False,
@@ -9618,6 +9726,14 @@
"stripe.params._payment_intent_update_params",
False,
),
+ "PaymentIntentUpdateParamsPaymentMethodDataUpi": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataUpiMandateOptions": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
"PaymentIntentUpdateParamsPaymentMethodDataUsBankAccount": (
"stripe.params._payment_intent_update_params",
False,
@@ -9894,6 +10010,14 @@
"stripe.params._payment_intent_update_params",
False,
),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsUpi": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsUpiMandateOptions": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
"PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccount": (
"stripe.params._payment_intent_update_params",
False,
@@ -10894,6 +11018,14 @@
"stripe.params._payment_method_configuration_create_params",
False,
),
+ "PaymentMethodConfigurationCreateParamsUpi": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsUpiDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
"PaymentMethodConfigurationCreateParamsUsBankAccount": (
"stripe.params._payment_method_configuration_create_params",
False,
@@ -11350,6 +11482,14 @@
"stripe.params._payment_method_configuration_modify_params",
False,
),
+ "PaymentMethodConfigurationModifyParamsUpi": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsUpiDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
"PaymentMethodConfigurationModifyParamsUsBankAccount": (
"stripe.params._payment_method_configuration_modify_params",
False,
@@ -11806,6 +11946,14 @@
"stripe.params._payment_method_configuration_update_params",
False,
),
+ "PaymentMethodConfigurationUpdateParamsUpi": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsUpiDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
"PaymentMethodConfigurationUpdateParamsUsBankAccount": (
"stripe.params._payment_method_configuration_update_params",
False,
@@ -12050,6 +12198,14 @@
"stripe.params._payment_method_create_params",
False,
),
+ "PaymentMethodCreateParamsUpi": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsUpiMandateOptions": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
"PaymentMethodCreateParamsUsBankAccount": (
"stripe.params._payment_method_create_params",
False,
@@ -12926,6 +13082,14 @@
"stripe.params._setup_intent_confirm_params",
False,
),
+ "SetupIntentConfirmParamsPaymentMethodDataUpi": (
+ "stripe.params._setup_intent_confirm_params",
+ False,
+ ),
+ "SetupIntentConfirmParamsPaymentMethodDataUpiMandateOptions": (
+ "stripe.params._setup_intent_confirm_params",
+ False,
+ ),
"SetupIntentConfirmParamsPaymentMethodDataUsBankAccount": (
"stripe.params._setup_intent_confirm_params",
False,
@@ -13026,6 +13190,14 @@
"stripe.params._setup_intent_confirm_params",
False,
),
+ "SetupIntentConfirmParamsPaymentMethodOptionsUpi": (
+ "stripe.params._setup_intent_confirm_params",
+ False,
+ ),
+ "SetupIntentConfirmParamsPaymentMethodOptionsUpiMandateOptions": (
+ "stripe.params._setup_intent_confirm_params",
+ False,
+ ),
"SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccount": (
"stripe.params._setup_intent_confirm_params",
False,
@@ -13278,6 +13450,14 @@
"stripe.params._setup_intent_create_params",
False,
),
+ "SetupIntentCreateParamsPaymentMethodDataUpi": (
+ "stripe.params._setup_intent_create_params",
+ False,
+ ),
+ "SetupIntentCreateParamsPaymentMethodDataUpiMandateOptions": (
+ "stripe.params._setup_intent_create_params",
+ False,
+ ),
"SetupIntentCreateParamsPaymentMethodDataUsBankAccount": (
"stripe.params._setup_intent_create_params",
False,
@@ -13378,6 +13558,14 @@
"stripe.params._setup_intent_create_params",
False,
),
+ "SetupIntentCreateParamsPaymentMethodOptionsUpi": (
+ "stripe.params._setup_intent_create_params",
+ False,
+ ),
+ "SetupIntentCreateParamsPaymentMethodOptionsUpiMandateOptions": (
+ "stripe.params._setup_intent_create_params",
+ False,
+ ),
"SetupIntentCreateParamsPaymentMethodOptionsUsBankAccount": (
"stripe.params._setup_intent_create_params",
False,
@@ -13622,6 +13810,14 @@
"stripe.params._setup_intent_modify_params",
False,
),
+ "SetupIntentModifyParamsPaymentMethodDataUpi": (
+ "stripe.params._setup_intent_modify_params",
+ False,
+ ),
+ "SetupIntentModifyParamsPaymentMethodDataUpiMandateOptions": (
+ "stripe.params._setup_intent_modify_params",
+ False,
+ ),
"SetupIntentModifyParamsPaymentMethodDataUsBankAccount": (
"stripe.params._setup_intent_modify_params",
False,
@@ -13722,6 +13918,14 @@
"stripe.params._setup_intent_modify_params",
False,
),
+ "SetupIntentModifyParamsPaymentMethodOptionsUpi": (
+ "stripe.params._setup_intent_modify_params",
+ False,
+ ),
+ "SetupIntentModifyParamsPaymentMethodOptionsUpiMandateOptions": (
+ "stripe.params._setup_intent_modify_params",
+ False,
+ ),
"SetupIntentModifyParamsPaymentMethodOptionsUsBankAccount": (
"stripe.params._setup_intent_modify_params",
False,
@@ -13958,6 +14162,14 @@
"stripe.params._setup_intent_update_params",
False,
),
+ "SetupIntentUpdateParamsPaymentMethodDataUpi": (
+ "stripe.params._setup_intent_update_params",
+ False,
+ ),
+ "SetupIntentUpdateParamsPaymentMethodDataUpiMandateOptions": (
+ "stripe.params._setup_intent_update_params",
+ False,
+ ),
"SetupIntentUpdateParamsPaymentMethodDataUsBankAccount": (
"stripe.params._setup_intent_update_params",
False,
@@ -14058,6 +14270,14 @@
"stripe.params._setup_intent_update_params",
False,
),
+ "SetupIntentUpdateParamsPaymentMethodOptionsUpi": (
+ "stripe.params._setup_intent_update_params",
+ False,
+ ),
+ "SetupIntentUpdateParamsPaymentMethodOptionsUpiMandateOptions": (
+ "stripe.params._setup_intent_update_params",
+ False,
+ ),
"SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccount": (
"stripe.params._setup_intent_update_params",
False,
diff --git a/stripe/params/_account_create_params.py b/stripe/params/_account_create_params.py
index b9925f7ee..90fa518f7 100644
--- a/stripe/params/_account_create_params.py
+++ b/stripe/params/_account_create_params.py
@@ -526,6 +526,10 @@ class AccountCreateParamsCapabilities(TypedDict):
"""
The twint_payments capability.
"""
+ upi_payments: NotRequired["AccountCreateParamsCapabilitiesUpiPayments"]
+ """
+ The upi_payments capability.
+ """
us_bank_account_ach_payments: NotRequired[
"AccountCreateParamsCapabilitiesUsBankAccountAchPayments"
]
@@ -950,6 +954,13 @@ class AccountCreateParamsCapabilitiesTwintPayments(TypedDict):
"""
+class AccountCreateParamsCapabilitiesUpiPayments(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
class AccountCreateParamsCapabilitiesUsBankAccountAchPayments(TypedDict):
requested: NotRequired[bool]
"""
diff --git a/stripe/params/_account_update_params.py b/stripe/params/_account_update_params.py
index bb8c8ea81..72f39100e 100644
--- a/stripe/params/_account_update_params.py
+++ b/stripe/params/_account_update_params.py
@@ -513,6 +513,10 @@ class AccountUpdateParamsCapabilities(TypedDict):
"""
The twint_payments capability.
"""
+ upi_payments: NotRequired["AccountUpdateParamsCapabilitiesUpiPayments"]
+ """
+ The upi_payments capability.
+ """
us_bank_account_ach_payments: NotRequired[
"AccountUpdateParamsCapabilitiesUsBankAccountAchPayments"
]
@@ -937,6 +941,13 @@ class AccountUpdateParamsCapabilitiesTwintPayments(TypedDict):
"""
+class AccountUpdateParamsCapabilitiesUpiPayments(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
class AccountUpdateParamsCapabilitiesUsBankAccountAchPayments(TypedDict):
requested: NotRequired[bool]
"""
diff --git a/stripe/params/_confirmation_token_create_params.py b/stripe/params/_confirmation_token_create_params.py
index d2f6ec798..2842c653e 100644
--- a/stripe/params/_confirmation_token_create_params.py
+++ b/stripe/params/_confirmation_token_create_params.py
@@ -346,6 +346,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -353,6 +354,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"""
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.
"""
+ upi: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataUpi"]
+ """
+ If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.
+ """
us_bank_account: NotRequired[
"ConfirmationTokenCreateParamsPaymentMethodDataUsBankAccount"
]
@@ -830,6 +835,36 @@ class ConfirmationTokenCreateParamsPaymentMethodDataTwint(TypedDict):
pass
+class ConfirmationTokenCreateParamsPaymentMethodDataUpi(TypedDict):
+ mandate_options: NotRequired[
+ "ConfirmationTokenCreateParamsPaymentMethodDataUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+
+
+class ConfirmationTokenCreateParamsPaymentMethodDataUpiMandateOptions(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class ConfirmationTokenCreateParamsPaymentMethodDataUsBankAccount(TypedDict):
account_holder_type: NotRequired[Literal["company", "individual"]]
"""
diff --git a/stripe/params/_credit_note_create_params.py b/stripe/params/_credit_note_create_params.py
index 2714e0e6b..4fa2d3df4 100644
--- a/stripe/params/_credit_note_create_params.py
+++ b/stripe/params/_credit_note_create_params.py
@@ -81,6 +81,10 @@ class CreditNoteCreateParamsLine(TypedDict):
"""
The invoice line item to credit. Only valid when the `type` is `invoice_line_item`.
"""
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
quantity: NotRequired[int]
"""
The line item quantity to credit.
diff --git a/stripe/params/_credit_note_preview_lines_list_params.py b/stripe/params/_credit_note_preview_lines_list_params.py
index dc81f33c1..dac37c266 100644
--- a/stripe/params/_credit_note_preview_lines_list_params.py
+++ b/stripe/params/_credit_note_preview_lines_list_params.py
@@ -92,6 +92,10 @@ class CreditNotePreviewLinesListParamsLine(TypedDict):
"""
The invoice line item to credit. Only valid when the `type` is `invoice_line_item`.
"""
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
quantity: NotRequired[int]
"""
The line item quantity to credit.
diff --git a/stripe/params/_credit_note_preview_lines_params.py b/stripe/params/_credit_note_preview_lines_params.py
index 8434b10d8..60016514a 100644
--- a/stripe/params/_credit_note_preview_lines_params.py
+++ b/stripe/params/_credit_note_preview_lines_params.py
@@ -93,6 +93,10 @@ class CreditNotePreviewLinesParamsLine(TypedDict):
"""
The invoice line item to credit. Only valid when the `type` is `invoice_line_item`.
"""
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
quantity: NotRequired[int]
"""
The line item quantity to credit.
diff --git a/stripe/params/_credit_note_preview_params.py b/stripe/params/_credit_note_preview_params.py
index a88442f97..484a3fdaf 100644
--- a/stripe/params/_credit_note_preview_params.py
+++ b/stripe/params/_credit_note_preview_params.py
@@ -81,6 +81,10 @@ class CreditNotePreviewParamsLine(TypedDict):
"""
The invoice line item to credit. Only valid when the `type` is `invoice_line_item`.
"""
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
quantity: NotRequired[int]
"""
The line item quantity to credit.
diff --git a/stripe/params/_customer_list_payment_methods_params.py b/stripe/params/_customer_list_payment_methods_params.py
index 8803d7ea7..aa965d839 100644
--- a/stripe/params/_customer_list_payment_methods_params.py
+++ b/stripe/params/_customer_list_payment_methods_params.py
@@ -76,6 +76,7 @@ class CustomerListPaymentMethodsParams(RequestOptions):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
diff --git a/stripe/params/_customer_payment_method_list_params.py b/stripe/params/_customer_payment_method_list_params.py
index 026497553..1f7f264bf 100644
--- a/stripe/params/_customer_payment_method_list_params.py
+++ b/stripe/params/_customer_payment_method_list_params.py
@@ -75,6 +75,7 @@ class CustomerPaymentMethodListParams(TypedDict):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
diff --git a/stripe/params/_invoice_add_lines_params.py b/stripe/params/_invoice_add_lines_params.py
index 8f0b41d7b..f203b2f67 100644
--- a/stripe/params/_invoice_add_lines_params.py
+++ b/stripe/params/_invoice_add_lines_params.py
@@ -61,7 +61,11 @@ class InvoiceAddLinesParamsLine(TypedDict):
"""
quantity: NotRequired[int]
"""
- Non-negative integer. The quantity of units for the line item.
+ Non-negative integer. The quantity of units for the line item. Use `quantity_decimal` instead to provide decimal precision. This field will be deprecated in favor of `quantity_decimal` in a future version.
+ """
+ quantity_decimal: NotRequired[str]
+ """
+ Non-negative decimal with at most 12 decimal places. The quantity of units for the line item.
"""
tax_amounts: NotRequired[
"Literal['']|List[InvoiceAddLinesParamsLineTaxAmount]"
diff --git a/stripe/params/_invoice_create_preview_params.py b/stripe/params/_invoice_create_preview_params.py
index f8c5815d1..8a0453849 100644
--- a/stripe/params/_invoice_create_preview_params.py
+++ b/stripe/params/_invoice_create_preview_params.py
@@ -383,7 +383,11 @@ class InvoiceCreatePreviewParamsInvoiceItem(TypedDict):
"""
quantity: NotRequired[int]
"""
- Non-negative integer. The quantity of units for the invoice item.
+ Non-negative integer. The quantity of units for the invoice item. Use `quantity_decimal` instead to provide decimal precision. This field will be deprecated in favor of `quantity_decimal` in a future version.
+ """
+ quantity_decimal: NotRequired[str]
+ """
+ Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
"""
tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
"""
diff --git a/stripe/params/_invoice_item_create_params.py b/stripe/params/_invoice_item_create_params.py
index aa6098154..d95496d92 100644
--- a/stripe/params/_invoice_item_create_params.py
+++ b/stripe/params/_invoice_item_create_params.py
@@ -60,7 +60,11 @@ class InvoiceItemCreateParams(RequestOptions):
"""
quantity: NotRequired[int]
"""
- Non-negative integer. The quantity of units for the invoice item.
+ Non-negative integer. The quantity of units for the invoice item. Use `quantity_decimal` instead to provide decimal precision. This field will be deprecated in favor of `quantity_decimal` in a future version.
+ """
+ quantity_decimal: NotRequired[str]
+ """
+ Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
"""
subscription: NotRequired[str]
"""
diff --git a/stripe/params/_invoice_item_modify_params.py b/stripe/params/_invoice_item_modify_params.py
index e0e187bdd..d3229f9f4 100644
--- a/stripe/params/_invoice_item_modify_params.py
+++ b/stripe/params/_invoice_item_modify_params.py
@@ -44,7 +44,11 @@ class InvoiceItemModifyParams(RequestOptions):
"""
quantity: NotRequired[int]
"""
- Non-negative integer. The quantity of units for the invoice item.
+ Non-negative integer. The quantity of units for the invoice item. Use `quantity_decimal` instead to provide decimal precision. This field will be deprecated in favor of `quantity_decimal` in a future version.
+ """
+ quantity_decimal: NotRequired[str]
+ """
+ Non-negative decimal with at most 12 decimal places. The quantity of units for the line item.
"""
tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
"""
diff --git a/stripe/params/_invoice_item_update_params.py b/stripe/params/_invoice_item_update_params.py
index 0546c29fb..46bd42a41 100644
--- a/stripe/params/_invoice_item_update_params.py
+++ b/stripe/params/_invoice_item_update_params.py
@@ -43,7 +43,11 @@ class InvoiceItemUpdateParams(TypedDict):
"""
quantity: NotRequired[int]
"""
- Non-negative integer. The quantity of units for the invoice item.
+ Non-negative integer. The quantity of units for the invoice item. Use `quantity_decimal` instead to provide decimal precision. This field will be deprecated in favor of `quantity_decimal` in a future version.
+ """
+ quantity_decimal: NotRequired[str]
+ """
+ Non-negative decimal with at most 12 decimal places. The quantity of units for the line item.
"""
tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
"""
diff --git a/stripe/params/_invoice_line_item_update_params.py b/stripe/params/_invoice_line_item_update_params.py
index 51047aefe..523edb596 100644
--- a/stripe/params/_invoice_line_item_update_params.py
+++ b/stripe/params/_invoice_line_item_update_params.py
@@ -29,7 +29,7 @@ class InvoiceLineItemUpdateParams(TypedDict):
"""
metadata: NotRequired["Literal['']|Dict[str, str]"]
"""
- Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](https://docs.stripe.com/api/invoices/line_item) line items, where any existing metadata on the invoice line is merged with the incoming data.
"""
period: NotRequired["InvoiceLineItemUpdateParamsPeriod"]
"""
@@ -45,7 +45,11 @@ class InvoiceLineItemUpdateParams(TypedDict):
"""
quantity: NotRequired[int]
"""
- Non-negative integer. The quantity of units for the line item.
+ Non-negative integer. The quantity of units for the line item. Use `quantity_decimal` instead to provide decimal precision. This field will be deprecated in favor of `quantity_decimal` in a future version.
+ """
+ quantity_decimal: NotRequired[str]
+ """
+ Non-negative decimal with at most 12 decimal places. The quantity of units for the line item.
"""
tax_amounts: NotRequired[
"Literal['']|List[InvoiceLineItemUpdateParamsTaxAmount]"
diff --git a/stripe/params/_invoice_update_lines_params.py b/stripe/params/_invoice_update_lines_params.py
index 1067b2c71..49659765f 100644
--- a/stripe/params/_invoice_update_lines_params.py
+++ b/stripe/params/_invoice_update_lines_params.py
@@ -61,7 +61,11 @@ class InvoiceUpdateLinesParamsLine(TypedDict):
"""
quantity: NotRequired[int]
"""
- Non-negative integer. The quantity of units for the line item.
+ Non-negative integer. The quantity of units for the line item. Use `quantity_decimal` instead to provide decimal precision. This field will be deprecated in favor of `quantity_decimal` in a future version.
+ """
+ quantity_decimal: NotRequired[str]
+ """
+ Non-negative decimal with at most 12 decimal places. The quantity of units for the line item.
"""
tax_amounts: NotRequired[
"Literal['']|List[InvoiceUpdateLinesParamsLineTaxAmount]"
diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py
index d3d239dd9..60eabec9b 100644
--- a/stripe/params/_payment_intent_confirm_params.py
+++ b/stripe/params/_payment_intent_confirm_params.py
@@ -29,7 +29,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[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
+ "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]"
]
"""
The list of payment method types to exclude from use with this payment.
@@ -695,6 +695,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -702,6 +703,10 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict):
"""
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.
"""
+ upi: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataUpi"]
+ """
+ If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.
+ """
us_bank_account: NotRequired[
"PaymentIntentConfirmParamsPaymentMethodDataUsBankAccount"
]
@@ -1177,6 +1182,34 @@ class PaymentIntentConfirmParamsPaymentMethodDataTwint(TypedDict):
pass
+class PaymentIntentConfirmParamsPaymentMethodDataUpi(TypedDict):
+ mandate_options: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataUpiMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class PaymentIntentConfirmParamsPaymentMethodDataUsBankAccount(TypedDict):
account_holder_type: NotRequired[Literal["company", "individual"]]
"""
@@ -1503,6 +1536,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict):
"""
If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
"""
+ upi: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsUpi"
+ ]
+ """
+ If this is a `upi` PaymentIntent, this sub-hash contains details about the UPI payment method options.
+ """
us_bank_account: NotRequired[
"Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccount"
]
@@ -1552,7 +1591,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebit(TypedDict):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
@@ -1971,7 +2010,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsCardMandateOptions(
):
amount: int
"""
- Amount to be charged for future payments.
+ Amount to be charged for future payments, specified in the presentment currency.
"""
amount_type: Literal["fixed", "maximum"]
"""
@@ -3029,6 +3068,39 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsTwint(TypedDict):
"""
+class PaymentIntentConfirmParamsPaymentMethodOptionsUpi(TypedDict):
+ mandate_options: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsUpiMandateOptions(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccount(TypedDict):
financial_connections: NotRequired[
"PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections"
@@ -3076,13 +3148,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccount(TypedDict):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
- """
- preferred_settlement_speed: NotRequired[
- "Literal['']|Literal['fastest', 'standard']"
- ]
- """
- Preferred transaction settlement speed
+ Bank account verification method. The default value is `automatic`.
"""
diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py
index c614270c4..947e2a199 100644
--- a/stripe/params/_payment_intent_create_params.py
+++ b/stripe/params/_payment_intent_create_params.py
@@ -121,6 +121,7 @@ class PaymentIntentCreateParams(RequestOptions):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -829,6 +830,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -836,6 +838,10 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict):
"""
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.
"""
+ upi: NotRequired["PaymentIntentCreateParamsPaymentMethodDataUpi"]
+ """
+ If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.
+ """
us_bank_account: NotRequired[
"PaymentIntentCreateParamsPaymentMethodDataUsBankAccount"
]
@@ -1311,6 +1317,34 @@ class PaymentIntentCreateParamsPaymentMethodDataTwint(TypedDict):
pass
+class PaymentIntentCreateParamsPaymentMethodDataUpi(TypedDict):
+ mandate_options: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataUpiMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class PaymentIntentCreateParamsPaymentMethodDataUsBankAccount(TypedDict):
account_holder_type: NotRequired[Literal["company", "individual"]]
"""
@@ -1637,6 +1671,12 @@ class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict):
"""
If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
"""
+ upi: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsUpi"
+ ]
+ """
+ If this is a `upi` PaymentIntent, this sub-hash contains details about the UPI payment method options.
+ """
us_bank_account: NotRequired[
"Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccount"
]
@@ -1686,7 +1726,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsAcssDebit(TypedDict):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
@@ -2101,7 +2141,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsCardMandateOptions(
):
amount: int
"""
- Amount to be charged for future payments.
+ Amount to be charged for future payments, specified in the presentment currency.
"""
amount_type: Literal["fixed", "maximum"]
"""
@@ -3157,6 +3197,39 @@ class PaymentIntentCreateParamsPaymentMethodOptionsTwint(TypedDict):
"""
+class PaymentIntentCreateParamsPaymentMethodOptionsUpi(TypedDict):
+ mandate_options: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsUpiMandateOptions(
+ TypedDict
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccount(TypedDict):
financial_connections: NotRequired[
"PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections"
@@ -3204,13 +3277,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccount(TypedDict):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
- """
- preferred_settlement_speed: NotRequired[
- "Literal['']|Literal['fastest', 'standard']"
- ]
- """
- Preferred transaction settlement speed
+ Bank account verification method. The default value is `automatic`.
"""
diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py
index 2898435b4..0e61c3a1b 100644
--- a/stripe/params/_payment_intent_modify_params.py
+++ b/stripe/params/_payment_intent_modify_params.py
@@ -51,7 +51,7 @@ class PaymentIntentModifyParams(RequestOptions):
An arbitrary string attached to the object. Often useful for displaying to users.
"""
excluded_payment_method_types: NotRequired[
- "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
+ "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]"
]
"""
The list of payment method types to exclude from use with this payment.
@@ -666,6 +666,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -673,6 +674,10 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict):
"""
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.
"""
+ upi: NotRequired["PaymentIntentModifyParamsPaymentMethodDataUpi"]
+ """
+ If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.
+ """
us_bank_account: NotRequired[
"PaymentIntentModifyParamsPaymentMethodDataUsBankAccount"
]
@@ -1148,6 +1153,34 @@ class PaymentIntentModifyParamsPaymentMethodDataTwint(TypedDict):
pass
+class PaymentIntentModifyParamsPaymentMethodDataUpi(TypedDict):
+ mandate_options: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataUpiMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class PaymentIntentModifyParamsPaymentMethodDataUsBankAccount(TypedDict):
account_holder_type: NotRequired[Literal["company", "individual"]]
"""
@@ -1474,6 +1507,12 @@ class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict):
"""
If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
"""
+ upi: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsUpi"
+ ]
+ """
+ If this is a `upi` PaymentIntent, this sub-hash contains details about the UPI payment method options.
+ """
us_bank_account: NotRequired[
"Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccount"
]
@@ -1523,7 +1562,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsAcssDebit(TypedDict):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
@@ -1938,7 +1977,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsCardMandateOptions(
):
amount: int
"""
- Amount to be charged for future payments.
+ Amount to be charged for future payments, specified in the presentment currency.
"""
amount_type: Literal["fixed", "maximum"]
"""
@@ -2994,6 +3033,39 @@ class PaymentIntentModifyParamsPaymentMethodOptionsTwint(TypedDict):
"""
+class PaymentIntentModifyParamsPaymentMethodOptionsUpi(TypedDict):
+ mandate_options: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsUpiMandateOptions(
+ TypedDict
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccount(TypedDict):
financial_connections: NotRequired[
"PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections"
@@ -3041,13 +3113,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccount(TypedDict):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
- """
- preferred_settlement_speed: NotRequired[
- "Literal['']|Literal['fastest', 'standard']"
- ]
- """
- Preferred transaction settlement speed
+ Bank account verification method. The default value is `automatic`.
"""
diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py
index 7e6ebc0eb..62908ddf0 100644
--- a/stripe/params/_payment_intent_update_params.py
+++ b/stripe/params/_payment_intent_update_params.py
@@ -50,7 +50,7 @@ class PaymentIntentUpdateParams(TypedDict):
An arbitrary string attached to the object. Often useful for displaying to users.
"""
excluded_payment_method_types: NotRequired[
- "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
+ "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]"
]
"""
The list of payment method types to exclude from use with this payment.
@@ -665,6 +665,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -672,6 +673,10 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict):
"""
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.
"""
+ upi: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataUpi"]
+ """
+ If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.
+ """
us_bank_account: NotRequired[
"PaymentIntentUpdateParamsPaymentMethodDataUsBankAccount"
]
@@ -1147,6 +1152,34 @@ class PaymentIntentUpdateParamsPaymentMethodDataTwint(TypedDict):
pass
+class PaymentIntentUpdateParamsPaymentMethodDataUpi(TypedDict):
+ mandate_options: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataUpiMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class PaymentIntentUpdateParamsPaymentMethodDataUsBankAccount(TypedDict):
account_holder_type: NotRequired[Literal["company", "individual"]]
"""
@@ -1473,6 +1506,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict):
"""
If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
"""
+ upi: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsUpi"
+ ]
+ """
+ If this is a `upi` PaymentIntent, this sub-hash contains details about the UPI payment method options.
+ """
us_bank_account: NotRequired[
"Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccount"
]
@@ -1522,7 +1561,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebit(TypedDict):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
@@ -1937,7 +1976,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsCardMandateOptions(
):
amount: int
"""
- Amount to be charged for future payments.
+ Amount to be charged for future payments, specified in the presentment currency.
"""
amount_type: Literal["fixed", "maximum"]
"""
@@ -2993,6 +3032,39 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsTwint(TypedDict):
"""
+class PaymentIntentUpdateParamsPaymentMethodOptionsUpi(TypedDict):
+ mandate_options: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsUpiMandateOptions(
+ TypedDict
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccount(TypedDict):
financial_connections: NotRequired[
"PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections"
@@ -3040,13 +3112,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccount(TypedDict):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
- """
- preferred_settlement_speed: NotRequired[
- "Literal['']|Literal['fastest', 'standard']"
- ]
- """
- Preferred transaction settlement speed
+ Bank account verification method. The default value is `automatic`.
"""
diff --git a/stripe/params/_payment_link_create_params.py b/stripe/params/_payment_link_create_params.py
index 8e35124f3..9b2ec6a51 100644
--- a/stripe/params/_payment_link_create_params.py
+++ b/stripe/params/_payment_link_create_params.py
@@ -137,6 +137,7 @@ class PaymentLinkCreateParams(RequestOptions):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
diff --git a/stripe/params/_payment_link_modify_params.py b/stripe/params/_payment_link_modify_params.py
index dc8524474..4e9ca9ba9 100644
--- a/stripe/params/_payment_link_modify_params.py
+++ b/stripe/params/_payment_link_modify_params.py
@@ -89,7 +89,7 @@ class PaymentLinkModifyParams(RequestOptions):
If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials).
"""
payment_method_types: NotRequired[
- "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
+ "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]"
]
"""
The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
diff --git a/stripe/params/_payment_link_update_params.py b/stripe/params/_payment_link_update_params.py
index 3c6174fd8..c9aa42981 100644
--- a/stripe/params/_payment_link_update_params.py
+++ b/stripe/params/_payment_link_update_params.py
@@ -88,7 +88,7 @@ class PaymentLinkUpdateParams(TypedDict):
If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials).
"""
payment_method_types: NotRequired[
- "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
+ "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]"
]
"""
The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
diff --git a/stripe/params/_payment_method_configuration_create_params.py b/stripe/params/_payment_method_configuration_create_params.py
index 4bb575331..30e2daca7 100644
--- a/stripe/params/_payment_method_configuration_create_params.py
+++ b/stripe/params/_payment_method_configuration_create_params.py
@@ -248,6 +248,10 @@ class PaymentMethodConfigurationCreateParams(RequestOptions):
"""
Twint is a payment method popular in Switzerland. It allows customers to pay using their mobile phone. Check this [page](https://docs.stripe.com/payments/twint) for more details.
"""
+ upi: NotRequired["PaymentMethodConfigurationCreateParamsUpi"]
+ """
+ Unified Payment Interface (UPI) is India's leading payment method with exponential growth since it launched in 2016.
+ """
us_bank_account: NotRequired[
"PaymentMethodConfigurationCreateParamsUsBankAccount"
]
@@ -1166,6 +1170,22 @@ class PaymentMethodConfigurationCreateParamsTwintDisplayPreference(TypedDict):
"""
+class PaymentMethodConfigurationCreateParamsUpi(TypedDict):
+ display_preference: NotRequired[
+ "PaymentMethodConfigurationCreateParamsUpiDisplayPreference"
+ ]
+ """
+ Whether or not the payment method should be displayed.
+ """
+
+
+class PaymentMethodConfigurationCreateParamsUpiDisplayPreference(TypedDict):
+ preference: NotRequired[Literal["none", "off", "on"]]
+ """
+ The account's preference for whether or not to display this payment method.
+ """
+
+
class PaymentMethodConfigurationCreateParamsUsBankAccount(TypedDict):
display_preference: NotRequired[
"PaymentMethodConfigurationCreateParamsUsBankAccountDisplayPreference"
diff --git a/stripe/params/_payment_method_configuration_modify_params.py b/stripe/params/_payment_method_configuration_modify_params.py
index 54b18cb83..ac22ff2d7 100644
--- a/stripe/params/_payment_method_configuration_modify_params.py
+++ b/stripe/params/_payment_method_configuration_modify_params.py
@@ -248,6 +248,10 @@ class PaymentMethodConfigurationModifyParams(RequestOptions):
"""
Twint is a payment method popular in Switzerland. It allows customers to pay using their mobile phone. Check this [page](https://docs.stripe.com/payments/twint) for more details.
"""
+ upi: NotRequired["PaymentMethodConfigurationModifyParamsUpi"]
+ """
+ Unified Payment Interface (UPI) is India's leading payment method with exponential growth since it launched in 2016.
+ """
us_bank_account: NotRequired[
"PaymentMethodConfigurationModifyParamsUsBankAccount"
]
@@ -1166,6 +1170,22 @@ class PaymentMethodConfigurationModifyParamsTwintDisplayPreference(TypedDict):
"""
+class PaymentMethodConfigurationModifyParamsUpi(TypedDict):
+ display_preference: NotRequired[
+ "PaymentMethodConfigurationModifyParamsUpiDisplayPreference"
+ ]
+ """
+ Whether or not the payment method should be displayed.
+ """
+
+
+class PaymentMethodConfigurationModifyParamsUpiDisplayPreference(TypedDict):
+ preference: NotRequired[Literal["none", "off", "on"]]
+ """
+ The account's preference for whether or not to display this payment method.
+ """
+
+
class PaymentMethodConfigurationModifyParamsUsBankAccount(TypedDict):
display_preference: NotRequired[
"PaymentMethodConfigurationModifyParamsUsBankAccountDisplayPreference"
diff --git a/stripe/params/_payment_method_configuration_update_params.py b/stripe/params/_payment_method_configuration_update_params.py
index 1e5e1305e..e43c3b12e 100644
--- a/stripe/params/_payment_method_configuration_update_params.py
+++ b/stripe/params/_payment_method_configuration_update_params.py
@@ -247,6 +247,10 @@ class PaymentMethodConfigurationUpdateParams(TypedDict):
"""
Twint is a payment method popular in Switzerland. It allows customers to pay using their mobile phone. Check this [page](https://docs.stripe.com/payments/twint) for more details.
"""
+ upi: NotRequired["PaymentMethodConfigurationUpdateParamsUpi"]
+ """
+ Unified Payment Interface (UPI) is India's leading payment method with exponential growth since it launched in 2016.
+ """
us_bank_account: NotRequired[
"PaymentMethodConfigurationUpdateParamsUsBankAccount"
]
@@ -1165,6 +1169,22 @@ class PaymentMethodConfigurationUpdateParamsTwintDisplayPreference(TypedDict):
"""
+class PaymentMethodConfigurationUpdateParamsUpi(TypedDict):
+ display_preference: NotRequired[
+ "PaymentMethodConfigurationUpdateParamsUpiDisplayPreference"
+ ]
+ """
+ Whether or not the payment method should be displayed.
+ """
+
+
+class PaymentMethodConfigurationUpdateParamsUpiDisplayPreference(TypedDict):
+ preference: NotRequired[Literal["none", "off", "on"]]
+ """
+ The account's preference for whether or not to display this payment method.
+ """
+
+
class PaymentMethodConfigurationUpdateParamsUsBankAccount(TypedDict):
display_preference: NotRequired[
"PaymentMethodConfigurationUpdateParamsUsBankAccountDisplayPreference"
diff --git a/stripe/params/_payment_method_create_params.py b/stripe/params/_payment_method_create_params.py
index 67ff61faa..07948aeb3 100644
--- a/stripe/params/_payment_method_create_params.py
+++ b/stripe/params/_payment_method_create_params.py
@@ -280,6 +280,7 @@ class PaymentMethodCreateParams(RequestOptions):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -288,6 +289,10 @@ class PaymentMethodCreateParams(RequestOptions):
"""
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.
"""
+ upi: NotRequired["PaymentMethodCreateParamsUpi"]
+ """
+ If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.
+ """
us_bank_account: NotRequired["PaymentMethodCreateParamsUsBankAccount"]
"""
If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
@@ -798,6 +803,32 @@ class PaymentMethodCreateParamsTwint(TypedDict):
pass
+class PaymentMethodCreateParamsUpi(TypedDict):
+ mandate_options: NotRequired["PaymentMethodCreateParamsUpiMandateOptions"]
+ """
+ Configuration options for setting up an eMandate
+ """
+
+
+class PaymentMethodCreateParamsUpiMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class PaymentMethodCreateParamsUsBankAccount(TypedDict):
account_holder_type: NotRequired[Literal["company", "individual"]]
"""
diff --git a/stripe/params/_payment_method_list_params.py b/stripe/params/_payment_method_list_params.py
index a7e69d1f3..632041d91 100644
--- a/stripe/params/_payment_method_list_params.py
+++ b/stripe/params/_payment_method_list_params.py
@@ -84,6 +84,7 @@ class PaymentMethodListParams(RequestOptions):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
diff --git a/stripe/params/_setup_intent_confirm_params.py b/stripe/params/_setup_intent_confirm_params.py
index e89db124b..c3a106506 100644
--- a/stripe/params/_setup_intent_confirm_params.py
+++ b/stripe/params/_setup_intent_confirm_params.py
@@ -383,6 +383,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -390,6 +391,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict):
"""
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.
"""
+ upi: NotRequired["SetupIntentConfirmParamsPaymentMethodDataUpi"]
+ """
+ If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.
+ """
us_bank_account: NotRequired[
"SetupIntentConfirmParamsPaymentMethodDataUsBankAccount"
]
@@ -865,6 +870,34 @@ class SetupIntentConfirmParamsPaymentMethodDataTwint(TypedDict):
pass
+class SetupIntentConfirmParamsPaymentMethodDataUpi(TypedDict):
+ mandate_options: NotRequired[
+ "SetupIntentConfirmParamsPaymentMethodDataUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+
+
+class SetupIntentConfirmParamsPaymentMethodDataUpiMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class SetupIntentConfirmParamsPaymentMethodDataUsBankAccount(TypedDict):
account_holder_type: NotRequired[Literal["company", "individual"]]
"""
@@ -947,6 +980,10 @@ class SetupIntentConfirmParamsPaymentMethodOptions(TypedDict):
"""
If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
"""
+ upi: NotRequired["SetupIntentConfirmParamsPaymentMethodOptionsUpi"]
+ """
+ If this is a `upi` SetupIntent, this sub-hash contains details about the UPI payment method options.
+ """
us_bank_account: NotRequired[
"SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccount"
]
@@ -970,7 +1007,7 @@ class SetupIntentConfirmParamsPaymentMethodOptionsAcssDebit(TypedDict):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
@@ -1076,7 +1113,7 @@ class SetupIntentConfirmParamsPaymentMethodOptionsCardMandateOptions(
):
amount: int
"""
- Amount to be charged for future payments.
+ Amount to be charged for future payments, specified in the presentment currency.
"""
amount_type: Literal["fixed", "maximum"]
"""
@@ -1408,6 +1445,37 @@ class SetupIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions(
"""
+class SetupIntentConfirmParamsPaymentMethodOptionsUpi(TypedDict):
+ mandate_options: NotRequired[
+ "SetupIntentConfirmParamsPaymentMethodOptionsUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+
+
+class SetupIntentConfirmParamsPaymentMethodOptionsUpiMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccount(TypedDict):
financial_connections: NotRequired[
"SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections"
@@ -1431,7 +1499,7 @@ class SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccount(TypedDict):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
diff --git a/stripe/params/_setup_intent_create_params.py b/stripe/params/_setup_intent_create_params.py
index 8c3da909b..eecd16cf9 100644
--- a/stripe/params/_setup_intent_create_params.py
+++ b/stripe/params/_setup_intent_create_params.py
@@ -93,6 +93,7 @@ class SetupIntentCreateParams(RequestOptions):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -511,6 +512,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -518,6 +520,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict):
"""
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.
"""
+ upi: NotRequired["SetupIntentCreateParamsPaymentMethodDataUpi"]
+ """
+ If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.
+ """
us_bank_account: NotRequired[
"SetupIntentCreateParamsPaymentMethodDataUsBankAccount"
]
@@ -991,6 +997,34 @@ class SetupIntentCreateParamsPaymentMethodDataTwint(TypedDict):
pass
+class SetupIntentCreateParamsPaymentMethodDataUpi(TypedDict):
+ mandate_options: NotRequired[
+ "SetupIntentCreateParamsPaymentMethodDataUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+
+
+class SetupIntentCreateParamsPaymentMethodDataUpiMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class SetupIntentCreateParamsPaymentMethodDataUsBankAccount(TypedDict):
account_holder_type: NotRequired[Literal["company", "individual"]]
"""
@@ -1073,6 +1107,10 @@ class SetupIntentCreateParamsPaymentMethodOptions(TypedDict):
"""
If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
"""
+ upi: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsUpi"]
+ """
+ If this is a `upi` SetupIntent, this sub-hash contains details about the UPI payment method options.
+ """
us_bank_account: NotRequired[
"SetupIntentCreateParamsPaymentMethodOptionsUsBankAccount"
]
@@ -1096,7 +1134,7 @@ class SetupIntentCreateParamsPaymentMethodOptionsAcssDebit(TypedDict):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
@@ -1200,7 +1238,7 @@ class SetupIntentCreateParamsPaymentMethodOptionsCard(TypedDict):
class SetupIntentCreateParamsPaymentMethodOptionsCardMandateOptions(TypedDict):
amount: int
"""
- Amount to be charged for future payments.
+ Amount to be charged for future payments, specified in the presentment currency.
"""
amount_type: Literal["fixed", "maximum"]
"""
@@ -1530,6 +1568,37 @@ class SetupIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions(
"""
+class SetupIntentCreateParamsPaymentMethodOptionsUpi(TypedDict):
+ mandate_options: NotRequired[
+ "SetupIntentCreateParamsPaymentMethodOptionsUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+
+
+class SetupIntentCreateParamsPaymentMethodOptionsUpiMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccount(TypedDict):
financial_connections: NotRequired[
"SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections"
@@ -1553,7 +1622,7 @@ class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccount(TypedDict):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
diff --git a/stripe/params/_setup_intent_modify_params.py b/stripe/params/_setup_intent_modify_params.py
index 0d09657d6..525ac2561 100644
--- a/stripe/params/_setup_intent_modify_params.py
+++ b/stripe/params/_setup_intent_modify_params.py
@@ -29,7 +29,7 @@ class SetupIntentModifyParams(RequestOptions):
An arbitrary string attached to the object. Often useful for displaying to users.
"""
excluded_payment_method_types: NotRequired[
- "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
+ "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]"
]
"""
The list of payment method types to exclude from use with this SetupIntent.
@@ -359,6 +359,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -366,6 +367,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict):
"""
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.
"""
+ upi: NotRequired["SetupIntentModifyParamsPaymentMethodDataUpi"]
+ """
+ If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.
+ """
us_bank_account: NotRequired[
"SetupIntentModifyParamsPaymentMethodDataUsBankAccount"
]
@@ -839,6 +844,34 @@ class SetupIntentModifyParamsPaymentMethodDataTwint(TypedDict):
pass
+class SetupIntentModifyParamsPaymentMethodDataUpi(TypedDict):
+ mandate_options: NotRequired[
+ "SetupIntentModifyParamsPaymentMethodDataUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+
+
+class SetupIntentModifyParamsPaymentMethodDataUpiMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class SetupIntentModifyParamsPaymentMethodDataUsBankAccount(TypedDict):
account_holder_type: NotRequired[Literal["company", "individual"]]
"""
@@ -921,6 +954,10 @@ class SetupIntentModifyParamsPaymentMethodOptions(TypedDict):
"""
If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
"""
+ upi: NotRequired["SetupIntentModifyParamsPaymentMethodOptionsUpi"]
+ """
+ If this is a `upi` SetupIntent, this sub-hash contains details about the UPI payment method options.
+ """
us_bank_account: NotRequired[
"SetupIntentModifyParamsPaymentMethodOptionsUsBankAccount"
]
@@ -944,7 +981,7 @@ class SetupIntentModifyParamsPaymentMethodOptionsAcssDebit(TypedDict):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
@@ -1048,7 +1085,7 @@ class SetupIntentModifyParamsPaymentMethodOptionsCard(TypedDict):
class SetupIntentModifyParamsPaymentMethodOptionsCardMandateOptions(TypedDict):
amount: int
"""
- Amount to be charged for future payments.
+ Amount to be charged for future payments, specified in the presentment currency.
"""
amount_type: Literal["fixed", "maximum"]
"""
@@ -1378,6 +1415,37 @@ class SetupIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions(
"""
+class SetupIntentModifyParamsPaymentMethodOptionsUpi(TypedDict):
+ mandate_options: NotRequired[
+ "SetupIntentModifyParamsPaymentMethodOptionsUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+
+
+class SetupIntentModifyParamsPaymentMethodOptionsUpiMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class SetupIntentModifyParamsPaymentMethodOptionsUsBankAccount(TypedDict):
financial_connections: NotRequired[
"SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections"
@@ -1401,7 +1469,7 @@ class SetupIntentModifyParamsPaymentMethodOptionsUsBankAccount(TypedDict):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
diff --git a/stripe/params/_setup_intent_update_params.py b/stripe/params/_setup_intent_update_params.py
index 9efeec89d..d9cd12697 100644
--- a/stripe/params/_setup_intent_update_params.py
+++ b/stripe/params/_setup_intent_update_params.py
@@ -28,7 +28,7 @@ class SetupIntentUpdateParams(TypedDict):
An arbitrary string attached to the object. Often useful for displaying to users.
"""
excluded_payment_method_types: NotRequired[
- "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
+ "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]"
]
"""
The list of payment method types to exclude from use with this SetupIntent.
@@ -358,6 +358,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -365,6 +366,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict):
"""
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.
"""
+ upi: NotRequired["SetupIntentUpdateParamsPaymentMethodDataUpi"]
+ """
+ If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.
+ """
us_bank_account: NotRequired[
"SetupIntentUpdateParamsPaymentMethodDataUsBankAccount"
]
@@ -838,6 +843,34 @@ class SetupIntentUpdateParamsPaymentMethodDataTwint(TypedDict):
pass
+class SetupIntentUpdateParamsPaymentMethodDataUpi(TypedDict):
+ mandate_options: NotRequired[
+ "SetupIntentUpdateParamsPaymentMethodDataUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+
+
+class SetupIntentUpdateParamsPaymentMethodDataUpiMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class SetupIntentUpdateParamsPaymentMethodDataUsBankAccount(TypedDict):
account_holder_type: NotRequired[Literal["company", "individual"]]
"""
@@ -920,6 +953,10 @@ class SetupIntentUpdateParamsPaymentMethodOptions(TypedDict):
"""
If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
"""
+ upi: NotRequired["SetupIntentUpdateParamsPaymentMethodOptionsUpi"]
+ """
+ If this is a `upi` SetupIntent, this sub-hash contains details about the UPI payment method options.
+ """
us_bank_account: NotRequired[
"SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccount"
]
@@ -943,7 +980,7 @@ class SetupIntentUpdateParamsPaymentMethodOptionsAcssDebit(TypedDict):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
@@ -1047,7 +1084,7 @@ class SetupIntentUpdateParamsPaymentMethodOptionsCard(TypedDict):
class SetupIntentUpdateParamsPaymentMethodOptionsCardMandateOptions(TypedDict):
amount: int
"""
- Amount to be charged for future payments.
+ Amount to be charged for future payments, specified in the presentment currency.
"""
amount_type: Literal["fixed", "maximum"]
"""
@@ -1377,6 +1414,37 @@ class SetupIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions(
"""
+class SetupIntentUpdateParamsPaymentMethodOptionsUpi(TypedDict):
+ mandate_options: NotRequired[
+ "SetupIntentUpdateParamsPaymentMethodOptionsUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+
+
+class SetupIntentUpdateParamsPaymentMethodOptionsUpiMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccount(TypedDict):
financial_connections: NotRequired[
"SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections"
@@ -1400,7 +1468,7 @@ class SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccount(TypedDict):
Literal["automatic", "instant", "microdeposits"]
]
"""
- Bank account verification method.
+ Bank account verification method. The default value is `automatic`.
"""
diff --git a/stripe/params/_subscription_create_params.py b/stripe/params/_subscription_create_params.py
index 4ea23d05c..6ed882ec9 100644
--- a/stripe/params/_subscription_create_params.py
+++ b/stripe/params/_subscription_create_params.py
@@ -149,7 +149,7 @@ class SubscriptionCreateParams(RequestOptions):
"Literal['']|SubscriptionCreateParamsPendingInvoiceItemInterval"
]
"""
- Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api#create_invoice) for the given subscription at the specified interval.
+ Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api/invoices/create) for the given subscription at the specified interval.
"""
proration_behavior: NotRequired[
Literal["always_invoice", "create_prorations", "none"]
@@ -640,7 +640,7 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCardMandateOpti
):
amount: NotRequired[int]
"""
- Amount to be charged for future payments.
+ Amount to be charged for future payments, specified in the presentment currency.
"""
amount_type: NotRequired[Literal["fixed", "maximum"]]
"""
diff --git a/stripe/params/_subscription_item_create_params.py b/stripe/params/_subscription_item_create_params.py
index 952d15004..a940e6fc3 100644
--- a/stripe/params/_subscription_item_create_params.py
+++ b/stripe/params/_subscription_item_create_params.py
@@ -63,7 +63,7 @@ class SubscriptionItemCreateParams(RequestOptions):
"""
proration_date: NotRequired[int]
"""
- If set, the proration will be calculated as though the subscription was updated at the given time. This can be used to apply the same proration that was previewed with the [upcoming invoice](https://api.stripe.com#retrieve_customer_invoice) endpoint.
+ If set, the proration will be calculated as though the subscription was updated at the given time. This can be used to apply the same proration that was previewed with the [upcoming invoice](https://docs.stripe.com/api/invoices/create_preview) endpoint.
"""
quantity: NotRequired[int]
"""
diff --git a/stripe/params/_subscription_item_delete_params.py b/stripe/params/_subscription_item_delete_params.py
index 746aa91a7..82aea8fea 100644
--- a/stripe/params/_subscription_item_delete_params.py
+++ b/stripe/params/_subscription_item_delete_params.py
@@ -34,5 +34,5 @@ class SubscriptionItemDeleteParams(RequestOptions):
"""
proration_date: NotRequired[int]
"""
- If set, the proration will be calculated as though the subscription was updated at the given time. This can be used to apply the same proration that was previewed with the [upcoming invoice](https://api.stripe.com#retrieve_customer_invoice) endpoint.
+ If set, the proration will be calculated as though the subscription was updated at the given time. This can be used to apply the same proration that was previewed with the [upcoming invoice](https://docs.stripe.com/api/invoices/create_preview) endpoint.
"""
diff --git a/stripe/params/_subscription_item_modify_params.py b/stripe/params/_subscription_item_modify_params.py
index 01546a6c0..66c061369 100644
--- a/stripe/params/_subscription_item_modify_params.py
+++ b/stripe/params/_subscription_item_modify_params.py
@@ -67,7 +67,7 @@ class SubscriptionItemModifyParams(RequestOptions):
"""
proration_date: NotRequired[int]
"""
- If set, the proration will be calculated as though the subscription was updated at the given time. This can be used to apply the same proration that was previewed with the [upcoming invoice](https://api.stripe.com#retrieve_customer_invoice) endpoint.
+ If set, the proration will be calculated as though the subscription was updated at the given time. This can be used to apply the same proration that was previewed with the [upcoming invoice](https://docs.stripe.com/api/invoices/create_preview) endpoint.
"""
quantity: NotRequired[int]
"""
diff --git a/stripe/params/_subscription_item_update_params.py b/stripe/params/_subscription_item_update_params.py
index 3261b558d..fb0394d65 100644
--- a/stripe/params/_subscription_item_update_params.py
+++ b/stripe/params/_subscription_item_update_params.py
@@ -66,7 +66,7 @@ class SubscriptionItemUpdateParams(TypedDict):
"""
proration_date: NotRequired[int]
"""
- If set, the proration will be calculated as though the subscription was updated at the given time. This can be used to apply the same proration that was previewed with the [upcoming invoice](https://api.stripe.com#retrieve_customer_invoice) endpoint.
+ If set, the proration will be calculated as though the subscription was updated at the given time. This can be used to apply the same proration that was previewed with the [upcoming invoice](https://docs.stripe.com/api/invoices/create_preview) endpoint.
"""
quantity: NotRequired[int]
"""
diff --git a/stripe/params/_subscription_modify_params.py b/stripe/params/_subscription_modify_params.py
index 3b18c5e19..88e5074e2 100644
--- a/stripe/params/_subscription_modify_params.py
+++ b/stripe/params/_subscription_modify_params.py
@@ -133,7 +133,7 @@ class SubscriptionModifyParams(RequestOptions):
"Literal['']|SubscriptionModifyParamsPendingInvoiceItemInterval"
]
"""
- Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api#create_invoice) for the given subscription at the specified interval.
+ Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api/invoices/create) for the given subscription at the specified interval.
"""
proration_behavior: NotRequired[
Literal["always_invoice", "create_prorations", "none"]
@@ -466,7 +466,7 @@ class SubscriptionModifyParamsItemPriceDataRecurring(TypedDict):
class SubscriptionModifyParamsPauseCollection(TypedDict):
behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
"""
- The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
+ The payment collection behavior for this subscription while paused.
"""
resumes_at: NotRequired[int]
"""
@@ -621,7 +621,7 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOpti
):
amount: NotRequired[int]
"""
- Amount to be charged for future payments.
+ Amount to be charged for future payments, specified in the presentment currency.
"""
amount_type: NotRequired[Literal["fixed", "maximum"]]
"""
diff --git a/stripe/params/_subscription_update_params.py b/stripe/params/_subscription_update_params.py
index 1c3fe50ec..5a5bae611 100644
--- a/stripe/params/_subscription_update_params.py
+++ b/stripe/params/_subscription_update_params.py
@@ -132,7 +132,7 @@ class SubscriptionUpdateParams(TypedDict):
"Literal['']|SubscriptionUpdateParamsPendingInvoiceItemInterval"
]
"""
- Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api#create_invoice) for the given subscription at the specified interval.
+ Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api/invoices/create) for the given subscription at the specified interval.
"""
proration_behavior: NotRequired[
Literal["always_invoice", "create_prorations", "none"]
@@ -465,7 +465,7 @@ class SubscriptionUpdateParamsItemPriceDataRecurring(TypedDict):
class SubscriptionUpdateParamsPauseCollection(TypedDict):
behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
"""
- The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
+ The payment collection behavior for this subscription while paused.
"""
resumes_at: NotRequired[int]
"""
@@ -620,7 +620,7 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCardMandateOpti
):
amount: NotRequired[int]
"""
- Amount to be charged for future payments.
+ Amount to be charged for future payments, specified in the presentment currency.
"""
amount_type: NotRequired[Literal["fixed", "maximum"]]
"""
diff --git a/stripe/params/_webhook_endpoint_create_params.py b/stripe/params/_webhook_endpoint_create_params.py
index 14fb2d966..48e27d082 100644
--- a/stripe/params/_webhook_endpoint_create_params.py
+++ b/stripe/params/_webhook_endpoint_create_params.py
@@ -129,6 +129,7 @@ class WebhookEndpointCreateParams(RequestOptions):
"2025-12-15.clover",
"2026-01-28.clover",
"2026-02-25.clover",
+ "2026-03-25.dahlia",
]
]
"""
diff --git a/stripe/params/checkout/__init__.py b/stripe/params/checkout/__init__.py
index 7a0905661..8f31951db 100644
--- a/stripe/params/checkout/__init__.py
+++ b/stripe/params/checkout/__init__.py
@@ -67,6 +67,7 @@
SessionCreateParamsPaymentMethodOptionsCardInstallments as SessionCreateParamsPaymentMethodOptionsCardInstallments,
SessionCreateParamsPaymentMethodOptionsCardRestrictions as SessionCreateParamsPaymentMethodOptionsCardRestrictions,
SessionCreateParamsPaymentMethodOptionsCashapp as SessionCreateParamsPaymentMethodOptionsCashapp,
+ SessionCreateParamsPaymentMethodOptionsCrypto as SessionCreateParamsPaymentMethodOptionsCrypto,
SessionCreateParamsPaymentMethodOptionsCustomerBalance as SessionCreateParamsPaymentMethodOptionsCustomerBalance,
SessionCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer as SessionCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer,
SessionCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as SessionCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer,
@@ -103,6 +104,8 @@
SessionCreateParamsPaymentMethodOptionsSofort as SessionCreateParamsPaymentMethodOptionsSofort,
SessionCreateParamsPaymentMethodOptionsSwish as SessionCreateParamsPaymentMethodOptionsSwish,
SessionCreateParamsPaymentMethodOptionsTwint as SessionCreateParamsPaymentMethodOptionsTwint,
+ SessionCreateParamsPaymentMethodOptionsUpi as SessionCreateParamsPaymentMethodOptionsUpi,
+ SessionCreateParamsPaymentMethodOptionsUpiMandateOptions as SessionCreateParamsPaymentMethodOptionsUpiMandateOptions,
SessionCreateParamsPaymentMethodOptionsUsBankAccount as SessionCreateParamsPaymentMethodOptionsUsBankAccount,
SessionCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections as SessionCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
SessionCreateParamsPaymentMethodOptionsWechatPay as SessionCreateParamsPaymentMethodOptionsWechatPay,
@@ -123,6 +126,7 @@
SessionCreateParamsSubscriptionDataBillingModeFlexible as SessionCreateParamsSubscriptionDataBillingModeFlexible,
SessionCreateParamsSubscriptionDataInvoiceSettings as SessionCreateParamsSubscriptionDataInvoiceSettings,
SessionCreateParamsSubscriptionDataInvoiceSettingsIssuer as SessionCreateParamsSubscriptionDataInvoiceSettingsIssuer,
+ SessionCreateParamsSubscriptionDataPendingInvoiceItemInterval as SessionCreateParamsSubscriptionDataPendingInvoiceItemInterval,
SessionCreateParamsSubscriptionDataTransferData as SessionCreateParamsSubscriptionDataTransferData,
SessionCreateParamsSubscriptionDataTrialSettings as SessionCreateParamsSubscriptionDataTrialSettings,
SessionCreateParamsSubscriptionDataTrialSettingsEndBehavior as SessionCreateParamsSubscriptionDataTrialSettingsEndBehavior,
@@ -434,6 +438,10 @@
"stripe.params.checkout._session_create_params",
False,
),
+ "SessionCreateParamsPaymentMethodOptionsCrypto": (
+ "stripe.params.checkout._session_create_params",
+ False,
+ ),
"SessionCreateParamsPaymentMethodOptionsCustomerBalance": (
"stripe.params.checkout._session_create_params",
False,
@@ -578,6 +586,14 @@
"stripe.params.checkout._session_create_params",
False,
),
+ "SessionCreateParamsPaymentMethodOptionsUpi": (
+ "stripe.params.checkout._session_create_params",
+ False,
+ ),
+ "SessionCreateParamsPaymentMethodOptionsUpiMandateOptions": (
+ "stripe.params.checkout._session_create_params",
+ False,
+ ),
"SessionCreateParamsPaymentMethodOptionsUsBankAccount": (
"stripe.params.checkout._session_create_params",
False,
@@ -658,6 +674,10 @@
"stripe.params.checkout._session_create_params",
False,
),
+ "SessionCreateParamsSubscriptionDataPendingInvoiceItemInterval": (
+ "stripe.params.checkout._session_create_params",
+ False,
+ ),
"SessionCreateParamsSubscriptionDataTransferData": (
"stripe.params.checkout._session_create_params",
False,
diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py
index 92f47e76d..8a1fa88af 100644
--- a/stripe/params/checkout/_session_create_params.py
+++ b/stripe/params/checkout/_session_create_params.py
@@ -151,6 +151,7 @@ class SessionCreateParams(RequestOptions):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -168,6 +169,10 @@ class SessionCreateParams(RequestOptions):
"""
The Epoch time in seconds at which the Checkout Session will expire. It can be anywhere from 30 minutes to 24 hours after Checkout Session creation. By default, this value is 24 hours from creation.
"""
+ integration_identifier: NotRequired[str]
+ """
+ The integration identifier for this Checkout Session. Multiple Checkout Sessions can have the same integration identifier.
+ """
invoice_creation: NotRequired["SessionCreateParamsInvoiceCreation"]
"""
Generate a post-purchase Invoice for one-time payments.
@@ -339,6 +344,7 @@ class SessionCreateParams(RequestOptions):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -431,7 +437,17 @@ class SessionCreateParams(RequestOptions):
"""
Controls tax ID collection during checkout.
"""
- ui_mode: NotRequired[Literal["custom", "embedded", "hosted"]]
+ ui_mode: NotRequired[
+ Literal[
+ "custom",
+ "elements",
+ "embedded",
+ "embedded_page",
+ "form",
+ "hosted",
+ "hosted_page",
+ ]
+ ]
"""
The UI mode of the Session. Defaults to `hosted`.
"""
@@ -1236,6 +1252,10 @@ class SessionCreateParamsPaymentMethodOptions(TypedDict):
"""
contains details about the Cashapp Pay payment method options.
"""
+ crypto: NotRequired["SessionCreateParamsPaymentMethodOptionsCrypto"]
+ """
+ contains details about the Crypto payment method options.
+ """
customer_balance: NotRequired[
"SessionCreateParamsPaymentMethodOptionsCustomerBalance"
]
@@ -1366,6 +1386,10 @@ class SessionCreateParamsPaymentMethodOptions(TypedDict):
"""
contains details about the TWINT payment method options.
"""
+ upi: NotRequired["SessionCreateParamsPaymentMethodOptionsUpi"]
+ """
+ contains details about the UPI payment method options.
+ """
us_bank_account: NotRequired[
"SessionCreateParamsPaymentMethodOptionsUsBankAccount"
]
@@ -1707,6 +1731,19 @@ class SessionCreateParamsPaymentMethodOptionsCashapp(TypedDict):
"""
+class SessionCreateParamsPaymentMethodOptionsCrypto(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
+
class SessionCreateParamsPaymentMethodOptionsCustomerBalance(TypedDict):
bank_transfer: NotRequired[
"SessionCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer"
@@ -2314,6 +2351,37 @@ class SessionCreateParamsPaymentMethodOptionsTwint(TypedDict):
"""
+class SessionCreateParamsPaymentMethodOptionsUpi(TypedDict):
+ mandate_options: NotRequired[
+ "SessionCreateParamsPaymentMethodOptionsUpiMandateOptions"
+ ]
+ """
+ Additional fields for Mandate creation
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+
+
+class SessionCreateParamsPaymentMethodOptionsUpiMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class SessionCreateParamsPaymentMethodOptionsUsBankAccount(TypedDict):
financial_connections: NotRequired[
"SessionCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections"
@@ -2847,6 +2915,12 @@ class SessionCreateParamsSubscriptionData(TypedDict):
"""
The account on behalf of which to charge, for each of the subscription's invoices.
"""
+ pending_invoice_item_interval: NotRequired[
+ "SessionCreateParamsSubscriptionDataPendingInvoiceItemInterval"
+ ]
+ """
+ Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api#create_invoice) for the given subscription at the specified interval.
+ """
proration_behavior: NotRequired[Literal["create_prorations", "none"]]
"""
Determines how to handle prorations resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
@@ -2913,6 +2987,17 @@ class SessionCreateParamsSubscriptionDataInvoiceSettingsIssuer(TypedDict):
"""
+class SessionCreateParamsSubscriptionDataPendingInvoiceItemInterval(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies invoicing frequency. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: NotRequired[int]
+ """
+ The number of intervals between invoices. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
+ """
+
+
class SessionCreateParamsSubscriptionDataTransferData(TypedDict):
amount_percent: NotRequired[float]
"""
diff --git a/stripe/params/issuing/__init__.py b/stripe/params/issuing/__init__.py
index 6598454d6..1b16240ff 100644
--- a/stripe/params/issuing/__init__.py
+++ b/stripe/params/issuing/__init__.py
@@ -82,6 +82,8 @@
)
from stripe.params.issuing._card_create_params import (
CardCreateParams as CardCreateParams,
+ CardCreateParamsLifecycleControls as CardCreateParamsLifecycleControls,
+ CardCreateParamsLifecycleControlsCancelAfter as CardCreateParamsLifecycleControlsCancelAfter,
CardCreateParamsPin as CardCreateParamsPin,
CardCreateParamsShipping as CardCreateParamsShipping,
CardCreateParamsShippingAddress as CardCreateParamsShippingAddress,
@@ -531,6 +533,14 @@
False,
),
"CardCreateParams": ("stripe.params.issuing._card_create_params", False),
+ "CardCreateParamsLifecycleControls": (
+ "stripe.params.issuing._card_create_params",
+ False,
+ ),
+ "CardCreateParamsLifecycleControlsCancelAfter": (
+ "stripe.params.issuing._card_create_params",
+ False,
+ ),
"CardCreateParamsPin": (
"stripe.params.issuing._card_create_params",
False,
diff --git a/stripe/params/issuing/_authorization_create_params.py b/stripe/params/issuing/_authorization_create_params.py
index c20825cd5..17ab73799 100644
--- a/stripe/params/issuing/_authorization_create_params.py
+++ b/stripe/params/issuing/_authorization_create_params.py
@@ -598,7 +598,7 @@ class AuthorizationCreateParamsRiskAssessmentCardTestingRisk(TypedDict):
"""
The % of declines due to incorrect verification data (like CVV or expiry) in the past hour, taking place at the same merchant. Higher rates correspond to a greater probability of bad actors attempting to utilize valid card credentials at merchants with verification requirements. Takes on values between 0 and 100.
"""
- risk_level: Literal[
+ level: Literal[
"elevated", "highest", "low", "normal", "not_assessed", "unknown"
]
"""
@@ -624,7 +624,7 @@ class AuthorizationCreateParamsRiskAssessmentMerchantDisputeRisk(TypedDict):
"""
The dispute rate observed across all Stripe Issuing authorizations for this merchant. For example, a value of 50 means 50% of authorizations from this merchant on Stripe Issuing have resulted in a dispute. Higher values mean a higher likelihood the authorization is disputed. Takes on values between 0 and 100.
"""
- risk_level: Literal[
+ level: Literal[
"elevated", "highest", "low", "normal", "not_assessed", "unknown"
]
"""
diff --git a/stripe/params/issuing/_card_create_params.py b/stripe/params/issuing/_card_create_params.py
index ed8b0c5b1..7f8c6032a 100644
--- a/stripe/params/issuing/_card_create_params.py
+++ b/stripe/params/issuing/_card_create_params.py
@@ -30,6 +30,10 @@ class CardCreateParams(RequestOptions):
"""
The new financial account ID the card will be associated with. This field allows a card to be reassigned to a different financial account.
"""
+ lifecycle_controls: NotRequired["CardCreateParamsLifecycleControls"]
+ """
+ Rules that control the lifecycle of this card, such as automatic cancellation. Refer to our [documentation](https://docs.stripe.com/issuing/controls/lifecycle-controls) for more details.
+ """
metadata: NotRequired[Dict[str, str]]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -74,6 +78,20 @@ class CardCreateParams(RequestOptions):
"""
+class CardCreateParamsLifecycleControls(TypedDict):
+ cancel_after: "CardCreateParamsLifecycleControlsCancelAfter"
+ """
+ Cancels the card after the specified conditions are met.
+ """
+
+
+class CardCreateParamsLifecycleControlsCancelAfter(TypedDict):
+ payment_count: int
+ """
+ The card is automatically cancelled when it makes this number of non-zero payment authorizations and transactions. The count includes penny authorizations, but doesn't include non-payment actions, such as authorization advice.
+ """
+
+
class CardCreateParamsPin(TypedDict):
encrypted_number: NotRequired[str]
"""
diff --git a/stripe/params/issuing/_cardholder_create_params.py b/stripe/params/issuing/_cardholder_create_params.py
index 83fa12c91..27a085a65 100644
--- a/stripe/params/issuing/_cardholder_create_params.py
+++ b/stripe/params/issuing/_cardholder_create_params.py
@@ -135,11 +135,11 @@ class CardholderCreateParamsIndividualCardIssuingUserTermsAcceptance(
):
date: NotRequired[int]
"""
- The Unix timestamp marking when the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users.
+ The Unix timestamp marking when the cardholder accepted the Authorized User Terms.
"""
ip: NotRequired[str]
"""
- The IP address from which the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users.
+ The IP address from which the cardholder accepted the Authorized User Terms.
"""
user_agent: NotRequired["Literal['']|str"]
"""
diff --git a/stripe/params/issuing/_cardholder_modify_params.py b/stripe/params/issuing/_cardholder_modify_params.py
index d3b0361bb..40579b905 100644
--- a/stripe/params/issuing/_cardholder_modify_params.py
+++ b/stripe/params/issuing/_cardholder_modify_params.py
@@ -127,11 +127,11 @@ class CardholderModifyParamsIndividualCardIssuingUserTermsAcceptance(
):
date: NotRequired[int]
"""
- The Unix timestamp marking when the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users.
+ The Unix timestamp marking when the cardholder accepted the Authorized User Terms.
"""
ip: NotRequired[str]
"""
- The IP address from which the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users.
+ The IP address from which the cardholder accepted the Authorized User Terms.
"""
user_agent: NotRequired["Literal['']|str"]
"""
diff --git a/stripe/params/issuing/_cardholder_update_params.py b/stripe/params/issuing/_cardholder_update_params.py
index 9e1d6ceae..352828995 100644
--- a/stripe/params/issuing/_cardholder_update_params.py
+++ b/stripe/params/issuing/_cardholder_update_params.py
@@ -126,11 +126,11 @@ class CardholderUpdateParamsIndividualCardIssuingUserTermsAcceptance(
):
date: NotRequired[int]
"""
- The Unix timestamp marking when the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users.
+ The Unix timestamp marking when the cardholder accepted the Authorized User Terms.
"""
ip: NotRequired[str]
"""
- The IP address from which the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users.
+ The IP address from which the cardholder accepted the Authorized User Terms.
"""
user_agent: NotRequired["Literal['']|str"]
"""
diff --git a/stripe/params/radar/_value_list_create_params.py b/stripe/params/radar/_value_list_create_params.py
index a91570312..073d25da9 100644
--- a/stripe/params/radar/_value_list_create_params.py
+++ b/stripe/params/radar/_value_list_create_params.py
@@ -20,6 +20,7 @@ class ValueListCreateParams(RequestOptions):
"card_fingerprint",
"case_sensitive_string",
"country",
+ "crypto_fingerprint",
"customer_id",
"email",
"ip_address",
@@ -29,7 +30,7 @@ class ValueListCreateParams(RequestOptions):
]
]
"""
- Type of the items in the value list. One of `card_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`. Use `string` if the item type is unknown or mixed.
+ Type of the items in the value list. One of `card_fingerprint`, `card_bin`, `crypto_fingerprint`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`. Use `string` if the item type is unknown or mixed.
"""
metadata: NotRequired[Dict[str, str]]
"""
diff --git a/stripe/params/tax/_calculation_create_params.py b/stripe/params/tax/_calculation_create_params.py
index 90d7925eb..0300e5c9b 100644
--- a/stripe/params/tax/_calculation_create_params.py
+++ b/stripe/params/tax/_calculation_create_params.py
@@ -219,7 +219,7 @@ class CalculationCreateParamsCustomerDetailsTaxId(TypedDict):
class CalculationCreateParamsLineItem(TypedDict):
amount: int
"""
- A positive integer representing the line item's total price in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ A positive integer representing the line item's total price in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes are calculated on top of this amount.
"""
metadata: NotRequired[Dict[str, str]]
@@ -285,7 +285,7 @@ class CalculationCreateParamsShipFromDetailsAddress(TypedDict):
class CalculationCreateParamsShippingCost(TypedDict):
amount: NotRequired[int]
"""
- A positive integer in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) representing the shipping charge. If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes are calculated on top of this amount.
+ A positive integer in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units) representing the shipping charge. If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes are calculated on top of this amount.
"""
shipping_rate: NotRequired[str]
"""
diff --git a/stripe/params/tax/_transaction_create_reversal_params.py b/stripe/params/tax/_transaction_create_reversal_params.py
index 48764a84a..469258dbd 100644
--- a/stripe/params/tax/_transaction_create_reversal_params.py
+++ b/stripe/params/tax/_transaction_create_reversal_params.py
@@ -12,7 +12,7 @@ class TransactionCreateReversalParams(RequestOptions):
"""
flat_amount: NotRequired[int]
"""
- A flat amount to reverse across the entire transaction, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) in negative. This value represents the total amount to refund from the transaction, including taxes.
+ A flat amount to reverse across the entire transaction, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units) in negative. This value represents the total amount to refund from the transaction, including taxes.
"""
line_items: NotRequired[List["TransactionCreateReversalParamsLineItem"]]
"""
@@ -43,11 +43,11 @@ class TransactionCreateReversalParams(RequestOptions):
class TransactionCreateReversalParamsLineItem(TypedDict):
amount: int
"""
- The amount to reverse, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) in negative.
+ The amount to reverse, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units) in negative.
"""
amount_tax: int
"""
- The amount of tax to reverse, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) in negative.
+ The amount of tax to reverse, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units) in negative.
"""
metadata: NotRequired[Dict[str, str]]
"""
@@ -70,9 +70,9 @@ class TransactionCreateReversalParamsLineItem(TypedDict):
class TransactionCreateReversalParamsShippingCost(TypedDict):
amount: int
"""
- The amount to reverse, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) in negative.
+ The amount to reverse, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units) in negative.
"""
amount_tax: int
"""
- The amount of tax to reverse, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) in negative.
+ The amount of tax to reverse, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units) in negative.
"""
diff --git a/stripe/params/test_helpers/__init__.py b/stripe/params/test_helpers/__init__.py
index 39dc6913e..49d177c58 100644
--- a/stripe/params/test_helpers/__init__.py
+++ b/stripe/params/test_helpers/__init__.py
@@ -63,6 +63,8 @@
ConfirmationTokenCreateParamsPaymentMethodDataSofort as ConfirmationTokenCreateParamsPaymentMethodDataSofort,
ConfirmationTokenCreateParamsPaymentMethodDataSwish as ConfirmationTokenCreateParamsPaymentMethodDataSwish,
ConfirmationTokenCreateParamsPaymentMethodDataTwint as ConfirmationTokenCreateParamsPaymentMethodDataTwint,
+ ConfirmationTokenCreateParamsPaymentMethodDataUpi as ConfirmationTokenCreateParamsPaymentMethodDataUpi,
+ ConfirmationTokenCreateParamsPaymentMethodDataUpiMandateOptions as ConfirmationTokenCreateParamsPaymentMethodDataUpiMandateOptions,
ConfirmationTokenCreateParamsPaymentMethodDataUsBankAccount as ConfirmationTokenCreateParamsPaymentMethodDataUsBankAccount,
ConfirmationTokenCreateParamsPaymentMethodDataWechatPay as ConfirmationTokenCreateParamsPaymentMethodDataWechatPay,
ConfirmationTokenCreateParamsPaymentMethodDataZip as ConfirmationTokenCreateParamsPaymentMethodDataZip,
@@ -312,6 +314,14 @@
"stripe.params.test_helpers._confirmation_token_create_params",
False,
),
+ "ConfirmationTokenCreateParamsPaymentMethodDataUpi": (
+ "stripe.params.test_helpers._confirmation_token_create_params",
+ False,
+ ),
+ "ConfirmationTokenCreateParamsPaymentMethodDataUpiMandateOptions": (
+ "stripe.params.test_helpers._confirmation_token_create_params",
+ False,
+ ),
"ConfirmationTokenCreateParamsPaymentMethodDataUsBankAccount": (
"stripe.params.test_helpers._confirmation_token_create_params",
False,
diff --git a/stripe/params/test_helpers/_confirmation_token_create_params.py b/stripe/params/test_helpers/_confirmation_token_create_params.py
index 4275e64c3..9d2755200 100644
--- a/stripe/params/test_helpers/_confirmation_token_create_params.py
+++ b/stripe/params/test_helpers/_confirmation_token_create_params.py
@@ -345,6 +345,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"sofort",
"swish",
"twint",
+ "upi",
"us_bank_account",
"wechat_pay",
"zip",
@@ -352,6 +353,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"""
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.
"""
+ upi: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataUpi"]
+ """
+ If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.
+ """
us_bank_account: NotRequired[
"ConfirmationTokenCreateParamsPaymentMethodDataUsBankAccount"
]
@@ -829,6 +834,36 @@ class ConfirmationTokenCreateParamsPaymentMethodDataTwint(TypedDict):
pass
+class ConfirmationTokenCreateParamsPaymentMethodDataUpi(TypedDict):
+ mandate_options: NotRequired[
+ "ConfirmationTokenCreateParamsPaymentMethodDataUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+
+
+class ConfirmationTokenCreateParamsPaymentMethodDataUpiMandateOptions(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription.
+ """
+
+
class ConfirmationTokenCreateParamsPaymentMethodDataUsBankAccount(TypedDict):
account_holder_type: NotRequired[Literal["company", "individual"]]
"""
diff --git a/stripe/params/test_helpers/issuing/_authorization_create_params.py b/stripe/params/test_helpers/issuing/_authorization_create_params.py
index 92a39a655..2d9f677ab 100644
--- a/stripe/params/test_helpers/issuing/_authorization_create_params.py
+++ b/stripe/params/test_helpers/issuing/_authorization_create_params.py
@@ -597,7 +597,7 @@ class AuthorizationCreateParamsRiskAssessmentCardTestingRisk(TypedDict):
"""
The % of declines due to incorrect verification data (like CVV or expiry) in the past hour, taking place at the same merchant. Higher rates correspond to a greater probability of bad actors attempting to utilize valid card credentials at merchants with verification requirements. Takes on values between 0 and 100.
"""
- risk_level: Literal[
+ level: Literal[
"elevated", "highest", "low", "normal", "not_assessed", "unknown"
]
"""
@@ -623,7 +623,7 @@ class AuthorizationCreateParamsRiskAssessmentMerchantDisputeRisk(TypedDict):
"""
The dispute rate observed across all Stripe Issuing authorizations for this merchant. For example, a value of 50 means 50% of authorizations from this merchant on Stripe Issuing have resulted in a dispute. Higher values mean a higher likelihood the authorization is disputed. Takes on values between 0 and 100.
"""
- risk_level: Literal[
+ level: Literal[
"elevated", "highest", "low", "normal", "not_assessed", "unknown"
]
"""
diff --git a/stripe/params/v2/core/_account_create_params.py b/stripe/params/v2/core/_account_create_params.py
index df66c0851..22c9450a2 100644
--- a/stripe/params/v2/core/_account_create_params.py
+++ b/stripe/params/v2/core/_account_create_params.py
@@ -1618,11 +1618,11 @@ class AccountCreateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
class AccountCreateParamsIdentityBusinessDetailsAnnualRevenueAmount(TypedDict):
- value: NotRequired[int]
+ value: int
"""
A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
- currency: NotRequired[str]
+ 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).
"""
@@ -1979,11 +1979,11 @@ class AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue(
class AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount(
TypedDict,
):
- value: NotRequired[int]
+ value: int
"""
A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
- currency: NotRequired[str]
+ 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).
"""
diff --git a/stripe/params/v2/core/_account_token_create_params.py b/stripe/params/v2/core/_account_token_create_params.py
index 27caa5617..901701db6 100644
--- a/stripe/params/v2/core/_account_token_create_params.py
+++ b/stripe/params/v2/core/_account_token_create_params.py
@@ -292,11 +292,11 @@ class AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
class AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenueAmount(
TypedDict,
):
- value: NotRequired[int]
+ value: int
"""
A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
- currency: NotRequired[str]
+ 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).
"""
@@ -653,11 +653,11 @@ class AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue(
class AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount(
TypedDict,
):
- value: NotRequired[int]
+ value: int
"""
A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
- currency: NotRequired[str]
+ 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).
"""
diff --git a/stripe/params/v2/core/_account_update_params.py b/stripe/params/v2/core/_account_update_params.py
index 4547db2a5..39ece5e9b 100644
--- a/stripe/params/v2/core/_account_update_params.py
+++ b/stripe/params/v2/core/_account_update_params.py
@@ -1682,11 +1682,11 @@ class AccountUpdateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
class AccountUpdateParamsIdentityBusinessDetailsAnnualRevenueAmount(TypedDict):
- value: NotRequired[int]
+ value: int
"""
A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
- currency: NotRequired[str]
+ 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).
"""
@@ -2043,11 +2043,11 @@ class AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue(
class AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount(
TypedDict,
):
- value: NotRequired[int]
+ value: int
"""
A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
- currency: NotRequired[str]
+ 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).
"""
diff --git a/stripe/radar/_early_fraud_warning.py b/stripe/radar/_early_fraud_warning.py
index 63defa05f..81c6af07e 100644
--- a/stripe/radar/_early_fraud_warning.py
+++ b/stripe/radar/_early_fraud_warning.py
@@ -50,7 +50,7 @@ class EarlyFraudWarning(ListableAPIResource["EarlyFraudWarning"]):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["radar.early_fraud_warning"]
"""
diff --git a/stripe/radar/_payment_evaluation.py b/stripe/radar/_payment_evaluation.py
index d64a2ecba..6b976347d 100644
--- a/stripe/radar/_payment_evaluation.py
+++ b/stripe/radar/_payment_evaluation.py
@@ -177,27 +177,6 @@ class UserInterventionResolved(StripeObject):
"user_intervention_resolved": UserInterventionResolved,
}
- class Insights(StripeObject):
- class FraudulentDispute(StripeObject):
- recommended_action: Literal["block", "continue"]
- """
- Recommended action based on the risk score. Possible values are `block` and `continue`.
- """
- risk_score: int
- """
- Stripe Radar's evaluation of the risk level of the payment. Possible values for evaluated payments are between 0 and 100, with higher scores indicating higher risk.
- """
-
- evaluated_at: int
- """
- The timestamp when the evaluation was performed.
- """
- fraudulent_dispute: FraudulentDispute
- """
- Scores, insights and recommended action for one scorer for this PaymentEvaluation.
- """
- _inner_class_types = {"fraudulent_dispute": FraudulentDispute}
-
class Outcome(StripeObject):
class MerchantBlocked(StripeObject):
reason: Literal[
@@ -466,6 +445,27 @@ class Address(StripeObject):
"shipping_details": ShippingDetails,
}
+ class Signals(StripeObject):
+ class FraudulentPayment(StripeObject):
+ evaluated_at: int
+ """
+ The time when this signal was evaluated.
+ """
+ risk_level: Literal["elevated", "highest", "normal"]
+ """
+ Risk level of this signal, based on the score.
+ """
+ score: float
+ """
+ Score for this insight. Possible values for evaluated payments are -1 and any value between 0 and 100. The value is returned with two decimal places. A score of -1 indicates a test integration and higher scores indicate a higher likelihood of the signal being true.
+ """
+
+ fraudulent_payment: FraudulentPayment
+ """
+ A payment evaluation signal with evaluated_at, risk_level, and score fields.
+ """
+ _inner_class_types = {"fraudulent_payment": FraudulentPayment}
+
client_device_metadata_details: Optional[ClientDeviceMetadataDetails]
"""
Client device metadata attached to this payment evaluation.
@@ -486,13 +486,9 @@ class Address(StripeObject):
"""
Unique identifier for the object.
"""
- insights: Insights
- """
- Collection of scores and insights for this payment evaluation.
- """
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
@@ -510,6 +506,14 @@ class Address(StripeObject):
"""
Payment details attached to this payment evaluation.
"""
+ recommended_action: Literal["block", "continue"]
+ """
+ Recommended action based on the score of the fraudulent_payment signal. Possible values are `block` and `continue`.
+ """
+ signals: Signals
+ """
+ Collection of signals for this payment evaluation.
+ """
@classmethod
def create(
@@ -547,7 +551,7 @@ async def create_async(
"client_device_metadata_details": ClientDeviceMetadataDetails,
"customer_details": CustomerDetails,
"events": Event,
- "insights": Insights,
"outcome": Outcome,
"payment_details": PaymentDetails,
+ "signals": Signals,
}
diff --git a/stripe/radar/_value_list.py b/stripe/radar/_value_list.py
index 6192c53d5..bc4521b6a 100644
--- a/stripe/radar/_value_list.py
+++ b/stripe/radar/_value_list.py
@@ -64,6 +64,7 @@ class ValueList(
"card_fingerprint",
"case_sensitive_string",
"country",
+ "crypto_fingerprint",
"customer_id",
"email",
"ip_address",
@@ -72,7 +73,7 @@ class ValueList(
"us_bank_account_fingerprint",
]
"""
- The type of items in the value list. One of `card_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`.
+ The type of items in the value list. One of `card_fingerprint`, `card_bin`, `crypto_fingerprint`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`.
"""
list_items: ListObject["ValueListItem"]
"""
@@ -80,7 +81,7 @@ class ValueList(
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/radar/_value_list_item.py b/stripe/radar/_value_list_item.py
index 8c680a31b..b9010a26c 100644
--- a/stripe/radar/_value_list_item.py
+++ b/stripe/radar/_value_list_item.py
@@ -55,7 +55,7 @@ class ValueListItem(
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["radar.value_list_item"]
"""
diff --git a/stripe/reporting/_report_type.py b/stripe/reporting/_report_type.py
index 1cf2a57f2..9b0c487a4 100644
--- a/stripe/reporting/_report_type.py
+++ b/stripe/reporting/_report_type.py
@@ -47,7 +47,7 @@ class ReportType(ListableAPIResource["ReportType"]):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
name: str
"""
diff --git a/stripe/reserve/_hold.py b/stripe/reserve/_hold.py
index 0808b9e8a..c433e7306 100644
--- a/stripe/reserve/_hold.py
+++ b/stripe/reserve/_hold.py
@@ -57,7 +57,7 @@ class ReleaseSchedule(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
diff --git a/stripe/reserve/_plan.py b/stripe/reserve/_plan.py
index 0b60e3894..2d9738577 100644
--- a/stripe/reserve/_plan.py
+++ b/stripe/reserve/_plan.py
@@ -55,7 +55,7 @@ class RollingRelease(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
diff --git a/stripe/reserve/_release.py b/stripe/reserve/_release.py
index 2cdecd6b7..6b02c45a7 100644
--- a/stripe/reserve/_release.py
+++ b/stripe/reserve/_release.py
@@ -55,7 +55,7 @@ class SourceTransaction(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
diff --git a/stripe/sigma/_scheduled_query_run.py b/stripe/sigma/_scheduled_query_run.py
index 29cae6df0..00e1460bd 100644
--- a/stripe/sigma/_scheduled_query_run.py
+++ b/stripe/sigma/_scheduled_query_run.py
@@ -53,7 +53,7 @@ class Error(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["scheduled_query_run"]
"""
diff --git a/stripe/tax/_calculation.py b/stripe/tax/_calculation.py
index 344fdfe23..15e283cb6 100644
--- a/stripe/tax/_calculation.py
+++ b/stripe/tax/_calculation.py
@@ -287,7 +287,7 @@ class TaxRateDetails(StripeObject):
amount: int
"""
- The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
jurisdiction: Jurisdiction
sourcing: Literal["destination", "origin"]
@@ -320,7 +320,7 @@ class TaxRateDetails(StripeObject):
"""
taxable_amount: int
"""
- The amount on which tax is calculated, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ The amount on which tax is calculated, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
_inner_class_types = {
"jurisdiction": Jurisdiction,
@@ -329,11 +329,11 @@ class TaxRateDetails(StripeObject):
amount: int
"""
- The shipping amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
+ The shipping amount in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
"""
amount_tax: int
"""
- The amount of tax calculated for shipping, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ The amount of tax calculated for shipping, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
shipping_rate: Optional[str]
"""
@@ -410,7 +410,7 @@ class FlatAmount(StripeObject):
amount: int
"""
- The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
inclusive: bool
"""
@@ -439,13 +439,13 @@ class FlatAmount(StripeObject):
"""
taxable_amount: int
"""
- The amount on which tax is calculated, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ The amount on which tax is calculated, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
_inner_class_types = {"tax_rate_details": TaxRateDetails}
amount_total: int
"""
- Total amount after taxes in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ Total amount after taxes in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
currency: str
"""
@@ -470,7 +470,7 @@ class FlatAmount(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["tax.calculation"]
"""
diff --git a/stripe/tax/_calculation_line_item.py b/stripe/tax/_calculation_line_item.py
index 702b039e6..797735c03 100644
--- a/stripe/tax/_calculation_line_item.py
+++ b/stripe/tax/_calculation_line_item.py
@@ -60,7 +60,7 @@ class TaxRateDetails(StripeObject):
amount: int
"""
- The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
jurisdiction: Jurisdiction
sourcing: Literal["destination", "origin"]
@@ -93,7 +93,7 @@ class TaxRateDetails(StripeObject):
"""
taxable_amount: int
"""
- The amount on which tax is calculated, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ The amount on which tax is calculated, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
_inner_class_types = {
"jurisdiction": Jurisdiction,
@@ -102,11 +102,11 @@ class TaxRateDetails(StripeObject):
amount: int
"""
- The line item amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
+ The line item amount in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
"""
amount_tax: int
"""
- The amount of tax calculated for this line item, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ The amount of tax calculated for this line item, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
id: str
"""
@@ -114,7 +114,7 @@ class TaxRateDetails(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
diff --git a/stripe/tax/_registration.py b/stripe/tax/_registration.py
index aef4287f0..771aae44f 100644
--- a/stripe/tax/_registration.py
+++ b/stripe/tax/_registration.py
@@ -1268,7 +1268,7 @@ class Zw(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["tax.registration"]
"""
diff --git a/stripe/tax/_settings.py b/stripe/tax/_settings.py
index 7a3f7988d..1fefd5321 100644
--- a/stripe/tax/_settings.py
+++ b/stripe/tax/_settings.py
@@ -92,7 +92,7 @@ class Pending(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["tax.settings"]
"""
diff --git a/stripe/tax/_transaction.py b/stripe/tax/_transaction.py
index 79bfe9fe4..355efdbf5 100644
--- a/stripe/tax/_transaction.py
+++ b/stripe/tax/_transaction.py
@@ -296,7 +296,7 @@ class TaxRateDetails(StripeObject):
amount: int
"""
- The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
jurisdiction: Jurisdiction
sourcing: Literal["destination", "origin"]
@@ -329,7 +329,7 @@ class TaxRateDetails(StripeObject):
"""
taxable_amount: int
"""
- The amount on which tax is calculated, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ The amount on which tax is calculated, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
_inner_class_types = {
"jurisdiction": Jurisdiction,
@@ -338,11 +338,11 @@ class TaxRateDetails(StripeObject):
amount: int
"""
- The shipping amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
+ The shipping amount in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
"""
amount_tax: int
"""
- The amount of tax calculated for shipping, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ The amount of tax calculated for shipping, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
shipping_rate: Optional[str]
"""
@@ -385,7 +385,7 @@ class TaxRateDetails(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
diff --git a/stripe/tax/_transaction_line_item.py b/stripe/tax/_transaction_line_item.py
index 9f575613d..d8190d602 100644
--- a/stripe/tax/_transaction_line_item.py
+++ b/stripe/tax/_transaction_line_item.py
@@ -18,11 +18,11 @@ class Reversal(StripeObject):
amount: int
"""
- The line item amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
+ The line item amount in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
"""
amount_tax: int
"""
- The amount of tax calculated for this line item, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ The amount of tax calculated for this line item, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
id: str
"""
@@ -30,7 +30,7 @@ class Reversal(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
diff --git a/stripe/terminal/_configuration.py b/stripe/terminal/_configuration.py
index 5d28c6f8e..09065bd32 100644
--- a/stripe/terminal/_configuration.py
+++ b/stripe/terminal/_configuration.py
@@ -520,7 +520,7 @@ class PersonalPsk(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
name: Optional[str]
"""
diff --git a/stripe/terminal/_location.py b/stripe/terminal/_location.py
index 03cb2a0db..77fec24cf 100644
--- a/stripe/terminal/_location.py
+++ b/stripe/terminal/_location.py
@@ -155,7 +155,7 @@ class AddressKanji(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/terminal/_reader.py b/stripe/terminal/_reader.py
index 985c9180c..d1bed9311 100644
--- a/stripe/terminal/_reader.py
+++ b/stripe/terminal/_reader.py
@@ -558,7 +558,7 @@ class LineItem(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
location: Optional[ExpandableField["Location"]]
"""
diff --git a/stripe/test_helpers/_test_clock.py b/stripe/test_helpers/_test_clock.py
index ebc506b42..eec1a87bb 100644
--- a/stripe/test_helpers/_test_clock.py
+++ b/stripe/test_helpers/_test_clock.py
@@ -74,7 +74,7 @@ class Advancing(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
name: Optional[str]
"""
diff --git a/stripe/treasury/_credit_reversal.py b/stripe/treasury/_credit_reversal.py
index d3724e5df..d92fc01a6 100644
--- a/stripe/treasury/_credit_reversal.py
+++ b/stripe/treasury/_credit_reversal.py
@@ -65,7 +65,7 @@ class StatusTransitions(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/treasury/_debit_reversal.py b/stripe/treasury/_debit_reversal.py
index 3a32d5778..078a99f74 100644
--- a/stripe/treasury/_debit_reversal.py
+++ b/stripe/treasury/_debit_reversal.py
@@ -75,7 +75,7 @@ class StatusTransitions(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/treasury/_financial_account.py b/stripe/treasury/_financial_account.py
index eebba859b..89635dbaa 100644
--- a/stripe/treasury/_financial_account.py
+++ b/stripe/treasury/_financial_account.py
@@ -174,7 +174,7 @@ class Closed(StripeObject):
is_default: Optional[bool]
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Optional[Dict[str, str]]
"""
diff --git a/stripe/treasury/_inbound_transfer.py b/stripe/treasury/_inbound_transfer.py
index 7c7704948..b8a115dbb 100644
--- a/stripe/treasury/_inbound_transfer.py
+++ b/stripe/treasury/_inbound_transfer.py
@@ -213,7 +213,7 @@ class StatusTransitions(StripeObject):
linked_flows: LinkedFlows
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/treasury/_outbound_payment.py b/stripe/treasury/_outbound_payment.py
index d855c0ffc..2eebfdf4c 100644
--- a/stripe/treasury/_outbound_payment.py
+++ b/stripe/treasury/_outbound_payment.py
@@ -285,7 +285,7 @@ class UsDomesticWire(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/treasury/_outbound_transfer.py b/stripe/treasury/_outbound_transfer.py
index eb9808aab..96cd3f87b 100644
--- a/stripe/treasury/_outbound_transfer.py
+++ b/stripe/treasury/_outbound_transfer.py
@@ -262,7 +262,7 @@ class UsDomesticWire(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
metadata: Dict[str, str]
"""
diff --git a/stripe/treasury/_received_credit.py b/stripe/treasury/_received_credit.py
index f9ee3602b..113d36544 100644
--- a/stripe/treasury/_received_credit.py
+++ b/stripe/treasury/_received_credit.py
@@ -255,7 +255,7 @@ class ReversalDetails(StripeObject):
linked_flows: LinkedFlows
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
network: Literal["ach", "card", "stripe", "us_domestic_wire"]
"""
diff --git a/stripe/treasury/_received_debit.py b/stripe/treasury/_received_debit.py
index 8f35bb3c4..1d8203065 100644
--- a/stripe/treasury/_received_debit.py
+++ b/stripe/treasury/_received_debit.py
@@ -208,7 +208,7 @@ class ReversalDetails(StripeObject):
linked_flows: LinkedFlows
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
network: Literal["ach", "card", "stripe"]
"""
diff --git a/stripe/treasury/_transaction.py b/stripe/treasury/_transaction.py
index d747cffef..69837c541 100644
--- a/stripe/treasury/_transaction.py
+++ b/stripe/treasury/_transaction.py
@@ -175,7 +175,7 @@ class StatusTransitions(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["treasury.transaction"]
"""
diff --git a/stripe/treasury/_transaction_entry.py b/stripe/treasury/_transaction_entry.py
index 66845f811..1a4bb4568 100644
--- a/stripe/treasury/_transaction_entry.py
+++ b/stripe/treasury/_transaction_entry.py
@@ -158,7 +158,7 @@ class FlowDetails(StripeObject):
"""
livemode: bool
"""
- Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
object: Literal["treasury.transaction_entry"]
"""
diff --git a/stripe/v2/core/_account.py b/stripe/v2/core/_account.py
index dbd504df6..f2d2ff96a 100644
--- a/stripe/v2/core/_account.py
+++ b/stripe/v2/core/_account.py
@@ -2879,11 +2879,11 @@ class Address(StripeObject):
class AnnualRevenue(StripeObject):
class Amount(StripeObject):
- currency: Optional[str]
+ 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).
"""
- value: Optional[int]
+ value: int
"""
A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
@@ -3199,11 +3199,11 @@ class IdNumber(StripeObject):
class MonthlyEstimatedRevenue(StripeObject):
class Amount(StripeObject):
- currency: Optional[str]
+ 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).
"""
- value: Optional[int]
+ value: int
"""
A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py
index 5f8d6fe14..3a21506d7 100644
--- a/tests/test_generated_examples.py
+++ b/tests/test_generated_examples.py
@@ -44145,6 +44145,31 @@ def test_v2_core_event_destination_post_5_service(
is_json=True,
)
+ def test_rate_limit_error_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/core/accounts",
+ rbody='{"error":{"type":"rate_limit","code":"account_rate_limit_exceeded"}}',
+ rcode=400,
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ try:
+ client.v2.core.accounts.list()
+ except _error.RateLimitError:
+ pass
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/core/accounts",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
def test_temporary_session_expired_error_service(
self, http_client_mock: HTTPClientMock
) -> None:
From 8c154b6bd6e51e72ed132bab998bf62d3ba0ed07 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Wed, 18 Mar 2026 01:40:29 +0000
Subject: [PATCH 7/7] Update generated code for v2204 and
---
CODEGEN_VERSION | 2 +-
stripe/params/v2/core/__init__.py | 30 ----------------
.../params/v2/core/_account_create_params.py | 33 ++---------------
.../v2/core/_account_token_create_params.py | 35 ++-----------------
.../params/v2/core/_account_update_params.py | 33 ++---------------
stripe/v2/core/_account.py | 23 +-----------
6 files changed, 11 insertions(+), 145 deletions(-)
diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index 50664d873..1992b4523 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-7e4b403fdf4c0324e5e9c1abe3fdfd4d0e968551
\ No newline at end of file
+273184f052dd3c191b1993098365d0c2437d2cb4
\ No newline at end of file
diff --git a/stripe/params/v2/core/__init__.py b/stripe/params/v2/core/__init__.py
index 432b4593f..ab9fca8eb 100644
--- a/stripe/params/v2/core/__init__.py
+++ b/stripe/params/v2/core/__init__.py
@@ -98,7 +98,6 @@
AccountCreateParamsIdentityBusinessDetails as AccountCreateParamsIdentityBusinessDetails,
AccountCreateParamsIdentityBusinessDetailsAddress as AccountCreateParamsIdentityBusinessDetailsAddress,
AccountCreateParamsIdentityBusinessDetailsAnnualRevenue as AccountCreateParamsIdentityBusinessDetailsAnnualRevenue,
- AccountCreateParamsIdentityBusinessDetailsAnnualRevenueAmount as AccountCreateParamsIdentityBusinessDetailsAnnualRevenueAmount,
AccountCreateParamsIdentityBusinessDetailsDocuments as AccountCreateParamsIdentityBusinessDetailsDocuments,
AccountCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification as AccountCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification,
AccountCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense as AccountCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense,
@@ -113,7 +112,6 @@
AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership as AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership,
AccountCreateParamsIdentityBusinessDetailsIdNumber as AccountCreateParamsIdentityBusinessDetailsIdNumber,
AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue as AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue,
- AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount as AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount,
AccountCreateParamsIdentityBusinessDetailsRegistrationDate as AccountCreateParamsIdentityBusinessDetailsRegistrationDate,
AccountCreateParamsIdentityBusinessDetailsScriptAddresses as AccountCreateParamsIdentityBusinessDetailsScriptAddresses,
AccountCreateParamsIdentityBusinessDetailsScriptAddressesKana as AccountCreateParamsIdentityBusinessDetailsScriptAddressesKana,
@@ -170,7 +168,6 @@
AccountTokenCreateParamsIdentityBusinessDetails as AccountTokenCreateParamsIdentityBusinessDetails,
AccountTokenCreateParamsIdentityBusinessDetailsAddress as AccountTokenCreateParamsIdentityBusinessDetailsAddress,
AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue as AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue,
- AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenueAmount as AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenueAmount,
AccountTokenCreateParamsIdentityBusinessDetailsDocuments as AccountTokenCreateParamsIdentityBusinessDetailsDocuments,
AccountTokenCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification,
AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense,
@@ -185,7 +182,6 @@
AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership,
AccountTokenCreateParamsIdentityBusinessDetailsIdNumber as AccountTokenCreateParamsIdentityBusinessDetailsIdNumber,
AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue as AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue,
- AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount as AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount,
AccountTokenCreateParamsIdentityBusinessDetailsRegistrationDate as AccountTokenCreateParamsIdentityBusinessDetailsRegistrationDate,
AccountTokenCreateParamsIdentityBusinessDetailsScriptAddresses as AccountTokenCreateParamsIdentityBusinessDetailsScriptAddresses,
AccountTokenCreateParamsIdentityBusinessDetailsScriptAddressesKana as AccountTokenCreateParamsIdentityBusinessDetailsScriptAddressesKana,
@@ -310,7 +306,6 @@
AccountUpdateParamsIdentityBusinessDetails as AccountUpdateParamsIdentityBusinessDetails,
AccountUpdateParamsIdentityBusinessDetailsAddress as AccountUpdateParamsIdentityBusinessDetailsAddress,
AccountUpdateParamsIdentityBusinessDetailsAnnualRevenue as AccountUpdateParamsIdentityBusinessDetailsAnnualRevenue,
- AccountUpdateParamsIdentityBusinessDetailsAnnualRevenueAmount as AccountUpdateParamsIdentityBusinessDetailsAnnualRevenueAmount,
AccountUpdateParamsIdentityBusinessDetailsDocuments as AccountUpdateParamsIdentityBusinessDetailsDocuments,
AccountUpdateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification as AccountUpdateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification,
AccountUpdateParamsIdentityBusinessDetailsDocumentsCompanyLicense as AccountUpdateParamsIdentityBusinessDetailsDocumentsCompanyLicense,
@@ -325,7 +320,6 @@
AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership as AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership,
AccountUpdateParamsIdentityBusinessDetailsIdNumber as AccountUpdateParamsIdentityBusinessDetailsIdNumber,
AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue as AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue,
- AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount as AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount,
AccountUpdateParamsIdentityBusinessDetailsRegistrationDate as AccountUpdateParamsIdentityBusinessDetailsRegistrationDate,
AccountUpdateParamsIdentityBusinessDetailsScriptAddresses as AccountUpdateParamsIdentityBusinessDetailsScriptAddresses,
AccountUpdateParamsIdentityBusinessDetailsScriptAddressesKana as AccountUpdateParamsIdentityBusinessDetailsScriptAddressesKana,
@@ -753,10 +747,6 @@
"stripe.params.v2.core._account_create_params",
False,
),
- "AccountCreateParamsIdentityBusinessDetailsAnnualRevenueAmount": (
- "stripe.params.v2.core._account_create_params",
- False,
- ),
"AccountCreateParamsIdentityBusinessDetailsDocuments": (
"stripe.params.v2.core._account_create_params",
False,
@@ -813,10 +803,6 @@
"stripe.params.v2.core._account_create_params",
False,
),
- "AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount": (
- "stripe.params.v2.core._account_create_params",
- False,
- ),
"AccountCreateParamsIdentityBusinessDetailsRegistrationDate": (
"stripe.params.v2.core._account_create_params",
False,
@@ -1006,10 +992,6 @@
"stripe.params.v2.core._account_token_create_params",
False,
),
- "AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenueAmount": (
- "stripe.params.v2.core._account_token_create_params",
- False,
- ),
"AccountTokenCreateParamsIdentityBusinessDetailsDocuments": (
"stripe.params.v2.core._account_token_create_params",
False,
@@ -1066,10 +1048,6 @@
"stripe.params.v2.core._account_token_create_params",
False,
),
- "AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount": (
- "stripe.params.v2.core._account_token_create_params",
- False,
- ),
"AccountTokenCreateParamsIdentityBusinessDetailsRegistrationDate": (
"stripe.params.v2.core._account_token_create_params",
False,
@@ -1550,10 +1528,6 @@
"stripe.params.v2.core._account_update_params",
False,
),
- "AccountUpdateParamsIdentityBusinessDetailsAnnualRevenueAmount": (
- "stripe.params.v2.core._account_update_params",
- False,
- ),
"AccountUpdateParamsIdentityBusinessDetailsDocuments": (
"stripe.params.v2.core._account_update_params",
False,
@@ -1610,10 +1584,6 @@
"stripe.params.v2.core._account_update_params",
False,
),
- "AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount": (
- "stripe.params.v2.core._account_update_params",
- False,
- ),
"AccountUpdateParamsIdentityBusinessDetailsRegistrationDate": (
"stripe.params.v2.core._account_update_params",
False,
diff --git a/stripe/params/v2/core/_account_create_params.py b/stripe/params/v2/core/_account_create_params.py
index 22c9450a2..fe9fc9d17 100644
--- a/stripe/params/v2/core/_account_create_params.py
+++ b/stripe/params/v2/core/_account_create_params.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
+from stripe.v2._amount import AmountParam
from typing import Dict, List
from typing_extensions import Literal, NotRequired, TypedDict
@@ -1605,9 +1606,7 @@ class AccountCreateParamsIdentityBusinessDetailsAddress(TypedDict):
class AccountCreateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
- amount: NotRequired[
- "AccountCreateParamsIdentityBusinessDetailsAnnualRevenueAmount"
- ]
+ amount: NotRequired[AmountParam]
"""
A non-negative integer representing the amount in the smallest currency unit.
"""
@@ -1617,17 +1616,6 @@ class AccountCreateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
"""
-class AccountCreateParamsIdentityBusinessDetailsAnnualRevenueAmount(TypedDict):
- value: int
- """
- A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
- """
- 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).
- """
-
-
class AccountCreateParamsIdentityBusinessDetailsDocuments(TypedDict):
bank_account_ownership_verification: NotRequired[
"AccountCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification"
@@ -1968,27 +1956,12 @@ class AccountCreateParamsIdentityBusinessDetailsIdNumber(TypedDict):
class AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue(
TypedDict,
):
- amount: NotRequired[
- "AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount"
- ]
+ amount: NotRequired[AmountParam]
"""
A non-negative integer representing the amount in the smallest currency unit.
"""
-class AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount(
- TypedDict,
-):
- value: int
- """
- A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
- """
- 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).
- """
-
-
class AccountCreateParamsIdentityBusinessDetailsRegistrationDate(TypedDict):
day: int
"""
diff --git a/stripe/params/v2/core/_account_token_create_params.py b/stripe/params/v2/core/_account_token_create_params.py
index 901701db6..ad853f64b 100644
--- a/stripe/params/v2/core/_account_token_create_params.py
+++ b/stripe/params/v2/core/_account_token_create_params.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
+from stripe.v2._amount import AmountParam
from typing import Dict, List, Optional
from typing_extensions import Literal, NotRequired, TypedDict
@@ -277,9 +278,7 @@ class AccountTokenCreateParamsIdentityBusinessDetailsAddress(TypedDict):
class AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
- amount: NotRequired[
- "AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenueAmount"
- ]
+ amount: NotRequired[AmountParam]
"""
A non-negative integer representing the amount in the smallest currency unit.
"""
@@ -289,19 +288,6 @@ class AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
"""
-class AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenueAmount(
- TypedDict,
-):
- value: int
- """
- A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
- """
- 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).
- """
-
-
class AccountTokenCreateParamsIdentityBusinessDetailsDocuments(TypedDict):
bank_account_ownership_verification: NotRequired[
"AccountTokenCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification"
@@ -642,27 +628,12 @@ class AccountTokenCreateParamsIdentityBusinessDetailsIdNumber(TypedDict):
class AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue(
TypedDict,
):
- amount: NotRequired[
- "AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount"
- ]
+ amount: NotRequired[AmountParam]
"""
A non-negative integer representing the amount in the smallest currency unit.
"""
-class AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount(
- TypedDict,
-):
- value: int
- """
- A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
- """
- 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).
- """
-
-
class AccountTokenCreateParamsIdentityBusinessDetailsRegistrationDate(
TypedDict,
):
diff --git a/stripe/params/v2/core/_account_update_params.py b/stripe/params/v2/core/_account_update_params.py
index 39ece5e9b..6b7c41e1f 100644
--- a/stripe/params/v2/core/_account_update_params.py
+++ b/stripe/params/v2/core/_account_update_params.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
+from stripe.v2._amount import AmountParam
from typing import Dict, List, Optional
from typing_extensions import Literal, NotRequired, TypedDict
@@ -1669,9 +1670,7 @@ class AccountUpdateParamsIdentityBusinessDetailsAddress(TypedDict):
class AccountUpdateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
- amount: NotRequired[
- "AccountUpdateParamsIdentityBusinessDetailsAnnualRevenueAmount"
- ]
+ amount: NotRequired[AmountParam]
"""
A non-negative integer representing the amount in the smallest currency unit.
"""
@@ -1681,17 +1680,6 @@ class AccountUpdateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict):
"""
-class AccountUpdateParamsIdentityBusinessDetailsAnnualRevenueAmount(TypedDict):
- value: int
- """
- A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
- """
- 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).
- """
-
-
class AccountUpdateParamsIdentityBusinessDetailsDocuments(TypedDict):
bank_account_ownership_verification: NotRequired[
"AccountUpdateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification"
@@ -2032,27 +2020,12 @@ class AccountUpdateParamsIdentityBusinessDetailsIdNumber(TypedDict):
class AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue(
TypedDict,
):
- amount: NotRequired[
- "AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount"
- ]
+ amount: NotRequired[AmountParam]
"""
A non-negative integer representing the amount in the smallest currency unit.
"""
-class AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenueAmount(
- TypedDict,
-):
- value: int
- """
- A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
- """
- 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).
- """
-
-
class AccountUpdateParamsIdentityBusinessDetailsRegistrationDate(TypedDict):
day: int
"""
diff --git a/stripe/v2/core/_account.py b/stripe/v2/core/_account.py
index f2d2ff96a..95c0b0352 100644
--- a/stripe/v2/core/_account.py
+++ b/stripe/v2/core/_account.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._stripe_object import StripeObject
+from stripe.v2._amount import Amount
from typing import ClassVar, Dict, List, Optional
from typing_extensions import Literal
@@ -2878,16 +2879,6 @@ class Address(StripeObject):
"""
class AnnualRevenue(StripeObject):
- class Amount(StripeObject):
- 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).
- """
- value: int
- """
- A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
- """
-
amount: Optional[Amount]
"""
Annual revenue amount in minor currency units (for example, '123' for 1.23 USD).
@@ -2896,7 +2887,6 @@ class Amount(StripeObject):
"""
The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
"""
- _inner_class_types = {"amount": Amount}
class Documents(StripeObject):
class BankAccountOwnershipVerification(StripeObject):
@@ -3198,21 +3188,10 @@ class IdNumber(StripeObject):
"""
class MonthlyEstimatedRevenue(StripeObject):
- class Amount(StripeObject):
- 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).
- """
- value: int
- """
- A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
- """
-
amount: Optional[Amount]
"""
Estimated monthly revenue amount in minor currency units (for example, '123' for 1.23 USD).
"""
- _inner_class_types = {"amount": Amount}
class RegistrationDate(StripeObject):
day: int