diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index d86387251..3e0fd8d32 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -2e266cdaf4a7328b80cf9bc2448dfca91811415c \ No newline at end of file +1af5aa444ea8141a2d2b8d86e76c73f788f65e09 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 6993dd02f..30723023b 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2274 \ No newline at end of file +v2277 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index ffc0af1e0..a342a625e 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -277,6 +277,10 @@ class Capabilities(StripeObject): """ The status of the Billie capability of the account, or whether the account can directly process Billie payments. """ + bizum_payments: Optional[Literal["active", "inactive", "pending"]] + """ + The status of the Bizum capability of the account, or whether the account can directly process Bizum payments. + """ blik_payments: Optional[Literal["active", "inactive", "pending"]] """ The status of the blik payments capability of the account, or whether the account can directly process blik charges. @@ -483,6 +487,10 @@ class Capabilities(StripeObject): """ The status of the Satispay capability of the account, or whether the account can directly process Satispay payments. """ + scalapay_payments: Optional[Literal["active", "inactive", "pending"]] + """ + The status of the Scalapay capability of the account, or whether the account can directly process Scalapay payments. + """ sepa_bank_transfer_payments: Optional[ Literal["active", "inactive", "pending"] ] diff --git a/stripe/_account_service.py b/stripe/_account_service.py index 2bf76eeb3..c1e7fb37e 100644 --- a/stripe/_account_service.py +++ b/stripe/_account_service.py @@ -402,6 +402,30 @@ async def reject_async( ), ) + def serialize_batch_delete( + self, + account: str, + params: Optional["AccountDeleteParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes an Account delete request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"account": account}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + def serialize_batch_update( self, account: str, @@ -416,12 +440,34 @@ def serialize_batch_update( options.get("stripe_version") if options else None ) or _ApiVersion.CURRENT context = options.get("stripe_context") if options else None - item = { + batch_request = { "id": item_id, "path_params": {"account": account}, "params": params, "stripe_version": stripe_version, } if context is not None: - item["context"] = context - return json.dumps(item) + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_create( + self, + params: Optional["AccountCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes an Account create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_api_requestor.py b/stripe/_api_requestor.py index 4ec9cc1a8..423c3e059 100644 --- a/stripe/_api_requestor.py +++ b/stripe/_api_requestor.py @@ -72,6 +72,14 @@ _default_proxy: Optional[str] = None +def _maybe_emit_stripe_notice(rheaders: Mapping[str, str]) -> None: + notice = rheaders.get("Stripe-Notice") + if notice: + import warnings + + warnings.warn(notice) + + def is_v2_delete_resp(method: str, api_mode: ApiMode) -> bool: return method == "delete" and api_mode == "V2" @@ -209,6 +217,7 @@ def request( options=options, usage=usage, ) + _maybe_emit_stripe_notice(rheaders) resp = requestor._interpret_response(rbody, rcode, rheaders, api_mode) obj = _convert_to_stripe_object( @@ -243,6 +252,7 @@ async def request_async( options=options, usage=usage, ) + _maybe_emit_stripe_notice(rheaders) resp = requestor._interpret_response(rbody, rcode, rheaders, api_mode) obj = _convert_to_stripe_object( diff --git a/stripe/_api_version.py b/stripe/_api_version.py index 1afe7b7af..61b0acc08 100644 --- a/stripe/_api_version.py +++ b/stripe/_api_version.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec class _ApiVersion: - CURRENT = "2026-04-22.preview" + CURRENT = "2026-05-27.preview" diff --git a/stripe/_balance_settings.py b/stripe/_balance_settings.py index 5f2f30f96..f098c0959 100644 --- a/stripe/_balance_settings.py +++ b/stripe/_balance_settings.py @@ -27,6 +27,20 @@ class BalanceSettings( class Payments(StripeObject): class Payouts(StripeObject): + class AutomaticTransferRulesByCurrency(StripeObject): + payout_method: str + """ + The ID of the FinancialAccount that funds will be transferred to during automatic transfers. + """ + transfer_up_to_amount: Optional[int] + """ + The maximum amount in minor units to transfer to the FinancialAccount. Only applicable when `type` is `transfer_up_to_amount`. + """ + type: Literal["transfer_all", "transfer_up_to_amount"] + """ + The type of automatic transfer rule. + """ + class Schedule(StripeObject): interval: Optional[ Literal["daily", "manual", "monthly", "weekly"] @@ -53,6 +67,12 @@ class Schedule(StripeObject): The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly. """ + automatic_transfer_rules_by_currency: Optional[ + UntypedStripeObject[List[AutomaticTransferRulesByCurrency]] + ] + """ + Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount. + """ minimum_balance_by_currency: Optional[UntypedStripeObject[int]] """ The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](https://docs.stripe.com/payouts/minimum-balances-for-automatic-payouts). @@ -69,9 +89,27 @@ class Schedule(StripeObject): """ Whether the funds in this account can be paid out. """ - _inner_class_types = {"schedule": Schedule} + _inner_class_types = { + "automatic_transfer_rules_by_currency": AutomaticTransferRulesByCurrency, + "schedule": Schedule, + } + _inner_class_dicts = ["automatic_transfer_rules_by_currency"] class SettlementTiming(StripeObject): + class StartOfDay(StripeObject): + hour: int + """ + Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs). + """ + minutes: int + """ + Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30. + """ + timezone: str + """ + Timezone for the customized start of day. Must be a [supported customized start of day timezone](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs). + """ + delay_days: int """ The number of days charge funds are held before becoming available. @@ -80,6 +118,11 @@ class SettlementTiming(StripeObject): """ The number of days charge funds are held before becoming available. If present, overrides the default, or minimum available, for the account. """ + start_of_day: Optional[StartOfDay] + """ + Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](https://docs.stripe.com/connect/customized-start-of-day) documentation. + """ + _inner_class_types = {"start_of_day": StartOfDay} debit_negative_balances: Optional[bool] """ diff --git a/stripe/_charge.py b/stripe/_charge.py index 494cfe72a..20c5fa1db 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -461,6 +461,12 @@ class Billie(StripeObject): The Billie transaction ID associated with this payment. """ + class Bizum(StripeObject): + transaction_id: Optional[str] + """ + The Bizum transaction ID associated with this payment. + """ + class Blik(StripeObject): buyer_id: Optional[str] """ @@ -2091,6 +2097,12 @@ class Satispay(StripeObject): The Satispay transaction ID associated with this payment. """ + class Scalapay(StripeObject): + transaction_id: Optional[str] + """ + The Scalapay transaction ID associated with this payment. + """ + class SepaCreditTransfer(StripeObject): bank_name: Optional[str] """ @@ -2210,7 +2222,10 @@ class Swish(StripeObject): """ class Twint(StripeObject): - pass + mandate: Optional[str] + """ + ID of the multi use Mandate generated by the PaymentIntent + """ class Upi(StripeObject): vpa: Optional[str] @@ -2292,6 +2307,7 @@ class Zip(StripeObject): bacs_debit: Optional[BacsDebit] bancontact: Optional[Bancontact] billie: Optional[Billie] + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -2333,6 +2349,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_credit_transfer: Optional[SepaCreditTransfer] sepa_debit: Optional[SepaDebit] shopeepay: Optional[Shopeepay] @@ -2366,6 +2383,7 @@ class Zip(StripeObject): "bacs_debit": BacsDebit, "bancontact": Bancontact, "billie": Billie, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -2407,6 +2425,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, "shopeepay": Shopeepay, diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index ad65334c0..b1c673016 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -223,6 +223,9 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + class Bizum(StripeObject): + pass + class Blik(StripeObject): pass @@ -1389,6 +1392,9 @@ class SamsungPay(StripeObject): class Satispay(StripeObject): pass + class Scalapay(StripeObject): + pass + class SepaDebit(StripeObject): class GeneratedFrom(StripeObject): charge: Optional[ExpandableField["Charge"]] @@ -1576,6 +1582,7 @@ class Zip(StripeObject): bancontact: Optional[Bancontact] billie: Optional[Billie] billing_details: BillingDetails + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -1622,6 +1629,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] shopeepay: Optional[Shopeepay] sofort: Optional[Sofort] @@ -1640,6 +1648,7 @@ class Zip(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -1682,6 +1691,7 @@ class Zip(StripeObject): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -1713,6 +1723,7 @@ class Zip(StripeObject): "bancontact": Bancontact, "billie": Billie, "billing_details": BillingDetails, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -1754,6 +1765,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "shopeepay": Shopeepay, "sofort": Sofort, diff --git a/stripe/_coupon_service.py b/stripe/_coupon_service.py index c927d272c..d3fecc3f1 100644 --- a/stripe/_coupon_service.py +++ b/stripe/_coupon_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -216,3 +219,73 @@ async def create_async( options=options, ), ) + + def serialize_batch_delete( + self, + coupon: str, + params: Optional["CouponDeleteParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Coupon delete request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"coupon": coupon}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_update( + self, + coupon: str, + params: Optional["CouponUpdateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Coupon update request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"coupon": coupon}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_create( + self, + params: Optional["CouponCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Coupon create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_credit_note_service.py b/stripe/_credit_note_service.py index dda4556f3..25ad2b823 100644 --- a/stripe/_credit_note_service.py +++ b/stripe/_credit_note_service.py @@ -336,11 +336,11 @@ def serialize_batch_create( options.get("stripe_version") if options else None ) or _ApiVersion.CURRENT context = options.get("stripe_context") if options else None - item = { + batch_request = { "id": item_id, "params": params, "stripe_version": stripe_version, } if context is not None: - item["context"] = context - return json.dumps(item) + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_customer_balance_transaction_service.py b/stripe/_customer_balance_transaction_service.py index 5a4feab8c..3848ea193 100644 --- a/stripe/_customer_balance_transaction_service.py +++ b/stripe/_customer_balance_transaction_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -207,3 +210,52 @@ async def update_async( options=options, ), ) + + def serialize_batch_create( + self, + customer: str, + params: Optional["CustomerBalanceTransactionCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a CustomerBalanceTransaction create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"customer": customer}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_update( + self, + customer: str, + transaction: str, + params: Optional["CustomerBalanceTransactionUpdateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a CustomerBalanceTransaction update request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"customer": customer, "transaction": transaction}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_customer_cash_balance_service.py b/stripe/_customer_cash_balance_service.py index 80ea75f17..014ad3855 100644 --- a/stripe/_customer_cash_balance_service.py +++ b/stripe/_customer_cash_balance_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -104,3 +107,27 @@ async def update_async( options=options, ), ) + + def serialize_batch_update( + self, + customer: str, + params: Optional["CustomerCashBalanceUpdateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a CustomerCashBalance update request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"customer": customer}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_customer_funding_instructions_service.py b/stripe/_customer_funding_instructions_service.py index 463434fe7..56a9ff740 100644 --- a/stripe/_customer_funding_instructions_service.py +++ b/stripe/_customer_funding_instructions_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -61,3 +64,27 @@ async def create_async( options=options, ), ) + + def serialize_batch_create_funding_instructions( + self, + customer: str, + params: Optional["CustomerFundingInstructionsCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a CustomerFundingInstructions create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"customer": customer}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_customer_payment_source_service.py b/stripe/_customer_payment_source_service.py index 589ccff6d..15291b426 100644 --- a/stripe/_customer_payment_source_service.py +++ b/stripe/_customer_payment_source_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -321,3 +324,102 @@ async def verify_async( options=options, ), ) + + def serialize_batch_create( + self, + customer: str, + params: Optional["CustomerPaymentSourceCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a CustomerPaymentSource create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"customer": customer}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_update( + self, + customer: str, + id: str, + params: Optional["CustomerPaymentSourceUpdateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a CustomerPaymentSource update request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"customer": customer, "id": id}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_delete( + self, + customer: str, + id: str, + params: Optional["CustomerPaymentSourceDeleteParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a CustomerPaymentSource delete request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"customer": customer, "id": id}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_verify( + self, + customer: str, + id: str, + params: Optional["CustomerPaymentSourceVerifyParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a CustomerPaymentSource verify request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"customer": customer, "id": id}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_customer_service.py b/stripe/_customer_service.py index f90e27044..58cc7f58c 100644 --- a/stripe/_customer_service.py +++ b/stripe/_customer_service.py @@ -401,6 +401,30 @@ async def search_async( ), ) + def serialize_batch_delete( + self, + customer: str, + params: Optional["CustomerDeleteParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Customer delete request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"customer": customer}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + def serialize_batch_update( self, customer: str, @@ -415,12 +439,58 @@ def serialize_batch_update( options.get("stripe_version") if options else None ) or _ApiVersion.CURRENT context = options.get("stripe_context") if options else None - item = { + batch_request = { "id": item_id, "path_params": {"customer": customer}, "params": params, "stripe_version": stripe_version, } if context is not None: - item["context"] = context - return json.dumps(item) + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_delete_discount( + self, + customer: str, + params: Optional["CustomerDeleteDiscountParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Customer delete_discount request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"customer": customer}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_create( + self, + params: Optional["CustomerCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Customer create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_customer_session_service.py b/stripe/_customer_session_service.py index 836258622..5f0b360a6 100644 --- a/stripe/_customer_session_service.py +++ b/stripe/_customer_session_service.py @@ -1,7 +1,10 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -50,3 +53,25 @@ async def create_async( options=options, ), ) + + def serialize_batch_create( + self, + params: Optional["CustomerSessionCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a CustomerSession create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_customer_tax_id_service.py b/stripe/_customer_tax_id_service.py index 617c1f895..9b70b72b3 100644 --- a/stripe/_customer_tax_id_service.py +++ b/stripe/_customer_tax_id_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -207,3 +210,52 @@ async def create_async( options=options, ), ) + + def serialize_batch_delete( + self, + customer: str, + id: str, + params: Optional["CustomerTaxIdDeleteParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a CustomerTaxId delete request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"customer": customer, "id": id}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_create_for_customer( + self, + customer: str, + params: Optional["CustomerTaxIdCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a CustomerTaxId create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"customer": customer}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_discount.py b/stripe/_discount.py index ab5c35911..bb8118689 100644 --- a/stripe/_discount.py +++ b/stripe/_discount.py @@ -43,7 +43,7 @@ class Source(StripeObject): checkout_session: Optional[str] """ - The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode. + The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Not present for subscription mode. """ customer: Optional[ExpandableField["Customer"]] """ @@ -63,7 +63,7 @@ class Source(StripeObject): """ id: str """ - The ID of the discount object. Discounts cannot be fetched by ID. Use `expand[]=discounts` in API calls to expand discount IDs in an array. + The ID of the discount object. Discounts can't be fetched by ID. Use `expand[]=discounts` in API calls to expand discount IDs in an array. """ invoice: Optional[str] """ diff --git a/stripe/_dispute_service.py b/stripe/_dispute_service.py index a6d2a8ce5..97e46023e 100644 --- a/stripe/_dispute_service.py +++ b/stripe/_dispute_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -185,3 +188,27 @@ async def close_async( options=options, ), ) + + def serialize_batch_close( + self, + dispute: str, + params: Optional["DisputeCloseParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Dispute close request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"dispute": dispute}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_event.py b/stripe/_event.py index 8cba8dddd..b34fcf568 100644 --- a/stripe/_event.py +++ b/stripe/_event.py @@ -437,6 +437,7 @@ class Request(StripeObject): "treasury.received_debit.created", "invoice_payment.detached", "billing.alert.recovered", + "payment_intent.expired", "billing.credit_balance_transaction.created", "billing.credit_grant.updated", "billing.meter.created", diff --git a/stripe/_event_notification_handler.py b/stripe/_event_notification_handler.py index 647ca9d0a..79693ea2b 100644 --- a/stripe/_event_notification_handler.py +++ b/stripe/_event_notification_handler.py @@ -897,12 +897,24 @@ from stripe.events._v2_core_health_authorization_rate_drop_resolved_event import ( V2CoreHealthAuthorizationRateDropResolvedEventNotification, ) + from stripe.events._v2_core_health_elements_error_firing_event import ( + V2CoreHealthElementsErrorFiringEventNotification, + ) + from stripe.events._v2_core_health_elements_error_resolved_event import ( + V2CoreHealthElementsErrorResolvedEventNotification, + ) from stripe.events._v2_core_health_event_generation_failure_resolved_event import ( V2CoreHealthEventGenerationFailureResolvedEventNotification, ) from stripe.events._v2_core_health_fraud_rate_increased_event import ( V2CoreHealthFraudRateIncreasedEventNotification, ) + from stripe.events._v2_core_health_invoice_count_dropped_firing_event import ( + V2CoreHealthInvoiceCountDroppedFiringEventNotification, + ) + from stripe.events._v2_core_health_invoice_count_dropped_resolved_event import ( + V2CoreHealthInvoiceCountDroppedResolvedEventNotification, + ) from stripe.events._v2_core_health_issuing_authorization_request_errors_firing_event import ( V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventNotification, ) @@ -5149,6 +5161,32 @@ def on_v2_core_health_authorization_rate_drop_resolved( ) return func + def on_v2_core_health_elements_error_firing( + self, + func: "Callable[[V2CoreHealthElementsErrorFiringEventNotification, StripeClient], None]", + ): + """ + Registers a callback for the `V2CoreHealthElementsErrorFiringEvent` (`v2.core.health.elements_error.firing`) event notification. + """ + self._register( + "v2.core.health.elements_error.firing", + func, + ) + return func + + def on_v2_core_health_elements_error_resolved( + self, + func: "Callable[[V2CoreHealthElementsErrorResolvedEventNotification, StripeClient], None]", + ): + """ + Registers a callback for the `V2CoreHealthElementsErrorResolvedEvent` (`v2.core.health.elements_error.resolved`) event notification. + """ + self._register( + "v2.core.health.elements_error.resolved", + func, + ) + return func + def on_v2_core_health_event_generation_failure_resolved( self, func: "Callable[[V2CoreHealthEventGenerationFailureResolvedEventNotification, StripeClient], None]", @@ -5175,6 +5213,32 @@ def on_v2_core_health_fraud_rate_increased( ) return func + def on_v2_core_health_invoice_count_dropped_firing( + self, + func: "Callable[[V2CoreHealthInvoiceCountDroppedFiringEventNotification, StripeClient], None]", + ): + """ + Registers a callback for the `V2CoreHealthInvoiceCountDroppedFiringEvent` (`v2.core.health.invoice_count_dropped.firing`) event notification. + """ + self._register( + "v2.core.health.invoice_count_dropped.firing", + func, + ) + return func + + def on_v2_core_health_invoice_count_dropped_resolved( + self, + func: "Callable[[V2CoreHealthInvoiceCountDroppedResolvedEventNotification, StripeClient], None]", + ): + """ + Registers a callback for the `V2CoreHealthInvoiceCountDroppedResolvedEvent` (`v2.core.health.invoice_count_dropped.resolved`) event notification. + """ + self._register( + "v2.core.health.invoice_count_dropped.resolved", + func, + ) + return func + def on_v2_core_health_issuing_authorization_request_errors_firing( self, func: "Callable[[V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventNotification, StripeClient], None]", diff --git a/stripe/_invoice.py b/stripe/_invoice.py index 595e84cd7..903782ac1 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -578,6 +578,7 @@ class LastFinalizationError(StripeObject): "payment_method_invalid_parameter", "payment_method_invalid_parameter_testmode", "payment_method_microdeposit_failed", + "payment_method_microdeposit_processing_error", "payment_method_microdeposit_verification_amounts_invalid", "payment_method_microdeposit_verification_amounts_mismatch", "payment_method_microdeposit_verification_attempts_exceeded", @@ -619,6 +620,7 @@ class LastFinalizationError(StripeObject): "setup_intent_unexpected_state", "shipping_address_invalid", "shipping_calculation_failed", + "siret_invalid", "sku_inactive", "state_unsupported", "status_transition_invalid", @@ -1027,6 +1029,18 @@ class Filters(StripeObject): "financial_connections": FinancialConnections, } + class WechatPay(StripeObject): + app_id: Optional[str] + """ + The app ID registered with WeChat Pay. Only required when client is `ios` or `android`. + """ + client: Optional[ + Literal["android", "ios", "mobile_web", "web"] + ] + """ + The client type that the end customer will pay from. + """ + acss_debit: Optional[AcssDebit] """ If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice's PaymentIntent. @@ -1083,6 +1097,10 @@ class Filters(StripeObject): """ If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. """ + wechat_pay: Optional[WechatPay] + """ + If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent. + """ _inner_class_types = { "acss_debit": AcssDebit, "bancontact": Bancontact, @@ -1098,6 +1116,7 @@ class Filters(StripeObject): "sepa_debit": SepaDebit, "upi": Upi, "us_bank_account": UsBankAccount, + "wechat_pay": WechatPay, } default_mandate: Optional[str] @@ -1158,6 +1177,7 @@ class Filters(StripeObject): "sofort", "stripe_balance", "swish", + "twint", "upi", "us_bank_account", "wechat_pay", @@ -1458,6 +1478,10 @@ class TaxRateDetails(StripeObject): """ The amount, in cents (or local equivalent), that was paid. """ + amount_paid_off_stripe: Optional[int] + """ + Amount, in cents (or local equivalent), that was paid on the invoice outside of Stripe. + """ amount_remaining: int """ The difference between amount_due and amount_paid, in cents (or local equivalent). diff --git a/stripe/_invoice_item.py b/stripe/_invoice_item.py index af0f5c955..60aed2fcf 100644 --- a/stripe/_invoice_item.py +++ b/stripe/_invoice_item.py @@ -224,6 +224,30 @@ class RateCardRateDetails(StripeObject): _field_encodings = {"unit_amount_decimal": "decimal_string"} class ProrationDetails(StripeObject): + class CreditedItems(StripeObject): + class InvoiceLineItemDetails(StripeObject): + invoice: str + """ + The invoice id for the debited line item(s). + """ + invoice_line_items: List[str] + """ + IDs of the debited invoice line item(s) on the invoice that correspond to the credit proration. + """ + + invoice_item: Optional[str] + """ + When `type` is `invoice_item`, the invoice item id for the debited invoice item corresponding to this credit proration. + """ + invoice_line_item_details: Optional[InvoiceLineItemDetails] + type: Literal["invoice_item", "invoice_line_items"] + """ + Whether the credit references a pending invoice item or one or more invoice line items on an invoice. + """ + _inner_class_types = { + "invoice_line_item_details": InvoiceLineItemDetails, + } + class DiscountAmount(StripeObject): amount: int """ @@ -234,11 +258,18 @@ class DiscountAmount(StripeObject): The discount that was applied to get this discount amount. """ + credited_items: Optional[CreditedItems] + """ + For a credit proration, links to the debit invoice line items or invoice item that the credit applies to. + """ discount_amounts: List[DiscountAmount] """ Discount amounts applied when the proration was created. """ - _inner_class_types = {"discount_amounts": DiscountAmount} + _inner_class_types = { + "credited_items": CreditedItems, + "discount_amounts": DiscountAmount, + } amount: int """ diff --git a/stripe/_invoice_item_service.py b/stripe/_invoice_item_service.py index 975b632c3..44372330a 100644 --- a/stripe/_invoice_item_service.py +++ b/stripe/_invoice_item_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -232,3 +235,73 @@ async def create_async( options=options, ), ) + + def serialize_batch_delete( + self, + invoiceitem: str, + params: Optional["InvoiceItemDeleteParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes an InvoiceItem delete request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"invoiceitem": invoiceitem}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_update( + self, + invoiceitem: str, + params: Optional["InvoiceItemUpdateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes an InvoiceItem update request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"invoiceitem": invoiceitem}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_create( + self, + params: Optional["InvoiceItemCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes an InvoiceItem create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_invoice_line_item_service.py b/stripe/_invoice_line_item_service.py index fde1d01de..b715e0c67 100644 --- a/stripe/_invoice_line_item_service.py +++ b/stripe/_invoice_line_item_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -115,3 +118,28 @@ async def update_async( options=options, ), ) + + def serialize_batch_update( + self, + invoice: str, + line_item_id: str, + params: Optional["InvoiceLineItemUpdateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes an InvoiceLineItem update request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"invoice": invoice, "line_item_id": line_item_id}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_invoice_rendering_template_service.py b/stripe/_invoice_rendering_template_service.py index 674bc2b55..54a1316ca 100644 --- a/stripe/_invoice_rendering_template_service.py +++ b/stripe/_invoice_rendering_template_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -193,3 +196,51 @@ async def unarchive_async( options=options, ), ) + + def serialize_batch_archive( + self, + template: str, + params: Optional["InvoiceRenderingTemplateArchiveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes an InvoiceRenderingTemplate archive request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"template": template}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_unarchive( + self, + template: str, + params: Optional["InvoiceRenderingTemplateUnarchiveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes an InvoiceRenderingTemplate unarchive request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"template": template}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_invoice_service.py b/stripe/_invoice_service.py index 6acd644b0..e9917914a 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -851,6 +851,30 @@ async def create_preview_async( ), ) + def serialize_batch_delete( + self, + invoice: str, + params: Optional["InvoiceDeleteParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes an Invoice delete request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"invoice": invoice}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + def serialize_batch_update( self, invoice: str, @@ -865,15 +889,109 @@ def serialize_batch_update( options.get("stripe_version") if options else None ) or _ApiVersion.CURRENT context = options.get("stripe_context") if options else None - item = { + batch_request = { + "id": item_id, + "path_params": {"invoice": invoice}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_create( + self, + params: Optional["InvoiceCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes an Invoice create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_add_lines( + self, + invoice: str, + params: Optional["InvoiceAddLinesParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes an Invoice add_lines request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"invoice": invoice}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_finalize_invoice( + self, + invoice: str, + params: Optional["InvoiceFinalizeInvoiceParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes an Invoice finalize_invoice request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"invoice": invoice}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_mark_uncollectible( + self, + invoice: str, + params: Optional["InvoiceMarkUncollectibleParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes an Invoice mark_uncollectible request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { "id": item_id, "path_params": {"invoice": invoice}, "params": params, "stripe_version": stripe_version, } if context is not None: - item["context"] = context - return json.dumps(item) + batch_request["context"] = context + return json.dumps(batch_request) def serialize_batch_pay( self, @@ -889,12 +1007,130 @@ def serialize_batch_pay( options.get("stripe_version") if options else None ) or _ApiVersion.CURRENT context = options.get("stripe_context") if options else None - item = { + batch_request = { "id": item_id, "path_params": {"invoice": invoice}, "params": params, "stripe_version": stripe_version, } if context is not None: - item["context"] = context - return json.dumps(item) + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_remove_lines( + self, + invoice: str, + params: Optional["InvoiceRemoveLinesParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes an Invoice remove_lines request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"invoice": invoice}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_send_invoice( + self, + invoice: str, + params: Optional["InvoiceSendInvoiceParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes an Invoice send_invoice request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"invoice": invoice}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_update_lines( + self, + invoice: str, + params: Optional["InvoiceUpdateLinesParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes an Invoice update_lines request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"invoice": invoice}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_void_invoice( + self, + invoice: str, + params: Optional["InvoiceVoidInvoiceParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes an Invoice void_invoice request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"invoice": invoice}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_create_preview( + self, + params: Optional["InvoiceCreatePreviewParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes an Invoice create_preview request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_mandate.py b/stripe/_mandate.py index 3ff6a317f..b1db169cc 100644 --- a/stripe/_mandate.py +++ b/stripe/_mandate.py @@ -259,6 +259,9 @@ 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 Twint(StripeObject): + pass + class Upi(StripeObject): amount: Optional[int] """ @@ -300,6 +303,7 @@ class UsBankAccount(StripeObject): pix: Optional[Pix] revolut_pay: Optional[RevolutPay] sepa_debit: Optional[SepaDebit] + twint: Optional[Twint] type: str """ 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. @@ -324,6 +328,7 @@ class UsBankAccount(StripeObject): "pix": Pix, "revolut_pay": RevolutPay, "sepa_debit": SepaDebit, + "twint": Twint, "upi": Upi, "us_bank_account": UsBankAccount, } diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py index 30cb55528..2dbaa13bc 100644 --- a/stripe/_payment_attempt_record.py +++ b/stripe/_payment_attempt_record.py @@ -442,6 +442,12 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + class Bizum(StripeObject): + transaction_id: Optional[str] + """ + The Bizum transaction ID associated with this payment. + """ + class Blik(StripeObject): buyer_id: Optional[str] """ @@ -1374,13 +1380,11 @@ class Address(StripeObject): """ payment_method_category: Optional[str] """ - The Klarna payment method used for this transaction. - Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + The Klarna payment method used for this transaction. Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` """ preferred_locale: Optional[str] """ - Preferred language of the Klarna authorization page that the customer is redirected to. - Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + Preferred language of the Klarna authorization page that the customer is redirected to. Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` """ reader: Optional[str] """ @@ -1449,8 +1453,7 @@ class KrCard(StripeObject): class Link(StripeObject): country: Optional[str] """ - Two-letter ISO code representing the funding source country beneath the Link payment. - You could use this attribute to get a sense of international fees. + Two-letter ISO code representing the funding source country beneath the Link payment. You could use this attribute to get a sense of international fees. """ class MbWay(StripeObject): @@ -1581,9 +1584,7 @@ class P24(StripeObject): """ verified_name: Optional[str] """ - Owner's verified full name. Values are verified or provided by Przelewy24 directly - (if supported) at the time of authorization or settlement. They cannot be set or mutated. - Przelewy24 rarely provides this information so the attribute is usually empty. + Owner's verified full name. Values are verified or provided by Przelewy24 directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Przelewy24 rarely provides this information so the attribute is usually empty. """ class PayByBank(StripeObject): @@ -1815,7 +1816,7 @@ class Card(StripeObject): card: Optional[Card] type: Optional[Literal["card"]] """ - funding type of the underlying payment method. + Funding type of the underlying payment method. """ _inner_class_types = {"card": Card} @@ -1842,6 +1843,12 @@ class Satispay(StripeObject): The Satispay transaction ID associated with this payment. """ + class Scalapay(StripeObject): + transaction_id: Optional[str] + """ + The Scalapay transaction ID associated with this payment. + """ + class SepaCreditTransfer(StripeObject): bank_name: Optional[str] """ @@ -1959,7 +1966,10 @@ class Swish(StripeObject): """ class Twint(StripeObject): - pass + mandate: Optional[str] + """ + ID of the multi use Mandate generated by the PaymentIntent + """ class Upi(StripeObject): vpa: Optional[str] @@ -2045,6 +2055,7 @@ class Zip(StripeObject): """ The billing details associated with the method of payment. """ + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -2099,6 +2110,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_credit_transfer: Optional[SepaCreditTransfer] sepa_debit: Optional[SepaDebit] shopeepay: Optional[Shopeepay] @@ -2133,6 +2145,7 @@ class Zip(StripeObject): "bancontact": Bancontact, "billie": Billie, "billing_details": BillingDetails, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -2175,6 +2188,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, "shopeepay": Shopeepay, diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 052d90e0f..565c5c8d0 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -447,6 +447,7 @@ class LastPaymentError(StripeObject): "payment_method_invalid_parameter", "payment_method_invalid_parameter_testmode", "payment_method_microdeposit_failed", + "payment_method_microdeposit_processing_error", "payment_method_microdeposit_verification_amounts_invalid", "payment_method_microdeposit_verification_amounts_mismatch", "payment_method_microdeposit_verification_attempts_exceeded", @@ -488,6 +489,7 @@ class LastPaymentError(StripeObject): "setup_intent_unexpected_state", "shipping_address_invalid", "shipping_calculation_failed", + "siret_invalid", "sku_inactive", "state_unsupported", "status_transition_invalid", @@ -636,6 +638,9 @@ class AlipayHandleRedirect(StripeObject): The URL you must redirect your customer to in order to authenticate the payment. """ + class BlikAuthorize(StripeObject): + pass + class BoletoDisplayDetails(StripeObject): expires_at: Optional[int] """ @@ -1644,6 +1649,7 @@ class WechatPayRedirectToIosApp(StripeObject): """ alipay_handle_redirect: Optional[AlipayHandleRedirect] + blik_authorize: Optional[BlikAuthorize] boleto_display_details: Optional[BoletoDisplayDetails] card_await_notification: Optional[CardAwaitNotification] cashapp_handle_redirect_or_display_qr_code: Optional[ @@ -1683,6 +1689,7 @@ class WechatPayRedirectToIosApp(StripeObject): wechat_pay_redirect_to_ios_app: Optional[WechatPayRedirectToIosApp] _inner_class_types = { "alipay_handle_redirect": AlipayHandleRedirect, + "blik_authorize": BlikAuthorize, "boleto_display_details": BoletoDisplayDetails, "card_await_notification": CardAwaitNotification, "cashapp_handle_redirect_or_display_qr_code": CashappHandleRedirectOrDisplayQrCode, @@ -1707,6 +1714,12 @@ class WechatPayRedirectToIosApp(StripeObject): class PaymentDetails(StripeObject): class Benefit(StripeObject): class FrMealVoucher(StripeObject): + enabled: Optional[ + Literal["if_payment_method_is_eligible", "never"] + ] + """ + Whether meal voucher benefit is enabled for this payment. + """ siret: Optional[str] """ The 14-digit SIRET of the meal voucher acceptor. @@ -3407,6 +3420,9 @@ class Billie(StripeObject): Controls when the funds will be captured from the customer's account. """ + class Bizum(StripeObject): + pass + class Blik(StripeObject): setup_future_usage: Optional[Literal["none"]] """ @@ -3817,6 +3833,22 @@ class Fpx(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 GiftCard(StripeObject): + ignore_application_fee: Optional[Literal["yes"]] + """ + Set to `yes` to ignore the application fee on the PaymentIntent when redeeming this gift card. + """ + ignore_transfer_data: Optional[Literal["yes"]] + """ + Set to `yes` to ignore transfer data on the PaymentIntent when redeeming this gift card. + """ + request_partial_authorization: Optional[ + Literal["if_available", "never"] + ] + """ + Request partial authorization on this PaymentIntent. + """ + class Giropay(StripeObject): setup_future_usage: Optional[Literal["none"]] """ @@ -4385,6 +4417,12 @@ class Satispay(StripeObject): Controls when the funds will be captured from the customer's account. """ + class Scalapay(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + class SepaDebit(StripeObject): class MandateOptions(StripeObject): reference_prefix: Optional[str] @@ -4478,7 +4516,7 @@ class Swish(StripeObject): """ class Twint(StripeObject): - setup_future_usage: Optional[Literal["none"]] + setup_future_usage: Optional[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -4641,6 +4679,7 @@ class Zip(StripeObject): bacs_debit: Optional[BacsDebit] bancontact: Optional[Bancontact] billie: Optional[Billie] + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -4650,6 +4689,7 @@ class Zip(StripeObject): customer_balance: Optional[CustomerBalance] eps: Optional[Eps] fpx: Optional[Fpx] + gift_card: Optional[GiftCard] giropay: Optional[Giropay] gopay: Optional[Gopay] grabpay: Optional[Grabpay] @@ -4681,6 +4721,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] shopeepay: Optional[Shopeepay] sofort: Optional[Sofort] @@ -4702,6 +4743,7 @@ class Zip(StripeObject): "bacs_debit": BacsDebit, "bancontact": Bancontact, "billie": Billie, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -4711,6 +4753,7 @@ class Zip(StripeObject): "customer_balance": CustomerBalance, "eps": Eps, "fpx": Fpx, + "gift_card": GiftCard, "giropay": Giropay, "gopay": Gopay, "grabpay": Grabpay, @@ -4742,6 +4785,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "shopeepay": Shopeepay, "sofort": Sofort, @@ -4841,16 +4885,36 @@ class Address(StripeObject): _inner_class_types = {"address": Address} class TransferData(StripeObject): + class PaymentData(StripeObject): + description: Optional[str] + """ + An arbitrary string attached to the destination payment. Often useful for displaying to users. + """ + metadata: Optional[UntypedStripeObject[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. + """ + amount: Optional[int] """ The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account. The amount must be less than or equal to the [amount](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00). """ + description: Optional[str] + """ + An arbitrary string attached to the transfer. Often useful for displaying to users. + """ destination: ExpandableField["Account"] """ The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success. """ + metadata: Optional[UntypedStripeObject[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. + """ + payment_data: Optional[PaymentData] + _inner_class_types = {"payment_data": PaymentData} advanced_feature_details: Optional[AdvancedFeatureDetails] agent_details: Optional[AgentDetails] @@ -4967,6 +5031,7 @@ class TransferData(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -5005,6 +5070,7 @@ class TransferData(StripeObject): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -5138,6 +5204,7 @@ class TransferData(StripeObject): """ status: Literal[ "canceled", + "expired", "processing", "requires_action", "requires_capture", @@ -6216,7 +6283,9 @@ def _cls_increment_authorization( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ return cast( "PaymentIntent", @@ -6259,7 +6328,9 @@ def increment_authorization( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ ... @@ -6291,7 +6362,9 @@ def increment_authorization( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ ... @@ -6323,7 +6396,9 @@ def increment_authorization( # pyright: ignore[reportGeneralTypeIssues] Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ return cast( "PaymentIntent", @@ -6366,7 +6441,9 @@ async def _cls_increment_authorization_async( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ return cast( "PaymentIntent", @@ -6409,7 +6486,9 @@ async def increment_authorization_async( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ ... @@ -6441,7 +6520,9 @@ async def increment_authorization_async( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ ... @@ -6473,7 +6554,9 @@ async def increment_authorization_async( # pyright: ignore[reportGeneralTypeIss Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ return cast( "PaymentIntent", diff --git a/stripe/_payment_intent_service.py b/stripe/_payment_intent_service.py index 5f0dad261..e5adaa12c 100644 --- a/stripe/_payment_intent_service.py +++ b/stripe/_payment_intent_service.py @@ -687,7 +687,9 @@ def increment_authorization( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ return cast( "PaymentIntent", @@ -732,7 +734,9 @@ async def increment_authorization_async( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ return cast( "PaymentIntent", diff --git a/stripe/_payment_link.py b/stripe/_payment_link.py index a030225c0..2886f24f5 100644 --- a/stripe/_payment_link.py +++ b/stripe/_payment_link.py @@ -428,6 +428,33 @@ class PaymentIntentData(StripeObject): A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://docs.stripe.com/connect/separate-charges-and-transfers) for details. """ + class PaymentMethodOptions(StripeObject): + class Card(StripeObject): + class Restrictions(StripeObject): + brands_blocked: List[ + Literal[ + "american_express", + "discover_global_network", + "mastercard", + "visa", + ] + ] + """ + The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + """ + + restrictions: Optional[Restrictions] + """ + Restrictions to apply to the card payment method. For example, you can block specific card brands. + """ + _inner_class_types = {"restrictions": Restrictions} + + card: Optional[Card] + """ + Configuration for `card` payment methods. + """ + _inner_class_types = {"card": Card} + class PhoneNumberCollection(StripeObject): enabled: bool """ @@ -867,6 +894,10 @@ class TransferData(StripeObject): """ Configuration for collecting a payment method during checkout. Defaults to `always`. """ + payment_method_options: Optional[PaymentMethodOptions] + """ + Payment-method-specific configuration. + """ payment_method_types: Optional[ List[ Literal[ @@ -878,6 +909,7 @@ class TransferData(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -1207,6 +1239,7 @@ async def retrieve_async( "name_collection": NameCollection, "optional_items": OptionalItem, "payment_intent_data": PaymentIntentData, + "payment_method_options": PaymentMethodOptions, "phone_number_collection": PhoneNumberCollection, "restrictions": Restrictions, "shipping_address_collection": ShippingAddressCollection, diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 12f7260fd..e2b04fa16 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -178,6 +178,9 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + class Bizum(StripeObject): + pass + class Blik(StripeObject): pass @@ -1376,6 +1379,9 @@ class SamsungPay(StripeObject): class Satispay(StripeObject): pass + class Scalapay(StripeObject): + pass + class SepaDebit(StripeObject): class GeneratedFrom(StripeObject): charge: Optional[ExpandableField["Charge"]] @@ -1563,6 +1569,7 @@ class Zip(StripeObject): bancontact: Optional[Bancontact] billie: Optional[Billie] billing_details: BillingDetails + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -1638,6 +1645,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] shared_payment_granted_token: Optional[str] """ @@ -1660,6 +1668,7 @@ class Zip(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -1702,6 +1711,7 @@ class Zip(StripeObject): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -2298,6 +2308,7 @@ async def retrieve_async( "bancontact": Bancontact, "billie": Billie, "billing_details": BillingDetails, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -2341,6 +2352,7 @@ async def retrieve_async( "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "shopeepay": Shopeepay, "sofort": Sofort, diff --git a/stripe/_payment_method_configuration.py b/stripe/_payment_method_configuration.py index 153155379..2f2585d08 100644 --- a/stripe/_payment_method_configuration.py +++ b/stripe/_payment_method_configuration.py @@ -292,6 +292,28 @@ class DisplayPreference(StripeObject): display_preference: DisplayPreference _inner_class_types = {"display_preference": DisplayPreference} + class Bizum(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 Blik(StripeObject): class DisplayPreference(StripeObject): overridable: Optional[bool] @@ -1172,6 +1194,28 @@ class DisplayPreference(StripeObject): display_preference: DisplayPreference _inner_class_types = {"display_preference": DisplayPreference} + class Scalapay(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 SepaDebit(StripeObject): class DisplayPreference(StripeObject): overridable: Optional[bool] @@ -1411,6 +1455,7 @@ class DisplayPreference(StripeObject): bacs_debit: Optional[BacsDebit] bancontact: Optional[Bancontact] billie: Optional[Billie] + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -1475,6 +1520,7 @@ class DisplayPreference(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] shopeepay: Optional[Shopeepay] sofort: Optional[Sofort] @@ -1634,6 +1680,7 @@ async def retrieve_async( "bacs_debit": BacsDebit, "bancontact": Bancontact, "billie": Billie, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -1674,6 +1721,7 @@ async def retrieve_async( "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "shopeepay": Shopeepay, "sofort": Sofort, diff --git a/stripe/_payment_method_service.py b/stripe/_payment_method_service.py index e6368284e..3cf55021e 100644 --- a/stripe/_payment_method_service.py +++ b/stripe/_payment_method_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -357,3 +360,27 @@ async def detach_async( options=options, ), ) + + def serialize_batch_attach( + self, + payment_method: str, + params: Optional["PaymentMethodAttachParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a PaymentMethod attach request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"payment_method": payment_method}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py index ee8f51edb..8225fde64 100644 --- a/stripe/_payment_record.py +++ b/stripe/_payment_record.py @@ -436,6 +436,12 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + class Bizum(StripeObject): + transaction_id: Optional[str] + """ + The Bizum transaction ID associated with this payment. + """ + class Blik(StripeObject): buyer_id: Optional[str] """ @@ -1368,13 +1374,11 @@ class Address(StripeObject): """ payment_method_category: Optional[str] """ - The Klarna payment method used for this transaction. - Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + The Klarna payment method used for this transaction. Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` """ preferred_locale: Optional[str] """ - Preferred language of the Klarna authorization page that the customer is redirected to. - Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + Preferred language of the Klarna authorization page that the customer is redirected to. Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` """ reader: Optional[str] """ @@ -1443,8 +1447,7 @@ class KrCard(StripeObject): class Link(StripeObject): country: Optional[str] """ - Two-letter ISO code representing the funding source country beneath the Link payment. - You could use this attribute to get a sense of international fees. + Two-letter ISO code representing the funding source country beneath the Link payment. You could use this attribute to get a sense of international fees. """ class MbWay(StripeObject): @@ -1575,9 +1578,7 @@ class P24(StripeObject): """ verified_name: Optional[str] """ - Owner's verified full name. Values are verified or provided by Przelewy24 directly - (if supported) at the time of authorization or settlement. They cannot be set or mutated. - Przelewy24 rarely provides this information so the attribute is usually empty. + Owner's verified full name. Values are verified or provided by Przelewy24 directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Przelewy24 rarely provides this information so the attribute is usually empty. """ class PayByBank(StripeObject): @@ -1809,7 +1810,7 @@ class Card(StripeObject): card: Optional[Card] type: Optional[Literal["card"]] """ - funding type of the underlying payment method. + Funding type of the underlying payment method. """ _inner_class_types = {"card": Card} @@ -1836,6 +1837,12 @@ class Satispay(StripeObject): The Satispay transaction ID associated with this payment. """ + class Scalapay(StripeObject): + transaction_id: Optional[str] + """ + The Scalapay transaction ID associated with this payment. + """ + class SepaCreditTransfer(StripeObject): bank_name: Optional[str] """ @@ -1953,7 +1960,10 @@ class Swish(StripeObject): """ class Twint(StripeObject): - pass + mandate: Optional[str] + """ + ID of the multi use Mandate generated by the PaymentIntent + """ class Upi(StripeObject): vpa: Optional[str] @@ -2039,6 +2049,7 @@ class Zip(StripeObject): """ The billing details associated with the method of payment. """ + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -2093,6 +2104,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_credit_transfer: Optional[SepaCreditTransfer] sepa_debit: Optional[SepaDebit] shopeepay: Optional[Shopeepay] @@ -2127,6 +2139,7 @@ class Zip(StripeObject): "bancontact": Bancontact, "billie": Billie, "billing_details": BillingDetails, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -2169,6 +2182,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, "shopeepay": Shopeepay, diff --git a/stripe/_price_service.py b/stripe/_price_service.py index 5207dda39..0b9b9cb3d 100644 --- a/stripe/_price_service.py +++ b/stripe/_price_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -217,3 +220,49 @@ async def search_async( options=options, ), ) + + def serialize_batch_create( + self, + params: Optional["PriceCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Price create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_update( + self, + price: str, + params: Optional["PriceUpdateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Price update request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"price": price}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_product_feature_service.py b/stripe/_product_feature_service.py index 3eeba56fe..b5576ec3a 100644 --- a/stripe/_product_feature_service.py +++ b/stripe/_product_feature_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -207,3 +210,52 @@ async def create_async( options=options, ), ) + + def serialize_batch_delete( + self, + product: str, + id: str, + params: Optional["ProductFeatureDeleteParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a ProductFeature delete request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"product": product, "id": id}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_create( + self, + product: str, + params: Optional["ProductFeatureCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a ProductFeature create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"product": product}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_product_service.py b/stripe/_product_service.py index c5eebca34..70dcd9b4c 100644 --- a/stripe/_product_service.py +++ b/stripe/_product_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from importlib import import_module from typing_extensions import TYPE_CHECKING @@ -285,3 +288,73 @@ async def search_async( options=options, ), ) + + def serialize_batch_delete( + self, + id: str, + params: Optional["ProductDeleteParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Product delete request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"id": id}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_update( + self, + id: str, + params: Optional["ProductUpdateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Product update request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"id": id}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_create( + self, + params: Optional["ProductCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Product create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_promotion_code_service.py b/stripe/_promotion_code_service.py index eef6ffafa..cc7cb920d 100644 --- a/stripe/_promotion_code_service.py +++ b/stripe/_promotion_code_service.py @@ -204,14 +204,14 @@ def serialize_batch_create( options.get("stripe_version") if options else None ) or _ApiVersion.CURRENT context = options.get("stripe_context") if options else None - item = { + batch_request = { "id": item_id, "params": params, "stripe_version": stripe_version, } if context is not None: - item["context"] = context - return json.dumps(item) + batch_request["context"] = context + return json.dumps(batch_request) def serialize_batch_update( self, @@ -227,12 +227,12 @@ def serialize_batch_update( options.get("stripe_version") if options else None ) or _ApiVersion.CURRENT context = options.get("stripe_context") if options else None - item = { + batch_request = { "id": item_id, "path_params": {"promotion_code": promotion_code}, "params": params, "stripe_version": stripe_version, } if context is not None: - item["context"] = context - return json.dumps(item) + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_quote_preview_invoice.py b/stripe/_quote_preview_invoice.py index 7958d533a..aa85d3af1 100644 --- a/stripe/_quote_preview_invoice.py +++ b/stripe/_quote_preview_invoice.py @@ -534,6 +534,7 @@ class LastFinalizationError(StripeObject): "payment_method_invalid_parameter", "payment_method_invalid_parameter_testmode", "payment_method_microdeposit_failed", + "payment_method_microdeposit_processing_error", "payment_method_microdeposit_verification_amounts_invalid", "payment_method_microdeposit_verification_amounts_mismatch", "payment_method_microdeposit_verification_attempts_exceeded", @@ -575,6 +576,7 @@ class LastFinalizationError(StripeObject): "setup_intent_unexpected_state", "shipping_address_invalid", "shipping_calculation_failed", + "siret_invalid", "sku_inactive", "state_unsupported", "status_transition_invalid", @@ -983,6 +985,18 @@ class Filters(StripeObject): "financial_connections": FinancialConnections, } + class WechatPay(StripeObject): + app_id: Optional[str] + """ + The app ID registered with WeChat Pay. Only required when client is `ios` or `android`. + """ + client: Optional[ + Literal["android", "ios", "mobile_web", "web"] + ] + """ + The client type that the end customer will pay from. + """ + acss_debit: Optional[AcssDebit] """ If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice's PaymentIntent. @@ -1039,6 +1053,10 @@ class Filters(StripeObject): """ If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. """ + wechat_pay: Optional[WechatPay] + """ + If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent. + """ _inner_class_types = { "acss_debit": AcssDebit, "bancontact": Bancontact, @@ -1054,6 +1072,7 @@ class Filters(StripeObject): "sepa_debit": SepaDebit, "upi": Upi, "us_bank_account": UsBankAccount, + "wechat_pay": WechatPay, } default_mandate: Optional[str] @@ -1114,6 +1133,7 @@ class Filters(StripeObject): "sofort", "stripe_balance", "swish", + "twint", "upi", "us_bank_account", "wechat_pay", @@ -1414,6 +1434,10 @@ class TaxRateDetails(StripeObject): """ The amount, in cents (or local equivalent), that was paid. """ + amount_paid_off_stripe: Optional[int] + """ + Amount, in cents (or local equivalent), that was paid on the invoice outside of Stripe. + """ amount_remaining: int """ The difference between amount_due and amount_paid, in cents (or local equivalent). diff --git a/stripe/_quote_preview_subscription_schedule.py b/stripe/_quote_preview_subscription_schedule.py index 248802d93..0de94e36b 100644 --- a/stripe/_quote_preview_subscription_schedule.py +++ b/stripe/_quote_preview_subscription_schedule.py @@ -328,6 +328,10 @@ class Start(StripeObject): start: Start _inner_class_types = {"end": End, "start": Start} + discountable: Optional[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: List[Discount] """ The stackable discounts that will be applied to the item. diff --git a/stripe/_refund.py b/stripe/_refund.py index bc136a654..fb6bd00b1 100644 --- a/stripe/_refund.py +++ b/stripe/_refund.py @@ -222,6 +222,9 @@ class Pix(StripeObject): class Revolut(StripeObject): pass + class Scalapay(StripeObject): + pass + class Sofort(StripeObject): pass @@ -297,6 +300,7 @@ class Zip(StripeObject): paypal: Optional[Paypal] pix: Optional[Pix] revolut: Optional[Revolut] + scalapay: Optional[Scalapay] sofort: Optional[Sofort] swish: Optional[Swish] th_bank_transfer: Optional[ThBankTransfer] @@ -338,6 +342,7 @@ class Zip(StripeObject): "paypal": Paypal, "pix": Pix, "revolut": Revolut, + "scalapay": Scalapay, "sofort": Sofort, "swish": Swish, "th_bank_transfer": ThBankTransfer, diff --git a/stripe/_refund_service.py b/stripe/_refund_service.py index 07b5c3417..caad6b128 100644 --- a/stripe/_refund_service.py +++ b/stripe/_refund_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -244,3 +247,49 @@ async def cancel_async( options=options, ), ) + + def serialize_batch_create( + self, + params: Optional["RefundCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Refund create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_cancel( + self, + refund: str, + params: Optional["RefundCancelParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Refund cancel request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"refund": refund}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_setup_attempt.py b/stripe/_setup_attempt.py index 0f3ea816c..d9ffd0c43 100644 --- a/stripe/_setup_attempt.py +++ b/stripe/_setup_attempt.py @@ -430,6 +430,9 @@ class Sofort(StripeObject): class StripeBalance(StripeObject): pass + class Twint(StripeObject): + pass + class Upi(StripeObject): pass @@ -460,6 +463,7 @@ class UsBankAccount(StripeObject): sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] stripe_balance: Optional[StripeBalance] + twint: Optional[Twint] type: str """ 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. @@ -491,6 +495,7 @@ class UsBankAccount(StripeObject): "sepa_debit": SepaDebit, "sofort": Sofort, "stripe_balance": StripeBalance, + "twint": Twint, "upi": Upi, "us_bank_account": UsBankAccount, } @@ -631,6 +636,7 @@ class SetupError(StripeObject): "payment_method_invalid_parameter", "payment_method_invalid_parameter_testmode", "payment_method_microdeposit_failed", + "payment_method_microdeposit_processing_error", "payment_method_microdeposit_verification_amounts_invalid", "payment_method_microdeposit_verification_amounts_mismatch", "payment_method_microdeposit_verification_attempts_exceeded", @@ -672,6 +678,7 @@ class SetupError(StripeObject): "setup_intent_unexpected_state", "shipping_address_invalid", "shipping_calculation_failed", + "siret_invalid", "sku_inactive", "state_unsupported", "status_transition_invalid", diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index a408d34e8..cd63fd2d0 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -221,6 +221,7 @@ class LastSetupError(StripeObject): "payment_method_invalid_parameter", "payment_method_invalid_parameter_testmode", "payment_method_microdeposit_failed", + "payment_method_microdeposit_processing_error", "payment_method_microdeposit_verification_amounts_invalid", "payment_method_microdeposit_verification_amounts_mismatch", "payment_method_microdeposit_verification_attempts_exceeded", @@ -262,6 +263,7 @@ class LastSetupError(StripeObject): "setup_intent_unexpected_state", "shipping_address_invalid", "shipping_calculation_failed", + "siret_invalid", "sku_inactive", "state_unsupported", "status_transition_invalid", @@ -392,6 +394,9 @@ class ManagedPayments(StripeObject): """ class NextAction(StripeObject): + class BlikAuthorize(StripeObject): + pass + class CashappHandleRedirectOrDisplayQrCode(StripeObject): class QrCode(StripeObject): expires_at: int @@ -486,6 +491,7 @@ class VerifyWithMicrodeposits(StripeObject): The type of the microdeposit sent to the customer. Used to distinguish between different verification methods. """ + blik_authorize: Optional[BlikAuthorize] cashapp_handle_redirect_or_display_qr_code: Optional[ CashappHandleRedirectOrDisplayQrCode ] @@ -504,6 +510,7 @@ class VerifyWithMicrodeposits(StripeObject): """ verify_with_microdeposits: Optional[VerifyWithMicrodeposits] _inner_class_types = { + "blik_authorize": BlikAuthorize, "cashapp_handle_redirect_or_display_qr_code": CashappHandleRedirectOrDisplayQrCode, "pix_display_qr_code": PixDisplayQrCode, "redirect_to_url": RedirectToUrl, @@ -573,6 +580,9 @@ class MandateOptions(StripeObject): mandate_options: Optional[MandateOptions] _inner_class_types = {"mandate_options": MandateOptions} + class Bizum(StripeObject): + pass + class Card(StripeObject): class MandateOptions(StripeObject): amount: int @@ -907,6 +917,7 @@ class MandateOptions(StripeObject): acss_debit: Optional[AcssDebit] amazon_pay: Optional[AmazonPay] bacs_debit: Optional[BacsDebit] + bizum: Optional[Bizum] card: Optional[Card] card_present: Optional[CardPresent] klarna: Optional[Klarna] @@ -922,6 +933,7 @@ class MandateOptions(StripeObject): "acss_debit": AcssDebit, "amazon_pay": AmazonPay, "bacs_debit": BacsDebit, + "bizum": Bizum, "card": Card, "card_present": CardPresent, "klarna": Klarna, @@ -938,6 +950,12 @@ class MandateOptions(StripeObject): class SetupDetails(StripeObject): class Benefit(StripeObject): class FrMealVoucher(StripeObject): + enabled: Optional[ + Literal["if_payment_method_is_eligible", "never"] + ] + """ + Whether meal voucher benefit is enabled for this setup intent. + """ siret: Optional[str] """ The 14-digit SIRET of the meal voucher acceptor. @@ -1008,6 +1026,7 @@ class FrMealVoucher(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -1046,6 +1065,7 @@ class FrMealVoucher(StripeObject): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", diff --git a/stripe/_subscription.py b/stripe/_subscription.py index b8c08a7a4..f9413d97e 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -578,6 +578,18 @@ class Filters(StripeObject): "financial_connections": FinancialConnections, } + class WechatPay(StripeObject): + app_id: Optional[str] + """ + The app ID registered with WeChat Pay. Only required when client is `ios` or `android`. + """ + client: Optional[ + Literal["android", "ios", "mobile_web", "web"] + ] + """ + The client type that the end customer will pay from. + """ + acss_debit: Optional[AcssDebit] """ This sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to invoices created by the subscription. @@ -634,6 +646,10 @@ class Filters(StripeObject): """ This sub-hash contains details about the ACH direct debit payment method options to pass to invoices created by the subscription. """ + wechat_pay: Optional[WechatPay] + """ + This sub-hash contains details about the WeChat Pay payment method options to pass to invoices created by the subscription. + """ _inner_class_types = { "acss_debit": AcssDebit, "bancontact": Bancontact, @@ -649,6 +665,7 @@ class Filters(StripeObject): "sepa_debit": SepaDebit, "upi": Upi, "us_bank_account": UsBankAccount, + "wechat_pay": WechatPay, } payment_method_options: Optional[PaymentMethodOptions] @@ -705,6 +722,7 @@ class Filters(StripeObject): "sofort", "stripe_balance", "swish", + "twint", "upi", "us_bank_account", "wechat_pay", @@ -737,10 +755,22 @@ class PendingUpdate(StripeObject): """ If the update is applied, determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. The timestamp is in UTC format. """ + discount: Optional["Discount"] + """ + The pending subscription-level discount that will be applied when the pending update is applied. + """ + discounts: Optional[List[ExpandableField["Discount"]]] + """ + The discounts that will be applied to the subscription when the pending update is applied. Use `expand[]=discounts` to expand each discount. + """ expires_at: int """ The point after which the changes reflected by this update will be discarded and no longer applied. """ + metadata: Optional[UntypedStripeObject[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. + """ prebilling_iterations: Optional[int] """ The number of iterations of prebilling to apply. @@ -782,6 +812,38 @@ class PresentmentDetails(StripeObject): Currency used for customer payments. """ + class StatusDetails(StripeObject): + class Paused(StripeObject): + class Subscription(StripeObject): + type: Literal[ + "pause_requested", + "system", + "trial_end_without_payment_method", + ] + """ + The reason that the subscription was paused. + """ + + subscription: Subscription + """ + Information on the `type=subscription` pause. + """ + transitioned_at: int + """ + Unix timestamp in seconds of when the subscription status transitioned to `paused`. + """ + type: Literal["subscription"] + """ + The type of pause. + """ + _inner_class_types = {"subscription": Subscription} + + paused: Paused + """ + Indicates when and why the subscription transitioned to the paused status. + """ + _inner_class_types = {"paused": Paused} + class TransferData(StripeObject): amount_percent: Optional[float] """ @@ -836,7 +898,7 @@ class EndBehavior(StripeObject): """ The billing mode of the subscription. """ - billing_schedules: Optional[List[BillingSchedule]] + billing_schedules: List[BillingSchedule] """ Billing schedules for this subscription. """ @@ -1009,6 +1071,10 @@ class EndBehavior(StripeObject): If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. """ + status_details: Optional[StatusDetails] + """ + Describes changes to the subscription's status. + """ test_clock: Optional[ExpandableField["TestClock"]] """ ID of the test clock this subscription belongs to. @@ -1151,7 +1217,7 @@ def _cls_cancel( **params: Unpack["SubscriptionCancelParams"], ) -> "Subscription": """ - 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). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. 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. @@ -1177,7 +1243,7 @@ def cancel( **params: Unpack["SubscriptionCancelParams"], ) -> "Subscription": """ - 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). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. 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. @@ -1190,7 +1256,7 @@ def cancel( self, **params: Unpack["SubscriptionCancelParams"] ) -> "Subscription": """ - 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). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. 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. @@ -1203,7 +1269,7 @@ def cancel( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["SubscriptionCancelParams"] ) -> "Subscription": """ - 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). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. 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. @@ -1227,7 +1293,7 @@ async def _cls_cancel_async( **params: Unpack["SubscriptionCancelParams"], ) -> "Subscription": """ - 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). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. 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. @@ -1253,7 +1319,7 @@ async def cancel_async( **params: Unpack["SubscriptionCancelParams"], ) -> "Subscription": """ - 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). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. 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. @@ -1266,7 +1332,7 @@ async def cancel_async( self, **params: Unpack["SubscriptionCancelParams"] ) -> "Subscription": """ - 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). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. 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. @@ -1279,7 +1345,7 @@ async def cancel_async( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["SubscriptionCancelParams"] ) -> "Subscription": """ - 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). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. 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. @@ -1799,7 +1865,7 @@ def _cls_resume( cls, subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ return cast( "Subscription", @@ -1818,7 +1884,7 @@ def resume( subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ ... @@ -1827,7 +1893,7 @@ def resume( self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ ... @@ -1836,7 +1902,7 @@ def resume( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ return cast( "Subscription", @@ -1854,7 +1920,7 @@ async def _cls_resume_async( cls, subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ return cast( "Subscription", @@ -1873,7 +1939,7 @@ async def resume_async( subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ ... @@ -1882,7 +1948,7 @@ async def resume_async( self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ ... @@ -1891,7 +1957,7 @@ async def resume_async( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ return cast( "Subscription", @@ -1982,6 +2048,7 @@ async def search_auto_paging_iter_async( "pending_update": PendingUpdate, "prebilling": Prebilling, "presentment_details": PresentmentDetails, + "status_details": StatusDetails, "transfer_data": TransferData, "trial_settings": TrialSettings, } diff --git a/stripe/_subscription_item_service.py b/stripe/_subscription_item_service.py index 304404337..083a2f923 100644 --- a/stripe/_subscription_item_service.py +++ b/stripe/_subscription_item_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -222,3 +225,73 @@ async def create_async( options=options, ), ) + + def serialize_batch_delete( + self, + item: str, + params: Optional["SubscriptionItemDeleteParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a SubscriptionItem delete request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"item": item}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_update( + self, + item: str, + params: Optional["SubscriptionItemUpdateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a SubscriptionItem update request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"item": item}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_create( + self, + params: Optional["SubscriptionItemCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a SubscriptionItem create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_subscription_schedule.py b/stripe/_subscription_schedule.py index a2c15935b..1e666af82 100644 --- a/stripe/_subscription_schedule.py +++ b/stripe/_subscription_schedule.py @@ -350,6 +350,10 @@ class Start(StripeObject): start: Start _inner_class_types = {"end": End, "start": Start} + discountable: Optional[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: List[Discount] """ The stackable discounts that will be applied to the item. diff --git a/stripe/_subscription_schedule_service.py b/stripe/_subscription_schedule_service.py index be4f15618..6aee754d6 100644 --- a/stripe/_subscription_schedule_service.py +++ b/stripe/_subscription_schedule_service.py @@ -345,14 +345,14 @@ def serialize_batch_create( options.get("stripe_version") if options else None ) or _ApiVersion.CURRENT context = options.get("stripe_context") if options else None - item = { + batch_request = { "id": item_id, "params": params, "stripe_version": stripe_version, } if context is not None: - item["context"] = context - return json.dumps(item) + batch_request["context"] = context + return json.dumps(batch_request) def serialize_batch_update( self, @@ -368,15 +368,15 @@ def serialize_batch_update( options.get("stripe_version") if options else None ) or _ApiVersion.CURRENT context = options.get("stripe_context") if options else None - item = { + batch_request = { "id": item_id, "path_params": {"schedule": schedule}, "params": params, "stripe_version": stripe_version, } if context is not None: - item["context"] = context - return json.dumps(item) + batch_request["context"] = context + return json.dumps(batch_request) def serialize_batch_cancel( self, @@ -392,12 +392,36 @@ def serialize_batch_cancel( options.get("stripe_version") if options else None ) or _ApiVersion.CURRENT context = options.get("stripe_context") if options else None - item = { + batch_request = { "id": item_id, "path_params": {"schedule": schedule}, "params": params, "stripe_version": stripe_version, } if context is not None: - item["context"] = context - return json.dumps(item) + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_release( + self, + schedule: str, + params: Optional["SubscriptionScheduleReleaseParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a SubscriptionSchedule release request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"schedule": schedule}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index 0ca30921c..fb8c5f56b 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -55,7 +55,7 @@ def cancel( options: Optional["RequestOptions"] = None, ) -> "Subscription": """ - 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). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. 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. @@ -83,7 +83,7 @@ async def cancel_async( options: Optional["RequestOptions"] = None, ) -> "Subscription": """ - 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). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. 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. @@ -559,7 +559,7 @@ def resume( options: Optional["RequestOptions"] = None, ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ return cast( "Subscription", @@ -581,7 +581,7 @@ async def resume_async( options: Optional["RequestOptions"] = None, ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ return cast( "Subscription", @@ -596,6 +596,32 @@ async def resume_async( ), ) + def serialize_batch_cancel( + self, + subscription_exposed_id: str, + params: Optional["SubscriptionCancelParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Subscription cancel request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": { + "subscription_exposed_id": subscription_exposed_id + }, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + def serialize_batch_update( self, subscription_exposed_id: str, @@ -610,7 +636,7 @@ def serialize_batch_update( options.get("stripe_version") if options else None ) or _ApiVersion.CURRENT context = options.get("stripe_context") if options else None - item = { + batch_request = { "id": item_id, "path_params": { "subscription_exposed_id": subscription_exposed_id @@ -619,8 +645,30 @@ def serialize_batch_update( "stripe_version": stripe_version, } if context is not None: - item["context"] = context - return json.dumps(item) + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_create( + self, + params: Optional["SubscriptionCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Subscription create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) def serialize_batch_migrate( self, @@ -636,12 +684,60 @@ def serialize_batch_migrate( options.get("stripe_version") if options else None ) or _ApiVersion.CURRENT context = options.get("stripe_context") if options else None - item = { + batch_request = { + "id": item_id, + "path_params": {"subscription": subscription}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_pause( + self, + subscription: str, + params: Optional["SubscriptionPauseParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Subscription pause request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"subscription": subscription}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_resume( + self, + subscription: str, + params: Optional["SubscriptionResumeParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Subscription resume request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { "id": item_id, "path_params": {"subscription": subscription}, "params": params, "stripe_version": stripe_version, } if context is not None: - item["context"] = context - return json.dumps(item) + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_tax_id_service.py b/stripe/_tax_id_service.py index 8b3dbefcc..12e586d37 100644 --- a/stripe/_tax_id_service.py +++ b/stripe/_tax_id_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -171,3 +174,25 @@ async def create_async( options=options, ), ) + + def serialize_batch_create( + self, + params: Optional["TaxIdCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a TaxId create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_tax_rate_service.py b/stripe/_tax_rate_service.py index 8645575d5..7af1b2146 100644 --- a/stripe/_tax_rate_service.py +++ b/stripe/_tax_rate_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -179,3 +182,49 @@ async def update_async( options=options, ), ) + + def serialize_batch_create( + self, + params: Optional["TaxRateCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a TaxRate create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_update( + self, + tax_rate: str, + params: Optional["TaxRateUpdateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a TaxRate update request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"tax_rate": tax_rate}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/billing/_alert.py b/stripe/billing/_alert.py index 356cb1837..64c6f0081 100644 --- a/stripe/billing/_alert.py +++ b/stripe/billing/_alert.py @@ -216,7 +216,9 @@ class CustomPricingUnitDetails(StripeObject): """ Filters to scope the spend calculation. """ - group_by: Optional[Literal["pricing_plan_subscription"]] + group_by: Optional[ + Literal["billing_cadence", "pricing_plan_subscription"] + ] """ Defines the granularity of spend aggregation. """ diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index e719e7d83..ccd65b670 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -483,7 +483,7 @@ class PaymentMethodReuseAgreement(StripeObject): """ If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout Session will determine whether to display an option to opt into promotional communication - from the merchant depending on the customer's locale. Only available to US merchants. + from the merchant depending on the customer's locale. Only available to US merchants and US customers. """ terms_of_service: Optional[Literal["none", "required"]] """ @@ -1454,7 +1454,7 @@ class Restrictions(StripeObject): ] ] """ - Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. + The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. """ capture_method: Optional[Literal["manual"]] @@ -2013,6 +2013,12 @@ class Satispay(StripeObject): Controls when the funds will be captured from the customer's account. """ + class Scalapay(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + class SepaDebit(StripeObject): class MandateOptions(StripeObject): reference_prefix: Optional[str] @@ -2058,7 +2064,7 @@ class Swish(StripeObject): """ class Twint(StripeObject): - setup_future_usage: Optional[Literal["none"]] + setup_future_usage: Optional[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2223,6 +2229,7 @@ class ManualEntry(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] swish: Optional[Swish] @@ -2268,6 +2275,7 @@ class ManualEntry(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "sofort": Sofort, "swish": Swish, @@ -2834,8 +2842,8 @@ class Link(StripeObject): """ client_secret: Optional[str] """ - The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. For `ui_mode: embedded`, the client secret is to be used when initializing Stripe.js embedded checkout. - For `ui_mode: custom`, use the client secret with [initCheckout](https://docs.stripe.com/js/custom_checkout/init) on your front end. + The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded_page` or `ui_mode: elements`. For `ui_mode: embedded_page`, the client secret is to be used when initializing Stripe.js embedded checkout. + For `ui_mode: elements`, use the client secret with [initCheckout](https://docs.stripe.com/js/custom_checkout/init) on your front end. """ collected_information: Optional[CollectedInformation] """ @@ -3062,11 +3070,11 @@ class Link(StripeObject): """ redirect_on_completion: Optional[Literal["always", "if_required", "never"]] """ - This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. + This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. """ return_url: Optional[str] """ - Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. + Applies to Checkout Sessions with `ui_mode: embedded_page` or `ui_mode: elements`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. """ saved_payment_method_options: Optional[SavedPaymentMethodOptions] """ @@ -3123,7 +3131,7 @@ class Link(StripeObject): """ url: Optional[str] """ - The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted`. Redirect customers to this URL to take them to Checkout. If you're using [Custom Domains](https://docs.stripe.com/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it'll use `checkout.stripe.com.` + The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted_page`. Redirect customers to this URL to take them to Checkout. If you're using [Custom Domains](https://docs.stripe.com/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it'll use `checkout.stripe.com.` This value is only present when the session is active. """ wallet_options: Optional[WalletOptions] diff --git a/stripe/events/__init__.py b/stripe/events/__init__.py index ba21df642..5f097dcba 100644 --- a/stripe/events/__init__.py +++ b/stripe/events/__init__.py @@ -1195,6 +1195,14 @@ V2CoreHealthAuthorizationRateDropResolvedEvent as V2CoreHealthAuthorizationRateDropResolvedEvent, V2CoreHealthAuthorizationRateDropResolvedEventNotification as V2CoreHealthAuthorizationRateDropResolvedEventNotification, ) + from stripe.events._v2_core_health_elements_error_firing_event import ( + V2CoreHealthElementsErrorFiringEvent as V2CoreHealthElementsErrorFiringEvent, + V2CoreHealthElementsErrorFiringEventNotification as V2CoreHealthElementsErrorFiringEventNotification, + ) + from stripe.events._v2_core_health_elements_error_resolved_event import ( + V2CoreHealthElementsErrorResolvedEvent as V2CoreHealthElementsErrorResolvedEvent, + V2CoreHealthElementsErrorResolvedEventNotification as V2CoreHealthElementsErrorResolvedEventNotification, + ) from stripe.events._v2_core_health_event_generation_failure_resolved_event import ( V2CoreHealthEventGenerationFailureResolvedEvent as V2CoreHealthEventGenerationFailureResolvedEvent, V2CoreHealthEventGenerationFailureResolvedEventNotification as V2CoreHealthEventGenerationFailureResolvedEventNotification, @@ -1203,6 +1211,14 @@ V2CoreHealthFraudRateIncreasedEvent as V2CoreHealthFraudRateIncreasedEvent, V2CoreHealthFraudRateIncreasedEventNotification as V2CoreHealthFraudRateIncreasedEventNotification, ) + from stripe.events._v2_core_health_invoice_count_dropped_firing_event import ( + V2CoreHealthInvoiceCountDroppedFiringEvent as V2CoreHealthInvoiceCountDroppedFiringEvent, + V2CoreHealthInvoiceCountDroppedFiringEventNotification as V2CoreHealthInvoiceCountDroppedFiringEventNotification, + ) + from stripe.events._v2_core_health_invoice_count_dropped_resolved_event import ( + V2CoreHealthInvoiceCountDroppedResolvedEvent as V2CoreHealthInvoiceCountDroppedResolvedEvent, + V2CoreHealthInvoiceCountDroppedResolvedEventNotification as V2CoreHealthInvoiceCountDroppedResolvedEventNotification, + ) from stripe.events._v2_core_health_issuing_authorization_request_errors_firing_event import ( V2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent as V2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent, V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventNotification as V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventNotification, @@ -3876,6 +3892,22 @@ "stripe.events._v2_core_health_authorization_rate_drop_resolved_event", False, ), + "V2CoreHealthElementsErrorFiringEvent": ( + "stripe.events._v2_core_health_elements_error_firing_event", + False, + ), + "V2CoreHealthElementsErrorFiringEventNotification": ( + "stripe.events._v2_core_health_elements_error_firing_event", + False, + ), + "V2CoreHealthElementsErrorResolvedEvent": ( + "stripe.events._v2_core_health_elements_error_resolved_event", + False, + ), + "V2CoreHealthElementsErrorResolvedEventNotification": ( + "stripe.events._v2_core_health_elements_error_resolved_event", + False, + ), "V2CoreHealthEventGenerationFailureResolvedEvent": ( "stripe.events._v2_core_health_event_generation_failure_resolved_event", False, @@ -3892,6 +3924,22 @@ "stripe.events._v2_core_health_fraud_rate_increased_event", False, ), + "V2CoreHealthInvoiceCountDroppedFiringEvent": ( + "stripe.events._v2_core_health_invoice_count_dropped_firing_event", + False, + ), + "V2CoreHealthInvoiceCountDroppedFiringEventNotification": ( + "stripe.events._v2_core_health_invoice_count_dropped_firing_event", + False, + ), + "V2CoreHealthInvoiceCountDroppedResolvedEvent": ( + "stripe.events._v2_core_health_invoice_count_dropped_resolved_event", + False, + ), + "V2CoreHealthInvoiceCountDroppedResolvedEventNotification": ( + "stripe.events._v2_core_health_invoice_count_dropped_resolved_event", + False, + ), "V2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent": ( "stripe.events._v2_core_health_issuing_authorization_request_errors_firing_event", False, diff --git a/stripe/events/_event_classes.py b/stripe/events/_event_classes.py index ef75d42ac..fe3418fee 100644 --- a/stripe/events/_event_classes.py +++ b/stripe/events/_event_classes.py @@ -892,12 +892,24 @@ from stripe.events._v2_core_health_authorization_rate_drop_resolved_event import ( V2CoreHealthAuthorizationRateDropResolvedEventNotification, ) + from stripe.events._v2_core_health_elements_error_firing_event import ( + V2CoreHealthElementsErrorFiringEventNotification, + ) + from stripe.events._v2_core_health_elements_error_resolved_event import ( + V2CoreHealthElementsErrorResolvedEventNotification, + ) from stripe.events._v2_core_health_event_generation_failure_resolved_event import ( V2CoreHealthEventGenerationFailureResolvedEventNotification, ) from stripe.events._v2_core_health_fraud_rate_increased_event import ( V2CoreHealthFraudRateIncreasedEventNotification, ) + from stripe.events._v2_core_health_invoice_count_dropped_firing_event import ( + V2CoreHealthInvoiceCountDroppedFiringEventNotification, + ) + from stripe.events._v2_core_health_invoice_count_dropped_resolved_event import ( + V2CoreHealthInvoiceCountDroppedResolvedEventNotification, + ) from stripe.events._v2_core_health_issuing_authorization_request_errors_firing_event import ( V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventNotification, ) @@ -2396,6 +2408,14 @@ "stripe.events._v2_core_health_authorization_rate_drop_resolved_event", "V2CoreHealthAuthorizationRateDropResolvedEvent", ), + "v2.core.health.elements_error.firing": ( + "stripe.events._v2_core_health_elements_error_firing_event", + "V2CoreHealthElementsErrorFiringEvent", + ), + "v2.core.health.elements_error.resolved": ( + "stripe.events._v2_core_health_elements_error_resolved_event", + "V2CoreHealthElementsErrorResolvedEvent", + ), "v2.core.health.event_generation_failure.resolved": ( "stripe.events._v2_core_health_event_generation_failure_resolved_event", "V2CoreHealthEventGenerationFailureResolvedEvent", @@ -2404,6 +2424,14 @@ "stripe.events._v2_core_health_fraud_rate_increased_event", "V2CoreHealthFraudRateIncreasedEvent", ), + "v2.core.health.invoice_count_dropped.firing": ( + "stripe.events._v2_core_health_invoice_count_dropped_firing_event", + "V2CoreHealthInvoiceCountDroppedFiringEvent", + ), + "v2.core.health.invoice_count_dropped.resolved": ( + "stripe.events._v2_core_health_invoice_count_dropped_resolved_event", + "V2CoreHealthInvoiceCountDroppedResolvedEvent", + ), "v2.core.health.issuing_authorization_request_errors.firing": ( "stripe.events._v2_core_health_issuing_authorization_request_errors_firing_event", "V2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent", @@ -4019,6 +4047,14 @@ def get_v2_event_class(type_: str): "stripe.events._v2_core_health_authorization_rate_drop_resolved_event", "V2CoreHealthAuthorizationRateDropResolvedEventNotification", ), + "v2.core.health.elements_error.firing": ( + "stripe.events._v2_core_health_elements_error_firing_event", + "V2CoreHealthElementsErrorFiringEventNotification", + ), + "v2.core.health.elements_error.resolved": ( + "stripe.events._v2_core_health_elements_error_resolved_event", + "V2CoreHealthElementsErrorResolvedEventNotification", + ), "v2.core.health.event_generation_failure.resolved": ( "stripe.events._v2_core_health_event_generation_failure_resolved_event", "V2CoreHealthEventGenerationFailureResolvedEventNotification", @@ -4027,6 +4063,14 @@ def get_v2_event_class(type_: str): "stripe.events._v2_core_health_fraud_rate_increased_event", "V2CoreHealthFraudRateIncreasedEventNotification", ), + "v2.core.health.invoice_count_dropped.firing": ( + "stripe.events._v2_core_health_invoice_count_dropped_firing_event", + "V2CoreHealthInvoiceCountDroppedFiringEventNotification", + ), + "v2.core.health.invoice_count_dropped.resolved": ( + "stripe.events._v2_core_health_invoice_count_dropped_resolved_event", + "V2CoreHealthInvoiceCountDroppedResolvedEventNotification", + ), "v2.core.health.issuing_authorization_request_errors.firing": ( "stripe.events._v2_core_health_issuing_authorization_request_errors_firing_event", "V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventNotification", @@ -4757,8 +4801,12 @@ def get_v2_event_notification_class(type_: str): "V2CoreHealthApiLatencyResolvedEventNotification", "V2CoreHealthAuthorizationRateDropFiringEventNotification", "V2CoreHealthAuthorizationRateDropResolvedEventNotification", + "V2CoreHealthElementsErrorFiringEventNotification", + "V2CoreHealthElementsErrorResolvedEventNotification", "V2CoreHealthEventGenerationFailureResolvedEventNotification", "V2CoreHealthFraudRateIncreasedEventNotification", + "V2CoreHealthInvoiceCountDroppedFiringEventNotification", + "V2CoreHealthInvoiceCountDroppedResolvedEventNotification", "V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventNotification", "V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventNotification", "V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventNotification", diff --git a/stripe/events/_v2_core_health_elements_error_firing_event.py b/stripe/events/_v2_core_health_elements_error_firing_event.py new file mode 100644 index 000000000..1eb00e9bc --- /dev/null +++ b/stripe/events/_v2_core_health_elements_error_firing_event.py @@ -0,0 +1,99 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._api_mode import ApiMode +from stripe._stripe_object import StripeObject +from stripe._stripe_response import StripeResponse +from stripe.v2.core._event import Event, EventNotification +from typing import Any, Dict, Optional, cast +from typing_extensions import Literal, TYPE_CHECKING, override + +if TYPE_CHECKING: + from stripe._api_requestor import _APIRequestor + + +class V2CoreHealthElementsErrorFiringEventNotification(EventNotification): + LOOKUP_TYPE = "v2.core.health.elements_error.firing" + type: Literal["v2.core.health.elements_error.firing"] + + @override + def fetch_event(self) -> "V2CoreHealthElementsErrorFiringEvent": + return cast( + "V2CoreHealthElementsErrorFiringEvent", + super().fetch_event(), + ) + + @override + async def fetch_event_async( + self, + ) -> "V2CoreHealthElementsErrorFiringEvent": + return cast( + "V2CoreHealthElementsErrorFiringEvent", + await super().fetch_event_async(), + ) + + +class V2CoreHealthElementsErrorFiringEvent(Event): + LOOKUP_TYPE = "v2.core.health.elements_error.firing" + type: Literal["v2.core.health.elements_error.firing"] + + class V2CoreHealthElementsErrorFiringEventData(StripeObject): + class Impact(StripeObject): + element_type: Optional[Literal["expressCheckout", "payment"]] + """ + The type of the element. + """ + impacted_sessions: int + """ + The number of impacted sessions. + """ + + alert_id: str + """ + The alert ID. + """ + grouping_key: str + """ + The grouping key for the alert. + """ + impact: Impact + """ + The user impact. + """ + started_at: str + """ + The time when impact on the user experience was first detected. + """ + summary: str + """ + A short description of the alert. + """ + _inner_class_types = {"impact": Impact} + + data: V2CoreHealthElementsErrorFiringEventData + """ + Data for the v2.core.health.elements_error.firing event + """ + + @classmethod + def _construct_from( + cls, + *, + values: Dict[str, Any], + last_response: Optional[StripeResponse] = None, + requestor: "_APIRequestor", + api_mode: ApiMode, + ) -> "V2CoreHealthElementsErrorFiringEvent": + evt = super()._construct_from( + values=values, + last_response=last_response, + requestor=requestor, + api_mode=api_mode, + ) + if hasattr(evt, "data"): + evt.data = V2CoreHealthElementsErrorFiringEvent.V2CoreHealthElementsErrorFiringEventData._construct_from( + values=evt.data, + last_response=last_response, + requestor=requestor, + api_mode=api_mode, + ) + return evt diff --git a/stripe/events/_v2_core_health_elements_error_resolved_event.py b/stripe/events/_v2_core_health_elements_error_resolved_event.py new file mode 100644 index 000000000..73cd32bfc --- /dev/null +++ b/stripe/events/_v2_core_health_elements_error_resolved_event.py @@ -0,0 +1,103 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._api_mode import ApiMode +from stripe._stripe_object import StripeObject +from stripe._stripe_response import StripeResponse +from stripe.v2.core._event import Event, EventNotification +from typing import Any, Dict, Optional, cast +from typing_extensions import Literal, TYPE_CHECKING, override + +if TYPE_CHECKING: + from stripe._api_requestor import _APIRequestor + + +class V2CoreHealthElementsErrorResolvedEventNotification(EventNotification): + LOOKUP_TYPE = "v2.core.health.elements_error.resolved" + type: Literal["v2.core.health.elements_error.resolved"] + + @override + def fetch_event(self) -> "V2CoreHealthElementsErrorResolvedEvent": + return cast( + "V2CoreHealthElementsErrorResolvedEvent", + super().fetch_event(), + ) + + @override + async def fetch_event_async( + self, + ) -> "V2CoreHealthElementsErrorResolvedEvent": + return cast( + "V2CoreHealthElementsErrorResolvedEvent", + await super().fetch_event_async(), + ) + + +class V2CoreHealthElementsErrorResolvedEvent(Event): + LOOKUP_TYPE = "v2.core.health.elements_error.resolved" + type: Literal["v2.core.health.elements_error.resolved"] + + class V2CoreHealthElementsErrorResolvedEventData(StripeObject): + class Impact(StripeObject): + element_type: Optional[Literal["expressCheckout", "payment"]] + """ + The type of the element. + """ + impacted_sessions: int + """ + The number of impacted sessions. + """ + + alert_id: str + """ + The alert ID. + """ + grouping_key: str + """ + The grouping key for the alert. + """ + impact: Impact + """ + The user impact. + """ + resolved_at: str + """ + The time when the user experience has returned to expected levels. + """ + started_at: str + """ + The time when impact on the user experience was first detected. + """ + summary: str + """ + A short description of the alert. + """ + _inner_class_types = {"impact": Impact} + + data: V2CoreHealthElementsErrorResolvedEventData + """ + Data for the v2.core.health.elements_error.resolved event + """ + + @classmethod + def _construct_from( + cls, + *, + values: Dict[str, Any], + last_response: Optional[StripeResponse] = None, + requestor: "_APIRequestor", + api_mode: ApiMode, + ) -> "V2CoreHealthElementsErrorResolvedEvent": + evt = super()._construct_from( + values=values, + last_response=last_response, + requestor=requestor, + api_mode=api_mode, + ) + if hasattr(evt, "data"): + evt.data = V2CoreHealthElementsErrorResolvedEvent.V2CoreHealthElementsErrorResolvedEventData._construct_from( + values=evt.data, + last_response=last_response, + requestor=requestor, + api_mode=api_mode, + ) + return evt diff --git a/stripe/events/_v2_core_health_invoice_count_dropped_firing_event.py b/stripe/events/_v2_core_health_invoice_count_dropped_firing_event.py new file mode 100644 index 000000000..33945dc67 --- /dev/null +++ b/stripe/events/_v2_core_health_invoice_count_dropped_firing_event.py @@ -0,0 +1,110 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from decimal import Decimal +from stripe._api_mode import ApiMode +from stripe._stripe_object import StripeObject +from stripe._stripe_response import StripeResponse +from stripe.v2.core._event import Event, EventNotification +from typing import Any, Dict, Optional, cast +from typing_extensions import Literal, TYPE_CHECKING, override + +if TYPE_CHECKING: + from stripe._api_requestor import _APIRequestor + + +class V2CoreHealthInvoiceCountDroppedFiringEventNotification( + EventNotification +): + LOOKUP_TYPE = "v2.core.health.invoice_count_dropped.firing" + type: Literal["v2.core.health.invoice_count_dropped.firing"] + + @override + def fetch_event(self) -> "V2CoreHealthInvoiceCountDroppedFiringEvent": + return cast( + "V2CoreHealthInvoiceCountDroppedFiringEvent", + super().fetch_event(), + ) + + @override + async def fetch_event_async( + self, + ) -> "V2CoreHealthInvoiceCountDroppedFiringEvent": + return cast( + "V2CoreHealthInvoiceCountDroppedFiringEvent", + await super().fetch_event_async(), + ) + + +class V2CoreHealthInvoiceCountDroppedFiringEvent(Event): + LOOKUP_TYPE = "v2.core.health.invoice_count_dropped.firing" + type: Literal["v2.core.health.invoice_count_dropped.firing"] + + class V2CoreHealthInvoiceCountDroppedFiringEventData(StripeObject): + class Impact(StripeObject): + observed_count: Decimal + """ + The observed number of invoices within the time window. + """ + threshold_count: Decimal + """ + The expected threshold number of invoices within the time window. + """ + time_window: str + """ + The size of the observation time window. + """ + _field_encodings = { + "observed_count": "decimal_string", + "threshold_count": "decimal_string", + } + + alert_id: str + """ + The alert ID. + """ + grouping_key: str + """ + The grouping key for the alert. + """ + impact: Impact + """ + The user impact. + """ + started_at: str + """ + The time when impact on the user experience was first detected. + """ + summary: str + """ + A short description of the alert. + """ + _inner_class_types = {"impact": Impact} + + data: V2CoreHealthInvoiceCountDroppedFiringEventData + """ + Data for the v2.core.health.invoice_count_dropped.firing event + """ + + @classmethod + def _construct_from( + cls, + *, + values: Dict[str, Any], + last_response: Optional[StripeResponse] = None, + requestor: "_APIRequestor", + api_mode: ApiMode, + ) -> "V2CoreHealthInvoiceCountDroppedFiringEvent": + evt = super()._construct_from( + values=values, + last_response=last_response, + requestor=requestor, + api_mode=api_mode, + ) + if hasattr(evt, "data"): + evt.data = V2CoreHealthInvoiceCountDroppedFiringEvent.V2CoreHealthInvoiceCountDroppedFiringEventData._construct_from( + values=evt.data, + last_response=last_response, + requestor=requestor, + api_mode=api_mode, + ) + return evt diff --git a/stripe/events/_v2_core_health_invoice_count_dropped_resolved_event.py b/stripe/events/_v2_core_health_invoice_count_dropped_resolved_event.py new file mode 100644 index 000000000..704cbc958 --- /dev/null +++ b/stripe/events/_v2_core_health_invoice_count_dropped_resolved_event.py @@ -0,0 +1,114 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from decimal import Decimal +from stripe._api_mode import ApiMode +from stripe._stripe_object import StripeObject +from stripe._stripe_response import StripeResponse +from stripe.v2.core._event import Event, EventNotification +from typing import Any, Dict, Optional, cast +from typing_extensions import Literal, TYPE_CHECKING, override + +if TYPE_CHECKING: + from stripe._api_requestor import _APIRequestor + + +class V2CoreHealthInvoiceCountDroppedResolvedEventNotification( + EventNotification, +): + LOOKUP_TYPE = "v2.core.health.invoice_count_dropped.resolved" + type: Literal["v2.core.health.invoice_count_dropped.resolved"] + + @override + def fetch_event(self) -> "V2CoreHealthInvoiceCountDroppedResolvedEvent": + return cast( + "V2CoreHealthInvoiceCountDroppedResolvedEvent", + super().fetch_event(), + ) + + @override + async def fetch_event_async( + self, + ) -> "V2CoreHealthInvoiceCountDroppedResolvedEvent": + return cast( + "V2CoreHealthInvoiceCountDroppedResolvedEvent", + await super().fetch_event_async(), + ) + + +class V2CoreHealthInvoiceCountDroppedResolvedEvent(Event): + LOOKUP_TYPE = "v2.core.health.invoice_count_dropped.resolved" + type: Literal["v2.core.health.invoice_count_dropped.resolved"] + + class V2CoreHealthInvoiceCountDroppedResolvedEventData(StripeObject): + class Impact(StripeObject): + observed_count: Decimal + """ + The observed number of invoices within the time window. + """ + threshold_count: Decimal + """ + The expected threshold number of invoices within the time window. + """ + time_window: str + """ + The size of the observation time window. + """ + _field_encodings = { + "observed_count": "decimal_string", + "threshold_count": "decimal_string", + } + + alert_id: str + """ + The alert ID. + """ + grouping_key: str + """ + The grouping key for the alert. + """ + impact: Impact + """ + The user impact. + """ + resolved_at: str + """ + The time when the user experience has returned to expected levels. + """ + started_at: str + """ + The time when impact on the user experience was first detected. + """ + summary: str + """ + A short description of the alert. + """ + _inner_class_types = {"impact": Impact} + + data: V2CoreHealthInvoiceCountDroppedResolvedEventData + """ + Data for the v2.core.health.invoice_count_dropped.resolved event + """ + + @classmethod + def _construct_from( + cls, + *, + values: Dict[str, Any], + last_response: Optional[StripeResponse] = None, + requestor: "_APIRequestor", + api_mode: ApiMode, + ) -> "V2CoreHealthInvoiceCountDroppedResolvedEvent": + evt = super()._construct_from( + values=values, + last_response=last_response, + requestor=requestor, + api_mode=api_mode, + ) + if hasattr(evt, "data"): + evt.data = V2CoreHealthInvoiceCountDroppedResolvedEvent.V2CoreHealthInvoiceCountDroppedResolvedEventData._construct_from( + values=evt.data, + last_response=last_response, + requestor=requestor, + api_mode=api_mode, + ) + return evt diff --git a/stripe/events/_v2_core_health_traffic_volume_drop_firing_event.py b/stripe/events/_v2_core_health_traffic_volume_drop_firing_event.py index 2376726d8..c826c0ffb 100644 --- a/stripe/events/_v2_core_health_traffic_volume_drop_firing_event.py +++ b/stripe/events/_v2_core_health_traffic_volume_drop_firing_event.py @@ -42,6 +42,10 @@ class Impact(StripeObject): """ The total volume of payment requests within the latest observation time window. """ + canonical_path: Optional[str] + """ + The canonical path. + """ expected_traffic: Optional[int] """ The expected volume of payment requests within the latest observation time window. diff --git a/stripe/events/_v2_core_health_traffic_volume_drop_resolved_event.py b/stripe/events/_v2_core_health_traffic_volume_drop_resolved_event.py index c60a98205..3e0ae7579 100644 --- a/stripe/events/_v2_core_health_traffic_volume_drop_resolved_event.py +++ b/stripe/events/_v2_core_health_traffic_volume_drop_resolved_event.py @@ -44,6 +44,10 @@ class Impact(StripeObject): """ The total volume of payment requests within the latest observation time window. """ + canonical_path: Optional[str] + """ + The canonical path. + """ expected_traffic: Optional[int] """ The expected volume of payment requests within the latest observation time window. diff --git a/stripe/financial_connections/_account.py b/stripe/financial_connections/_account.py index 129892ee1..4fa63920e 100644 --- a/stripe/financial_connections/_account.py +++ b/stripe/financial_connections/_account.py @@ -183,6 +183,7 @@ class Inactive(StripeObject): "access_expired", "account_closed", "account_unavailable", + "institution_requirement", "unspecified", ] """ diff --git a/stripe/issuing/_dispute.py b/stripe/issuing/_dispute.py index 1db4c52c9..939c3a430 100644 --- a/stripe/issuing/_dispute.py +++ b/stripe/issuing/_dispute.py @@ -535,7 +535,7 @@ class Treasury(StripeObject): """ treasury: Optional[Treasury] """ - [Treasury](https://docs.stripe.com/api/treasury) details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts + [Treasury](https://docs.stripe.com/api/treasury) details related to this dispute if it was created on a [FinancialAccount](https://docs.stripe.com/api/treasury/financial_accounts) """ @classmethod diff --git a/stripe/issuing/_personalization_design.py b/stripe/issuing/_personalization_design.py index 08d8fd75f..8c5ca1476 100644 --- a/stripe/issuing/_personalization_design.py +++ b/stripe/issuing/_personalization_design.py @@ -115,7 +115,7 @@ class RejectionReasons(StripeObject): card_logo: Optional[ExpandableField["File"]] """ - The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. + The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. Image must be in PNG format with dimensions of 1000px by 200px. It must be a binary (black and white) image containing a black logo on a white background. We don't accept grayscale. """ carrier_text: Optional[CarrierText] """ diff --git a/stripe/issuing/_settlement.py b/stripe/issuing/_settlement.py index 0398d837d..44209e621 100644 --- a/stripe/issuing/_settlement.py +++ b/stripe/issuing/_settlement.py @@ -47,9 +47,9 @@ class Settlement(StripeObject): """ The total net amount required to settle with the network. """ - network: Literal["maestro", "visa"] + network: Literal["maestro", "mastercard", "visa"] """ - The card network for this settlement report. One of ["visa", "maestro"] + The card network for this settlement report. One of ["visa", "maestro", "mastercard"] """ network_fees_amount: int """ diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py index acba8dfab..8657049fe 100644 --- a/stripe/params/__init__.py +++ b/stripe/params/__init__.py @@ -68,6 +68,7 @@ AccountCreateParamsCapabilitiesBancontactPayments as AccountCreateParamsCapabilitiesBancontactPayments, AccountCreateParamsCapabilitiesBankTransferPayments as AccountCreateParamsCapabilitiesBankTransferPayments, AccountCreateParamsCapabilitiesBilliePayments as AccountCreateParamsCapabilitiesBilliePayments, + AccountCreateParamsCapabilitiesBizumPayments as AccountCreateParamsCapabilitiesBizumPayments, AccountCreateParamsCapabilitiesBlikPayments as AccountCreateParamsCapabilitiesBlikPayments, AccountCreateParamsCapabilitiesBoletoPayments as AccountCreateParamsCapabilitiesBoletoPayments, AccountCreateParamsCapabilitiesCardIssuing as AccountCreateParamsCapabilitiesCardIssuing, @@ -116,6 +117,7 @@ AccountCreateParamsCapabilitiesRevolutPayPayments as AccountCreateParamsCapabilitiesRevolutPayPayments, AccountCreateParamsCapabilitiesSamsungPayPayments as AccountCreateParamsCapabilitiesSamsungPayPayments, AccountCreateParamsCapabilitiesSatispayPayments as AccountCreateParamsCapabilitiesSatispayPayments, + AccountCreateParamsCapabilitiesScalapayPayments as AccountCreateParamsCapabilitiesScalapayPayments, AccountCreateParamsCapabilitiesSepaBankTransferPayments as AccountCreateParamsCapabilitiesSepaBankTransferPayments, AccountCreateParamsCapabilitiesSepaDebitPayments as AccountCreateParamsCapabilitiesSepaDebitPayments, AccountCreateParamsCapabilitiesShopeepayPayments as AccountCreateParamsCapabilitiesShopeepayPayments, @@ -506,6 +508,7 @@ AccountUpdateParamsCapabilitiesBancontactPayments as AccountUpdateParamsCapabilitiesBancontactPayments, AccountUpdateParamsCapabilitiesBankTransferPayments as AccountUpdateParamsCapabilitiesBankTransferPayments, AccountUpdateParamsCapabilitiesBilliePayments as AccountUpdateParamsCapabilitiesBilliePayments, + AccountUpdateParamsCapabilitiesBizumPayments as AccountUpdateParamsCapabilitiesBizumPayments, AccountUpdateParamsCapabilitiesBlikPayments as AccountUpdateParamsCapabilitiesBlikPayments, AccountUpdateParamsCapabilitiesBoletoPayments as AccountUpdateParamsCapabilitiesBoletoPayments, AccountUpdateParamsCapabilitiesCardIssuing as AccountUpdateParamsCapabilitiesCardIssuing, @@ -554,6 +557,7 @@ AccountUpdateParamsCapabilitiesRevolutPayPayments as AccountUpdateParamsCapabilitiesRevolutPayPayments, AccountUpdateParamsCapabilitiesSamsungPayPayments as AccountUpdateParamsCapabilitiesSamsungPayPayments, AccountUpdateParamsCapabilitiesSatispayPayments as AccountUpdateParamsCapabilitiesSatispayPayments, + AccountUpdateParamsCapabilitiesScalapayPayments as AccountUpdateParamsCapabilitiesScalapayPayments, AccountUpdateParamsCapabilitiesSepaBankTransferPayments as AccountUpdateParamsCapabilitiesSepaBankTransferPayments, AccountUpdateParamsCapabilitiesSepaDebitPayments as AccountUpdateParamsCapabilitiesSepaDebitPayments, AccountUpdateParamsCapabilitiesShopeepayPayments as AccountUpdateParamsCapabilitiesShopeepayPayments, @@ -691,8 +695,10 @@ BalanceSettingsModifyParams as BalanceSettingsModifyParams, BalanceSettingsModifyParamsPayments as BalanceSettingsModifyParamsPayments, BalanceSettingsModifyParamsPaymentsPayouts as BalanceSettingsModifyParamsPaymentsPayouts, + BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency as BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency, BalanceSettingsModifyParamsPaymentsPayoutsSchedule as BalanceSettingsModifyParamsPaymentsPayoutsSchedule, BalanceSettingsModifyParamsPaymentsSettlementTiming as BalanceSettingsModifyParamsPaymentsSettlementTiming, + BalanceSettingsModifyParamsPaymentsSettlementTimingStartOfDay as BalanceSettingsModifyParamsPaymentsSettlementTimingStartOfDay, ) from stripe.params._balance_settings_retrieve_params import ( BalanceSettingsRetrieveParams as BalanceSettingsRetrieveParams, @@ -701,8 +707,10 @@ BalanceSettingsUpdateParams as BalanceSettingsUpdateParams, BalanceSettingsUpdateParamsPayments as BalanceSettingsUpdateParamsPayments, BalanceSettingsUpdateParamsPaymentsPayouts as BalanceSettingsUpdateParamsPaymentsPayouts, + BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency as BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency, BalanceSettingsUpdateParamsPaymentsPayoutsSchedule as BalanceSettingsUpdateParamsPaymentsPayoutsSchedule, BalanceSettingsUpdateParamsPaymentsSettlementTiming as BalanceSettingsUpdateParamsPaymentsSettlementTiming, + BalanceSettingsUpdateParamsPaymentsSettlementTimingStartOfDay as BalanceSettingsUpdateParamsPaymentsSettlementTimingStartOfDay, ) from stripe.params._balance_transaction_list_params import ( BalanceTransactionListParams as BalanceTransactionListParams, @@ -1024,6 +1032,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataBillie as ConfirmationTokenCreateParamsPaymentMethodDataBillie, ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails as ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails, ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress as ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress, + ConfirmationTokenCreateParamsPaymentMethodDataBizum as ConfirmationTokenCreateParamsPaymentMethodDataBizum, ConfirmationTokenCreateParamsPaymentMethodDataBlik as ConfirmationTokenCreateParamsPaymentMethodDataBlik, ConfirmationTokenCreateParamsPaymentMethodDataBoleto as ConfirmationTokenCreateParamsPaymentMethodDataBoleto, ConfirmationTokenCreateParamsPaymentMethodDataCashapp as ConfirmationTokenCreateParamsPaymentMethodDataCashapp, @@ -1066,6 +1075,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay as ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay, ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay as ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay, ConfirmationTokenCreateParamsPaymentMethodDataSatispay as ConfirmationTokenCreateParamsPaymentMethodDataSatispay, + ConfirmationTokenCreateParamsPaymentMethodDataScalapay as ConfirmationTokenCreateParamsPaymentMethodDataScalapay, ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit as ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit, ConfirmationTokenCreateParamsPaymentMethodDataShopeepay as ConfirmationTokenCreateParamsPaymentMethodDataShopeepay, ConfirmationTokenCreateParamsPaymentMethodDataSofort as ConfirmationTokenCreateParamsPaymentMethodDataSofort, @@ -1558,6 +1568,7 @@ InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount, InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections, InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters, + InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay, InvoiceCreateParamsRendering as InvoiceCreateParamsRendering, InvoiceCreateParamsRenderingPdf as InvoiceCreateParamsRenderingPdf, InvoiceCreateParamsShippingCost as InvoiceCreateParamsShippingCost, @@ -1813,6 +1824,7 @@ InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount, InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections, InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters, + InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay, InvoiceModifyParamsRendering as InvoiceModifyParamsRendering, InvoiceModifyParamsRenderingPdf as InvoiceModifyParamsRenderingPdf, InvoiceModifyParamsShippingCost as InvoiceModifyParamsShippingCost, @@ -1911,6 +1923,7 @@ InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount, InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections, InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters, + InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay, InvoiceUpdateParamsRendering as InvoiceUpdateParamsRendering, InvoiceUpdateParamsRenderingPdf as InvoiceUpdateParamsRenderingPdf, InvoiceUpdateParamsShippingCost as InvoiceUpdateParamsShippingCost, @@ -2490,6 +2503,7 @@ PaymentIntentConfirmParamsPaymentMethodDataBillie as PaymentIntentConfirmParamsPaymentMethodDataBillie, PaymentIntentConfirmParamsPaymentMethodDataBillingDetails as PaymentIntentConfirmParamsPaymentMethodDataBillingDetails, PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress as PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress, + PaymentIntentConfirmParamsPaymentMethodDataBizum as PaymentIntentConfirmParamsPaymentMethodDataBizum, PaymentIntentConfirmParamsPaymentMethodDataBlik as PaymentIntentConfirmParamsPaymentMethodDataBlik, PaymentIntentConfirmParamsPaymentMethodDataBoleto as PaymentIntentConfirmParamsPaymentMethodDataBoleto, PaymentIntentConfirmParamsPaymentMethodDataCashapp as PaymentIntentConfirmParamsPaymentMethodDataCashapp, @@ -2532,6 +2546,7 @@ PaymentIntentConfirmParamsPaymentMethodDataRevolutPay as PaymentIntentConfirmParamsPaymentMethodDataRevolutPay, PaymentIntentConfirmParamsPaymentMethodDataSamsungPay as PaymentIntentConfirmParamsPaymentMethodDataSamsungPay, PaymentIntentConfirmParamsPaymentMethodDataSatispay as PaymentIntentConfirmParamsPaymentMethodDataSatispay, + PaymentIntentConfirmParamsPaymentMethodDataScalapay as PaymentIntentConfirmParamsPaymentMethodDataScalapay, PaymentIntentConfirmParamsPaymentMethodDataSepaDebit as PaymentIntentConfirmParamsPaymentMethodDataSepaDebit, PaymentIntentConfirmParamsPaymentMethodDataShopeepay as PaymentIntentConfirmParamsPaymentMethodDataShopeepay, PaymentIntentConfirmParamsPaymentMethodDataSofort as PaymentIntentConfirmParamsPaymentMethodDataSofort, @@ -2557,6 +2572,7 @@ PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentConfirmParamsPaymentMethodOptionsBancontact as PaymentIntentConfirmParamsPaymentMethodOptionsBancontact, PaymentIntentConfirmParamsPaymentMethodOptionsBillie as PaymentIntentConfirmParamsPaymentMethodOptionsBillie, + PaymentIntentConfirmParamsPaymentMethodOptionsBizum as PaymentIntentConfirmParamsPaymentMethodOptionsBizum, PaymentIntentConfirmParamsPaymentMethodOptionsBlik as PaymentIntentConfirmParamsPaymentMethodOptionsBlik, PaymentIntentConfirmParamsPaymentMethodOptionsBoleto as PaymentIntentConfirmParamsPaymentMethodOptionsBoleto, PaymentIntentConfirmParamsPaymentMethodOptionsCard as PaymentIntentConfirmParamsPaymentMethodOptionsCard, @@ -2596,6 +2612,7 @@ PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer, PaymentIntentConfirmParamsPaymentMethodOptionsEps as PaymentIntentConfirmParamsPaymentMethodOptionsEps, PaymentIntentConfirmParamsPaymentMethodOptionsFpx as PaymentIntentConfirmParamsPaymentMethodOptionsFpx, + PaymentIntentConfirmParamsPaymentMethodOptionsGiftCard as PaymentIntentConfirmParamsPaymentMethodOptionsGiftCard, PaymentIntentConfirmParamsPaymentMethodOptionsGiropay as PaymentIntentConfirmParamsPaymentMethodOptionsGiropay, PaymentIntentConfirmParamsPaymentMethodOptionsGopay as PaymentIntentConfirmParamsPaymentMethodOptionsGopay, PaymentIntentConfirmParamsPaymentMethodOptionsGrabpay as PaymentIntentConfirmParamsPaymentMethodOptionsGrabpay, @@ -2670,6 +2687,7 @@ PaymentIntentConfirmParamsPaymentMethodOptionsRevolutPay as PaymentIntentConfirmParamsPaymentMethodOptionsRevolutPay, PaymentIntentConfirmParamsPaymentMethodOptionsSamsungPay as PaymentIntentConfirmParamsPaymentMethodOptionsSamsungPay, PaymentIntentConfirmParamsPaymentMethodOptionsSatispay as PaymentIntentConfirmParamsPaymentMethodOptionsSatispay, + PaymentIntentConfirmParamsPaymentMethodOptionsScalapay as PaymentIntentConfirmParamsPaymentMethodOptionsScalapay, PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit as PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit, PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentConfirmParamsPaymentMethodOptionsShopeepay as PaymentIntentConfirmParamsPaymentMethodOptionsShopeepay, @@ -2812,6 +2830,7 @@ PaymentIntentCreateParamsPaymentMethodDataBillie as PaymentIntentCreateParamsPaymentMethodDataBillie, PaymentIntentCreateParamsPaymentMethodDataBillingDetails as PaymentIntentCreateParamsPaymentMethodDataBillingDetails, PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress as PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress, + PaymentIntentCreateParamsPaymentMethodDataBizum as PaymentIntentCreateParamsPaymentMethodDataBizum, PaymentIntentCreateParamsPaymentMethodDataBlik as PaymentIntentCreateParamsPaymentMethodDataBlik, PaymentIntentCreateParamsPaymentMethodDataBoleto as PaymentIntentCreateParamsPaymentMethodDataBoleto, PaymentIntentCreateParamsPaymentMethodDataCashapp as PaymentIntentCreateParamsPaymentMethodDataCashapp, @@ -2854,6 +2873,7 @@ PaymentIntentCreateParamsPaymentMethodDataRevolutPay as PaymentIntentCreateParamsPaymentMethodDataRevolutPay, PaymentIntentCreateParamsPaymentMethodDataSamsungPay as PaymentIntentCreateParamsPaymentMethodDataSamsungPay, PaymentIntentCreateParamsPaymentMethodDataSatispay as PaymentIntentCreateParamsPaymentMethodDataSatispay, + PaymentIntentCreateParamsPaymentMethodDataScalapay as PaymentIntentCreateParamsPaymentMethodDataScalapay, PaymentIntentCreateParamsPaymentMethodDataSepaDebit as PaymentIntentCreateParamsPaymentMethodDataSepaDebit, PaymentIntentCreateParamsPaymentMethodDataShopeepay as PaymentIntentCreateParamsPaymentMethodDataShopeepay, PaymentIntentCreateParamsPaymentMethodDataSofort as PaymentIntentCreateParamsPaymentMethodDataSofort, @@ -2879,6 +2899,7 @@ PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentCreateParamsPaymentMethodOptionsBancontact as PaymentIntentCreateParamsPaymentMethodOptionsBancontact, PaymentIntentCreateParamsPaymentMethodOptionsBillie as PaymentIntentCreateParamsPaymentMethodOptionsBillie, + PaymentIntentCreateParamsPaymentMethodOptionsBizum as PaymentIntentCreateParamsPaymentMethodOptionsBizum, PaymentIntentCreateParamsPaymentMethodOptionsBlik as PaymentIntentCreateParamsPaymentMethodOptionsBlik, PaymentIntentCreateParamsPaymentMethodOptionsBoleto as PaymentIntentCreateParamsPaymentMethodOptionsBoleto, PaymentIntentCreateParamsPaymentMethodOptionsCard as PaymentIntentCreateParamsPaymentMethodOptionsCard, @@ -2918,6 +2939,7 @@ PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer, PaymentIntentCreateParamsPaymentMethodOptionsEps as PaymentIntentCreateParamsPaymentMethodOptionsEps, PaymentIntentCreateParamsPaymentMethodOptionsFpx as PaymentIntentCreateParamsPaymentMethodOptionsFpx, + PaymentIntentCreateParamsPaymentMethodOptionsGiftCard as PaymentIntentCreateParamsPaymentMethodOptionsGiftCard, PaymentIntentCreateParamsPaymentMethodOptionsGiropay as PaymentIntentCreateParamsPaymentMethodOptionsGiropay, PaymentIntentCreateParamsPaymentMethodOptionsGopay as PaymentIntentCreateParamsPaymentMethodOptionsGopay, PaymentIntentCreateParamsPaymentMethodOptionsGrabpay as PaymentIntentCreateParamsPaymentMethodOptionsGrabpay, @@ -2992,6 +3014,7 @@ PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay as PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay, PaymentIntentCreateParamsPaymentMethodOptionsSamsungPay as PaymentIntentCreateParamsPaymentMethodOptionsSamsungPay, PaymentIntentCreateParamsPaymentMethodOptionsSatispay as PaymentIntentCreateParamsPaymentMethodOptionsSatispay, + PaymentIntentCreateParamsPaymentMethodOptionsScalapay as PaymentIntentCreateParamsPaymentMethodOptionsScalapay, PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit as PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit, PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentCreateParamsPaymentMethodOptionsShopeepay as PaymentIntentCreateParamsPaymentMethodOptionsShopeepay, @@ -3011,10 +3034,12 @@ PaymentIntentCreateParamsPaymentMethodOptionsWechatPay as PaymentIntentCreateParamsPaymentMethodOptionsWechatPay, PaymentIntentCreateParamsPaymentMethodOptionsZip as PaymentIntentCreateParamsPaymentMethodOptionsZip, PaymentIntentCreateParamsPaymentsOrchestration as PaymentIntentCreateParamsPaymentsOrchestration, + PaymentIntentCreateParamsPaymentsOrchestrationPaymentDetails as PaymentIntentCreateParamsPaymentsOrchestrationPaymentDetails, PaymentIntentCreateParamsRadarOptions as PaymentIntentCreateParamsRadarOptions, PaymentIntentCreateParamsShipping as PaymentIntentCreateParamsShipping, PaymentIntentCreateParamsShippingAddress as PaymentIntentCreateParamsShippingAddress, PaymentIntentCreateParamsTransferData as PaymentIntentCreateParamsTransferData, + PaymentIntentCreateParamsTransferDataPaymentData as PaymentIntentCreateParamsTransferDataPaymentData, ) from stripe.params._payment_intent_decrement_authorization_params import ( PaymentIntentDecrementAuthorizationParams as PaymentIntentDecrementAuthorizationParams, @@ -3183,6 +3208,7 @@ PaymentIntentModifyParamsPaymentMethodDataBillie as PaymentIntentModifyParamsPaymentMethodDataBillie, PaymentIntentModifyParamsPaymentMethodDataBillingDetails as PaymentIntentModifyParamsPaymentMethodDataBillingDetails, PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress as PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress, + PaymentIntentModifyParamsPaymentMethodDataBizum as PaymentIntentModifyParamsPaymentMethodDataBizum, PaymentIntentModifyParamsPaymentMethodDataBlik as PaymentIntentModifyParamsPaymentMethodDataBlik, PaymentIntentModifyParamsPaymentMethodDataBoleto as PaymentIntentModifyParamsPaymentMethodDataBoleto, PaymentIntentModifyParamsPaymentMethodDataCashapp as PaymentIntentModifyParamsPaymentMethodDataCashapp, @@ -3225,6 +3251,7 @@ PaymentIntentModifyParamsPaymentMethodDataRevolutPay as PaymentIntentModifyParamsPaymentMethodDataRevolutPay, PaymentIntentModifyParamsPaymentMethodDataSamsungPay as PaymentIntentModifyParamsPaymentMethodDataSamsungPay, PaymentIntentModifyParamsPaymentMethodDataSatispay as PaymentIntentModifyParamsPaymentMethodDataSatispay, + PaymentIntentModifyParamsPaymentMethodDataScalapay as PaymentIntentModifyParamsPaymentMethodDataScalapay, PaymentIntentModifyParamsPaymentMethodDataSepaDebit as PaymentIntentModifyParamsPaymentMethodDataSepaDebit, PaymentIntentModifyParamsPaymentMethodDataShopeepay as PaymentIntentModifyParamsPaymentMethodDataShopeepay, PaymentIntentModifyParamsPaymentMethodDataSofort as PaymentIntentModifyParamsPaymentMethodDataSofort, @@ -3250,6 +3277,7 @@ PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentModifyParamsPaymentMethodOptionsBancontact as PaymentIntentModifyParamsPaymentMethodOptionsBancontact, PaymentIntentModifyParamsPaymentMethodOptionsBillie as PaymentIntentModifyParamsPaymentMethodOptionsBillie, + PaymentIntentModifyParamsPaymentMethodOptionsBizum as PaymentIntentModifyParamsPaymentMethodOptionsBizum, PaymentIntentModifyParamsPaymentMethodOptionsBlik as PaymentIntentModifyParamsPaymentMethodOptionsBlik, PaymentIntentModifyParamsPaymentMethodOptionsBoleto as PaymentIntentModifyParamsPaymentMethodOptionsBoleto, PaymentIntentModifyParamsPaymentMethodOptionsCard as PaymentIntentModifyParamsPaymentMethodOptionsCard, @@ -3289,6 +3317,7 @@ PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer, PaymentIntentModifyParamsPaymentMethodOptionsEps as PaymentIntentModifyParamsPaymentMethodOptionsEps, PaymentIntentModifyParamsPaymentMethodOptionsFpx as PaymentIntentModifyParamsPaymentMethodOptionsFpx, + PaymentIntentModifyParamsPaymentMethodOptionsGiftCard as PaymentIntentModifyParamsPaymentMethodOptionsGiftCard, PaymentIntentModifyParamsPaymentMethodOptionsGiropay as PaymentIntentModifyParamsPaymentMethodOptionsGiropay, PaymentIntentModifyParamsPaymentMethodOptionsGopay as PaymentIntentModifyParamsPaymentMethodOptionsGopay, PaymentIntentModifyParamsPaymentMethodOptionsGrabpay as PaymentIntentModifyParamsPaymentMethodOptionsGrabpay, @@ -3363,6 +3392,7 @@ PaymentIntentModifyParamsPaymentMethodOptionsRevolutPay as PaymentIntentModifyParamsPaymentMethodOptionsRevolutPay, PaymentIntentModifyParamsPaymentMethodOptionsSamsungPay as PaymentIntentModifyParamsPaymentMethodOptionsSamsungPay, PaymentIntentModifyParamsPaymentMethodOptionsSatispay as PaymentIntentModifyParamsPaymentMethodOptionsSatispay, + PaymentIntentModifyParamsPaymentMethodOptionsScalapay as PaymentIntentModifyParamsPaymentMethodOptionsScalapay, PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit as PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit, PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentModifyParamsPaymentMethodOptionsShopeepay as PaymentIntentModifyParamsPaymentMethodOptionsShopeepay, @@ -3384,6 +3414,7 @@ PaymentIntentModifyParamsShipping as PaymentIntentModifyParamsShipping, PaymentIntentModifyParamsShippingAddress as PaymentIntentModifyParamsShippingAddress, PaymentIntentModifyParamsTransferData as PaymentIntentModifyParamsTransferData, + PaymentIntentModifyParamsTransferDataPaymentData as PaymentIntentModifyParamsTransferDataPaymentData, ) from stripe.params._payment_intent_reauthorize_params import ( PaymentIntentReauthorizeParams as PaymentIntentReauthorizeParams, @@ -3519,6 +3550,7 @@ PaymentIntentUpdateParamsPaymentMethodDataBillie as PaymentIntentUpdateParamsPaymentMethodDataBillie, PaymentIntentUpdateParamsPaymentMethodDataBillingDetails as PaymentIntentUpdateParamsPaymentMethodDataBillingDetails, PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress as PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress, + PaymentIntentUpdateParamsPaymentMethodDataBizum as PaymentIntentUpdateParamsPaymentMethodDataBizum, PaymentIntentUpdateParamsPaymentMethodDataBlik as PaymentIntentUpdateParamsPaymentMethodDataBlik, PaymentIntentUpdateParamsPaymentMethodDataBoleto as PaymentIntentUpdateParamsPaymentMethodDataBoleto, PaymentIntentUpdateParamsPaymentMethodDataCashapp as PaymentIntentUpdateParamsPaymentMethodDataCashapp, @@ -3561,6 +3593,7 @@ PaymentIntentUpdateParamsPaymentMethodDataRevolutPay as PaymentIntentUpdateParamsPaymentMethodDataRevolutPay, PaymentIntentUpdateParamsPaymentMethodDataSamsungPay as PaymentIntentUpdateParamsPaymentMethodDataSamsungPay, PaymentIntentUpdateParamsPaymentMethodDataSatispay as PaymentIntentUpdateParamsPaymentMethodDataSatispay, + PaymentIntentUpdateParamsPaymentMethodDataScalapay as PaymentIntentUpdateParamsPaymentMethodDataScalapay, PaymentIntentUpdateParamsPaymentMethodDataSepaDebit as PaymentIntentUpdateParamsPaymentMethodDataSepaDebit, PaymentIntentUpdateParamsPaymentMethodDataShopeepay as PaymentIntentUpdateParamsPaymentMethodDataShopeepay, PaymentIntentUpdateParamsPaymentMethodDataSofort as PaymentIntentUpdateParamsPaymentMethodDataSofort, @@ -3586,6 +3619,7 @@ PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentUpdateParamsPaymentMethodOptionsBancontact as PaymentIntentUpdateParamsPaymentMethodOptionsBancontact, PaymentIntentUpdateParamsPaymentMethodOptionsBillie as PaymentIntentUpdateParamsPaymentMethodOptionsBillie, + PaymentIntentUpdateParamsPaymentMethodOptionsBizum as PaymentIntentUpdateParamsPaymentMethodOptionsBizum, PaymentIntentUpdateParamsPaymentMethodOptionsBlik as PaymentIntentUpdateParamsPaymentMethodOptionsBlik, PaymentIntentUpdateParamsPaymentMethodOptionsBoleto as PaymentIntentUpdateParamsPaymentMethodOptionsBoleto, PaymentIntentUpdateParamsPaymentMethodOptionsCard as PaymentIntentUpdateParamsPaymentMethodOptionsCard, @@ -3625,6 +3659,7 @@ PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer, PaymentIntentUpdateParamsPaymentMethodOptionsEps as PaymentIntentUpdateParamsPaymentMethodOptionsEps, PaymentIntentUpdateParamsPaymentMethodOptionsFpx as PaymentIntentUpdateParamsPaymentMethodOptionsFpx, + PaymentIntentUpdateParamsPaymentMethodOptionsGiftCard as PaymentIntentUpdateParamsPaymentMethodOptionsGiftCard, PaymentIntentUpdateParamsPaymentMethodOptionsGiropay as PaymentIntentUpdateParamsPaymentMethodOptionsGiropay, PaymentIntentUpdateParamsPaymentMethodOptionsGopay as PaymentIntentUpdateParamsPaymentMethodOptionsGopay, PaymentIntentUpdateParamsPaymentMethodOptionsGrabpay as PaymentIntentUpdateParamsPaymentMethodOptionsGrabpay, @@ -3699,6 +3734,7 @@ PaymentIntentUpdateParamsPaymentMethodOptionsRevolutPay as PaymentIntentUpdateParamsPaymentMethodOptionsRevolutPay, PaymentIntentUpdateParamsPaymentMethodOptionsSamsungPay as PaymentIntentUpdateParamsPaymentMethodOptionsSamsungPay, PaymentIntentUpdateParamsPaymentMethodOptionsSatispay as PaymentIntentUpdateParamsPaymentMethodOptionsSatispay, + PaymentIntentUpdateParamsPaymentMethodOptionsScalapay as PaymentIntentUpdateParamsPaymentMethodOptionsScalapay, PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit as PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit, PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentUpdateParamsPaymentMethodOptionsShopeepay as PaymentIntentUpdateParamsPaymentMethodOptionsShopeepay, @@ -3720,6 +3756,7 @@ PaymentIntentUpdateParamsShipping as PaymentIntentUpdateParamsShipping, PaymentIntentUpdateParamsShippingAddress as PaymentIntentUpdateParamsShippingAddress, PaymentIntentUpdateParamsTransferData as PaymentIntentUpdateParamsTransferData, + PaymentIntentUpdateParamsTransferDataPaymentData as PaymentIntentUpdateParamsTransferDataPaymentData, ) from stripe.params._payment_intent_verify_microdeposits_params import ( PaymentIntentVerifyMicrodepositsParams as PaymentIntentVerifyMicrodepositsParams, @@ -3763,6 +3800,9 @@ PaymentLinkCreateParamsOptionalItem as PaymentLinkCreateParamsOptionalItem, PaymentLinkCreateParamsOptionalItemAdjustableQuantity as PaymentLinkCreateParamsOptionalItemAdjustableQuantity, PaymentLinkCreateParamsPaymentIntentData as PaymentLinkCreateParamsPaymentIntentData, + PaymentLinkCreateParamsPaymentMethodOptions as PaymentLinkCreateParamsPaymentMethodOptions, + PaymentLinkCreateParamsPaymentMethodOptionsCard as PaymentLinkCreateParamsPaymentMethodOptionsCard, + PaymentLinkCreateParamsPaymentMethodOptionsCardRestrictions as PaymentLinkCreateParamsPaymentMethodOptionsCardRestrictions, PaymentLinkCreateParamsPhoneNumberCollection as PaymentLinkCreateParamsPhoneNumberCollection, PaymentLinkCreateParamsRestrictions as PaymentLinkCreateParamsRestrictions, PaymentLinkCreateParamsRestrictionsCompletedSessions as PaymentLinkCreateParamsRestrictionsCompletedSessions, @@ -3816,6 +3856,9 @@ PaymentLinkModifyParamsOptionalItem as PaymentLinkModifyParamsOptionalItem, PaymentLinkModifyParamsOptionalItemAdjustableQuantity as PaymentLinkModifyParamsOptionalItemAdjustableQuantity, PaymentLinkModifyParamsPaymentIntentData as PaymentLinkModifyParamsPaymentIntentData, + PaymentLinkModifyParamsPaymentMethodOptions as PaymentLinkModifyParamsPaymentMethodOptions, + PaymentLinkModifyParamsPaymentMethodOptionsCard as PaymentLinkModifyParamsPaymentMethodOptionsCard, + PaymentLinkModifyParamsPaymentMethodOptionsCardRestrictions as PaymentLinkModifyParamsPaymentMethodOptionsCardRestrictions, PaymentLinkModifyParamsPhoneNumberCollection as PaymentLinkModifyParamsPhoneNumberCollection, PaymentLinkModifyParamsRestrictions as PaymentLinkModifyParamsRestrictions, PaymentLinkModifyParamsRestrictionsCompletedSessions as PaymentLinkModifyParamsRestrictionsCompletedSessions, @@ -3861,6 +3904,9 @@ PaymentLinkUpdateParamsOptionalItem as PaymentLinkUpdateParamsOptionalItem, PaymentLinkUpdateParamsOptionalItemAdjustableQuantity as PaymentLinkUpdateParamsOptionalItemAdjustableQuantity, PaymentLinkUpdateParamsPaymentIntentData as PaymentLinkUpdateParamsPaymentIntentData, + PaymentLinkUpdateParamsPaymentMethodOptions as PaymentLinkUpdateParamsPaymentMethodOptions, + PaymentLinkUpdateParamsPaymentMethodOptionsCard as PaymentLinkUpdateParamsPaymentMethodOptionsCard, + PaymentLinkUpdateParamsPaymentMethodOptionsCardRestrictions as PaymentLinkUpdateParamsPaymentMethodOptionsCardRestrictions, PaymentLinkUpdateParamsPhoneNumberCollection as PaymentLinkUpdateParamsPhoneNumberCollection, PaymentLinkUpdateParamsRestrictions as PaymentLinkUpdateParamsRestrictions, PaymentLinkUpdateParamsRestrictionsCompletedSessions as PaymentLinkUpdateParamsRestrictionsCompletedSessions, @@ -3940,6 +3986,8 @@ PaymentMethodConfigurationCreateParamsBancontactDisplayPreference as PaymentMethodConfigurationCreateParamsBancontactDisplayPreference, PaymentMethodConfigurationCreateParamsBillie as PaymentMethodConfigurationCreateParamsBillie, PaymentMethodConfigurationCreateParamsBillieDisplayPreference as PaymentMethodConfigurationCreateParamsBillieDisplayPreference, + PaymentMethodConfigurationCreateParamsBizum as PaymentMethodConfigurationCreateParamsBizum, + PaymentMethodConfigurationCreateParamsBizumDisplayPreference as PaymentMethodConfigurationCreateParamsBizumDisplayPreference, PaymentMethodConfigurationCreateParamsBlik as PaymentMethodConfigurationCreateParamsBlik, PaymentMethodConfigurationCreateParamsBlikDisplayPreference as PaymentMethodConfigurationCreateParamsBlikDisplayPreference, PaymentMethodConfigurationCreateParamsBoleto as PaymentMethodConfigurationCreateParamsBoleto, @@ -4022,6 +4070,8 @@ PaymentMethodConfigurationCreateParamsSamsungPayDisplayPreference as PaymentMethodConfigurationCreateParamsSamsungPayDisplayPreference, PaymentMethodConfigurationCreateParamsSatispay as PaymentMethodConfigurationCreateParamsSatispay, PaymentMethodConfigurationCreateParamsSatispayDisplayPreference as PaymentMethodConfigurationCreateParamsSatispayDisplayPreference, + PaymentMethodConfigurationCreateParamsScalapay as PaymentMethodConfigurationCreateParamsScalapay, + PaymentMethodConfigurationCreateParamsScalapayDisplayPreference as PaymentMethodConfigurationCreateParamsScalapayDisplayPreference, PaymentMethodConfigurationCreateParamsSepaDebit as PaymentMethodConfigurationCreateParamsSepaDebit, PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference as PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference, PaymentMethodConfigurationCreateParamsShopeepay as PaymentMethodConfigurationCreateParamsShopeepay, @@ -4072,6 +4122,8 @@ PaymentMethodConfigurationModifyParamsBancontactDisplayPreference as PaymentMethodConfigurationModifyParamsBancontactDisplayPreference, PaymentMethodConfigurationModifyParamsBillie as PaymentMethodConfigurationModifyParamsBillie, PaymentMethodConfigurationModifyParamsBillieDisplayPreference as PaymentMethodConfigurationModifyParamsBillieDisplayPreference, + PaymentMethodConfigurationModifyParamsBizum as PaymentMethodConfigurationModifyParamsBizum, + PaymentMethodConfigurationModifyParamsBizumDisplayPreference as PaymentMethodConfigurationModifyParamsBizumDisplayPreference, PaymentMethodConfigurationModifyParamsBlik as PaymentMethodConfigurationModifyParamsBlik, PaymentMethodConfigurationModifyParamsBlikDisplayPreference as PaymentMethodConfigurationModifyParamsBlikDisplayPreference, PaymentMethodConfigurationModifyParamsBoleto as PaymentMethodConfigurationModifyParamsBoleto, @@ -4154,6 +4206,8 @@ PaymentMethodConfigurationModifyParamsSamsungPayDisplayPreference as PaymentMethodConfigurationModifyParamsSamsungPayDisplayPreference, PaymentMethodConfigurationModifyParamsSatispay as PaymentMethodConfigurationModifyParamsSatispay, PaymentMethodConfigurationModifyParamsSatispayDisplayPreference as PaymentMethodConfigurationModifyParamsSatispayDisplayPreference, + PaymentMethodConfigurationModifyParamsScalapay as PaymentMethodConfigurationModifyParamsScalapay, + PaymentMethodConfigurationModifyParamsScalapayDisplayPreference as PaymentMethodConfigurationModifyParamsScalapayDisplayPreference, PaymentMethodConfigurationModifyParamsSepaDebit as PaymentMethodConfigurationModifyParamsSepaDebit, PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference as PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference, PaymentMethodConfigurationModifyParamsShopeepay as PaymentMethodConfigurationModifyParamsShopeepay, @@ -4204,6 +4258,8 @@ PaymentMethodConfigurationUpdateParamsBancontactDisplayPreference as PaymentMethodConfigurationUpdateParamsBancontactDisplayPreference, PaymentMethodConfigurationUpdateParamsBillie as PaymentMethodConfigurationUpdateParamsBillie, PaymentMethodConfigurationUpdateParamsBillieDisplayPreference as PaymentMethodConfigurationUpdateParamsBillieDisplayPreference, + PaymentMethodConfigurationUpdateParamsBizum as PaymentMethodConfigurationUpdateParamsBizum, + PaymentMethodConfigurationUpdateParamsBizumDisplayPreference as PaymentMethodConfigurationUpdateParamsBizumDisplayPreference, PaymentMethodConfigurationUpdateParamsBlik as PaymentMethodConfigurationUpdateParamsBlik, PaymentMethodConfigurationUpdateParamsBlikDisplayPreference as PaymentMethodConfigurationUpdateParamsBlikDisplayPreference, PaymentMethodConfigurationUpdateParamsBoleto as PaymentMethodConfigurationUpdateParamsBoleto, @@ -4286,6 +4342,8 @@ PaymentMethodConfigurationUpdateParamsSamsungPayDisplayPreference as PaymentMethodConfigurationUpdateParamsSamsungPayDisplayPreference, PaymentMethodConfigurationUpdateParamsSatispay as PaymentMethodConfigurationUpdateParamsSatispay, PaymentMethodConfigurationUpdateParamsSatispayDisplayPreference as PaymentMethodConfigurationUpdateParamsSatispayDisplayPreference, + PaymentMethodConfigurationUpdateParamsScalapay as PaymentMethodConfigurationUpdateParamsScalapay, + PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference as PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference, PaymentMethodConfigurationUpdateParamsSepaDebit as PaymentMethodConfigurationUpdateParamsSepaDebit, PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference as PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference, PaymentMethodConfigurationUpdateParamsShopeepay as PaymentMethodConfigurationUpdateParamsShopeepay, @@ -4321,6 +4379,7 @@ PaymentMethodCreateParamsBillie as PaymentMethodCreateParamsBillie, PaymentMethodCreateParamsBillingDetails as PaymentMethodCreateParamsBillingDetails, PaymentMethodCreateParamsBillingDetailsAddress as PaymentMethodCreateParamsBillingDetailsAddress, + PaymentMethodCreateParamsBizum as PaymentMethodCreateParamsBizum, PaymentMethodCreateParamsBlik as PaymentMethodCreateParamsBlik, PaymentMethodCreateParamsBoleto as PaymentMethodCreateParamsBoleto, PaymentMethodCreateParamsCard as PaymentMethodCreateParamsCard, @@ -4366,6 +4425,7 @@ PaymentMethodCreateParamsRevolutPay as PaymentMethodCreateParamsRevolutPay, PaymentMethodCreateParamsSamsungPay as PaymentMethodCreateParamsSamsungPay, PaymentMethodCreateParamsSatispay as PaymentMethodCreateParamsSatispay, + PaymentMethodCreateParamsScalapay as PaymentMethodCreateParamsScalapay, PaymentMethodCreateParamsSepaDebit as PaymentMethodCreateParamsSepaDebit, PaymentMethodCreateParamsShopeepay as PaymentMethodCreateParamsShopeepay, PaymentMethodCreateParamsSofort as PaymentMethodCreateParamsSofort, @@ -5044,6 +5104,7 @@ SetupIntentConfirmParamsPaymentMethodDataBillie as SetupIntentConfirmParamsPaymentMethodDataBillie, SetupIntentConfirmParamsPaymentMethodDataBillingDetails as SetupIntentConfirmParamsPaymentMethodDataBillingDetails, SetupIntentConfirmParamsPaymentMethodDataBillingDetailsAddress as SetupIntentConfirmParamsPaymentMethodDataBillingDetailsAddress, + SetupIntentConfirmParamsPaymentMethodDataBizum as SetupIntentConfirmParamsPaymentMethodDataBizum, SetupIntentConfirmParamsPaymentMethodDataBlik as SetupIntentConfirmParamsPaymentMethodDataBlik, SetupIntentConfirmParamsPaymentMethodDataBoleto as SetupIntentConfirmParamsPaymentMethodDataBoleto, SetupIntentConfirmParamsPaymentMethodDataCashapp as SetupIntentConfirmParamsPaymentMethodDataCashapp, @@ -5086,6 +5147,7 @@ SetupIntentConfirmParamsPaymentMethodDataRevolutPay as SetupIntentConfirmParamsPaymentMethodDataRevolutPay, SetupIntentConfirmParamsPaymentMethodDataSamsungPay as SetupIntentConfirmParamsPaymentMethodDataSamsungPay, SetupIntentConfirmParamsPaymentMethodDataSatispay as SetupIntentConfirmParamsPaymentMethodDataSatispay, + SetupIntentConfirmParamsPaymentMethodDataScalapay as SetupIntentConfirmParamsPaymentMethodDataScalapay, SetupIntentConfirmParamsPaymentMethodDataSepaDebit as SetupIntentConfirmParamsPaymentMethodDataSepaDebit, SetupIntentConfirmParamsPaymentMethodDataShopeepay as SetupIntentConfirmParamsPaymentMethodDataShopeepay, SetupIntentConfirmParamsPaymentMethodDataSofort as SetupIntentConfirmParamsPaymentMethodDataSofort, @@ -5104,6 +5166,7 @@ SetupIntentConfirmParamsPaymentMethodOptionsAmazonPay as SetupIntentConfirmParamsPaymentMethodOptionsAmazonPay, SetupIntentConfirmParamsPaymentMethodOptionsBacsDebit as SetupIntentConfirmParamsPaymentMethodOptionsBacsDebit, SetupIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions, + SetupIntentConfirmParamsPaymentMethodOptionsBizum as SetupIntentConfirmParamsPaymentMethodOptionsBizum, SetupIntentConfirmParamsPaymentMethodOptionsCard as SetupIntentConfirmParamsPaymentMethodOptionsCard, SetupIntentConfirmParamsPaymentMethodOptionsCardMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsCardMandateOptions, SetupIntentConfirmParamsPaymentMethodOptionsCardPresent as SetupIntentConfirmParamsPaymentMethodOptionsCardPresent, @@ -5156,6 +5219,7 @@ SetupIntentCreateParamsPaymentMethodDataBillie as SetupIntentCreateParamsPaymentMethodDataBillie, SetupIntentCreateParamsPaymentMethodDataBillingDetails as SetupIntentCreateParamsPaymentMethodDataBillingDetails, SetupIntentCreateParamsPaymentMethodDataBillingDetailsAddress as SetupIntentCreateParamsPaymentMethodDataBillingDetailsAddress, + SetupIntentCreateParamsPaymentMethodDataBizum as SetupIntentCreateParamsPaymentMethodDataBizum, SetupIntentCreateParamsPaymentMethodDataBlik as SetupIntentCreateParamsPaymentMethodDataBlik, SetupIntentCreateParamsPaymentMethodDataBoleto as SetupIntentCreateParamsPaymentMethodDataBoleto, SetupIntentCreateParamsPaymentMethodDataCashapp as SetupIntentCreateParamsPaymentMethodDataCashapp, @@ -5198,6 +5262,7 @@ SetupIntentCreateParamsPaymentMethodDataRevolutPay as SetupIntentCreateParamsPaymentMethodDataRevolutPay, SetupIntentCreateParamsPaymentMethodDataSamsungPay as SetupIntentCreateParamsPaymentMethodDataSamsungPay, SetupIntentCreateParamsPaymentMethodDataSatispay as SetupIntentCreateParamsPaymentMethodDataSatispay, + SetupIntentCreateParamsPaymentMethodDataScalapay as SetupIntentCreateParamsPaymentMethodDataScalapay, SetupIntentCreateParamsPaymentMethodDataSepaDebit as SetupIntentCreateParamsPaymentMethodDataSepaDebit, SetupIntentCreateParamsPaymentMethodDataShopeepay as SetupIntentCreateParamsPaymentMethodDataShopeepay, SetupIntentCreateParamsPaymentMethodDataSofort as SetupIntentCreateParamsPaymentMethodDataSofort, @@ -5216,6 +5281,7 @@ SetupIntentCreateParamsPaymentMethodOptionsAmazonPay as SetupIntentCreateParamsPaymentMethodOptionsAmazonPay, SetupIntentCreateParamsPaymentMethodOptionsBacsDebit as SetupIntentCreateParamsPaymentMethodOptionsBacsDebit, SetupIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions, + SetupIntentCreateParamsPaymentMethodOptionsBizum as SetupIntentCreateParamsPaymentMethodOptionsBizum, SetupIntentCreateParamsPaymentMethodOptionsCard as SetupIntentCreateParamsPaymentMethodOptionsCard, SetupIntentCreateParamsPaymentMethodOptionsCardMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsCardMandateOptions, SetupIntentCreateParamsPaymentMethodOptionsCardPresent as SetupIntentCreateParamsPaymentMethodOptionsCardPresent, @@ -5268,6 +5334,7 @@ SetupIntentModifyParamsPaymentMethodDataBillie as SetupIntentModifyParamsPaymentMethodDataBillie, SetupIntentModifyParamsPaymentMethodDataBillingDetails as SetupIntentModifyParamsPaymentMethodDataBillingDetails, SetupIntentModifyParamsPaymentMethodDataBillingDetailsAddress as SetupIntentModifyParamsPaymentMethodDataBillingDetailsAddress, + SetupIntentModifyParamsPaymentMethodDataBizum as SetupIntentModifyParamsPaymentMethodDataBizum, SetupIntentModifyParamsPaymentMethodDataBlik as SetupIntentModifyParamsPaymentMethodDataBlik, SetupIntentModifyParamsPaymentMethodDataBoleto as SetupIntentModifyParamsPaymentMethodDataBoleto, SetupIntentModifyParamsPaymentMethodDataCashapp as SetupIntentModifyParamsPaymentMethodDataCashapp, @@ -5310,6 +5377,7 @@ SetupIntentModifyParamsPaymentMethodDataRevolutPay as SetupIntentModifyParamsPaymentMethodDataRevolutPay, SetupIntentModifyParamsPaymentMethodDataSamsungPay as SetupIntentModifyParamsPaymentMethodDataSamsungPay, SetupIntentModifyParamsPaymentMethodDataSatispay as SetupIntentModifyParamsPaymentMethodDataSatispay, + SetupIntentModifyParamsPaymentMethodDataScalapay as SetupIntentModifyParamsPaymentMethodDataScalapay, SetupIntentModifyParamsPaymentMethodDataSepaDebit as SetupIntentModifyParamsPaymentMethodDataSepaDebit, SetupIntentModifyParamsPaymentMethodDataShopeepay as SetupIntentModifyParamsPaymentMethodDataShopeepay, SetupIntentModifyParamsPaymentMethodDataSofort as SetupIntentModifyParamsPaymentMethodDataSofort, @@ -5328,6 +5396,7 @@ SetupIntentModifyParamsPaymentMethodOptionsAmazonPay as SetupIntentModifyParamsPaymentMethodOptionsAmazonPay, SetupIntentModifyParamsPaymentMethodOptionsBacsDebit as SetupIntentModifyParamsPaymentMethodOptionsBacsDebit, SetupIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions, + SetupIntentModifyParamsPaymentMethodOptionsBizum as SetupIntentModifyParamsPaymentMethodOptionsBizum, SetupIntentModifyParamsPaymentMethodOptionsCard as SetupIntentModifyParamsPaymentMethodOptionsCard, SetupIntentModifyParamsPaymentMethodOptionsCardMandateOptions as SetupIntentModifyParamsPaymentMethodOptionsCardMandateOptions, SetupIntentModifyParamsPaymentMethodOptionsCardPresent as SetupIntentModifyParamsPaymentMethodOptionsCardPresent, @@ -5378,6 +5447,7 @@ SetupIntentUpdateParamsPaymentMethodDataBillie as SetupIntentUpdateParamsPaymentMethodDataBillie, SetupIntentUpdateParamsPaymentMethodDataBillingDetails as SetupIntentUpdateParamsPaymentMethodDataBillingDetails, SetupIntentUpdateParamsPaymentMethodDataBillingDetailsAddress as SetupIntentUpdateParamsPaymentMethodDataBillingDetailsAddress, + SetupIntentUpdateParamsPaymentMethodDataBizum as SetupIntentUpdateParamsPaymentMethodDataBizum, SetupIntentUpdateParamsPaymentMethodDataBlik as SetupIntentUpdateParamsPaymentMethodDataBlik, SetupIntentUpdateParamsPaymentMethodDataBoleto as SetupIntentUpdateParamsPaymentMethodDataBoleto, SetupIntentUpdateParamsPaymentMethodDataCashapp as SetupIntentUpdateParamsPaymentMethodDataCashapp, @@ -5420,6 +5490,7 @@ SetupIntentUpdateParamsPaymentMethodDataRevolutPay as SetupIntentUpdateParamsPaymentMethodDataRevolutPay, SetupIntentUpdateParamsPaymentMethodDataSamsungPay as SetupIntentUpdateParamsPaymentMethodDataSamsungPay, SetupIntentUpdateParamsPaymentMethodDataSatispay as SetupIntentUpdateParamsPaymentMethodDataSatispay, + SetupIntentUpdateParamsPaymentMethodDataScalapay as SetupIntentUpdateParamsPaymentMethodDataScalapay, SetupIntentUpdateParamsPaymentMethodDataSepaDebit as SetupIntentUpdateParamsPaymentMethodDataSepaDebit, SetupIntentUpdateParamsPaymentMethodDataShopeepay as SetupIntentUpdateParamsPaymentMethodDataShopeepay, SetupIntentUpdateParamsPaymentMethodDataSofort as SetupIntentUpdateParamsPaymentMethodDataSofort, @@ -5438,6 +5509,7 @@ SetupIntentUpdateParamsPaymentMethodOptionsAmazonPay as SetupIntentUpdateParamsPaymentMethodOptionsAmazonPay, SetupIntentUpdateParamsPaymentMethodOptionsBacsDebit as SetupIntentUpdateParamsPaymentMethodOptionsBacsDebit, SetupIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions, + SetupIntentUpdateParamsPaymentMethodOptionsBizum as SetupIntentUpdateParamsPaymentMethodOptionsBizum, SetupIntentUpdateParamsPaymentMethodOptionsCard as SetupIntentUpdateParamsPaymentMethodOptionsCard, SetupIntentUpdateParamsPaymentMethodOptionsCardMandateOptions as SetupIntentUpdateParamsPaymentMethodOptionsCardMandateOptions, SetupIntentUpdateParamsPaymentMethodOptionsCardPresent as SetupIntentUpdateParamsPaymentMethodOptionsCardPresent, @@ -5628,6 +5700,7 @@ SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount, SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections, SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters, + SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay, SubscriptionCreateParamsPendingInvoiceItemInterval as SubscriptionCreateParamsPendingInvoiceItemInterval, SubscriptionCreateParamsPrebilling as SubscriptionCreateParamsPrebilling, SubscriptionCreateParamsTransferData as SubscriptionCreateParamsTransferData, @@ -5763,6 +5836,7 @@ SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount, SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections, SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters, + SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay, SubscriptionModifyParamsPendingInvoiceItemInterval as SubscriptionModifyParamsPendingInvoiceItemInterval, SubscriptionModifyParamsPrebilling as SubscriptionModifyParamsPrebilling, SubscriptionModifyParamsTransferData as SubscriptionModifyParamsTransferData, @@ -6073,6 +6147,7 @@ SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount, SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections, SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters, + SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay, SubscriptionUpdateParamsPendingInvoiceItemInterval as SubscriptionUpdateParamsPendingInvoiceItemInterval, SubscriptionUpdateParamsPrebilling as SubscriptionUpdateParamsPrebilling, SubscriptionUpdateParamsTransferData as SubscriptionUpdateParamsTransferData, @@ -6380,6 +6455,10 @@ "stripe.params._account_create_params", False, ), + "AccountCreateParamsCapabilitiesBizumPayments": ( + "stripe.params._account_create_params", + False, + ), "AccountCreateParamsCapabilitiesBlikPayments": ( "stripe.params._account_create_params", False, @@ -6572,6 +6651,10 @@ "stripe.params._account_create_params", False, ), + "AccountCreateParamsCapabilitiesScalapayPayments": ( + "stripe.params._account_create_params", + False, + ), "AccountCreateParamsCapabilitiesSepaBankTransferPayments": ( "stripe.params._account_create_params", False, @@ -7804,6 +7887,10 @@ "stripe.params._account_update_params", False, ), + "AccountUpdateParamsCapabilitiesBizumPayments": ( + "stripe.params._account_update_params", + False, + ), "AccountUpdateParamsCapabilitiesBlikPayments": ( "stripe.params._account_update_params", False, @@ -7996,6 +8083,10 @@ "stripe.params._account_update_params", False, ), + "AccountUpdateParamsCapabilitiesScalapayPayments": ( + "stripe.params._account_update_params", + False, + ), "AccountUpdateParamsCapabilitiesSepaBankTransferPayments": ( "stripe.params._account_update_params", False, @@ -8402,6 +8493,10 @@ "stripe.params._balance_settings_modify_params", False, ), + "BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency": ( + "stripe.params._balance_settings_modify_params", + False, + ), "BalanceSettingsModifyParamsPaymentsPayoutsSchedule": ( "stripe.params._balance_settings_modify_params", False, @@ -8410,6 +8505,10 @@ "stripe.params._balance_settings_modify_params", False, ), + "BalanceSettingsModifyParamsPaymentsSettlementTimingStartOfDay": ( + "stripe.params._balance_settings_modify_params", + False, + ), "BalanceSettingsRetrieveParams": ( "stripe.params._balance_settings_retrieve_params", False, @@ -8426,6 +8525,10 @@ "stripe.params._balance_settings_update_params", False, ), + "BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency": ( + "stripe.params._balance_settings_update_params", + False, + ), "BalanceSettingsUpdateParamsPaymentsPayoutsSchedule": ( "stripe.params._balance_settings_update_params", False, @@ -8434,6 +8537,10 @@ "stripe.params._balance_settings_update_params", False, ), + "BalanceSettingsUpdateParamsPaymentsSettlementTimingStartOfDay": ( + "stripe.params._balance_settings_update_params", + False, + ), "BalanceTransactionListParams": ( "stripe.params._balance_transaction_list_params", False, @@ -9571,6 +9678,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataBizum": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataBlik": ( "stripe.params._confirmation_token_create_params", False, @@ -9739,6 +9850,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataScalapay": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit": ( "stripe.params._confirmation_token_create_params", False, @@ -10754,6 +10869,10 @@ "stripe.params._invoice_create_params", False, ), + "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay": ( + "stripe.params._invoice_create_params", + False, + ), "InvoiceCreateParamsRendering": ( "stripe.params._invoice_create_params", False, @@ -11631,6 +11750,10 @@ "stripe.params._invoice_modify_params", False, ), + "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay": ( + "stripe.params._invoice_modify_params", + False, + ), "InvoiceModifyParamsRendering": ( "stripe.params._invoice_modify_params", False, @@ -11907,6 +12030,10 @@ "stripe.params._invoice_update_params", False, ), + "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay": ( + "stripe.params._invoice_update_params", + False, + ), "InvoiceUpdateParamsRendering": ( "stripe.params._invoice_update_params", False, @@ -13933,6 +14060,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataBizum": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataBlik": ( "stripe.params._payment_intent_confirm_params", False, @@ -14101,6 +14232,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataScalapay": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataSepaDebit": ( "stripe.params._payment_intent_confirm_params", False, @@ -14201,6 +14336,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsBizum": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsBlik": ( "stripe.params._payment_intent_confirm_params", False, @@ -14357,6 +14496,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsGiftCard": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsGiropay": ( "stripe.params._payment_intent_confirm_params", False, @@ -14653,6 +14796,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsScalapay": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit": ( "stripe.params._payment_intent_confirm_params", False, @@ -15213,6 +15360,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataBizum": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataBlik": ( "stripe.params._payment_intent_create_params", False, @@ -15381,6 +15532,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataScalapay": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataSepaDebit": ( "stripe.params._payment_intent_create_params", False, @@ -15481,6 +15636,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsBizum": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsBlik": ( "stripe.params._payment_intent_create_params", False, @@ -15637,6 +15796,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsGiftCard": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsGiropay": ( "stripe.params._payment_intent_create_params", False, @@ -15933,6 +16096,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsScalapay": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit": ( "stripe.params._payment_intent_create_params", False, @@ -16009,6 +16176,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentsOrchestrationPaymentDetails": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsRadarOptions": ( "stripe.params._payment_intent_create_params", False, @@ -16025,6 +16196,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsTransferDataPaymentData": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentDecrementAuthorizationParams": ( "stripe.params._payment_intent_decrement_authorization_params", False, @@ -16657,6 +16832,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataBizum": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataBlik": ( "stripe.params._payment_intent_modify_params", False, @@ -16825,6 +17004,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataScalapay": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataSepaDebit": ( "stripe.params._payment_intent_modify_params", False, @@ -16925,6 +17108,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsBizum": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsBlik": ( "stripe.params._payment_intent_modify_params", False, @@ -17081,6 +17268,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsGiftCard": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsGiropay": ( "stripe.params._payment_intent_modify_params", False, @@ -17377,6 +17568,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsScalapay": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit": ( "stripe.params._payment_intent_modify_params", False, @@ -17461,6 +17656,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsTransferDataPaymentData": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentReauthorizeParams": ( "stripe.params._payment_intent_reauthorize_params", False, @@ -17953,6 +18152,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataBizum": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataBlik": ( "stripe.params._payment_intent_update_params", False, @@ -18121,6 +18324,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataScalapay": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataSepaDebit": ( "stripe.params._payment_intent_update_params", False, @@ -18221,6 +18428,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsBizum": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsBlik": ( "stripe.params._payment_intent_update_params", False, @@ -18377,6 +18588,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsGiftCard": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsGiropay": ( "stripe.params._payment_intent_update_params", False, @@ -18673,6 +18888,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsScalapay": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit": ( "stripe.params._payment_intent_update_params", False, @@ -18757,6 +18976,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsTransferDataPaymentData": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentVerifyMicrodepositsParams": ( "stripe.params._payment_intent_verify_microdeposits_params", False, @@ -18913,6 +19136,18 @@ "stripe.params._payment_link_create_params", False, ), + "PaymentLinkCreateParamsPaymentMethodOptions": ( + "stripe.params._payment_link_create_params", + False, + ), + "PaymentLinkCreateParamsPaymentMethodOptionsCard": ( + "stripe.params._payment_link_create_params", + False, + ), + "PaymentLinkCreateParamsPaymentMethodOptionsCardRestrictions": ( + "stripe.params._payment_link_create_params", + False, + ), "PaymentLinkCreateParamsPhoneNumberCollection": ( "stripe.params._payment_link_create_params", False, @@ -19093,6 +19328,18 @@ "stripe.params._payment_link_modify_params", False, ), + "PaymentLinkModifyParamsPaymentMethodOptions": ( + "stripe.params._payment_link_modify_params", + False, + ), + "PaymentLinkModifyParamsPaymentMethodOptionsCard": ( + "stripe.params._payment_link_modify_params", + False, + ), + "PaymentLinkModifyParamsPaymentMethodOptionsCardRestrictions": ( + "stripe.params._payment_link_modify_params", + False, + ), "PaymentLinkModifyParamsPhoneNumberCollection": ( "stripe.params._payment_link_modify_params", False, @@ -19257,6 +19504,18 @@ "stripe.params._payment_link_update_params", False, ), + "PaymentLinkUpdateParamsPaymentMethodOptions": ( + "stripe.params._payment_link_update_params", + False, + ), + "PaymentLinkUpdateParamsPaymentMethodOptionsCard": ( + "stripe.params._payment_link_update_params", + False, + ), + "PaymentLinkUpdateParamsPaymentMethodOptionsCardRestrictions": ( + "stripe.params._payment_link_update_params", + False, + ), "PaymentLinkUpdateParamsPhoneNumberCollection": ( "stripe.params._payment_link_update_params", False, @@ -19469,6 +19728,14 @@ "stripe.params._payment_method_configuration_create_params", False, ), + "PaymentMethodConfigurationCreateParamsBizum": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), + "PaymentMethodConfigurationCreateParamsBizumDisplayPreference": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), "PaymentMethodConfigurationCreateParamsBlik": ( "stripe.params._payment_method_configuration_create_params", False, @@ -19797,6 +20064,14 @@ "stripe.params._payment_method_configuration_create_params", False, ), + "PaymentMethodConfigurationCreateParamsScalapay": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), + "PaymentMethodConfigurationCreateParamsScalapayDisplayPreference": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), "PaymentMethodConfigurationCreateParamsSepaDebit": ( "stripe.params._payment_method_configuration_create_params", False, @@ -19981,6 +20256,14 @@ "stripe.params._payment_method_configuration_modify_params", False, ), + "PaymentMethodConfigurationModifyParamsBizum": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), + "PaymentMethodConfigurationModifyParamsBizumDisplayPreference": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), "PaymentMethodConfigurationModifyParamsBlik": ( "stripe.params._payment_method_configuration_modify_params", False, @@ -20309,6 +20592,14 @@ "stripe.params._payment_method_configuration_modify_params", False, ), + "PaymentMethodConfigurationModifyParamsScalapay": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), + "PaymentMethodConfigurationModifyParamsScalapayDisplayPreference": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), "PaymentMethodConfigurationModifyParamsSepaDebit": ( "stripe.params._payment_method_configuration_modify_params", False, @@ -20493,6 +20784,14 @@ "stripe.params._payment_method_configuration_update_params", False, ), + "PaymentMethodConfigurationUpdateParamsBizum": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), + "PaymentMethodConfigurationUpdateParamsBizumDisplayPreference": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), "PaymentMethodConfigurationUpdateParamsBlik": ( "stripe.params._payment_method_configuration_update_params", False, @@ -20821,6 +21120,14 @@ "stripe.params._payment_method_configuration_update_params", False, ), + "PaymentMethodConfigurationUpdateParamsScalapay": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), + "PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), "PaymentMethodConfigurationUpdateParamsSepaDebit": ( "stripe.params._payment_method_configuration_update_params", False, @@ -20953,6 +21260,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsBizum": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsBlik": ( "stripe.params._payment_method_create_params", False, @@ -21133,6 +21444,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsScalapay": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsSepaDebit": ( "stripe.params._payment_method_create_params", False, @@ -22889,6 +23204,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataBizum": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataBlik": ( "stripe.params._setup_intent_confirm_params", False, @@ -23057,6 +23376,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataScalapay": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataSepaDebit": ( "stripe.params._setup_intent_confirm_params", False, @@ -23129,6 +23452,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodOptionsBizum": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_confirm_params", False, @@ -23329,6 +23656,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataBizum": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataBlik": ( "stripe.params._setup_intent_create_params", False, @@ -23497,6 +23828,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataScalapay": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataSepaDebit": ( "stripe.params._setup_intent_create_params", False, @@ -23569,6 +23904,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodOptionsBizum": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_create_params", False, @@ -23761,6 +24100,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataBizum": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataBlik": ( "stripe.params._setup_intent_modify_params", False, @@ -23929,6 +24272,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataScalapay": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataSepaDebit": ( "stripe.params._setup_intent_modify_params", False, @@ -24001,6 +24348,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodOptionsBizum": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_modify_params", False, @@ -24185,6 +24536,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataBizum": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataBlik": ( "stripe.params._setup_intent_update_params", False, @@ -24353,6 +24708,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataScalapay": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataSepaDebit": ( "stripe.params._setup_intent_update_params", False, @@ -24425,6 +24784,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodOptionsBizum": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_update_params", False, @@ -25022,6 +25385,10 @@ "stripe.params._subscription_create_params", False, ), + "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay": ( + "stripe.params._subscription_create_params", + False, + ), "SubscriptionCreateParamsPendingInvoiceItemInterval": ( "stripe.params._subscription_create_params", False, @@ -25482,6 +25849,10 @@ "stripe.params._subscription_modify_params", False, ), + "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay": ( + "stripe.params._subscription_modify_params", + False, + ), "SubscriptionModifyParamsPendingInvoiceItemInterval": ( "stripe.params._subscription_modify_params", False, @@ -26618,6 +26989,10 @@ "stripe.params._subscription_update_params", False, ), + "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay": ( + "stripe.params._subscription_update_params", + False, + ), "SubscriptionUpdateParamsPendingInvoiceItemInterval": ( "stripe.params._subscription_update_params", False, diff --git a/stripe/params/_account_create_params.py b/stripe/params/_account_create_params.py index 6c18ac2ca..2cc1947bf 100644 --- a/stripe/params/_account_create_params.py +++ b/stripe/params/_account_create_params.py @@ -295,6 +295,10 @@ class AccountCreateParamsCapabilities(TypedDict): """ The billie_payments capability. """ + bizum_payments: NotRequired["AccountCreateParamsCapabilitiesBizumPayments"] + """ + The bizum_payments capability. + """ blik_payments: NotRequired["AccountCreateParamsCapabilitiesBlikPayments"] """ The blik_payments capability. @@ -541,6 +545,12 @@ class AccountCreateParamsCapabilities(TypedDict): """ The satispay_payments capability. """ + scalapay_payments: NotRequired[ + "AccountCreateParamsCapabilitiesScalapayPayments" + ] + """ + The scalapay_payments capability. + """ sepa_bank_transfer_payments: NotRequired[ "AccountCreateParamsCapabilitiesSepaBankTransferPayments" ] @@ -729,6 +739,13 @@ class AccountCreateParamsCapabilitiesBilliePayments(TypedDict): """ +class AccountCreateParamsCapabilitiesBizumPayments(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 AccountCreateParamsCapabilitiesBlikPayments(TypedDict): requested: NotRequired[bool] """ @@ -1075,6 +1092,13 @@ class AccountCreateParamsCapabilitiesSatispayPayments(TypedDict): """ +class AccountCreateParamsCapabilitiesScalapayPayments(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 AccountCreateParamsCapabilitiesSepaBankTransferPayments(TypedDict): requested: NotRequired[bool] """ diff --git a/stripe/params/_account_update_params.py b/stripe/params/_account_update_params.py index fbe584184..14ae5802a 100644 --- a/stripe/params/_account_update_params.py +++ b/stripe/params/_account_update_params.py @@ -282,6 +282,10 @@ class AccountUpdateParamsCapabilities(TypedDict): """ The billie_payments capability. """ + bizum_payments: NotRequired["AccountUpdateParamsCapabilitiesBizumPayments"] + """ + The bizum_payments capability. + """ blik_payments: NotRequired["AccountUpdateParamsCapabilitiesBlikPayments"] """ The blik_payments capability. @@ -528,6 +532,12 @@ class AccountUpdateParamsCapabilities(TypedDict): """ The satispay_payments capability. """ + scalapay_payments: NotRequired[ + "AccountUpdateParamsCapabilitiesScalapayPayments" + ] + """ + The scalapay_payments capability. + """ sepa_bank_transfer_payments: NotRequired[ "AccountUpdateParamsCapabilitiesSepaBankTransferPayments" ] @@ -716,6 +726,13 @@ class AccountUpdateParamsCapabilitiesBilliePayments(TypedDict): """ +class AccountUpdateParamsCapabilitiesBizumPayments(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 AccountUpdateParamsCapabilitiesBlikPayments(TypedDict): requested: NotRequired[bool] """ @@ -1062,6 +1079,13 @@ class AccountUpdateParamsCapabilitiesSatispayPayments(TypedDict): """ +class AccountUpdateParamsCapabilitiesScalapayPayments(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 AccountUpdateParamsCapabilitiesSepaBankTransferPayments(TypedDict): requested: NotRequired[bool] """ diff --git a/stripe/params/_balance_settings_modify_params.py b/stripe/params/_balance_settings_modify_params.py index 3aa6e9582..1afc3480e 100644 --- a/stripe/params/_balance_settings_modify_params.py +++ b/stripe/params/_balance_settings_modify_params.py @@ -41,6 +41,12 @@ class BalanceSettingsModifyParamsPayments(TypedDict): class BalanceSettingsModifyParamsPaymentsPayouts(TypedDict): + automatic_transfer_rules_by_currency: NotRequired[ + "Literal['']|Dict[str, Union[Literal[''], List[BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency]]]|UntypedStripeObject[Union[Literal[''], List[BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency]]]" + ] + """ + Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount. + """ minimum_balance_by_currency: NotRequired[ "Literal['']|Dict[str, Union[Literal[''], int]]|UntypedStripeObject[Union[Literal[''], int]]" ] @@ -57,6 +63,23 @@ class BalanceSettingsModifyParamsPaymentsPayouts(TypedDict): """ +class BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency( + TypedDict, +): + payout_method: str + """ + The ID of the FinancialAccount that funds will be transferred to during automatic transfers. + """ + transfer_up_to_amount: NotRequired[int] + """ + The maximum amount in minor units to transfer to the FinancialAccount. Required and only applicable when `type` is `transfer_up_to_amount`. + """ + type: Literal["transfer_all", "transfer_up_to_amount"] + """ + The type of automatic transfer rule. + """ + + class BalanceSettingsModifyParamsPaymentsPayoutsSchedule(TypedDict): interval: NotRequired[Literal["daily", "manual", "monthly", "weekly"]] """ @@ -79,3 +102,24 @@ class BalanceSettingsModifyParamsPaymentsSettlementTiming(TypedDict): """ Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available. The maximum value is 31. Passing an empty string to `delay_days_override` will return `delay_days` to the default, which is the lowest available value for the account. [Learn more about controlling delay days](https://docs.stripe.com/connect/manage-payout-schedule). """ + start_of_day: NotRequired[ + "Literal['']|BalanceSettingsModifyParamsPaymentsSettlementTimingStartOfDay" + ] + """ + Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](https://docs.stripe.com/connect/customized-start-of-day) documentation. + """ + + +class BalanceSettingsModifyParamsPaymentsSettlementTimingStartOfDay(TypedDict): + hour: NotRequired[int] + """ + Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs). + """ + minutes: NotRequired[int] + """ + Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30. + """ + timezone: NotRequired[str] + """ + Timezone for the customized start of day. Must be a [supported customized start of day timezone](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs). + """ diff --git a/stripe/params/_balance_settings_update_params.py b/stripe/params/_balance_settings_update_params.py index 99c14d5bb..80898dfd8 100644 --- a/stripe/params/_balance_settings_update_params.py +++ b/stripe/params/_balance_settings_update_params.py @@ -40,6 +40,12 @@ class BalanceSettingsUpdateParamsPayments(TypedDict): class BalanceSettingsUpdateParamsPaymentsPayouts(TypedDict): + automatic_transfer_rules_by_currency: NotRequired[ + "Literal['']|Dict[str, Union[Literal[''], List[BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency]]]|UntypedStripeObject[Union[Literal[''], List[BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency]]]" + ] + """ + Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount. + """ minimum_balance_by_currency: NotRequired[ "Literal['']|Dict[str, Union[Literal[''], int]]|UntypedStripeObject[Union[Literal[''], int]]" ] @@ -56,6 +62,23 @@ class BalanceSettingsUpdateParamsPaymentsPayouts(TypedDict): """ +class BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency( + TypedDict, +): + payout_method: str + """ + The ID of the FinancialAccount that funds will be transferred to during automatic transfers. + """ + transfer_up_to_amount: NotRequired[int] + """ + The maximum amount in minor units to transfer to the FinancialAccount. Required and only applicable when `type` is `transfer_up_to_amount`. + """ + type: Literal["transfer_all", "transfer_up_to_amount"] + """ + The type of automatic transfer rule. + """ + + class BalanceSettingsUpdateParamsPaymentsPayoutsSchedule(TypedDict): interval: NotRequired[Literal["daily", "manual", "monthly", "weekly"]] """ @@ -78,3 +101,24 @@ class BalanceSettingsUpdateParamsPaymentsSettlementTiming(TypedDict): """ Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available. The maximum value is 31. Passing an empty string to `delay_days_override` will return `delay_days` to the default, which is the lowest available value for the account. [Learn more about controlling delay days](https://docs.stripe.com/connect/manage-payout-schedule). """ + start_of_day: NotRequired[ + "Literal['']|BalanceSettingsUpdateParamsPaymentsSettlementTimingStartOfDay" + ] + """ + Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](https://docs.stripe.com/connect/customized-start-of-day) documentation. + """ + + +class BalanceSettingsUpdateParamsPaymentsSettlementTimingStartOfDay(TypedDict): + hour: NotRequired[int] + """ + Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs). + """ + minutes: NotRequired[int] + """ + Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30. + """ + timezone: NotRequired[str] + """ + Timezone for the customized start of day. Must be a [supported customized start of day timezone](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs). + """ diff --git a/stripe/params/_charge_create_params.py b/stripe/params/_charge_create_params.py index b2a13998a..6d5b58deb 100644 --- a/stripe/params/_charge_create_params.py +++ b/stripe/params/_charge_create_params.py @@ -156,6 +156,10 @@ class ChargeCreateParamsTransferData(TypedDict): """ The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account. """ + description: NotRequired[str] + """ + An arbitrary string attached to the transfer. Often useful for displaying to users. + """ destination: str """ ID of an existing, connected Stripe account. diff --git a/stripe/params/_confirmation_token_create_params.py b/stripe/params/_confirmation_token_create_params.py index b559b3387..3a5551e0d 100644 --- a/stripe/params/_confirmation_token_create_params.py +++ b/stripe/params/_confirmation_token_create_params.py @@ -106,6 +106,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -200,7 +204,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ link: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataMbWay"] """ @@ -312,6 +316,12 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired[ + "ConfirmationTokenCreateParamsPaymentMethodDataScalapay" + ] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit" ] @@ -361,6 +371,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -399,6 +410,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -557,6 +569,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress( """ +class ConfirmationTokenCreateParamsPaymentMethodDataBizum(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataBlik(TypedDict): pass @@ -921,6 +937,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataSatispay(TypedDict): pass +class ConfirmationTokenCreateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ diff --git a/stripe/params/_customer_list_payment_methods_params.py b/stripe/params/_customer_list_payment_methods_params.py index cb70c2148..d36b31f7d 100644 --- a/stripe/params/_customer_list_payment_methods_params.py +++ b/stripe/params/_customer_list_payment_methods_params.py @@ -38,6 +38,7 @@ class CustomerListPaymentMethodsParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -78,6 +79,7 @@ class CustomerListPaymentMethodsParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", diff --git a/stripe/params/_customer_payment_method_list_params.py b/stripe/params/_customer_payment_method_list_params.py index 9ff8b0bc8..d3c4ecb25 100644 --- a/stripe/params/_customer_payment_method_list_params.py +++ b/stripe/params/_customer_payment_method_list_params.py @@ -37,6 +37,7 @@ class CustomerPaymentMethodListParams(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -77,6 +78,7 @@ class CustomerPaymentMethodListParams(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", diff --git a/stripe/params/_invoice_create_params.py b/stripe/params/_invoice_create_params.py index 8c8c31d4a..ccbfb4155 100644 --- a/stripe/params/_invoice_create_params.py +++ b/stripe/params/_invoice_create_params.py @@ -286,7 +286,7 @@ class InvoiceCreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). @@ -378,6 +378,12 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. """ + wechat_pay: NotRequired[ + "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay" + ] + """ + If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent. + """ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit( @@ -671,6 +677,19 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci """ +class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay( + TypedDict, +): + app_id: NotRequired[str] + """ + The app ID registered with WeChat Pay. Only required when client is `ios` or `android`. + """ + client: NotRequired[Literal["android", "ios", "mobile_web", "web"]] + """ + The client type that the end customer will pay from. + """ + + class InvoiceCreateParamsRendering(TypedDict): amount_tax_display: NotRequired[ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']" diff --git a/stripe/params/_invoice_create_preview_params.py b/stripe/params/_invoice_create_preview_params.py index 9b847b9ec..f2b92771d 100644 --- a/stripe/params/_invoice_create_preview_params.py +++ b/stripe/params/_invoice_create_preview_params.py @@ -1772,6 +1772,10 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhase(TypedDict): class InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List[ "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscount" @@ -2468,7 +2472,7 @@ class InvoiceCreatePreviewParamsSubscriptionDetails(TypedDict): Sets the billing schedules for the subscription. """ cancel_at: NotRequired[ - "Literal['']|int|Literal['max_period_end', 'min_period_end']" + "Literal['']|int|Literal['max_billed_until', 'max_period_end', 'min_period_end']" ] """ A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. diff --git a/stripe/params/_invoice_modify_params.py b/stripe/params/_invoice_modify_params.py index 2e43dd30c..ebf859d08 100644 --- a/stripe/params/_invoice_modify_params.py +++ b/stripe/params/_invoice_modify_params.py @@ -253,7 +253,7 @@ class InvoiceModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). @@ -345,6 +345,12 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. """ + wechat_pay: NotRequired[ + "Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay" + ] + """ + If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent. + """ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit( @@ -638,6 +644,19 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci """ +class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay( + TypedDict, +): + app_id: NotRequired[str] + """ + The app ID registered with WeChat Pay. Only required when client is `ios` or `android`. + """ + client: NotRequired[Literal["android", "ios", "mobile_web", "web"]] + """ + The client type that the end customer will pay from. + """ + + class InvoiceModifyParamsRendering(TypedDict): amount_tax_display: NotRequired[ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']" diff --git a/stripe/params/_invoice_update_params.py b/stripe/params/_invoice_update_params.py index 8a08d3753..056527580 100644 --- a/stripe/params/_invoice_update_params.py +++ b/stripe/params/_invoice_update_params.py @@ -252,7 +252,7 @@ class InvoiceUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). @@ -344,6 +344,12 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. """ + wechat_pay: NotRequired[ + "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay" + ] + """ + If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent. + """ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit( @@ -637,6 +643,19 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci """ +class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay( + TypedDict, +): + app_id: NotRequired[str] + """ + The app ID registered with WeChat Pay. Only required when client is `ios` or `android`. + """ + client: NotRequired[Literal["android", "ios", "mobile_web", "web"]] + """ + The client type that the end customer will pay from. + """ + + class InvoiceUpdateParamsRendering(TypedDict): amount_tax_display: NotRequired[ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']" diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py index 30162e15c..70f7bdb41 100644 --- a/stripe/params/_payment_intent_confirm_params.py +++ b/stripe/params/_payment_intent_confirm_params.py @@ -11,6 +11,77 @@ class PaymentIntentConfirmParams(RequestOptions): """ Allocated Funds configuration for this PaymentIntent. """ + allowed_payment_method_types: NotRequired[ + List[ + Literal[ + "acss_debit", + "affirm", + "afterpay_clearpay", + "alipay", + "alma", + "amazon_pay", + "au_becs_debit", + "bacs_debit", + "bancontact", + "billie", + "bizum", + "blik", + "boleto", + "card", + "cashapp", + "crypto", + "customer_balance", + "eps", + "fpx", + "gift_card", + "giropay", + "gopay", + "grabpay", + "id_bank_transfer", + "ideal", + "kakao_pay", + "klarna", + "konbini", + "kr_card", + "link", + "mb_way", + "mobilepay", + "multibanco", + "naver_pay", + "nz_bank_account", + "oxxo", + "p24", + "pay_by_bank", + "payco", + "paynow", + "paypal", + "paypay", + "payto", + "pix", + "promptpay", + "qris", + "rechnung", + "revolut_pay", + "samsung_pay", + "satispay", + "scalapay", + "sepa_debit", + "shopeepay", + "sofort", + "stripe_balance", + "sunbit", + "swish", + "twint", + "upi", + "us_bank_account", + "wechat_pay", + "zip", + ] + ] + ] + """ + The list of payment method types allowed for use with this payment. Stripe automatically returns compatible payment methods from this list in the `payment_method_types` field of the response, based on the other PaymentIntent parameters, such as `currency`, `amount`, and `customer`. + """ amount_details: NotRequired[ "Literal['']|PaymentIntentConfirmParamsAmountDetails" ] @@ -42,7 +113,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', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'twint', 'upi', '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', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this payment. @@ -68,7 +139,7 @@ class PaymentIntentConfirmParams(RequestOptions): ] off_session: NotRequired["bool|Literal['one_off', 'recurring']"] """ - Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards). + Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect payment method details and [charge them later](https://docs.stripe.com/payments/save-during-payment). """ payment_details: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentDetails" @@ -2838,6 +2909,10 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -2922,7 +2997,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ link: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataMbWay"] """ @@ -3034,6 +3109,12 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataScalapay" + ] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "PaymentIntentConfirmParamsPaymentMethodDataSepaDebit" ] @@ -3083,6 +3164,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -3121,6 +3203,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -3277,6 +3360,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress( """ +class PaymentIntentConfirmParamsPaymentMethodDataBizum(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataBlik(TypedDict): pass @@ -3641,6 +3728,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataSatispay(TypedDict): pass +class PaymentIntentConfirmParamsPaymentMethodDataScalapay(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -3798,6 +3889,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): """ If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. """ + bizum: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBizum" + ] + """ + If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + """ blik: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBlik" ] @@ -3852,6 +3949,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): """ If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. """ + gift_card: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsGiftCard" + ] + """ + If this is a `gift_card` PaymentMethod, this sub-hash contains details about the gift card payment method options. + """ giropay: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsGiropay" ] @@ -3916,7 +4019,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsLink" ] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ mb_way: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsMbWay" @@ -4038,6 +4141,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): """ If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. """ + scalapay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsScalapay" + ] + """ + If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + """ sepa_debit: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit" ] @@ -4353,6 +4462,10 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsBillie(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodOptionsBlik(TypedDict): code: NotRequired[str] """ @@ -5157,6 +5270,10 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsFpx(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodOptionsGiftCard(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodOptionsGiropay(TypedDict): setup_future_usage: NotRequired[Literal["none"]] """ @@ -7097,6 +7214,17 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsSatispay(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodOptionsScalapay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + class PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit(TypedDict): mandate_options: NotRequired[ "PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions" @@ -7223,7 +7351,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsSwish(TypedDict): class PaymentIntentConfirmParamsPaymentMethodOptionsTwint(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py index 3f20f9821..49a200d80 100644 --- a/stripe/params/_payment_intent_create_params.py +++ b/stripe/params/_payment_intent_create_params.py @@ -11,6 +11,77 @@ class PaymentIntentCreateParams(RequestOptions): """ Allocated Funds configuration for this PaymentIntent. """ + allowed_payment_method_types: NotRequired[ + List[ + Literal[ + "acss_debit", + "affirm", + "afterpay_clearpay", + "alipay", + "alma", + "amazon_pay", + "au_becs_debit", + "bacs_debit", + "bancontact", + "billie", + "bizum", + "blik", + "boleto", + "card", + "cashapp", + "crypto", + "customer_balance", + "eps", + "fpx", + "gift_card", + "giropay", + "gopay", + "grabpay", + "id_bank_transfer", + "ideal", + "kakao_pay", + "klarna", + "konbini", + "kr_card", + "link", + "mb_way", + "mobilepay", + "multibanco", + "naver_pay", + "nz_bank_account", + "oxxo", + "p24", + "pay_by_bank", + "payco", + "paynow", + "paypal", + "paypay", + "payto", + "pix", + "promptpay", + "qris", + "rechnung", + "revolut_pay", + "samsung_pay", + "satispay", + "scalapay", + "sepa_debit", + "shopeepay", + "sofort", + "stripe_balance", + "sunbit", + "swish", + "twint", + "upi", + "us_bank_account", + "wechat_pay", + "zip", + ] + ] + ] + """ + The list of payment method types allowed for use with this payment. Stripe automatically returns compatible payment methods from this list in the `payment_method_types` field of the response, based on the other PaymentIntent parameters, such as `currency`, `amount`, and `customer`. + """ amount: int """ Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). @@ -90,6 +161,7 @@ class PaymentIntentCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -128,6 +200,7 @@ class PaymentIntentCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -173,7 +246,7 @@ class PaymentIntentCreateParams(RequestOptions): """ off_session: NotRequired["bool|Literal['one_off', 'recurring']"] """ - Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm). + Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect payment method details and [charge them later](https://docs.stripe.com/payments/save-during-payment). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm). """ on_behalf_of: NotRequired[str] """ @@ -2970,6 +3043,10 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -3054,7 +3131,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ link: NotRequired["PaymentIntentCreateParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["PaymentIntentCreateParamsPaymentMethodDataMbWay"] """ @@ -3162,6 +3239,10 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "PaymentIntentCreateParamsPaymentMethodDataSepaDebit" ] @@ -3211,6 +3292,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -3249,6 +3331,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -3405,6 +3488,10 @@ class PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress( """ +class PaymentIntentCreateParamsPaymentMethodDataBizum(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataBlik(TypedDict): pass @@ -3769,6 +3856,10 @@ class PaymentIntentCreateParamsPaymentMethodDataSatispay(TypedDict): pass +class PaymentIntentCreateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -3926,6 +4017,12 @@ class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): """ If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. """ + bizum: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBizum" + ] + """ + If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + """ blik: NotRequired[ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBlik" ] @@ -3980,6 +4077,12 @@ class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): """ If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. """ + gift_card: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsGiftCard" + ] + """ + If this is a `gift_card` PaymentMethod, this sub-hash contains details about the gift card payment method options. + """ giropay: NotRequired[ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsGiropay" ] @@ -4044,7 +4147,7 @@ class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsLink" ] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ mb_way: NotRequired[ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsMbWay" @@ -4166,6 +4269,12 @@ class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): """ If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. """ + scalapay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsScalapay" + ] + """ + If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + """ sepa_debit: NotRequired[ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit" ] @@ -4479,6 +4588,10 @@ class PaymentIntentCreateParamsPaymentMethodOptionsBillie(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodOptionsBlik(TypedDict): code: NotRequired[str] """ @@ -5279,6 +5392,10 @@ class PaymentIntentCreateParamsPaymentMethodOptionsFpx(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodOptionsGiftCard(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodOptionsGiropay(TypedDict): setup_future_usage: NotRequired[Literal["none"]] """ @@ -7219,6 +7336,17 @@ class PaymentIntentCreateParamsPaymentMethodOptionsSatispay(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodOptionsScalapay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + class PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit(TypedDict): mandate_options: NotRequired[ "PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions" @@ -7345,7 +7473,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsSwish(TypedDict): class PaymentIntentCreateParamsPaymentMethodOptionsTwint(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -7565,6 +7693,19 @@ class PaymentIntentCreateParamsPaymentsOrchestration(TypedDict): """ Whether this feature is enabled. """ + payment_details: NotRequired[ + "PaymentIntentCreateParamsPaymentsOrchestrationPaymentDetails" + ] + """ + Payment-level details for the orchestrated payment. + """ + + +class PaymentIntentCreateParamsPaymentsOrchestrationPaymentDetails(TypedDict): + reference: NotRequired[str] + """ + Merchant-provided reference for this payment, used for reconciliation. + """ class PaymentIntentCreateParamsRadarOptions(TypedDict): @@ -7635,6 +7776,10 @@ class PaymentIntentCreateParamsTransferData(TypedDict): [application_fee_amount](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-application_fee_amount) might be a better fit for your integration. """ + description: NotRequired[str] + """ + An arbitrary string attached to the transfer. Often useful for displaying to users. + """ destination: str """ If specified, successful charges will be attributed to the destination @@ -7642,3 +7787,28 @@ class PaymentIntentCreateParamsTransferData(TypedDict): to the destination account. The ID of the resulting transfer will be returned on the successful charge's `transfer` field. """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[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. + """ + payment_data: NotRequired[ + "PaymentIntentCreateParamsTransferDataPaymentData" + ] + """ + The data with which to populate the destination payment. + """ + + +class PaymentIntentCreateParamsTransferDataPaymentData(TypedDict): + description: NotRequired[str] + """ + An arbitrary string attached to the destination payment. Often useful for displaying to users. + """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[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. + """ diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py index f8fe598a4..548690d2e 100644 --- a/stripe/params/_payment_intent_modify_params.py +++ b/stripe/params/_payment_intent_modify_params.py @@ -11,6 +11,77 @@ class PaymentIntentModifyParams(RequestOptions): """ Allocated Funds configuration for this PaymentIntent. """ + allowed_payment_method_types: NotRequired[ + List[ + Literal[ + "acss_debit", + "affirm", + "afterpay_clearpay", + "alipay", + "alma", + "amazon_pay", + "au_becs_debit", + "bacs_debit", + "bancontact", + "billie", + "bizum", + "blik", + "boleto", + "card", + "cashapp", + "crypto", + "customer_balance", + "eps", + "fpx", + "gift_card", + "giropay", + "gopay", + "grabpay", + "id_bank_transfer", + "ideal", + "kakao_pay", + "klarna", + "konbini", + "kr_card", + "link", + "mb_way", + "mobilepay", + "multibanco", + "naver_pay", + "nz_bank_account", + "oxxo", + "p24", + "pay_by_bank", + "payco", + "paynow", + "paypal", + "paypay", + "payto", + "pix", + "promptpay", + "qris", + "rechnung", + "revolut_pay", + "samsung_pay", + "satispay", + "scalapay", + "sepa_debit", + "shopeepay", + "sofort", + "stripe_balance", + "sunbit", + "swish", + "twint", + "upi", + "us_bank_account", + "wechat_pay", + "zip", + ] + ] + ] + """ + The list of payment method types allowed for use with this payment. Stripe automatically returns compatible payment methods from this list in the `payment_method_types` field of the response, based on the other PaymentIntent parameters, such as `currency`, `amount`, and `customer`. + """ amount: NotRequired[int] """ Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). @@ -56,7 +127,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', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'twint', 'upi', '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', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this payment. @@ -2821,6 +2892,10 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["PaymentIntentModifyParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["PaymentIntentModifyParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -2905,7 +2980,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ link: NotRequired["PaymentIntentModifyParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["PaymentIntentModifyParamsPaymentMethodDataMbWay"] """ @@ -3013,6 +3088,10 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "PaymentIntentModifyParamsPaymentMethodDataSepaDebit" ] @@ -3062,6 +3141,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -3100,6 +3180,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -3256,6 +3337,10 @@ class PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress( """ +class PaymentIntentModifyParamsPaymentMethodDataBizum(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataBlik(TypedDict): pass @@ -3620,6 +3705,10 @@ class PaymentIntentModifyParamsPaymentMethodDataSatispay(TypedDict): pass +class PaymentIntentModifyParamsPaymentMethodDataScalapay(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -3777,6 +3866,12 @@ class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): """ If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. """ + bizum: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBizum" + ] + """ + If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + """ blik: NotRequired[ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBlik" ] @@ -3831,6 +3926,12 @@ class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): """ If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. """ + gift_card: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsGiftCard" + ] + """ + If this is a `gift_card` PaymentMethod, this sub-hash contains details about the gift card payment method options. + """ giropay: NotRequired[ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsGiropay" ] @@ -3895,7 +3996,7 @@ class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsLink" ] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ mb_way: NotRequired[ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsMbWay" @@ -4017,6 +4118,12 @@ class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): """ If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. """ + scalapay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsScalapay" + ] + """ + If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + """ sepa_debit: NotRequired[ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit" ] @@ -4330,6 +4437,10 @@ class PaymentIntentModifyParamsPaymentMethodOptionsBillie(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodOptionsBlik(TypedDict): code: NotRequired[str] """ @@ -5130,6 +5241,10 @@ class PaymentIntentModifyParamsPaymentMethodOptionsFpx(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodOptionsGiftCard(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodOptionsGiropay(TypedDict): setup_future_usage: NotRequired[Literal["none"]] """ @@ -7070,6 +7185,17 @@ class PaymentIntentModifyParamsPaymentMethodOptionsSatispay(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodOptionsScalapay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + class PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit(TypedDict): mandate_options: NotRequired[ "PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions" @@ -7196,7 +7322,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsSwish(TypedDict): class PaymentIntentModifyParamsPaymentMethodOptionsTwint(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -7466,3 +7592,32 @@ class PaymentIntentModifyParamsTransferData(TypedDict): """ The amount that will be transferred automatically when a charge succeeds. """ + description: NotRequired[str] + """ + An arbitrary string attached to the transfer. Often useful for displaying to users. + """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[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. + """ + payment_data: NotRequired[ + "PaymentIntentModifyParamsTransferDataPaymentData" + ] + """ + The data with which to populate the destination payment. + """ + + +class PaymentIntentModifyParamsTransferDataPaymentData(TypedDict): + description: NotRequired[str] + """ + An arbitrary string attached to the destination payment. Often useful for displaying to users. + """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[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. + """ diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py index 43482a8a3..7d5cbfd06 100644 --- a/stripe/params/_payment_intent_update_params.py +++ b/stripe/params/_payment_intent_update_params.py @@ -10,6 +10,77 @@ class PaymentIntentUpdateParams(TypedDict): """ Allocated Funds configuration for this PaymentIntent. """ + allowed_payment_method_types: NotRequired[ + List[ + Literal[ + "acss_debit", + "affirm", + "afterpay_clearpay", + "alipay", + "alma", + "amazon_pay", + "au_becs_debit", + "bacs_debit", + "bancontact", + "billie", + "bizum", + "blik", + "boleto", + "card", + "cashapp", + "crypto", + "customer_balance", + "eps", + "fpx", + "gift_card", + "giropay", + "gopay", + "grabpay", + "id_bank_transfer", + "ideal", + "kakao_pay", + "klarna", + "konbini", + "kr_card", + "link", + "mb_way", + "mobilepay", + "multibanco", + "naver_pay", + "nz_bank_account", + "oxxo", + "p24", + "pay_by_bank", + "payco", + "paynow", + "paypal", + "paypay", + "payto", + "pix", + "promptpay", + "qris", + "rechnung", + "revolut_pay", + "samsung_pay", + "satispay", + "scalapay", + "sepa_debit", + "shopeepay", + "sofort", + "stripe_balance", + "sunbit", + "swish", + "twint", + "upi", + "us_bank_account", + "wechat_pay", + "zip", + ] + ] + ] + """ + The list of payment method types allowed for use with this payment. Stripe automatically returns compatible payment methods from this list in the `payment_method_types` field of the response, based on the other PaymentIntent parameters, such as `currency`, `amount`, and `customer`. + """ amount: NotRequired[int] """ Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). @@ -55,7 +126,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', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'twint', 'upi', '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', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this payment. @@ -2820,6 +2891,10 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -2904,7 +2979,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ link: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataMbWay"] """ @@ -3012,6 +3087,10 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "PaymentIntentUpdateParamsPaymentMethodDataSepaDebit" ] @@ -3061,6 +3140,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -3099,6 +3179,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -3255,6 +3336,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress( """ +class PaymentIntentUpdateParamsPaymentMethodDataBizum(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataBlik(TypedDict): pass @@ -3619,6 +3704,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataSatispay(TypedDict): pass +class PaymentIntentUpdateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -3776,6 +3865,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): """ If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. """ + bizum: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBizum" + ] + """ + If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + """ blik: NotRequired[ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBlik" ] @@ -3830,6 +3925,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): """ If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. """ + gift_card: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsGiftCard" + ] + """ + If this is a `gift_card` PaymentMethod, this sub-hash contains details about the gift card payment method options. + """ giropay: NotRequired[ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsGiropay" ] @@ -3894,7 +3995,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsLink" ] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ mb_way: NotRequired[ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsMbWay" @@ -4016,6 +4117,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): """ If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. """ + scalapay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsScalapay" + ] + """ + If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + """ sepa_debit: NotRequired[ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit" ] @@ -4329,6 +4436,10 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsBillie(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodOptionsBlik(TypedDict): code: NotRequired[str] """ @@ -5129,6 +5240,10 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsFpx(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodOptionsGiftCard(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodOptionsGiropay(TypedDict): setup_future_usage: NotRequired[Literal["none"]] """ @@ -7069,6 +7184,17 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsSatispay(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodOptionsScalapay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + class PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit(TypedDict): mandate_options: NotRequired[ "PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions" @@ -7195,7 +7321,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsSwish(TypedDict): class PaymentIntentUpdateParamsPaymentMethodOptionsTwint(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -7465,3 +7591,32 @@ class PaymentIntentUpdateParamsTransferData(TypedDict): """ The amount that will be transferred automatically when a charge succeeds. """ + description: NotRequired[str] + """ + An arbitrary string attached to the transfer. Often useful for displaying to users. + """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[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. + """ + payment_data: NotRequired[ + "PaymentIntentUpdateParamsTransferDataPaymentData" + ] + """ + The data with which to populate the destination payment. + """ + + +class PaymentIntentUpdateParamsTransferDataPaymentData(TypedDict): + description: NotRequired[str] + """ + An arbitrary string attached to the destination payment. Often useful for displaying to users. + """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[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. + """ diff --git a/stripe/params/_payment_link_create_params.py b/stripe/params/_payment_link_create_params.py index 1254729a3..d35e41d1a 100644 --- a/stripe/params/_payment_link_create_params.py +++ b/stripe/params/_payment_link_create_params.py @@ -110,6 +110,9 @@ class PaymentLinkCreateParams(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_options: NotRequired[ + "PaymentLinkCreateParamsPaymentMethodOptions" + ] payment_method_types: NotRequired[ List[ Literal[ @@ -121,6 +124,7 @@ class PaymentLinkCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -292,7 +296,7 @@ class PaymentLinkCreateParamsConsentCollection(TypedDict): """ If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout Session will determine whether to display an option to opt into promotional communication - from the merchant depending on the customer's locale. Only available to US merchants. + from the merchant depending on the customer's locale. Only available to US merchants and US customers. """ terms_of_service: NotRequired[Literal["none", "required"]] """ @@ -788,6 +792,38 @@ class PaymentLinkCreateParamsPaymentIntentData(TypedDict): """ +class PaymentLinkCreateParamsPaymentMethodOptions(TypedDict): + card: NotRequired["PaymentLinkCreateParamsPaymentMethodOptionsCard"] + """ + Configuration for `card` payment methods. + """ + + +class PaymentLinkCreateParamsPaymentMethodOptionsCard(TypedDict): + restrictions: NotRequired[ + "PaymentLinkCreateParamsPaymentMethodOptionsCardRestrictions" + ] + """ + Restrictions to apply to the card payment method. For example, you can block specific card brands. + """ + + +class PaymentLinkCreateParamsPaymentMethodOptionsCardRestrictions(TypedDict): + brands_blocked: NotRequired[ + List[ + Literal[ + "american_express", + "discover_global_network", + "mastercard", + "visa", + ] + ] + ] + """ + The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + """ + + class PaymentLinkCreateParamsPhoneNumberCollection(TypedDict): enabled: bool """ diff --git a/stripe/params/_payment_link_modify_params.py b/stripe/params/_payment_link_modify_params.py index b0f41e1c4..4f5276f27 100644 --- a/stripe/params/_payment_link_modify_params.py +++ b/stripe/params/_payment_link_modify_params.py @@ -89,8 +89,14 @@ 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_options: NotRequired[ + "Literal['']|PaymentLinkModifyParamsPaymentMethodOptions" + ] + """ + Payment-method-specific configuration. + """ 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', 'gopay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'sunbit', '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). @@ -546,6 +552,33 @@ class PaymentLinkModifyParamsPaymentIntentData(TypedDict): """ +class PaymentLinkModifyParamsPaymentMethodOptions(TypedDict): + card: NotRequired[ + "Literal['']|PaymentLinkModifyParamsPaymentMethodOptionsCard" + ] + """ + Configuration for `card` payment methods. + """ + + +class PaymentLinkModifyParamsPaymentMethodOptionsCard(TypedDict): + restrictions: NotRequired[ + "Literal['']|PaymentLinkModifyParamsPaymentMethodOptionsCardRestrictions" + ] + """ + Restrictions to apply to the card payment method. For example, you can block specific card brands. + """ + + +class PaymentLinkModifyParamsPaymentMethodOptionsCardRestrictions(TypedDict): + brands_blocked: NotRequired[ + "Literal['']|List[Literal['american_express', 'discover_global_network', 'mastercard', 'visa']]" + ] + """ + The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + """ + + class PaymentLinkModifyParamsPhoneNumberCollection(TypedDict): enabled: bool """ diff --git a/stripe/params/_payment_link_update_params.py b/stripe/params/_payment_link_update_params.py index 969c0d988..8b8d5b760 100644 --- a/stripe/params/_payment_link_update_params.py +++ b/stripe/params/_payment_link_update_params.py @@ -88,8 +88,14 @@ 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_options: NotRequired[ + "Literal['']|PaymentLinkUpdateParamsPaymentMethodOptions" + ] + """ + Payment-method-specific configuration. + """ 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', 'gopay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'sunbit', '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). @@ -545,6 +551,33 @@ class PaymentLinkUpdateParamsPaymentIntentData(TypedDict): """ +class PaymentLinkUpdateParamsPaymentMethodOptions(TypedDict): + card: NotRequired[ + "Literal['']|PaymentLinkUpdateParamsPaymentMethodOptionsCard" + ] + """ + Configuration for `card` payment methods. + """ + + +class PaymentLinkUpdateParamsPaymentMethodOptionsCard(TypedDict): + restrictions: NotRequired[ + "Literal['']|PaymentLinkUpdateParamsPaymentMethodOptionsCardRestrictions" + ] + """ + Restrictions to apply to the card payment method. For example, you can block specific card brands. + """ + + +class PaymentLinkUpdateParamsPaymentMethodOptionsCardRestrictions(TypedDict): + brands_blocked: NotRequired[ + "Literal['']|List[Literal['american_express', 'discover_global_network', 'mastercard', 'visa']]" + ] + """ + The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + """ + + class PaymentLinkUpdateParamsPhoneNumberCollection(TypedDict): enabled: bool """ diff --git a/stripe/params/_payment_method_configuration_create_params.py b/stripe/params/_payment_method_configuration_create_params.py index de4fa987b..ad51bec9f 100644 --- a/stripe/params/_payment_method_configuration_create_params.py +++ b/stripe/params/_payment_method_configuration_create_params.py @@ -60,6 +60,10 @@ class PaymentMethodConfigurationCreateParams(RequestOptions): """ Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. """ + bizum: NotRequired["PaymentMethodConfigurationCreateParamsBizum"] + """ + To enable Bizum, buyers need a Spanish IBAN from a bank connected to Bizum. Within their banking app, they can enable Bizum and link their mobile number to their IBAN. + """ blik: NotRequired["PaymentMethodConfigurationCreateParamsBlik"] """ BLIK is a [single use](https://docs.stripe.com/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://docs.stripe.com/payments/blik) for more details. @@ -250,6 +254,10 @@ class PaymentMethodConfigurationCreateParams(RequestOptions): """ Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](https://docs.stripe.com/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. """ + scalapay: NotRequired["PaymentMethodConfigurationCreateParamsScalapay"] + """ + Scalapay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that lets customers pay in 3 or 4 installments. Customers are redirected from your website or app, authorize the payment with Scalapay, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + """ sepa_debit: NotRequired["PaymentMethodConfigurationCreateParamsSepaDebit"] """ The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details. @@ -502,6 +510,22 @@ class PaymentMethodConfigurationCreateParamsBillieDisplayPreference(TypedDict): """ +class PaymentMethodConfigurationCreateParamsBizum(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationCreateParamsBizumDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationCreateParamsBizumDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationCreateParamsBlik(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationCreateParamsBlikDisplayPreference" @@ -1196,6 +1220,24 @@ class PaymentMethodConfigurationCreateParamsSatispayDisplayPreference( """ +class PaymentMethodConfigurationCreateParamsScalapay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationCreateParamsScalapayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationCreateParamsScalapayDisplayPreference( + TypedDict, +): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationCreateParamsSepaDebit(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference" diff --git a/stripe/params/_payment_method_configuration_list_params.py b/stripe/params/_payment_method_configuration_list_params.py index 260d38878..cc2bce98b 100644 --- a/stripe/params/_payment_method_configuration_list_params.py +++ b/stripe/params/_payment_method_configuration_list_params.py @@ -6,6 +6,10 @@ class PaymentMethodConfigurationListParams(RequestOptions): + active: NotRequired[bool] + """ + Whether the configuration is active. + """ application: NotRequired["Literal['']|str"] """ The Connect application to filter by. diff --git a/stripe/params/_payment_method_configuration_modify_params.py b/stripe/params/_payment_method_configuration_modify_params.py index d4c256ff0..7a3680b3b 100644 --- a/stripe/params/_payment_method_configuration_modify_params.py +++ b/stripe/params/_payment_method_configuration_modify_params.py @@ -64,6 +64,10 @@ class PaymentMethodConfigurationModifyParams(RequestOptions): """ Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. """ + bizum: NotRequired["PaymentMethodConfigurationModifyParamsBizum"] + """ + To enable Bizum, buyers need a Spanish IBAN from a bank connected to Bizum. Within their banking app, they can enable Bizum and link their mobile number to their IBAN. + """ blik: NotRequired["PaymentMethodConfigurationModifyParamsBlik"] """ BLIK is a [single use](https://docs.stripe.com/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://docs.stripe.com/payments/blik) for more details. @@ -250,6 +254,10 @@ class PaymentMethodConfigurationModifyParams(RequestOptions): """ Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](https://docs.stripe.com/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. """ + scalapay: NotRequired["PaymentMethodConfigurationModifyParamsScalapay"] + """ + Scalapay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that lets customers pay in 3 or 4 installments. Customers are redirected from your website or app, authorize the payment with Scalapay, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + """ sepa_debit: NotRequired["PaymentMethodConfigurationModifyParamsSepaDebit"] """ The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details. @@ -502,6 +510,22 @@ class PaymentMethodConfigurationModifyParamsBillieDisplayPreference(TypedDict): """ +class PaymentMethodConfigurationModifyParamsBizum(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationModifyParamsBizumDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationModifyParamsBizumDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationModifyParamsBlik(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationModifyParamsBlikDisplayPreference" @@ -1196,6 +1220,24 @@ class PaymentMethodConfigurationModifyParamsSatispayDisplayPreference( """ +class PaymentMethodConfigurationModifyParamsScalapay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationModifyParamsScalapayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationModifyParamsScalapayDisplayPreference( + TypedDict, +): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationModifyParamsSepaDebit(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference" diff --git a/stripe/params/_payment_method_configuration_update_params.py b/stripe/params/_payment_method_configuration_update_params.py index 13515ad88..d9d192595 100644 --- a/stripe/params/_payment_method_configuration_update_params.py +++ b/stripe/params/_payment_method_configuration_update_params.py @@ -63,6 +63,10 @@ class PaymentMethodConfigurationUpdateParams(TypedDict): """ Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. """ + bizum: NotRequired["PaymentMethodConfigurationUpdateParamsBizum"] + """ + To enable Bizum, buyers need a Spanish IBAN from a bank connected to Bizum. Within their banking app, they can enable Bizum and link their mobile number to their IBAN. + """ blik: NotRequired["PaymentMethodConfigurationUpdateParamsBlik"] """ BLIK is a [single use](https://docs.stripe.com/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://docs.stripe.com/payments/blik) for more details. @@ -249,6 +253,10 @@ class PaymentMethodConfigurationUpdateParams(TypedDict): """ Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](https://docs.stripe.com/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. """ + scalapay: NotRequired["PaymentMethodConfigurationUpdateParamsScalapay"] + """ + Scalapay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that lets customers pay in 3 or 4 installments. Customers are redirected from your website or app, authorize the payment with Scalapay, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + """ sepa_debit: NotRequired["PaymentMethodConfigurationUpdateParamsSepaDebit"] """ The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details. @@ -501,6 +509,22 @@ class PaymentMethodConfigurationUpdateParamsBillieDisplayPreference(TypedDict): """ +class PaymentMethodConfigurationUpdateParamsBizum(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationUpdateParamsBizumDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationUpdateParamsBizumDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationUpdateParamsBlik(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationUpdateParamsBlikDisplayPreference" @@ -1195,6 +1219,24 @@ class PaymentMethodConfigurationUpdateParamsSatispayDisplayPreference( """ +class PaymentMethodConfigurationUpdateParamsScalapay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference( + TypedDict, +): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationUpdateParamsSepaDebit(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference" diff --git a/stripe/params/_payment_method_create_params.py b/stripe/params/_payment_method_create_params.py index 6c6ab066a..8a44bc251 100644 --- a/stripe/params/_payment_method_create_params.py +++ b/stripe/params/_payment_method_create_params.py @@ -55,6 +55,10 @@ class PaymentMethodCreateParams(RequestOptions): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["PaymentMethodCreateParamsBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["PaymentMethodCreateParamsBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -145,7 +149,7 @@ class PaymentMethodCreateParams(RequestOptions): """ link: NotRequired["PaymentMethodCreateParamsLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["PaymentMethodCreateParamsMbWay"] """ @@ -239,6 +243,10 @@ class PaymentMethodCreateParams(RequestOptions): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["PaymentMethodCreateParamsScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired["PaymentMethodCreateParamsSepaDebit"] """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. @@ -279,6 +287,7 @@ class PaymentMethodCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -319,6 +328,7 @@ class PaymentMethodCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -470,6 +480,10 @@ class PaymentMethodCreateParamsBillingDetailsAddress(TypedDict): """ +class PaymentMethodCreateParamsBizum(TypedDict): + pass + + class PaymentMethodCreateParamsBlik(TypedDict): pass @@ -875,6 +889,10 @@ class PaymentMethodCreateParamsSatispay(TypedDict): pass +class PaymentMethodCreateParamsScalapay(TypedDict): + pass + + class PaymentMethodCreateParamsSepaDebit(TypedDict): iban: str """ diff --git a/stripe/params/_payment_method_list_params.py b/stripe/params/_payment_method_list_params.py index eb45fc63a..e8c6c3811 100644 --- a/stripe/params/_payment_method_list_params.py +++ b/stripe/params/_payment_method_list_params.py @@ -46,6 +46,7 @@ class PaymentMethodListParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -86,6 +87,7 @@ class PaymentMethodListParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", diff --git a/stripe/params/_payout_create_params.py b/stripe/params/_payout_create_params.py index d4ddff0ea..d97efb1ef 100644 --- a/stripe/params/_payout_create_params.py +++ b/stripe/params/_payout_create_params.py @@ -45,5 +45,5 @@ class PayoutCreateParams(RequestOptions): """ statement_descriptor: NotRequired[str] """ - A string that displays on the recipient's bank or card statement (up to 22 characters). A `statement_descriptor` that's longer than 22 characters return an error. Most banks truncate this information and display it inconsistently. Some banks might not display it at all. + A string that displays on the recipient's bank or card statement (up to 22 characters). A `statement_descriptor` that's longer than 22 characters return an error. Most banks truncate this information and display it inconsistently. Some banks might not display it at all. For US ACH payouts, this maps to the ACH Company Entry Description field, which the NACHA standard limits to 10 characters. Stripe truncates descriptors longer than 10 characters for US ACH payouts. """ diff --git a/stripe/params/_setup_intent_confirm_params.py b/stripe/params/_setup_intent_confirm_params.py index 66afffe2b..425105260 100644 --- a/stripe/params/_setup_intent_confirm_params.py +++ b/stripe/params/_setup_intent_confirm_params.py @@ -163,6 +163,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["SetupIntentConfirmParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["SetupIntentConfirmParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -243,7 +247,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ link: NotRequired["SetupIntentConfirmParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["SetupIntentConfirmParamsPaymentMethodDataMbWay"] """ @@ -349,6 +353,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["SetupIntentConfirmParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "SetupIntentConfirmParamsPaymentMethodDataSepaDebit" ] @@ -398,6 +406,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -436,6 +445,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -592,6 +602,10 @@ class SetupIntentConfirmParamsPaymentMethodDataBillingDetailsAddress( """ +class SetupIntentConfirmParamsPaymentMethodDataBizum(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataBlik(TypedDict): pass @@ -956,6 +970,10 @@ class SetupIntentConfirmParamsPaymentMethodDataSatispay(TypedDict): pass +class SetupIntentConfirmParamsPaymentMethodDataScalapay(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -1071,6 +1089,10 @@ class SetupIntentConfirmParamsPaymentMethodOptions(TypedDict): """ If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options. """ + bizum: NotRequired["SetupIntentConfirmParamsPaymentMethodOptionsBizum"] + """ + If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + """ card: NotRequired["SetupIntentConfirmParamsPaymentMethodOptionsCard"] """ Configuration for any card setup attempted on this SetupIntent. @@ -1087,7 +1109,7 @@ class SetupIntentConfirmParamsPaymentMethodOptions(TypedDict): """ link: NotRequired["SetupIntentConfirmParamsPaymentMethodOptionsLink"] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ paypal: NotRequired["SetupIntentConfirmParamsPaymentMethodOptionsPaypal"] """ @@ -1193,6 +1215,10 @@ class SetupIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions( """ +class SetupIntentConfirmParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ "SetupIntentConfirmParamsPaymentMethodOptionsCardMandateOptions" diff --git a/stripe/params/_setup_intent_create_params.py b/stripe/params/_setup_intent_create_params.py index 52b439082..a0524b9df 100644 --- a/stripe/params/_setup_intent_create_params.py +++ b/stripe/params/_setup_intent_create_params.py @@ -58,6 +58,7 @@ class SetupIntentCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -96,6 +97,7 @@ class SetupIntentCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -305,6 +307,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["SetupIntentCreateParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["SetupIntentCreateParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -385,7 +391,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ link: NotRequired["SetupIntentCreateParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["SetupIntentCreateParamsPaymentMethodDataMbWay"] """ @@ -487,6 +493,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["SetupIntentCreateParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "SetupIntentCreateParamsPaymentMethodDataSepaDebit" ] @@ -534,6 +544,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -572,6 +583,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -726,6 +738,10 @@ class SetupIntentCreateParamsPaymentMethodDataBillingDetailsAddress(TypedDict): """ +class SetupIntentCreateParamsPaymentMethodDataBizum(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataBlik(TypedDict): pass @@ -1090,6 +1106,10 @@ class SetupIntentCreateParamsPaymentMethodDataSatispay(TypedDict): pass +class SetupIntentCreateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -1205,6 +1225,10 @@ class SetupIntentCreateParamsPaymentMethodOptions(TypedDict): """ If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options. """ + bizum: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsBizum"] + """ + If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + """ card: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsCard"] """ Configuration for any card setup attempted on this SetupIntent. @@ -1221,7 +1245,7 @@ class SetupIntentCreateParamsPaymentMethodOptions(TypedDict): """ link: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsLink"] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ paypal: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsPaypal"] """ @@ -1327,6 +1351,10 @@ class SetupIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions( """ +class SetupIntentCreateParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ "SetupIntentCreateParamsPaymentMethodOptionsCardMandateOptions" diff --git a/stripe/params/_setup_intent_modify_params.py b/stripe/params/_setup_intent_modify_params.py index 2c307e130..febd8086c 100644 --- a/stripe/params/_setup_intent_modify_params.py +++ b/stripe/params/_setup_intent_modify_params.py @@ -30,7 +30,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', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'twint', 'upi', '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', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this SetupIntent. @@ -145,6 +145,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["SetupIntentModifyParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["SetupIntentModifyParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -225,7 +229,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ link: NotRequired["SetupIntentModifyParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["SetupIntentModifyParamsPaymentMethodDataMbWay"] """ @@ -327,6 +331,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["SetupIntentModifyParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "SetupIntentModifyParamsPaymentMethodDataSepaDebit" ] @@ -374,6 +382,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -412,6 +421,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -566,6 +576,10 @@ class SetupIntentModifyParamsPaymentMethodDataBillingDetailsAddress(TypedDict): """ +class SetupIntentModifyParamsPaymentMethodDataBizum(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataBlik(TypedDict): pass @@ -930,6 +944,10 @@ class SetupIntentModifyParamsPaymentMethodDataSatispay(TypedDict): pass +class SetupIntentModifyParamsPaymentMethodDataScalapay(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -1045,6 +1063,10 @@ class SetupIntentModifyParamsPaymentMethodOptions(TypedDict): """ If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options. """ + bizum: NotRequired["SetupIntentModifyParamsPaymentMethodOptionsBizum"] + """ + If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + """ card: NotRequired["SetupIntentModifyParamsPaymentMethodOptionsCard"] """ Configuration for any card setup attempted on this SetupIntent. @@ -1061,7 +1083,7 @@ class SetupIntentModifyParamsPaymentMethodOptions(TypedDict): """ link: NotRequired["SetupIntentModifyParamsPaymentMethodOptionsLink"] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ paypal: NotRequired["SetupIntentModifyParamsPaymentMethodOptionsPaypal"] """ @@ -1167,6 +1189,10 @@ class SetupIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions( """ +class SetupIntentModifyParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ "SetupIntentModifyParamsPaymentMethodOptionsCardMandateOptions" diff --git a/stripe/params/_setup_intent_update_params.py b/stripe/params/_setup_intent_update_params.py index 8e3cccf68..f15d8cfaf 100644 --- a/stripe/params/_setup_intent_update_params.py +++ b/stripe/params/_setup_intent_update_params.py @@ -29,7 +29,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', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'twint', 'upi', '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', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this SetupIntent. @@ -144,6 +144,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["SetupIntentUpdateParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["SetupIntentUpdateParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -224,7 +228,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ link: NotRequired["SetupIntentUpdateParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["SetupIntentUpdateParamsPaymentMethodDataMbWay"] """ @@ -326,6 +330,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["SetupIntentUpdateParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "SetupIntentUpdateParamsPaymentMethodDataSepaDebit" ] @@ -373,6 +381,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -411,6 +420,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -565,6 +575,10 @@ class SetupIntentUpdateParamsPaymentMethodDataBillingDetailsAddress(TypedDict): """ +class SetupIntentUpdateParamsPaymentMethodDataBizum(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataBlik(TypedDict): pass @@ -929,6 +943,10 @@ class SetupIntentUpdateParamsPaymentMethodDataSatispay(TypedDict): pass +class SetupIntentUpdateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -1044,6 +1062,10 @@ class SetupIntentUpdateParamsPaymentMethodOptions(TypedDict): """ If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options. """ + bizum: NotRequired["SetupIntentUpdateParamsPaymentMethodOptionsBizum"] + """ + If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + """ card: NotRequired["SetupIntentUpdateParamsPaymentMethodOptionsCard"] """ Configuration for any card setup attempted on this SetupIntent. @@ -1060,7 +1082,7 @@ class SetupIntentUpdateParamsPaymentMethodOptions(TypedDict): """ link: NotRequired["SetupIntentUpdateParamsPaymentMethodOptionsLink"] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ paypal: NotRequired["SetupIntentUpdateParamsPaymentMethodOptionsPaypal"] """ @@ -1166,6 +1188,10 @@ class SetupIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions( """ +class SetupIntentUpdateParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ "SetupIntentUpdateParamsPaymentMethodOptionsCardMandateOptions" diff --git a/stripe/params/_subscription_create_params.py b/stripe/params/_subscription_create_params.py index b433bf893..aafab0ffe 100644 --- a/stripe/params/_subscription_create_params.py +++ b/stripe/params/_subscription_create_params.py @@ -56,7 +56,9 @@ class SubscriptionCreateParams(RequestOptions): """ Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. """ - cancel_at: NotRequired["int|Literal['max_period_end', 'min_period_end']"] + cancel_at: NotRequired[ + "int|Literal['max_billed_until', 'max_period_end', 'min_period_end']" + ] """ A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. """ @@ -143,17 +145,7 @@ class SubscriptionCreateParams(RequestOptions): ] ] """ - Only applies to subscriptions with `collection_method=charge_automatically`. - - Use `allow_incomplete` to create Subscriptions with `status=incomplete` if the first invoice can't be paid. Creating Subscriptions with this status allows you to manage scenarios where additional customer actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to create Subscriptions with `status=incomplete` when the first invoice requires payment, otherwise start as active. Subscriptions transition to `status=active` when successfully confirming the PaymentIntent on the first invoice. This allows simpler management of scenarios where additional customer actions are needed to pay a subscription's invoice, such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. If the PaymentIntent is not confirmed within 23 hours Subscriptions transition to `status=incomplete_expired`, which is a terminal state. - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice can't be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further customer action is needed, this parameter doesn't create a Subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/upgrades#2019-03-14) to learn more. - - `pending_if_incomplete` is only used with updates and cannot be passed when creating a Subscription. - - Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status. + Controls how Stripe handles the first invoice when payment is required and `collection_method=charge_automatically`. Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status. """ payment_settings: NotRequired["SubscriptionCreateParamsPaymentSettings"] """ @@ -198,6 +190,10 @@ class SubscriptionCreateParams(RequestOptions): class SubscriptionCreateParamsAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List["SubscriptionCreateParamsAddInvoiceItemDiscount"] ] @@ -825,7 +821,7 @@ class SubscriptionCreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration @@ -921,6 +917,12 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. """ + wechat_pay: NotRequired[ + "Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay" + ] + """ + This sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent. + """ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit( @@ -1286,6 +1288,19 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi """ +class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay( + TypedDict, +): + app_id: NotRequired[str] + """ + The app ID registered with WeChat Pay. Only required when client is `ios` or `android`. + """ + client: NotRequired[Literal["android", "ios", "mobile_web", "web"]] + """ + The client type that the end customer will pay from. + """ + + class SubscriptionCreateParamsPendingInvoiceItemInterval(TypedDict): interval: Literal["day", "month", "week", "year"] """ diff --git a/stripe/params/_subscription_item_create_params.py b/stripe/params/_subscription_item_create_params.py index abcf1e36b..3ddebaf2b 100644 --- a/stripe/params/_subscription_item_create_params.py +++ b/stripe/params/_subscription_item_create_params.py @@ -41,13 +41,7 @@ class SubscriptionItemCreateParams(RequestOptions): ] ] """ - Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - - Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. """ plan: NotRequired[str] """ diff --git a/stripe/params/_subscription_item_delete_params.py b/stripe/params/_subscription_item_delete_params.py index 82aea8fea..e675cf8a1 100644 --- a/stripe/params/_subscription_item_delete_params.py +++ b/stripe/params/_subscription_item_delete_params.py @@ -18,13 +18,7 @@ class SubscriptionItemDeleteParams(RequestOptions): ] ] """ - Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - - Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. """ proration_behavior: NotRequired[ Literal["always_invoice", "create_prorations", "none"] diff --git a/stripe/params/_subscription_item_modify_params.py b/stripe/params/_subscription_item_modify_params.py index 97f1f07bc..8ee26510f 100644 --- a/stripe/params/_subscription_item_modify_params.py +++ b/stripe/params/_subscription_item_modify_params.py @@ -47,13 +47,7 @@ class SubscriptionItemModifyParams(RequestOptions): ] ] """ - Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - - Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. """ plan: NotRequired[str] """ diff --git a/stripe/params/_subscription_item_update_params.py b/stripe/params/_subscription_item_update_params.py index d4901d4cb..2ef104504 100644 --- a/stripe/params/_subscription_item_update_params.py +++ b/stripe/params/_subscription_item_update_params.py @@ -46,13 +46,7 @@ class SubscriptionItemUpdateParams(TypedDict): ] ] """ - Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - - Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. """ plan: NotRequired[str] """ diff --git a/stripe/params/_subscription_modify_params.py b/stripe/params/_subscription_modify_params.py index 575594020..d1a1a7c49 100644 --- a/stripe/params/_subscription_modify_params.py +++ b/stripe/params/_subscription_modify_params.py @@ -43,7 +43,7 @@ class SubscriptionModifyParams(RequestOptions): Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. """ cancel_at: NotRequired[ - "Literal['']|int|Literal['max_period_end', 'min_period_end']" + "Literal['']|int|Literal['max_billed_until', 'max_period_end', 'min_period_end']" ] """ A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. @@ -88,7 +88,7 @@ class SubscriptionModifyParams(RequestOptions): "Literal['']|List[SubscriptionModifyParamsDiscount]" ] """ - The coupons to redeem into discounts for the subscription. If not specified or empty, inherits the discount from the subscription's customer. + The coupons to redeem into discounts for the subscription. A populated array overwrites the existing discounts on the subscription. If not specified or empty array, it leaves the subscription's discounts unchanged. If empty string, it clears the subscription's discounts. """ expand: NotRequired[List[str]] """ @@ -131,13 +131,7 @@ class SubscriptionModifyParams(RequestOptions): ] ] """ - Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - - Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. """ payment_settings: NotRequired["SubscriptionModifyParamsPaymentSettings"] """ @@ -184,6 +178,10 @@ class SubscriptionModifyParams(RequestOptions): class SubscriptionModifyParamsAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List["SubscriptionModifyParamsAddInvoiceItemDiscount"] ] @@ -793,7 +791,7 @@ class SubscriptionModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration @@ -889,6 +887,12 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. """ + wechat_pay: NotRequired[ + "Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay" + ] + """ + This sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent. + """ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit( @@ -1254,6 +1258,19 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi """ +class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay( + TypedDict, +): + app_id: NotRequired[str] + """ + The app ID registered with WeChat Pay. Only required when client is `ios` or `android`. + """ + client: NotRequired[Literal["android", "ios", "mobile_web", "web"]] + """ + The client type that the end customer will pay from. + """ + + class SubscriptionModifyParamsPendingInvoiceItemInterval(TypedDict): interval: Literal["day", "month", "week", "year"] """ diff --git a/stripe/params/_subscription_resume_params.py b/stripe/params/_subscription_resume_params.py index e1ad4a625..5fdfc6f66 100644 --- a/stripe/params/_subscription_resume_params.py +++ b/stripe/params/_subscription_resume_params.py @@ -14,6 +14,12 @@ class SubscriptionResumeParams(RequestOptions): """ Specifies which fields in the response should be expanded. """ + payment_behavior: NotRequired[ + Literal["resume_on_payment_attempt", "resume_on_payment_success"] + ] + """ + Controls whether Stripe attempts payment on the resumption invoice in the resume request, and how payment on that invoice affects the subscription's status. The default is `resume_on_payment_attempt`. + """ proration_behavior: NotRequired[ Literal["always_invoice", "create_prorations", "none"] ] diff --git a/stripe/params/_subscription_schedule_create_params.py b/stripe/params/_subscription_schedule_create_params.py index db60bf100..9192621b0 100644 --- a/stripe/params/_subscription_schedule_create_params.py +++ b/stripe/params/_subscription_schedule_create_params.py @@ -413,6 +413,10 @@ class SubscriptionScheduleCreateParamsPhase(TypedDict): class SubscriptionScheduleCreateParamsPhaseAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List["SubscriptionScheduleCreateParamsPhaseAddInvoiceItemDiscount"] ] diff --git a/stripe/params/_subscription_schedule_modify_params.py b/stripe/params/_subscription_schedule_modify_params.py index 4ddd14192..04162a13d 100644 --- a/stripe/params/_subscription_schedule_modify_params.py +++ b/stripe/params/_subscription_schedule_modify_params.py @@ -385,6 +385,10 @@ class SubscriptionScheduleModifyParamsPhase(TypedDict): class SubscriptionScheduleModifyParamsPhaseAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List["SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscount"] ] diff --git a/stripe/params/_subscription_schedule_update_params.py b/stripe/params/_subscription_schedule_update_params.py index 3e3fa5b21..f33f73e2e 100644 --- a/stripe/params/_subscription_schedule_update_params.py +++ b/stripe/params/_subscription_schedule_update_params.py @@ -384,6 +384,10 @@ class SubscriptionScheduleUpdateParamsPhase(TypedDict): class SubscriptionScheduleUpdateParamsPhaseAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List["SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscount"] ] diff --git a/stripe/params/_subscription_update_params.py b/stripe/params/_subscription_update_params.py index 0330887bb..352d86e58 100644 --- a/stripe/params/_subscription_update_params.py +++ b/stripe/params/_subscription_update_params.py @@ -42,7 +42,7 @@ class SubscriptionUpdateParams(TypedDict): Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. """ cancel_at: NotRequired[ - "Literal['']|int|Literal['max_period_end', 'min_period_end']" + "Literal['']|int|Literal['max_billed_until', 'max_period_end', 'min_period_end']" ] """ A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. @@ -87,7 +87,7 @@ class SubscriptionUpdateParams(TypedDict): "Literal['']|List[SubscriptionUpdateParamsDiscount]" ] """ - The coupons to redeem into discounts for the subscription. If not specified or empty, inherits the discount from the subscription's customer. + The coupons to redeem into discounts for the subscription. A populated array overwrites the existing discounts on the subscription. If not specified or empty array, it leaves the subscription's discounts unchanged. If empty string, it clears the subscription's discounts. """ expand: NotRequired[List[str]] """ @@ -130,13 +130,7 @@ class SubscriptionUpdateParams(TypedDict): ] ] """ - Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - - Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. """ payment_settings: NotRequired["SubscriptionUpdateParamsPaymentSettings"] """ @@ -183,6 +177,10 @@ class SubscriptionUpdateParams(TypedDict): class SubscriptionUpdateParamsAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List["SubscriptionUpdateParamsAddInvoiceItemDiscount"] ] @@ -792,7 +790,7 @@ class SubscriptionUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration @@ -888,6 +886,12 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. """ + wechat_pay: NotRequired[ + "Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay" + ] + """ + This sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent. + """ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit( @@ -1253,6 +1257,19 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi """ +class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay( + TypedDict, +): + app_id: NotRequired[str] + """ + The app ID registered with WeChat Pay. Only required when client is `ios` or `android`. + """ + client: NotRequired[Literal["android", "ios", "mobile_web", "web"]] + """ + The client type that the end customer will pay from. + """ + + class SubscriptionUpdateParamsPendingInvoiceItemInterval(TypedDict): interval: Literal["day", "month", "week", "year"] """ diff --git a/stripe/params/_webhook_endpoint_create_params.py b/stripe/params/_webhook_endpoint_create_params.py index 5f20bb3a3..cfcfbf419 100644 --- a/stripe/params/_webhook_endpoint_create_params.py +++ b/stripe/params/_webhook_endpoint_create_params.py @@ -132,6 +132,7 @@ class WebhookEndpointCreateParams(RequestOptions): "2026-02-25.clover", "2026-03-25.dahlia", "2026-04-22.dahlia", + "2026-05-27.dahlia", ] ] """ @@ -443,6 +444,7 @@ class WebhookEndpointCreateParams(RequestOptions): "treasury.received_debit.created", "invoice_payment.detached", "billing.alert.recovered", + "payment_intent.expired", "billing.credit_balance_transaction.created", "billing.credit_grant.updated", "billing.meter.created", diff --git a/stripe/params/_webhook_endpoint_modify_params.py b/stripe/params/_webhook_endpoint_modify_params.py index c11eb8ef4..76e4853c9 100644 --- a/stripe/params/_webhook_endpoint_modify_params.py +++ b/stripe/params/_webhook_endpoint_modify_params.py @@ -314,6 +314,7 @@ class WebhookEndpointModifyParams(RequestOptions): "treasury.received_debit.created", "invoice_payment.detached", "billing.alert.recovered", + "payment_intent.expired", "billing.credit_balance_transaction.created", "billing.credit_grant.updated", "billing.meter.created", diff --git a/stripe/params/_webhook_endpoint_update_params.py b/stripe/params/_webhook_endpoint_update_params.py index 67b828e3a..e02d81ac9 100644 --- a/stripe/params/_webhook_endpoint_update_params.py +++ b/stripe/params/_webhook_endpoint_update_params.py @@ -313,6 +313,7 @@ class WebhookEndpointUpdateParams(TypedDict): "treasury.received_debit.created", "invoice_payment.detached", "billing.alert.recovered", + "payment_intent.expired", "billing.credit_balance_transaction.created", "billing.credit_grant.updated", "billing.meter.created", diff --git a/stripe/params/billing/_alert_create_params.py b/stripe/params/billing/_alert_create_params.py index c227ab743..8669c2da9 100644 --- a/stripe/params/billing/_alert_create_params.py +++ b/stripe/params/billing/_alert_create_params.py @@ -172,7 +172,9 @@ class AlertCreateParamsSpendThreshold(TypedDict): """ Filters to scope the spend calculation. """ - group_by: NotRequired[Literal["pricing_plan_subscription"]] + group_by: NotRequired[ + Literal["billing_cadence", "pricing_plan_subscription"] + ] """ Defines the granularity of spend aggregation. Defaults to `pricing_plan_subscription`. """ diff --git a/stripe/params/checkout/__init__.py b/stripe/params/checkout/__init__.py index 040908231..ac2964bfa 100644 --- a/stripe/params/checkout/__init__.py +++ b/stripe/params/checkout/__init__.py @@ -118,6 +118,7 @@ SessionCreateParamsPaymentMethodOptionsRevolutPay as SessionCreateParamsPaymentMethodOptionsRevolutPay, SessionCreateParamsPaymentMethodOptionsSamsungPay as SessionCreateParamsPaymentMethodOptionsSamsungPay, SessionCreateParamsPaymentMethodOptionsSatispay as SessionCreateParamsPaymentMethodOptionsSatispay, + SessionCreateParamsPaymentMethodOptionsScalapay as SessionCreateParamsPaymentMethodOptionsScalapay, SessionCreateParamsPaymentMethodOptionsSepaDebit as SessionCreateParamsPaymentMethodOptionsSepaDebit, SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions, SessionCreateParamsPaymentMethodOptionsSofort as SessionCreateParamsPaymentMethodOptionsSofort, @@ -678,6 +679,10 @@ "stripe.params.checkout._session_create_params", False, ), + "SessionCreateParamsPaymentMethodOptionsScalapay": ( + "stripe.params.checkout._session_create_params", + False, + ), "SessionCreateParamsPaymentMethodOptionsSepaDebit": ( "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 ac67708b7..eb301e63d 100644 --- a/stripe/params/checkout/_session_create_params.py +++ b/stripe/params/checkout/_session_create_params.py @@ -14,7 +14,7 @@ class SessionCreateParams(RequestOptions): """ after_expiration: NotRequired["SessionCreateParamsAfterExpiration"] """ - Configure actions after a Checkout Session has expired. You can't set this parameter if `ui_mode` is `custom`. + Configure actions after a Checkout Session has expired. You can't set this parameter if `ui_mode` is `elements`. """ allow_promotion_codes: NotRequired[bool] """ @@ -42,11 +42,11 @@ class SessionCreateParams(RequestOptions): """ branding_settings: NotRequired["SessionCreateParamsBrandingSettings"] """ - The branding settings for the Checkout Session. This parameter is not allowed if ui_mode is `custom`. + The branding settings for the Checkout Session. This parameter is not allowed if ui_mode is `elements`. """ cancel_url: NotRequired[str] """ - If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded` or `custom`. + If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded_page` or `elements`. """ client_reference_id: NotRequired[str] """ @@ -137,6 +137,7 @@ class SessionCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -173,6 +174,7 @@ class SessionCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -297,7 +299,7 @@ class SessionCreateParams(RequestOptions): """ origin_context: NotRequired[Literal["mobile_app", "web"]] """ - Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter if `ui_mode` is `custom`. + Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter if `ui_mode` is `elements`. """ payment_intent_data: NotRequired["SessionCreateParamsPaymentIntentData"] """ @@ -339,6 +341,7 @@ class SessionCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -376,6 +379,7 @@ class SessionCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -421,12 +425,12 @@ class SessionCreateParams(RequestOptions): Literal["always", "if_required", "never"] ] """ - This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. + This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. """ return_url: NotRequired[str] """ The URL to redirect your customer back to after they authenticate or cancel their payment on the - payment method's app or site. This parameter is required if `ui_mode` is `embedded` or `custom` + payment method's app or site. This parameter is required if `ui_mode` is `embedded_page` or `elements` and redirect-based payment methods are enabled on the session. """ saved_payment_method_options: NotRequired[ @@ -457,7 +461,7 @@ class SessionCreateParams(RequestOptions): to customize relevant text on the page, such as the submit button. `submit_type` can only be specified on Checkout Sessions in `payment` or `subscription` mode. If blank or `auto`, `pay` is used. - You can't set this parameter if `ui_mode` is `custom`. + You can't set this parameter if `ui_mode` is `elements`. """ subscription_data: NotRequired["SessionCreateParamsSubscriptionData"] """ @@ -467,7 +471,7 @@ class SessionCreateParams(RequestOptions): """ The URL to which Stripe should send customers when payment or setup is complete. - This parameter is not allowed if ui_mode is `embedded` or `custom`. If you'd like to use + This parameter is not allowed if ui_mode is `embedded_page` or `elements`. If you'd like to use information from the successful Checkout Session on your page, read the guide on [customizing your success page](https://docs.stripe.com/payments/checkout/custom-success-page). """ @@ -479,7 +483,7 @@ class SessionCreateParams(RequestOptions): Literal["elements", "embedded_page", "form", "hosted_page"] ] """ - The UI mode of the Session. Defaults to `hosted`. + The UI mode of the Session. Defaults to `hosted_page`. """ wallet_options: NotRequired["SessionCreateParamsWalletOptions"] """ @@ -632,7 +636,7 @@ class SessionCreateParamsConsentCollection(TypedDict): """ If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout Session will determine whether to display an option to opt into promotional communication - from the merchant depending on the customer's locale. Only available to US merchants. + from the merchant depending on the customer's locale. Only available to US merchants and US customers. """ terms_of_service: NotRequired[Literal["none", "required"]] """ @@ -1303,7 +1307,7 @@ class SessionCreateParamsPaymentMethodData(TypedDict): class SessionCreateParamsPaymentMethodOptions(TypedDict): acss_debit: NotRequired["SessionCreateParamsPaymentMethodOptionsAcssDebit"] """ - contains details about the ACSS Debit payment method options. You can't set this parameter if `ui_mode` is `custom`. + contains details about the ACSS Debit payment method options. You can't set this parameter if `ui_mode` is `elements`. """ affirm: NotRequired["SessionCreateParamsPaymentMethodOptionsAffirm"] """ @@ -1419,7 +1423,7 @@ class SessionCreateParamsPaymentMethodOptions(TypedDict): """ link: NotRequired["SessionCreateParamsPaymentMethodOptionsLink"] """ - contains details about the Link payment method options. + contains details about the Link payment method options (Link is also known as Onelink in the UK). """ mobilepay: NotRequired["SessionCreateParamsPaymentMethodOptionsMobilepay"] """ @@ -1485,6 +1489,10 @@ class SessionCreateParamsPaymentMethodOptions(TypedDict): """ contains details about the Satispay payment method options. """ + scalapay: NotRequired["SessionCreateParamsPaymentMethodOptionsScalapay"] + """ + contains details about the Scalapay payment method options. + """ sepa_debit: NotRequired["SessionCreateParamsPaymentMethodOptionsSepaDebit"] """ contains details about the Sepa Debit payment method options. @@ -1861,7 +1869,7 @@ class SessionCreateParamsPaymentMethodOptionsCardRestrictions(TypedDict): ] ] """ - Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. + The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. """ @@ -2488,6 +2496,13 @@ class SessionCreateParamsPaymentMethodOptionsSatispay(TypedDict): """ +class SessionCreateParamsPaymentMethodOptionsScalapay(TypedDict): + capture_method: NotRequired[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + + class SessionCreateParamsPaymentMethodOptionsSepaDebit(TypedDict): mandate_options: NotRequired[ "SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions" @@ -2543,7 +2558,7 @@ class SessionCreateParamsPaymentMethodOptionsSwish(TypedDict): class SessionCreateParamsPaymentMethodOptionsTwint(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3125,7 +3140,7 @@ class SessionCreateParamsSubscriptionData(TypedDict): """ billing_cycle_anchor: NotRequired[int] """ - A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `custom`. + A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `elements`. """ billing_mode: NotRequired["SessionCreateParamsSubscriptionDataBillingMode"] """ @@ -3279,7 +3294,7 @@ class SessionCreateParamsTaxIdCollection(TypedDict): class SessionCreateParamsWalletOptions(TypedDict): link: NotRequired["SessionCreateParamsWalletOptionsLink"] """ - contains details about the Link wallet options. + contains details about the Link wallet options (Link is also known as Onelink in the UK). """ diff --git a/stripe/params/radar/__init__.py b/stripe/params/radar/__init__.py index 1c6e1a41a..11ecbb25e 100644 --- a/stripe/params/radar/__init__.py +++ b/stripe/params/radar/__init__.py @@ -38,15 +38,9 @@ ) from stripe.params.radar._customer_evaluation_modify_params import ( CustomerEvaluationModifyParams as CustomerEvaluationModifyParams, - CustomerEvaluationModifyParamsLoginFailed as CustomerEvaluationModifyParamsLoginFailed, - CustomerEvaluationModifyParamsRegistrationFailed as CustomerEvaluationModifyParamsRegistrationFailed, - CustomerEvaluationModifyParamsRegistrationSuccess as CustomerEvaluationModifyParamsRegistrationSuccess, ) from stripe.params.radar._customer_evaluation_update_params import ( CustomerEvaluationUpdateParams as CustomerEvaluationUpdateParams, - CustomerEvaluationUpdateParamsLoginFailed as CustomerEvaluationUpdateParamsLoginFailed, - CustomerEvaluationUpdateParamsRegistrationFailed as CustomerEvaluationUpdateParamsRegistrationFailed, - CustomerEvaluationUpdateParamsRegistrationSuccess as CustomerEvaluationUpdateParamsRegistrationSuccess, ) from stripe.params.radar._early_fraud_warning_list_params import ( EarlyFraudWarningListParams as EarlyFraudWarningListParams, @@ -206,34 +200,10 @@ "stripe.params.radar._customer_evaluation_modify_params", False, ), - "CustomerEvaluationModifyParamsLoginFailed": ( - "stripe.params.radar._customer_evaluation_modify_params", - False, - ), - "CustomerEvaluationModifyParamsRegistrationFailed": ( - "stripe.params.radar._customer_evaluation_modify_params", - False, - ), - "CustomerEvaluationModifyParamsRegistrationSuccess": ( - "stripe.params.radar._customer_evaluation_modify_params", - False, - ), "CustomerEvaluationUpdateParams": ( "stripe.params.radar._customer_evaluation_update_params", False, ), - "CustomerEvaluationUpdateParamsLoginFailed": ( - "stripe.params.radar._customer_evaluation_update_params", - False, - ), - "CustomerEvaluationUpdateParamsRegistrationFailed": ( - "stripe.params.radar._customer_evaluation_update_params", - False, - ), - "CustomerEvaluationUpdateParamsRegistrationSuccess": ( - "stripe.params.radar._customer_evaluation_update_params", - False, - ), "EarlyFraudWarningListParams": ( "stripe.params.radar._early_fraud_warning_list_params", False, diff --git a/stripe/params/radar/_customer_evaluation_modify_params.py b/stripe/params/radar/_customer_evaluation_modify_params.py index 2eed6668d..d737733ac 100644 --- a/stripe/params/radar/_customer_evaluation_modify_params.py +++ b/stripe/params/radar/_customer_evaluation_modify_params.py @@ -2,7 +2,7 @@ # File generated from our OpenAPI spec from stripe._request_options import RequestOptions from typing import List -from typing_extensions import Literal, NotRequired, TypedDict +from typing_extensions import Literal, NotRequired class CustomerEvaluationModifyParams(RequestOptions): @@ -14,55 +14,7 @@ class CustomerEvaluationModifyParams(RequestOptions): """ Specifies which fields in the response should be expanded. """ - login_failed: NotRequired["CustomerEvaluationModifyParamsLoginFailed"] - """ - Data for a failed login event. - """ - registration_failed: NotRequired[ - "CustomerEvaluationModifyParamsRegistrationFailed" - ] - """ - Data for a failed registration event. - """ - registration_success: NotRequired[ - "CustomerEvaluationModifyParamsRegistrationSuccess" - ] - """ - Data for a successful registration event. - """ status: NotRequired[Literal["allowed", "blocked", "restricted"]] """ The outcome status of the evaluation: allowed, restricted, or blocked. """ - type: NotRequired[ - Literal[ - "login_failed", - "login_success", - "registration_failed", - "registration_success", - ] - ] - """ - The type of event to report on the customer evaluation. - """ - - -class CustomerEvaluationModifyParamsLoginFailed(TypedDict): - reason: Literal["other", "suspected_account_sharing"] - """ - The reason why this login failed. - """ - - -class CustomerEvaluationModifyParamsRegistrationFailed(TypedDict): - reason: Literal["other", "suspected_multi_accounting"] - """ - The reason why this registration failed. - """ - - -class CustomerEvaluationModifyParamsRegistrationSuccess(TypedDict): - customer: NotRequired[str] - """ - The ID of a Customer to attach to an entity-less registration evaluation. - """ diff --git a/stripe/params/radar/_customer_evaluation_update_params.py b/stripe/params/radar/_customer_evaluation_update_params.py index b086799da..be8c3329c 100644 --- a/stripe/params/radar/_customer_evaluation_update_params.py +++ b/stripe/params/radar/_customer_evaluation_update_params.py @@ -13,55 +13,7 @@ class CustomerEvaluationUpdateParams(TypedDict): """ Specifies which fields in the response should be expanded. """ - login_failed: NotRequired["CustomerEvaluationUpdateParamsLoginFailed"] - """ - Data for a failed login event. - """ - registration_failed: NotRequired[ - "CustomerEvaluationUpdateParamsRegistrationFailed" - ] - """ - Data for a failed registration event. - """ - registration_success: NotRequired[ - "CustomerEvaluationUpdateParamsRegistrationSuccess" - ] - """ - Data for a successful registration event. - """ status: NotRequired[Literal["allowed", "blocked", "restricted"]] """ The outcome status of the evaluation: allowed, restricted, or blocked. """ - type: NotRequired[ - Literal[ - "login_failed", - "login_success", - "registration_failed", - "registration_success", - ] - ] - """ - The type of event to report on the customer evaluation. - """ - - -class CustomerEvaluationUpdateParamsLoginFailed(TypedDict): - reason: Literal["other", "suspected_account_sharing"] - """ - The reason why this login failed. - """ - - -class CustomerEvaluationUpdateParamsRegistrationFailed(TypedDict): - reason: Literal["other", "suspected_multi_accounting"] - """ - The reason why this registration failed. - """ - - -class CustomerEvaluationUpdateParamsRegistrationSuccess(TypedDict): - customer: NotRequired[str] - """ - The ID of a Customer to attach to an entity-less registration evaluation. - """ diff --git a/stripe/params/terminal/__init__.py b/stripe/params/terminal/__init__.py index f5c5f4b54..89fb30f98 100644 --- a/stripe/params/terminal/__init__.py +++ b/stripe/params/terminal/__init__.py @@ -36,7 +36,11 @@ ConfigurationCreateParamsTippingSek as ConfigurationCreateParamsTippingSek, ConfigurationCreateParamsTippingSgd as ConfigurationCreateParamsTippingSgd, ConfigurationCreateParamsTippingUsd as ConfigurationCreateParamsTippingUsd, + ConfigurationCreateParamsVerifoneM425 as ConfigurationCreateParamsVerifoneM425, ConfigurationCreateParamsVerifoneP400 as ConfigurationCreateParamsVerifoneP400, + ConfigurationCreateParamsVerifoneP630 as ConfigurationCreateParamsVerifoneP630, + ConfigurationCreateParamsVerifoneUx700 as ConfigurationCreateParamsVerifoneUx700, + ConfigurationCreateParamsVerifoneV660p as ConfigurationCreateParamsVerifoneV660p, ConfigurationCreateParamsWifi as ConfigurationCreateParamsWifi, ConfigurationCreateParamsWifiEnterpriseEapPeap as ConfigurationCreateParamsWifiEnterpriseEapPeap, ConfigurationCreateParamsWifiEnterpriseEapTls as ConfigurationCreateParamsWifiEnterpriseEapTls, @@ -80,7 +84,11 @@ ConfigurationModifyParamsTippingSek as ConfigurationModifyParamsTippingSek, ConfigurationModifyParamsTippingSgd as ConfigurationModifyParamsTippingSgd, ConfigurationModifyParamsTippingUsd as ConfigurationModifyParamsTippingUsd, + ConfigurationModifyParamsVerifoneM425 as ConfigurationModifyParamsVerifoneM425, ConfigurationModifyParamsVerifoneP400 as ConfigurationModifyParamsVerifoneP400, + ConfigurationModifyParamsVerifoneP630 as ConfigurationModifyParamsVerifoneP630, + ConfigurationModifyParamsVerifoneUx700 as ConfigurationModifyParamsVerifoneUx700, + ConfigurationModifyParamsVerifoneV660p as ConfigurationModifyParamsVerifoneV660p, ConfigurationModifyParamsWifi as ConfigurationModifyParamsWifi, ConfigurationModifyParamsWifiEnterpriseEapPeap as ConfigurationModifyParamsWifiEnterpriseEapPeap, ConfigurationModifyParamsWifiEnterpriseEapTls as ConfigurationModifyParamsWifiEnterpriseEapTls, @@ -121,7 +129,11 @@ ConfigurationUpdateParamsTippingSek as ConfigurationUpdateParamsTippingSek, ConfigurationUpdateParamsTippingSgd as ConfigurationUpdateParamsTippingSgd, ConfigurationUpdateParamsTippingUsd as ConfigurationUpdateParamsTippingUsd, + ConfigurationUpdateParamsVerifoneM425 as ConfigurationUpdateParamsVerifoneM425, ConfigurationUpdateParamsVerifoneP400 as ConfigurationUpdateParamsVerifoneP400, + ConfigurationUpdateParamsVerifoneP630 as ConfigurationUpdateParamsVerifoneP630, + ConfigurationUpdateParamsVerifoneUx700 as ConfigurationUpdateParamsVerifoneUx700, + ConfigurationUpdateParamsVerifoneV660p as ConfigurationUpdateParamsVerifoneV660p, ConfigurationUpdateParamsWifi as ConfigurationUpdateParamsWifi, ConfigurationUpdateParamsWifiEnterpriseEapPeap as ConfigurationUpdateParamsWifiEnterpriseEapPeap, ConfigurationUpdateParamsWifiEnterpriseEapTls as ConfigurationUpdateParamsWifiEnterpriseEapTls, @@ -360,10 +372,26 @@ "stripe.params.terminal._configuration_create_params", False, ), + "ConfigurationCreateParamsVerifoneM425": ( + "stripe.params.terminal._configuration_create_params", + False, + ), "ConfigurationCreateParamsVerifoneP400": ( "stripe.params.terminal._configuration_create_params", False, ), + "ConfigurationCreateParamsVerifoneP630": ( + "stripe.params.terminal._configuration_create_params", + False, + ), + "ConfigurationCreateParamsVerifoneUx700": ( + "stripe.params.terminal._configuration_create_params", + False, + ), + "ConfigurationCreateParamsVerifoneV660p": ( + "stripe.params.terminal._configuration_create_params", + False, + ), "ConfigurationCreateParamsWifi": ( "stripe.params.terminal._configuration_create_params", False, @@ -512,10 +540,26 @@ "stripe.params.terminal._configuration_modify_params", False, ), + "ConfigurationModifyParamsVerifoneM425": ( + "stripe.params.terminal._configuration_modify_params", + False, + ), "ConfigurationModifyParamsVerifoneP400": ( "stripe.params.terminal._configuration_modify_params", False, ), + "ConfigurationModifyParamsVerifoneP630": ( + "stripe.params.terminal._configuration_modify_params", + False, + ), + "ConfigurationModifyParamsVerifoneUx700": ( + "stripe.params.terminal._configuration_modify_params", + False, + ), + "ConfigurationModifyParamsVerifoneV660p": ( + "stripe.params.terminal._configuration_modify_params", + False, + ), "ConfigurationModifyParamsWifi": ( "stripe.params.terminal._configuration_modify_params", False, @@ -660,10 +704,26 @@ "stripe.params.terminal._configuration_update_params", False, ), + "ConfigurationUpdateParamsVerifoneM425": ( + "stripe.params.terminal._configuration_update_params", + False, + ), "ConfigurationUpdateParamsVerifoneP400": ( "stripe.params.terminal._configuration_update_params", False, ), + "ConfigurationUpdateParamsVerifoneP630": ( + "stripe.params.terminal._configuration_update_params", + False, + ), + "ConfigurationUpdateParamsVerifoneUx700": ( + "stripe.params.terminal._configuration_update_params", + False, + ), + "ConfigurationUpdateParamsVerifoneV660p": ( + "stripe.params.terminal._configuration_update_params", + False, + ), "ConfigurationUpdateParamsWifi": ( "stripe.params.terminal._configuration_update_params", False, diff --git a/stripe/params/terminal/_configuration_create_params.py b/stripe/params/terminal/_configuration_create_params.py index c84ae175a..d62b7461f 100644 --- a/stripe/params/terminal/_configuration_create_params.py +++ b/stripe/params/terminal/_configuration_create_params.py @@ -52,10 +52,26 @@ class ConfigurationCreateParams(RequestOptions): """ Tipping configurations for readers that support on-reader tips. """ + verifone_m425: NotRequired["ConfigurationCreateParamsVerifoneM425"] + """ + An object containing device type specific settings for Verifone M425 readers. + """ verifone_p400: NotRequired["ConfigurationCreateParamsVerifoneP400"] """ An object containing device type specific settings for Verifone P400 readers. """ + verifone_p630: NotRequired["ConfigurationCreateParamsVerifoneP630"] + """ + An object containing device type specific settings for Verifone P630 readers. + """ + verifone_ux700: NotRequired["ConfigurationCreateParamsVerifoneUx700"] + """ + An object containing device type specific settings for Verifone UX700 readers. + """ + verifone_v660p: NotRequired["ConfigurationCreateParamsVerifoneV660p"] + """ + An object containing device type specific settings for Verifone V660p readers. + """ wifi: NotRequired["Literal['']|ConfigurationCreateParamsWifi"] """ Configurations for connecting to a WiFi network. @@ -524,6 +540,13 @@ class ConfigurationCreateParamsTippingUsd(TypedDict): """ +class ConfigurationCreateParamsVerifoneM425(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationCreateParamsVerifoneP400(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ @@ -531,6 +554,27 @@ class ConfigurationCreateParamsVerifoneP400(TypedDict): """ +class ConfigurationCreateParamsVerifoneP630(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + +class ConfigurationCreateParamsVerifoneUx700(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + +class ConfigurationCreateParamsVerifoneV660p(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationCreateParamsWifi(TypedDict): enterprise_eap_peap: NotRequired[ "ConfigurationCreateParamsWifiEnterpriseEapPeap" diff --git a/stripe/params/terminal/_configuration_modify_params.py b/stripe/params/terminal/_configuration_modify_params.py index 6d030d79e..cb4a0a550 100644 --- a/stripe/params/terminal/_configuration_modify_params.py +++ b/stripe/params/terminal/_configuration_modify_params.py @@ -58,12 +58,36 @@ class ConfigurationModifyParams(RequestOptions): """ Tipping configurations for readers that support on-reader tips. """ + verifone_m425: NotRequired[ + "Literal['']|ConfigurationModifyParamsVerifoneM425" + ] + """ + An object containing device type specific settings for Verifone M425 readers. + """ verifone_p400: NotRequired[ "Literal['']|ConfigurationModifyParamsVerifoneP400" ] """ An object containing device type specific settings for Verifone P400 readers. """ + verifone_p630: NotRequired[ + "Literal['']|ConfigurationModifyParamsVerifoneP630" + ] + """ + An object containing device type specific settings for Verifone P630 readers. + """ + verifone_ux700: NotRequired[ + "Literal['']|ConfigurationModifyParamsVerifoneUx700" + ] + """ + An object containing device type specific settings for Verifone UX700 readers. + """ + verifone_v660p: NotRequired[ + "Literal['']|ConfigurationModifyParamsVerifoneV660p" + ] + """ + An object containing device type specific settings for Verifone V660p readers. + """ wifi: NotRequired["Literal['']|ConfigurationModifyParamsWifi"] """ Configurations for connecting to a WiFi network. @@ -532,6 +556,13 @@ class ConfigurationModifyParamsTippingUsd(TypedDict): """ +class ConfigurationModifyParamsVerifoneM425(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationModifyParamsVerifoneP400(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ @@ -539,6 +570,27 @@ class ConfigurationModifyParamsVerifoneP400(TypedDict): """ +class ConfigurationModifyParamsVerifoneP630(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + +class ConfigurationModifyParamsVerifoneUx700(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + +class ConfigurationModifyParamsVerifoneV660p(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationModifyParamsWifi(TypedDict): enterprise_eap_peap: NotRequired[ "ConfigurationModifyParamsWifiEnterpriseEapPeap" diff --git a/stripe/params/terminal/_configuration_update_params.py b/stripe/params/terminal/_configuration_update_params.py index 59721a7ec..9ff889662 100644 --- a/stripe/params/terminal/_configuration_update_params.py +++ b/stripe/params/terminal/_configuration_update_params.py @@ -57,12 +57,36 @@ class ConfigurationUpdateParams(TypedDict): """ Tipping configurations for readers that support on-reader tips. """ + verifone_m425: NotRequired[ + "Literal['']|ConfigurationUpdateParamsVerifoneM425" + ] + """ + An object containing device type specific settings for Verifone M425 readers. + """ verifone_p400: NotRequired[ "Literal['']|ConfigurationUpdateParamsVerifoneP400" ] """ An object containing device type specific settings for Verifone P400 readers. """ + verifone_p630: NotRequired[ + "Literal['']|ConfigurationUpdateParamsVerifoneP630" + ] + """ + An object containing device type specific settings for Verifone P630 readers. + """ + verifone_ux700: NotRequired[ + "Literal['']|ConfigurationUpdateParamsVerifoneUx700" + ] + """ + An object containing device type specific settings for Verifone UX700 readers. + """ + verifone_v660p: NotRequired[ + "Literal['']|ConfigurationUpdateParamsVerifoneV660p" + ] + """ + An object containing device type specific settings for Verifone V660p readers. + """ wifi: NotRequired["Literal['']|ConfigurationUpdateParamsWifi"] """ Configurations for connecting to a WiFi network. @@ -531,6 +555,13 @@ class ConfigurationUpdateParamsTippingUsd(TypedDict): """ +class ConfigurationUpdateParamsVerifoneM425(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationUpdateParamsVerifoneP400(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ @@ -538,6 +569,27 @@ class ConfigurationUpdateParamsVerifoneP400(TypedDict): """ +class ConfigurationUpdateParamsVerifoneP630(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + +class ConfigurationUpdateParamsVerifoneUx700(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + +class ConfigurationUpdateParamsVerifoneV660p(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationUpdateParamsWifi(TypedDict): enterprise_eap_peap: NotRequired[ "ConfigurationUpdateParamsWifiEnterpriseEapPeap" diff --git a/stripe/params/terminal/_reader_list_params.py b/stripe/params/terminal/_reader_list_params.py index e39cb2d36..cef8d2c9f 100644 --- a/stripe/params/terminal/_reader_list_params.py +++ b/stripe/params/terminal/_reader_list_params.py @@ -14,11 +14,19 @@ class ReaderListParams(RequestOptions): "mobile_phone_reader", "simulated_stripe_s700", "simulated_stripe_s710", + "simulated_verifone_m425", + "simulated_verifone_p630", + "simulated_verifone_ux700", + "simulated_verifone_v660p", "simulated_wisepos_e", "stripe_m2", "stripe_s700", "stripe_s710", "verifone_P400", + "verifone_m425", + "verifone_p630", + "verifone_ux700", + "verifone_v660p", ] ] """ diff --git a/stripe/params/test_helpers/__init__.py b/stripe/params/test_helpers/__init__.py index fd735235f..2593db9a5 100644 --- a/stripe/params/test_helpers/__init__.py +++ b/stripe/params/test_helpers/__init__.py @@ -26,6 +26,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataBillie as ConfirmationTokenCreateParamsPaymentMethodDataBillie, ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails as ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails, ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress as ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress, + ConfirmationTokenCreateParamsPaymentMethodDataBizum as ConfirmationTokenCreateParamsPaymentMethodDataBizum, ConfirmationTokenCreateParamsPaymentMethodDataBlik as ConfirmationTokenCreateParamsPaymentMethodDataBlik, ConfirmationTokenCreateParamsPaymentMethodDataBoleto as ConfirmationTokenCreateParamsPaymentMethodDataBoleto, ConfirmationTokenCreateParamsPaymentMethodDataCashapp as ConfirmationTokenCreateParamsPaymentMethodDataCashapp, @@ -68,6 +69,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay as ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay, ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay as ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay, ConfirmationTokenCreateParamsPaymentMethodDataSatispay as ConfirmationTokenCreateParamsPaymentMethodDataSatispay, + ConfirmationTokenCreateParamsPaymentMethodDataScalapay as ConfirmationTokenCreateParamsPaymentMethodDataScalapay, ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit as ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit, ConfirmationTokenCreateParamsPaymentMethodDataShopeepay as ConfirmationTokenCreateParamsPaymentMethodDataShopeepay, ConfirmationTokenCreateParamsPaymentMethodDataSofort as ConfirmationTokenCreateParamsPaymentMethodDataSofort, @@ -175,6 +177,10 @@ "stripe.params.test_helpers._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataBizum": ( + "stripe.params.test_helpers._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataBlik": ( "stripe.params.test_helpers._confirmation_token_create_params", False, @@ -343,6 +349,10 @@ "stripe.params.test_helpers._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataScalapay": ( + "stripe.params.test_helpers._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit": ( "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 d3a1f31dd..dc07d12a8 100644 --- a/stripe/params/test_helpers/_confirmation_token_create_params.py +++ b/stripe/params/test_helpers/_confirmation_token_create_params.py @@ -105,6 +105,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -199,7 +203,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ link: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataMbWay"] """ @@ -311,6 +315,12 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired[ + "ConfirmationTokenCreateParamsPaymentMethodDataScalapay" + ] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit" ] @@ -360,6 +370,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -398,6 +409,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -556,6 +568,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress( """ +class ConfirmationTokenCreateParamsPaymentMethodDataBizum(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataBlik(TypedDict): pass @@ -920,6 +936,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataSatispay(TypedDict): pass +class ConfirmationTokenCreateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ diff --git a/stripe/params/test_helpers/_test_clock_create_params.py b/stripe/params/test_helpers/_test_clock_create_params.py index 9375ca502..c52e78948 100644 --- a/stripe/params/test_helpers/_test_clock_create_params.py +++ b/stripe/params/test_helpers/_test_clock_create_params.py @@ -6,6 +6,10 @@ class TestClockCreateParams(RequestOptions): + customer: NotRequired[str] + """ + Existing customer this test clock will be attached to. Once attached, customers can't be removed from a test clock. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. diff --git a/stripe/params/v2/core/__init__.py b/stripe/params/v2/core/__init__.py index 8a718d9e2..845c3b240 100644 --- a/stripe/params/v2/core/__init__.py +++ b/stripe/params/v2/core/__init__.py @@ -232,7 +232,9 @@ AccountCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack as AccountCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack, AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfAddress as AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfAddress, AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration as AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration, + AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner as AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner, AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership as AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership, + AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner as AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner, AccountCreateParamsIdentityBusinessDetailsIdNumber as AccountCreateParamsIdentityBusinessDetailsIdNumber, AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue as AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue, AccountCreateParamsIdentityBusinessDetailsRegistrationDate as AccountCreateParamsIdentityBusinessDetailsRegistrationDate, @@ -337,7 +339,9 @@ AccountTokenCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack, AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfAddress as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfAddress, AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration, + AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner, AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership, + AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner, AccountTokenCreateParamsIdentityBusinessDetailsIdNumber as AccountTokenCreateParamsIdentityBusinessDetailsIdNumber, AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue as AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue, AccountTokenCreateParamsIdentityBusinessDetailsRegistrationDate as AccountTokenCreateParamsIdentityBusinessDetailsRegistrationDate, @@ -596,7 +600,9 @@ AccountUpdateParamsIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack as AccountUpdateParamsIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack, AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfAddress as AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfAddress, AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistration as AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistration, + AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner as AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner, AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership as AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership, + AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner as AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner, AccountUpdateParamsIdentityBusinessDetailsIdNumber as AccountUpdateParamsIdentityBusinessDetailsIdNumber, AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue as AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue, AccountUpdateParamsIdentityBusinessDetailsRegistrationDate as AccountUpdateParamsIdentityBusinessDetailsRegistrationDate, @@ -1620,10 +1626,18 @@ "stripe.params.v2.core._account_create_params", False, ), + "AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner": ( + "stripe.params.v2.core._account_create_params", + False, + ), "AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership": ( "stripe.params.v2.core._account_create_params", False, ), + "AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner": ( + "stripe.params.v2.core._account_create_params", + False, + ), "AccountCreateParamsIdentityBusinessDetailsIdNumber": ( "stripe.params.v2.core._account_create_params", False, @@ -1997,10 +2011,18 @@ "stripe.params.v2.core._account_token_create_params", False, ), + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership": ( "stripe.params.v2.core._account_token_create_params", False, ), + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), "AccountTokenCreateParamsIdentityBusinessDetailsIdNumber": ( "stripe.params.v2.core._account_token_create_params", False, @@ -3017,10 +3039,18 @@ "stripe.params.v2.core._account_update_params", False, ), + "AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner": ( + "stripe.params.v2.core._account_update_params", + False, + ), "AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership": ( "stripe.params.v2.core._account_update_params", False, ), + "AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner": ( + "stripe.params.v2.core._account_update_params", + False, + ), "AccountUpdateParamsIdentityBusinessDetailsIdNumber": ( "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 55434e858..9f000c9f9 100644 --- a/stripe/params/v2/core/_account_create_params.py +++ b/stripe/params/v2/core/_account_create_params.py @@ -3908,12 +3908,27 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration( """ One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. """ + signer: NotRequired[ + "AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner" + ] + """ + Person that is signing the document. + """ type: Literal["files"] """ The format of the document. Currently supports `files` only. """ +class AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner( + TypedDict, +): + person: str + """ + Person signing the document. + """ + + class AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership( TypedDict, ): @@ -3921,12 +3936,27 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBenefici """ One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. """ + signer: NotRequired[ + "AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner" + ] + """ + Person that is signing the document. + """ type: Literal["files"] """ The format of the document. Currently supports `files` only. """ +class AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner( + TypedDict, +): + person: str + """ + Person signing the document. + """ + + class AccountCreateParamsIdentityBusinessDetailsIdNumber(TypedDict): registrar: NotRequired[str] """ diff --git a/stripe/params/v2/core/_account_token_create_params.py b/stripe/params/v2/core/_account_token_create_params.py index e3cef9174..547eb2ac9 100644 --- a/stripe/params/v2/core/_account_token_create_params.py +++ b/stripe/params/v2/core/_account_token_create_params.py @@ -660,7 +660,7 @@ class AccountTokenCreateParamsIdentityBusinessDetailsDocuments(TypedDict): "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration" ] """ - One or more documents showing the company's proof of registration with the national business registry. + One or more documents that demonstrate proof of ultimate beneficial ownership. """ proof_of_ultimate_beneficial_ownership: NotRequired[ "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership" @@ -794,12 +794,27 @@ class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistratio """ One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. """ + signer: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner" + ] + """ + Person that is signing the document. + """ type: Literal["files"] """ The format of the document. Currently supports `files` only. """ +class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner( + TypedDict, +): + person: str + """ + Person signing the document. + """ + + class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership( TypedDict, ): @@ -807,12 +822,27 @@ class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBen """ One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. """ + signer: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner" + ] + """ + Person that is signing the document. + """ type: Literal["files"] """ The format of the document. Currently supports `files` only. """ +class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner( + TypedDict, +): + person: str + """ + Person signing the document. + """ + + class AccountTokenCreateParamsIdentityBusinessDetailsIdNumber(TypedDict): registrar: NotRequired[str] """ diff --git a/stripe/params/v2/core/_account_update_params.py b/stripe/params/v2/core/_account_update_params.py index 73d22814a..3c851e4d4 100644 --- a/stripe/params/v2/core/_account_update_params.py +++ b/stripe/params/v2/core/_account_update_params.py @@ -3808,7 +3808,7 @@ class AccountUpdateParamsIdentityBusinessDetailsDocuments(TypedDict): "AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistration" ] """ - One or more documents showing the company's proof of registration with the national business registry. + One or more documents that demonstrate proof of ultimate beneficial ownership. """ proof_of_ultimate_beneficial_ownership: NotRequired[ "AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership" @@ -3942,12 +3942,27 @@ class AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistration( """ One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. """ + signer: NotRequired[ + "AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner" + ] + """ + Person that is signing the document. + """ type: Literal["files"] """ The format of the document. Currently supports `files` only. """ +class AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner( + TypedDict, +): + person: str + """ + Person signing the document. + """ + + class AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership( TypedDict, ): @@ -3955,12 +3970,27 @@ class AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBenefici """ One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. """ + signer: NotRequired[ + "AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner" + ] + """ + Person that is signing the document. + """ type: Literal["files"] """ The format of the document. Currently supports `files` only. """ +class AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner( + TypedDict, +): + person: str + """ + Person signing the document. + """ + + class AccountUpdateParamsIdentityBusinessDetailsIdNumber(TypedDict): registrar: NotRequired[str] """ diff --git a/stripe/params/v2/core/_batch_job_create_params.py b/stripe/params/v2/core/_batch_job_create_params.py index 6b642227a..f415670d9 100644 --- a/stripe/params/v2/core/_batch_job_create_params.py +++ b/stripe/params/v2/core/_batch_job_create_params.py @@ -38,17 +38,92 @@ class BatchJobCreateParamsEndpoint(TypedDict): """ path: Literal[ "/v1/accounts/:account", + "/v1/accounts", + "/v1/accounts/:account", + "/v1/coupons", + "/v1/coupons/:coupon", + "/v1/coupons/:coupon", "/v1/credit_notes", "/v1/customers/:customer", + "/v1/customers/:customer", + "/v1/customers", + "/v1/customers/:customer/discount", + "/v1/customers/:customer/funding_instructions", + "/v1/customers/:customer/subscriptions", + "/v1/customers/:customer/subscriptions", + "/v1/customers/:customer/subscriptions/:subscription_exposed_id", + "/v1/customers/:customer/subscriptions/:subscription_exposed_id/discount", + "/v1/customers/:customer/bank_accounts", + "/v1/customers/:customer/bank_accounts/:id", + "/v1/customers/:customer/bank_accounts/:id", + "/v1/customers/:customer/bank_accounts/:id/verify", + "/v1/customers/:customer/cards", + "/v1/customers/:customer/cards/:id", + "/v1/customers/:customer/cards/:id", + "/v1/customers/:customer/tax_ids", + "/v1/customers/:customer/sources", + "/v1/customers/:customer/sources/:id", + "/v1/customers/:customer/sources/:id", + "/v1/customers/:customer/sources/:id/verify", + "/v1/customers/:customer/balance_transactions", + "/v1/customers/:customer/balance_transactions/:transaction", + "/v1/customers/:customer/cash_balance", + "/v1/customer_sessions", + "/v1/disputes/:dispute/close", + "/v1/invoices", + "/v1/invoices/:invoice", "/v1/invoices/:invoice", "/v1/invoices/:invoice/pay", + "/v1/invoices/:invoice/send", + "/v1/invoices/:invoice/void", + "/v1/invoices/:invoice/finalize", + "/v1/invoices/:invoice/mark_uncollectible", + "/v1/invoices/:invoice/update_lines", + "/v1/invoices/:invoice/add_lines", + "/v1/invoices/:invoice/remove_lines", + "/v1/invoices/create_preview", + "/v1/invoices/:invoice/lines/:line_item_id", + "/v1/invoiceitems", + "/v1/invoiceitems/:invoiceitem", + "/v1/invoiceitems/:invoiceitem", + "/v1/invoice_rendering_templates/:template/archive", + "/v1/invoice_rendering_templates/:template/unarchive", + "/v1/payment_methods/:payment_method/attach", + "/v1/prices", + "/v1/prices/:price", + "/v1/products", + "/v1/products/:id", + "/v1/products/:id", + "/v1/products/:product/features", + "/v1/products/:product/features/:id", "/v1/promotion_codes", "/v1/promotion_codes/:promotion_code", + "/v1/radar/value_list_items", + "/v1/refunds", + "/v1/refunds/:refund/cancel", + "/v1/subscriptions/:subscription_exposed_id", "/v1/subscriptions/:subscription_exposed_id", "/v1/subscriptions/:subscription/migrate", + "/v1/subscriptions", + "/v1/subscriptions/:subscription/resume", + "/v1/subscriptions/:subscription/pause", + "/v1/subscription_items", + "/v1/subscription_items/:item", + "/v1/subscription_items/:item", "/v1/subscription_schedules", "/v1/subscription_schedules/:schedule", "/v1/subscription_schedules/:schedule/cancel", + "/v1/subscription_schedules/:schedule/release", + "/v1/tax/registrations", + "/v1/tax/registrations/:id", + "/v1/tax/settings", + "/v1/tax/transactions/create_reversal", + "/v1/tax_ids", + "/v1/tax_ids/:id", + "/v1/customers/:customer/tax_ids", + "/v1/customers/:customer/tax_ids/:id", + "/v1/tax_rates", + "/v1/tax_rates/:tax_rate", ] """ The path of the endpoint to run this batch job against. diff --git a/stripe/params/v2/data/analytics/_metric_query_create_params.py b/stripe/params/v2/data/analytics/_metric_query_create_params.py index 7734abca0..0d6f3f912 100644 --- a/stripe/params/v2/data/analytics/_metric_query_create_params.py +++ b/stripe/params/v2/data/analytics/_metric_query_create_params.py @@ -51,9 +51,9 @@ class MetricQueryCreateParams(TypedDict): class MetricQueryCreateParamsMetric(TypedDict): id: NotRequired[str] """ - The Gen6 ID for this metric, e.g. metric_61Sud3n5oAGVCWiSr5. + The ID for this metric, e.g. metric_61Sud3n5oAGVCWiSr5. """ name: NotRequired[str] """ - The common name for this metric, e.g. mrr_minor_units. + The common name for this metric, e.g. revenue.mrr. """ diff --git a/stripe/params/v2/iam/__init__.py b/stripe/params/v2/iam/__init__.py index cc18cc4da..2e3dd2a6a 100644 --- a/stripe/params/v2/iam/__init__.py +++ b/stripe/params/v2/iam/__init__.py @@ -7,6 +7,9 @@ from stripe.params.v2.iam._activity_log_list_params import ( ActivityLogListParams as ActivityLogListParams, ) + from stripe.params.v2.iam._activity_log_retrieve_params import ( + ActivityLogRetrieveParams as ActivityLogRetrieveParams, + ) from stripe.params.v2.iam._api_key_create_params import ( ApiKeyCreateParams as ApiKeyCreateParams, ApiKeyCreateParamsPublicKey as ApiKeyCreateParamsPublicKey, @@ -36,6 +39,10 @@ "stripe.params.v2.iam._activity_log_list_params", False, ), + "ActivityLogRetrieveParams": ( + "stripe.params.v2.iam._activity_log_retrieve_params", + False, + ), "ApiKeyCreateParams": ( "stripe.params.v2.iam._api_key_create_params", False, diff --git a/stripe/params/v2/iam/_activity_log_retrieve_params.py b/stripe/params/v2/iam/_activity_log_retrieve_params.py new file mode 100644 index 000000000..c0bb5d21e --- /dev/null +++ b/stripe/params/v2/iam/_activity_log_retrieve_params.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from typing_extensions import TypedDict + + +class ActivityLogRetrieveParams(TypedDict): + pass diff --git a/stripe/params/v2/test_helpers/_financial_address_credit_params.py b/stripe/params/v2/test_helpers/_financial_address_credit_params.py index 491e192aa..e45e8d5e8 100644 --- a/stripe/params/v2/test_helpers/_financial_address_credit_params.py +++ b/stripe/params/v2/test_helpers/_financial_address_credit_params.py @@ -10,7 +10,7 @@ class FinancialAddressCreditParams(TypedDict): Object containing the amount value and currency to credit. """ network: Literal[ - "ach", "acss", "fps", "rtp", "sepa_credit_transfer", "wire" + "ach", "acss", "chaps", "fps", "rtp", "sepa_credit_transfer", "wire" ] """ Open Enum. The network to use in simulating the funds flow. This will be the reflected in the resulting ReceivedCredit. diff --git a/stripe/product_catalog/_trial_offer.py b/stripe/product_catalog/_trial_offer.py index 40253cfe5..f154f5e52 100644 --- a/stripe/product_catalog/_trial_offer.py +++ b/stripe/product_catalog/_trial_offer.py @@ -15,8 +15,11 @@ class TrialOffer(CreateableAPIResource["TrialOffer"]): """ - Resource for the TrialOffer API, used to describe a subscription item's trial period settings. - Renders a TrialOffer object that describes the price, duration, end_behavior of a trial offer. + Trial offers let you define free or paid introductory pricing for a subscription item. + A TrialOffer specifies the price to charge during the trial, how long the trial lasts + (a fixed end timestamp or a number of billing intervals), and what price the subscription + item transitions to when the trial ends. You attach a TrialOffer to a subscription item + using `items[current_trial][trial_offer]` when creating or updating a subscription. """ OBJECT_NAME: ClassVar[Literal["product_catalog.trial_offer"]] = ( @@ -39,7 +42,7 @@ class Relative(StripeObject): class EndBehavior(StripeObject): class Transition(StripeObject): - price: str + price: ExpandableField["Price"] """ The new price to use at the end of the trial offer period. """ diff --git a/stripe/radar/_payment_evaluation.py b/stripe/radar/_payment_evaluation.py index fe9ba7c74..db4c0c833 100644 --- a/stripe/radar/_payment_evaluation.py +++ b/stripe/radar/_payment_evaluation.py @@ -544,7 +544,7 @@ class FraudulentPayment(StripeObject): """ recommended_action: Literal["block", "continue"] """ - Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block` and `continue`. + Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block`, `continue` and `request_three_d_secure`. """ signals: Signals """ diff --git a/stripe/radar/_value_list_item_service.py b/stripe/radar/_value_list_item_service.py index 306372726..808869076 100644 --- a/stripe/radar/_value_list_item_service.py +++ b/stripe/radar/_value_list_item_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -187,3 +190,25 @@ async def create_async( options=options, ), ) + + def serialize_batch_create( + self, + params: Optional["ValueListItemCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a ValueListItem create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/shared_payment/_granted_token.py b/stripe/shared_payment/_granted_token.py index 7879c64f0..092280df0 100644 --- a/stripe/shared_payment/_granted_token.py +++ b/stripe/shared_payment/_granted_token.py @@ -164,6 +164,9 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + class Bizum(StripeObject): + pass + class Blik(StripeObject): pass @@ -1073,6 +1076,9 @@ class SamsungPay(StripeObject): class Satispay(StripeObject): pass + class Scalapay(StripeObject): + pass + class SepaDebit(StripeObject): class GeneratedFrom(StripeObject): charge: Optional[ExpandableField["Charge"]] @@ -1259,6 +1265,7 @@ class Zip(StripeObject): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -1300,6 +1307,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] shopeepay: Optional[Shopeepay] sofort: Optional[Sofort] @@ -1318,6 +1326,7 @@ class Zip(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -1360,6 +1369,7 @@ class Zip(StripeObject): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -1391,6 +1401,7 @@ class Zip(StripeObject): "bancontact": Bancontact, "billie": Billie, "billing_details": BillingDetails, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -1432,6 +1443,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "shopeepay": Shopeepay, "sofort": Sofort, diff --git a/stripe/tax/_registration_service.py b/stripe/tax/_registration_service.py index a85fd5759..97cc68b99 100644 --- a/stripe/tax/_registration_service.py +++ b/stripe/tax/_registration_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -183,3 +186,49 @@ async def update_async( options=options, ), ) + + def serialize_batch_create( + self, + params: Optional["RegistrationCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Registration create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + + def serialize_batch_update( + self, + id: str, + params: Optional["RegistrationUpdateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Registration update request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": {"id": id}, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/tax/_settings_service.py b/stripe/tax/_settings_service.py index fa998167b..b553dd849 100644 --- a/stripe/tax/_settings_service.py +++ b/stripe/tax/_settings_service.py @@ -1,7 +1,10 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -89,3 +92,25 @@ async def update_async( options=options, ), ) + + def serialize_batch_update( + self, + params: Optional["SettingsUpdateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Settings update request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/tax/_transaction_service.py b/stripe/tax/_transaction_service.py index 83397d610..dc964f82c 100644 --- a/stripe/tax/_transaction_service.py +++ b/stripe/tax/_transaction_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from importlib import import_module from typing_extensions import TYPE_CHECKING @@ -171,3 +174,25 @@ async def create_reversal_async( options=options, ), ) + + def serialize_batch_create_reversal( + self, + params: Optional["TransactionCreateReversalParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Transaction create_reversal request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/terminal/_configuration.py b/stripe/terminal/_configuration.py index 5ac56a0f2..833ffb0d6 100644 --- a/stripe/terminal/_configuration.py +++ b/stripe/terminal/_configuration.py @@ -437,12 +437,36 @@ class Usd(StripeObject): "usd": Usd, } + class VerifoneM425(StripeObject): + splashscreen: Optional[ExpandableField["File"]] + """ + A File ID representing an image to display on the reader + """ + class VerifoneP400(StripeObject): splashscreen: Optional[ExpandableField["File"]] """ A File ID representing an image to display on the reader """ + class VerifoneP630(StripeObject): + splashscreen: Optional[ExpandableField["File"]] + """ + A File ID representing an image to display on the reader + """ + + class VerifoneUx700(StripeObject): + splashscreen: Optional[ExpandableField["File"]] + """ + A File ID representing an image to display on the reader + """ + + class VerifoneV660p(StripeObject): + splashscreen: Optional[ExpandableField["File"]] + """ + A File ID representing an image to display on the reader + """ + class Wifi(StripeObject): class EnterpriseEapPeap(StripeObject): ca_certificate_file: Optional[str] @@ -542,7 +566,11 @@ class PersonalPsk(StripeObject): stripe_s700: Optional[StripeS700] stripe_s710: Optional[StripeS710] tipping: Optional[Tipping] + verifone_m425: Optional[VerifoneM425] verifone_p400: Optional[VerifoneP400] + verifone_p630: Optional[VerifoneP630] + verifone_ux700: Optional[VerifoneUx700] + verifone_v660p: Optional[VerifoneV660p] wifi: Optional[Wifi] @classmethod @@ -781,6 +809,10 @@ async def retrieve_async( "stripe_s700": StripeS700, "stripe_s710": StripeS710, "tipping": Tipping, + "verifone_m425": VerifoneM425, "verifone_p400": VerifoneP400, + "verifone_p630": VerifoneP630, + "verifone_ux700": VerifoneUx700, + "verifone_v660p": VerifoneV660p, "wifi": Wifi, } diff --git a/stripe/terminal/_reader.py b/stripe/terminal/_reader.py index 5ef22edd3..7867ebaaa 100644 --- a/stripe/terminal/_reader.py +++ b/stripe/terminal/_reader.py @@ -9,15 +9,19 @@ from stripe._test_helpers import APIResourceTestHelpers from stripe._updateable_api_resource import UpdateableAPIResource from stripe._util import class_method_variant, sanitize_id -from typing import ClassVar, List, Optional, cast, overload +from typing import ClassVar, List, Optional, Union, cast, overload from typing_extensions import Literal, Type, Unpack, TYPE_CHECKING if TYPE_CHECKING: + from stripe._account import Account + from stripe._bank_account import BankAccount + from stripe._card import Card from stripe._charge import Charge from stripe._payment_intent import PaymentIntent from stripe._payment_method import PaymentMethod from stripe._refund import Refund from stripe._setup_intent import SetupIntent + from stripe._source import Source from stripe.params.terminal._reader_cancel_action_params import ( ReaderCancelActionParams, ) @@ -76,6 +80,306 @@ class Reader( OBJECT_NAME: ClassVar[Literal["terminal.reader"]] = "terminal.reader" class Action(StripeObject): + class ApiError(StripeObject): + advice_code: Optional[str] + """ + For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one. + """ + charge: Optional[str] + """ + For card errors, the ID of the failed charge. + """ + code: Optional[ + Literal[ + "account_closed", + "account_country_invalid_address", + "account_error_country_change_requires_additional_steps", + "account_information_mismatch", + "account_invalid", + "account_number_invalid", + "account_token_required_for_v2_account", + "acss_debit_session_incomplete", + "action_blocked", + "alipay_upgrade_required", + "amount_too_large", + "amount_too_small", + "api_key_expired", + "application_fees_not_allowed", + "approval_required", + "authentication_required", + "balance_insufficient", + "balance_invalid_parameter", + "bank_account_bad_routing_numbers", + "bank_account_declined", + "bank_account_exists", + "bank_account_restricted", + "bank_account_unusable", + "bank_account_unverified", + "bank_account_verification_failed", + "billing_invalid_mandate", + "bitcoin_upgrade_required", + "capture_charge_authorization_expired", + "capture_unauthorized_payment", + "card_decline_rate_limit_exceeded", + "card_declined", + "cardholder_phone_number_required", + "charge_already_captured", + "charge_already_refunded", + "charge_disputed", + "charge_exceeds_source_limit", + "charge_exceeds_transaction_limit", + "charge_expired_for_capture", + "charge_invalid_parameter", + "charge_not_refundable", + "clearing_code_unsupported", + "country_code_invalid", + "country_unsupported", + "coupon_expired", + "customer_max_payment_methods", + "customer_max_subscriptions", + "customer_session_expired", + "customer_tax_location_invalid", + "debit_not_authorized", + "email_invalid", + "expired_card", + "financial_connections_account_inactive", + "financial_connections_account_pending_account_numbers", + "financial_connections_account_unavailable_account_numbers", + "financial_connections_institution_unavailable", + "financial_connections_no_successful_transaction_refresh", + "forwarding_api_inactive", + "forwarding_api_invalid_parameter", + "forwarding_api_retryable_upstream_error", + "forwarding_api_upstream_connection_error", + "forwarding_api_upstream_connection_timeout", + "forwarding_api_upstream_error", + "idempotency_key_in_use", + "incorrect_address", + "incorrect_cvc", + "incorrect_number", + "incorrect_zip", + "india_recurring_payment_mandate_canceled", + "instant_payouts_config_disabled", + "instant_payouts_currency_disabled", + "instant_payouts_limit_exceeded", + "instant_payouts_unsupported", + "insufficient_funds", + "intent_invalid_state", + "intent_verification_method_missing", + "invalid_card_type", + "invalid_characters", + "invalid_charge_amount", + "invalid_cvc", + "invalid_expiry_month", + "invalid_expiry_year", + "invalid_mandate_reference_prefix_format", + "invalid_number", + "invalid_source_usage", + "invalid_tax_location", + "invoice_no_customer_line_items", + "invoice_no_payment_method_types", + "invoice_no_subscription_line_items", + "invoice_not_editable", + "invoice_on_behalf_of_not_editable", + "invoice_payment_intent_requires_action", + "invoice_upcoming_none", + "livemode_mismatch", + "lock_timeout", + "missing", + "no_account", + "not_allowed_on_standard_account", + "out_of_inventory", + "ownership_declaration_not_allowed", + "parameter_invalid_empty", + "parameter_invalid_integer", + "parameter_invalid_string_blank", + "parameter_invalid_string_empty", + "parameter_missing", + "parameter_unknown", + "parameters_exclusive", + "payment_intent_action_required", + "payment_intent_authentication_failure", + "payment_intent_incompatible_payment_method", + "payment_intent_invalid_parameter", + "payment_intent_konbini_rejected_confirmation_number", + "payment_intent_mandate_invalid", + "payment_intent_payment_attempt_expired", + "payment_intent_payment_attempt_failed", + "payment_intent_rate_limit_exceeded", + "payment_intent_unexpected_state", + "payment_method_bank_account_already_verified", + "payment_method_bank_account_blocked", + "payment_method_billing_details_address_missing", + "payment_method_configuration_failures", + "payment_method_currency_mismatch", + "payment_method_customer_decline", + "payment_method_invalid_parameter", + "payment_method_invalid_parameter_testmode", + "payment_method_microdeposit_failed", + "payment_method_microdeposit_processing_error", + "payment_method_microdeposit_verification_amounts_invalid", + "payment_method_microdeposit_verification_amounts_mismatch", + "payment_method_microdeposit_verification_attempts_exceeded", + "payment_method_microdeposit_verification_descriptor_code_mismatch", + "payment_method_microdeposit_verification_timeout", + "payment_method_not_available", + "payment_method_provider_decline", + "payment_method_provider_timeout", + "payment_method_unactivated", + "payment_method_unexpected_state", + "payment_method_unsupported_type", + "payout_reconciliation_not_ready", + "payouts_limit_exceeded", + "payouts_not_allowed", + "platform_account_required", + "platform_api_key_expired", + "postal_code_invalid", + "processing_error", + "product_inactive", + "progressive_onboarding_limit_exceeded", + "rate_limit", + "refer_to_customer", + "refund_disputed_payment", + "request_blocked", + "resource_already_exists", + "resource_missing", + "return_intent_already_processed", + "routing_number_invalid", + "secret_key_required", + "sensitive_data_access_expired", + "sepa_unsupported_account", + "service_period_coupon_with_metered_tiered_item_unsupported", + "setup_attempt_failed", + "setup_intent_authentication_failure", + "setup_intent_invalid_parameter", + "setup_intent_mandate_invalid", + "setup_intent_mobile_wallet_unsupported", + "setup_intent_setup_attempt_expired", + "setup_intent_unexpected_state", + "shipping_address_invalid", + "shipping_calculation_failed", + "siret_invalid", + "sku_inactive", + "state_unsupported", + "status_transition_invalid", + "storer_capability_missing", + "storer_capability_not_active", + "stripe_tax_inactive", + "tax_id_invalid", + "tax_id_prohibited", + "taxes_calculation_failed", + "terminal_location_country_unsupported", + "terminal_reader_busy", + "terminal_reader_collected_data_invalid", + "terminal_reader_hardware_fault", + "terminal_reader_invalid_location_for_activation", + "terminal_reader_invalid_location_for_payment", + "terminal_reader_offline", + "terminal_reader_timeout", + "testmode_charges_only", + "tls_version_unsupported", + "token_already_used", + "token_card_network_invalid", + "token_in_use", + "transfer_source_balance_parameters_mismatch", + "transfers_not_allowed", + "url_invalid", + "v2_account_disconnection_unsupported", + "v2_account_missing_configuration", + ] + ] + """ + For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported. + """ + decline_code: Optional[str] + """ + For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one. + """ + doc_url: Optional[str] + """ + A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported. + """ + message: Optional[str] + """ + A human-readable message providing more details about the error. For card errors, these messages can be shown to your users. + """ + network_advice_code: Optional[str] + """ + For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error. + """ + network_decline_code: Optional[str] + """ + For payments declined by the network, an alphanumeric code which indicates the reason the payment failed. + """ + param: Optional[str] + """ + If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field. + """ + payment_intent: Optional["PaymentIntent"] + """ + A PaymentIntent guides you through the process of collecting a payment from your customer. + We recommend that you create exactly one PaymentIntent for each order or + customer session in your system. You can reference the PaymentIntent later to + see the history of payment attempts for a particular session. + + A PaymentIntent transitions through + [multiple statuses](https://docs.stripe.com/payments/paymentintents/lifecycle) + throughout its lifetime as it interfaces with Stripe.js to perform + authentication flows and ultimately creates at most one successful charge. + + Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents) + """ + payment_method: Optional["PaymentMethod"] + """ + PaymentMethod objects represent your customer's payment instruments. + You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to + Customer objects to store instrument details for future payments. + + Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios). + """ + payment_method_type: Optional[str] + """ + If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors. + """ + request_log_url: Optional[str] + """ + A URL to the request log entry in your dashboard. + """ + setup_intent: Optional["SetupIntent"] + """ + A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments. + For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment. + Later, you can use [PaymentIntents](https://api.stripe.com#payment_intents) to drive the payment flow. + + Create a SetupIntent when you're ready to collect your customer's payment credentials. + Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid. + The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides + you through the setup process. + + Successful SetupIntents result in payment credentials that are optimized for future payments. + For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through + [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection + to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents). + If you use the SetupIntent with a [Customer](https://api.stripe.com#setup_intent_object-customer), + it automatically attaches the resulting payment method to that Customer after successful setup. + We recommend using SetupIntents or [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) on + PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods. + + By using SetupIntents, you can reduce friction for your customers, even as regulations change over time. + + Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) + """ + source: Optional[Union["Account", "BankAccount", "Card", "Source"]] + type: Literal[ + "api_error", + "card_error", + "idempotency_error", + "invalid_request_error", + ] + """ + The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error` + """ + class CollectInputs(StripeObject): class Input(StripeObject): class CustomText(StripeObject): @@ -495,6 +799,10 @@ class LineItem(StripeObject): """ _inner_class_types = {"cart": Cart} + api_error: Optional[ApiError] + """ + The reader action failed due to an [API error](https://docs.stripe.com/api/errors). Only present when `status` is `failed` and the underlying failure was an API error. Avoid parsing the `message` field for programmatic logic; use `type` or `code` instead. The `message` field is for display to humans only and may be updated at anytime. Requires [reader version](https://docs.stripe.com/terminal/readers/stripe-reader-s700-s710#reader-software-version) 2.42 or later. Readers on older versions always return null. + """ collect_inputs: Optional[CollectInputs] """ Represents a reader action to collect customer inputs @@ -553,6 +861,7 @@ class LineItem(StripeObject): Type of action performed by the reader. """ _inner_class_types = { + "api_error": ApiError, "collect_inputs": CollectInputs, "collect_payment_method": CollectPaymentMethod, "confirm_payment_intent": ConfirmPaymentIntent, @@ -582,11 +891,19 @@ class LineItem(StripeObject): "mobile_phone_reader", "simulated_stripe_s700", "simulated_stripe_s710", + "simulated_verifone_m425", + "simulated_verifone_p630", + "simulated_verifone_ux700", + "simulated_verifone_v660p", "simulated_wisepos_e", "stripe_m2", "stripe_s700", "stripe_s710", "verifone_P400", + "verifone_m425", + "verifone_p630", + "verifone_ux700", + "verifone_v660p", ] """ Device type of the reader. diff --git a/stripe/v2/billing/_license_fee.py b/stripe/v2/billing/_license_fee.py index ef6a01b0b..9c8abb8c1 100644 --- a/stripe/v2/billing/_license_fee.py +++ b/stripe/v2/billing/_license_fee.py @@ -85,10 +85,6 @@ class TransformQuantity(StripeObject): """ Unique identifier for the object. """ - latest_version: str - """ - The ID of the license fee's most recently created version. - """ licensed_item: "LicensedItem" """ A Licensed Item represents a billable item whose pricing is based on license fees. You can use license fees @@ -118,15 +114,6 @@ class TransformQuantity(StripeObject): """ The service cycle configuration for this License Fee. """ - service_interval: Literal["day", "month", "week", "year"] - """ - The interval for assessing service. - """ - service_interval_count: int - """ - The length of the interval for assessing service. For example, set this to 3 and `service_interval` to `"month"` - to specify quarterly service. - """ tax_behavior: Literal["exclusive", "inclusive"] """ The tax behavior for Stripe Tax — whether the license fee price includes or excludes tax. diff --git a/stripe/v2/billing/_pricing_plan.py b/stripe/v2/billing/_pricing_plan.py index c30c6f05a..d6d835650 100644 --- a/stripe/v2/billing/_pricing_plan.py +++ b/stripe/v2/billing/_pricing_plan.py @@ -39,10 +39,6 @@ class PricingPlan(StripeObject): """ Unique identifier for the object. """ - latest_version: str - """ - The ID of the latest version of the PricingPlan. - """ live_version: Optional[str] """ The ID of the live version of the PricingPlan. diff --git a/stripe/v2/billing/_rate_card.py b/stripe/v2/billing/_rate_card.py index 95bd0f241..cc588a415 100644 --- a/stripe/v2/billing/_rate_card.py +++ b/stripe/v2/billing/_rate_card.py @@ -49,10 +49,6 @@ class ServiceCycle(StripeObject): """ Unique identifier for the object. """ - latest_version: str - """ - The ID of this rate card's most recently created version. - """ live_version: str """ The ID of the Rate Card Version used by all subscriptions when no specific version is specified. @@ -80,18 +76,6 @@ class ServiceCycle(StripeObject): This is similar to but distinct from billing interval; the service interval deals with the rate at which the customer accumulates fees, while the billing interval in Cadence deals with the rate the customer is billed. """ - service_interval: Literal["day", "month", "week", "year"] - """ - The interval for assessing service. For example, a monthly Rate Card with a rate of 1 USD for the first 10 "workloads" - and 2 USD thereafter means "1 USD per workload up to 10 workloads during a month of service." This is similar to but - distinct from billing interval; the service interval deals with the rate at which the customer accumulates fees, - while the billing interval in Cadence deals with the rate the customer is billed. - """ - service_interval_count: int - """ - The length of the interval for assessing service. For example, set this to 3 and `service_interval` to `"month"` - to specify quarterly service. - """ tax_behavior: Literal["exclusive", "inclusive"] """ The tax behavior for Stripe Tax — whether the rate card price includes or excludes tax. diff --git a/stripe/v2/commerce/_product_catalog_import.py b/stripe/v2/commerce/_product_catalog_import.py index e5562955f..3e48b840e 100644 --- a/stripe/v2/commerce/_product_catalog_import.py +++ b/stripe/v2/commerce/_product_catalog_import.py @@ -7,7 +7,7 @@ class ProductCatalogImport(StripeObject): """ - The product catalog import object tracks the long-running background process that handles uploading, processing and validation. + The ProductCatalogImport object tracks the long-running background process that handles uploading, processing and validation. """ OBJECT_NAME: ClassVar[Literal["v2.commerce.product_catalog_import"]] = ( diff --git a/stripe/v2/core/_account.py b/stripe/v2/core/_account.py index 8d36de7c9..35fca5c01 100644 --- a/stripe/v2/core/_account.py +++ b/stripe/v2/core/_account.py @@ -3232,15 +3232,20 @@ class DefaultOutboundDestination(StripeObject): "ag_bank_account", "al_bank_account", "am_bank_account", + "ao_bank_account", "ar_bank_account", "at_bank_account", "au_bank_account", + "az_bank_account", "ba_bank_account", + "bd_bank_account", "be_bank_account", "bg_bank_account", "bh_bank_account", "bj_bank_account", "bn_bank_account", + "bo_bank_account", + "br_bank_account", "bs_bank_account", "bt_bank_account", "bw_bank_account", @@ -3248,6 +3253,7 @@ class DefaultOutboundDestination(StripeObject): "ca_bank_account", "ch_bank_account", "ci_bank_account", + "cl_bank_account", "cn_bank_account", "co_bank_account", "crypto_wallet", @@ -3265,12 +3271,16 @@ class DefaultOutboundDestination(StripeObject): "et_bank_account", "fi_bank_account", "fr_bank_account", + "ga_bank_account", "gb_bank_account", + "gh_bank_account", + "gi_bank_account", "gm_bank_account", "gr_bank_account", "gt_bank_account", "gy_bank_account", "hk_bank_account", + "hn_bank_account", "hr_bank_account", "hu_bank_account", "id_bank_account", @@ -3284,7 +3294,10 @@ class DefaultOutboundDestination(StripeObject): "jp_bank_account", "ke_bank_account", "kh_bank_account", + "kr_bank_account", "kw_bank_account", + "kz_bank_account", + "la_bank_account", "lc_bank_account", "li_bank_account", "lk_bank_account", @@ -3304,6 +3317,9 @@ class DefaultOutboundDestination(StripeObject): "my_bank_account", "mz_bank_account", "na_bank_account", + "ne_bank_account", + "ng_bank_account", + "ni_bank_account", "nl_bank_account", "no_bank_account", "nz_bank_account", @@ -3314,14 +3330,17 @@ class DefaultOutboundDestination(StripeObject): "pk_bank_account", "pl_bank_account", "pt_bank_account", + "py_bank_account", "qa_bank_account", "ro_bank_account", "rs_bank_account", "rw_bank_account", + "sa_bank_account", "se_bank_account", "sg_bank_account", "si_bank_account", "sk_bank_account", + "sm_bank_account", "sn_bank_account", "sv_bank_account", "th_bank_account", @@ -3331,6 +3350,7 @@ class DefaultOutboundDestination(StripeObject): "tw_bank_account", "tz_bank_account", "us_bank_account", + "uy_bank_account", "uz_bank_account", "vn_bank_account", "za_bank_account", @@ -6058,24 +6078,46 @@ class ProofOfAddress(StripeObject): """ class ProofOfRegistration(StripeObject): + class Signer(StripeObject): + person: str + """ + Person signing the document. + """ + files: List[str] """ One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. """ + signer: Optional[Signer] + """ + Person that is signing the document. + """ type: Literal["files"] """ The format of the document. Currently supports `files` only. """ + _inner_class_types = {"signer": Signer} class ProofOfUltimateBeneficialOwnership(StripeObject): + class Signer(StripeObject): + person: str + """ + Person signing the document. + """ + files: List[str] """ One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. """ + signer: Optional[Signer] + """ + Person that is signing the document. + """ type: Literal["files"] """ The format of the document. Currently supports `files` only. """ + _inner_class_types = {"signer": Signer} bank_account_ownership_verification: Optional[ BankAccountOwnershipVerification diff --git a/stripe/v2/core/_account_token.py b/stripe/v2/core/_account_token.py index c64b53754..27f454cb0 100644 --- a/stripe/v2/core/_account_token.py +++ b/stripe/v2/core/_account_token.py @@ -7,7 +7,7 @@ class AccountToken(StripeObject): """ - Account tokens are single-use tokens which tokenize company/individual/business information, and are used for creating or updating an Account. + Account tokens are single-use tokens which tokenize an account's contact_email, display_name, contact_phone, and identity. """ OBJECT_NAME: ClassVar[Literal["v2.core.account_token"]] = ( diff --git a/stripe/v2/core/_account_token_service.py b/stripe/v2/core/_account_token_service.py index a79949eee..2eea9c98f 100644 --- a/stripe/v2/core/_account_token_service.py +++ b/stripe/v2/core/_account_token_service.py @@ -23,7 +23,11 @@ def create( options: Optional["RequestOptions"] = None, ) -> "AccountToken": """ - Creates an Account Token. + Create an account token with a publishable key and pass it to the Accounts v2 API to + create or update an account without its data touching your server. + Learn more about [account tokens](https://docs.stripe.com/connect/account-tokens). + In live mode, you can only create account tokens with your application's publishable key. + In test mode, you can create account tokens with your secret key or publishable key. """ return cast( "AccountToken", @@ -42,7 +46,11 @@ async def create_async( options: Optional["RequestOptions"] = None, ) -> "AccountToken": """ - Creates an Account Token. + Create an account token with a publishable key and pass it to the Accounts v2 API to + create or update an account without its data touching your server. + Learn more about [account tokens](https://docs.stripe.com/connect/account-tokens). + In live mode, you can only create account tokens with your application's publishable key. + In test mode, you can create account tokens with your secret key or publishable key. """ return cast( "AccountToken", diff --git a/stripe/v2/core/_event.py b/stripe/v2/core/_event.py index 9ee1dbbde..8a476fa2e 100644 --- a/stripe/v2/core/_event.py +++ b/stripe/v2/core/_event.py @@ -19,6 +19,7 @@ class Event(StripeObject): """ Events are generated to keep you informed of activity in your business account. APIs in the /v2 namespace generate [thin events](https://docs.stripe.com/event-destinations#benefits-of-thin-events) which have small, unversioned payloads that include a reference to the ID of the object that has changed. The Events v2 API returns these new thin events. [Retrieve the event object](https://docs.stripe.com/event-destinations#fetch-data) for additional data about the event. Use the related object ID in the event payload to [fetch the API resource](https://docs.stripe.com/event-destinations#retrieve-the-object-associated-with-thin-events) of the object associated with the event. Comparatively, events generated by most API v1 include a versioned snapshot of an API object in their payload. + You can access events through the [Retrieve Event API](https://docs.stripe.com/api/v2/core/events/retrieve) for 30 days. """ OBJECT_NAME: ClassVar[Literal["v2.core.event"]] = "v2.core.event" diff --git a/stripe/v2/core/_event_service.py b/stripe/v2/core/_event_service.py index 38da51e63..7033683af 100644 --- a/stripe/v2/core/_event_service.py +++ b/stripe/v2/core/_event_service.py @@ -61,7 +61,8 @@ def retrieve( options: Optional["RequestOptions"] = None, ) -> "Event": """ - Retrieves the details of an event. + Retrieves the details of an event if it was created in the last 30 days. Supply the unique + identifier of the event, which might have been delivered to your event destination. """ return cast( "Event", @@ -81,7 +82,8 @@ async def retrieve_async( options: Optional["RequestOptions"] = None, ) -> "Event": """ - Retrieves the details of an event. + Retrieves the details of an event if it was created in the last 30 days. Supply the unique + identifier of the event, which might have been delivered to your event destination. """ return cast( "Event", diff --git a/stripe/v2/data/analytics/_metric_query_result.py b/stripe/v2/data/analytics/_metric_query_result.py index db511525f..e94f04738 100644 --- a/stripe/v2/data/analytics/_metric_query_result.py +++ b/stripe/v2/data/analytics/_metric_query_result.py @@ -22,7 +22,7 @@ class Result(StripeObject): """ metric: str """ - The Gen6 ID of this metric. + The ID of this metric. """ name: str """ diff --git a/stripe/v2/iam/_activity_log_service.py b/stripe/v2/iam/_activity_log_service.py index 67ab2c604..c1bba92a3 100644 --- a/stripe/v2/iam/_activity_log_service.py +++ b/stripe/v2/iam/_activity_log_service.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService +from stripe._util import sanitize_id from typing import Optional, cast from typing_extensions import TYPE_CHECKING @@ -9,6 +10,9 @@ from stripe.params.v2.iam._activity_log_list_params import ( ActivityLogListParams, ) + from stripe.params.v2.iam._activity_log_retrieve_params import ( + ActivityLogRetrieveParams, + ) from stripe.v2._list_object import ListObject from stripe.v2.iam._activity_log import ActivityLog @@ -51,3 +55,43 @@ async def list_async( options=options, ), ) + + def retrieve( + self, + id: str, + params: Optional["ActivityLogRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ActivityLog": + """ + Retrieve an activity log. + """ + return cast( + "ActivityLog", + self._request( + "get", + "/v2/iam/activity_logs/{id}".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) + + async def retrieve_async( + self, + id: str, + params: Optional["ActivityLogRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ActivityLog": + """ + Retrieve an activity log. + """ + return cast( + "ActivityLog", + await self._request_async( + "get", + "/v2/iam/activity_logs/{id}".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) diff --git a/stripe/v2/money_management/_financial_account_statement.py b/stripe/v2/money_management/_financial_account_statement.py index 34654f562..dfd50a5ac 100644 --- a/stripe/v2/money_management/_financial_account_statement.py +++ b/stripe/v2/money_management/_financial_account_statement.py @@ -44,13 +44,13 @@ class DownloadUrl(StripeObject): class Period(StripeObject): end_date: str """ - The end of the statement period (exclusive), as a UTC-aligned ISO 8601 date - (e.g., "2025-02-01"). For example, a January statement has end_date "2025-02-01", - meaning all transactions up to but not including February 1st UTC are included. + The end of the statement period (inclusive), as a UTC-aligned ISO 8601 date + (e.g., "2026-05-31"). For example, a May 2026 statement has end_date "2026-05-31", + meaning all transactions up to and including May 31st UTC are included. """ start_date: str """ - The start of the statement period (inclusive), as a UTC-aligned ISO 8601 date (e.g., "2025-01-01"). + The start of the statement period (inclusive), as a UTC-aligned ISO 8601 date (e.g., "2026-05-01"). """ created: str diff --git a/stripe/v2/money_management/_received_credit.py b/stripe/v2/money_management/_received_credit.py index dc1fb94a2..49c5abafe 100644 --- a/stripe/v2/money_management/_received_credit.py +++ b/stripe/v2/money_management/_received_credit.py @@ -98,7 +98,7 @@ class GbBankAccount(StripeObject): """ The last 4 digits of the account number that originated the transfer. """ - network: Literal["fps"] + network: Literal["chaps", "fps"] """ Open Enum. The money transmission network used to send funds for this ReceivedCredit. """ @@ -346,6 +346,10 @@ class StatusTransitions(StripeObject): """ class StripeBalancePayment(StripeObject): + debit_agreement: Optional[str] + """ + ID of the debit agreement associated with this payment. + """ statement_descriptor: Optional[str] """ Statement descriptor for the Stripe Balance Payment. diff --git a/tests/test_api_requestor.py b/tests/test_api_requestor.py index 4a3de5a04..fdec9846d 100644 --- a/tests/test_api_requestor.py +++ b/tests/test_api_requestor.py @@ -1038,6 +1038,72 @@ def test_extract_error_from_stream_request_for_response( "get", self.v1_path, {}, base_address="api" ) + def test_stripe_notice_header_emits_warning( + self, requestor, http_client_mock + ): + http_client_mock.stub_request( + "get", + path=self.v1_path, + rbody="{}", + rcode=200, + rheaders={"Stripe-Notice": "test notice value"}, + ) + + with pytest.warns(UserWarning, match="test notice value"): + requestor.request("get", self.v1_path, {}, base_address="api") + + @pytest.mark.anyio + async def test_stripe_notice_header_emits_warning_async( + self, requestor, http_client_mock + ): + http_client_mock.stub_request( + "get", + path=self.v1_path, + rbody="{}", + rcode=200, + rheaders={"Stripe-Notice": "test notice value"}, + ) + + with pytest.warns(UserWarning, match="test notice value"): + await requestor.request_async( + "get", self.v1_path, {}, base_address="api" + ) + + def test_no_stripe_notice_header_emits_no_warning( + self, requestor, http_client_mock + ): + import warnings + + http_client_mock.stub_request( + "get", + path=self.v1_path, + rbody="{}", + rcode=200, + ) + + with warnings.catch_warnings(): + warnings.simplefilter("error") + requestor.request("get", self.v1_path, {}, base_address="api") + + @pytest.mark.anyio + async def test_no_stripe_notice_header_emits_no_warning_async( + self, requestor, http_client_mock + ): + import warnings + + http_client_mock.stub_request( + "get", + path=self.v1_path, + rbody="{}", + rcode=200, + ) + + with warnings.catch_warnings(): + warnings.simplefilter("error") + await requestor.request_async( + "get", self.v1_path, {}, base_address="api" + ) + def test_raw_request_with_file_param(self, requestor, http_client_mock): test_file = tempfile.NamedTemporaryFile() test_file.write("\u263a".encode("utf-16")) diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py index cf381adf1..9681f0bdd 100644 --- a/tests/test_generated_examples.py +++ b/tests/test_generated_examples.py @@ -46428,10 +46428,7 @@ def test_v2_core_batch_job_post_service( client.v2.core.batch_jobs.create( { - "endpoint": { - "http_method": "delete", - "path": "/v1/subscription_schedules", - }, + "endpoint": {"http_method": "delete", "path": "/v1/products"}, "metadata": {"key": "metadata"}, "skip_validation": True, } @@ -46441,7 +46438,7 @@ def test_v2_core_batch_job_post_service( path="/v2/core/batch_jobs", query_string="", api_base="https://api.stripe.com", - post_data='{"endpoint":{"http_method":"delete","path":"/v1/subscription_schedules"},"metadata":{"key":"metadata"},"skip_validation":true}', + post_data='{"endpoint":{"http_method":"delete","path":"/v1/products"},"metadata":{"key":"metadata"},"skip_validation":true}', is_json=True, ) @@ -47395,6 +47392,26 @@ def test_v2_iam_activity_log_get_service( api_base="https://api.stripe.com", ) + def test_v2_iam_activity_log_get_2_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "get", + "/v2/iam/activity_logs/id_123", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.iam.activity_logs.retrieve("id_123") + http_client_mock.assert_requested( + "get", + path="/v2/iam/activity_logs/id_123", + query_string="", + api_base="https://api.stripe.com", + ) + def test_v2_iam_api_key_get_service( self, http_client_mock: HTTPClientMock ) -> None: @@ -49457,14 +49474,14 @@ def test_v2_test_helpers_financial_address_post_service( client.v2.test_helpers.financial_addresses.credit( "id_123", - {"amount": {"currency": "USD", "value": 96}, "network": "fps"}, + {"amount": {"currency": "USD", "value": 96}, "network": "wire"}, ) http_client_mock.assert_requested( "post", path="/v2/test_helpers/financial_addresses/id_123/credit", query_string="", api_base="https://api.stripe.com", - post_data='{"amount":{"currency":"USD","value":96},"network":"fps"}', + post_data='{"amount":{"currency":"USD","value":96},"network":"wire"}', is_json=True, )