diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index bbe0dc1c9..67f4d1ebf 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v603 \ No newline at end of file +v626 \ No newline at end of file diff --git a/stripe/api_resources/account.py b/stripe/api_resources/account.py index fc6d26390..7d2d52a2f 100644 --- a/stripe/api_resources/account.py +++ b/stripe/api_resources/account.py @@ -548,6 +548,7 @@ class Error(StripeObject): "invalid_company_name_denylisted", "invalid_dob_age_over_maximum", "invalid_dob_age_under_18", + "invalid_dob_age_under_minimum", "invalid_product_description_length", "invalid_product_description_url_match", "invalid_representative_country", @@ -653,7 +654,7 @@ class Error(StripeObject): """ disabled_reason: Optional[str] """ - This is typed as a string for consistency with `requirements.disabled_reason`, but it safe to assume `future_requirements.disabled_reason` is empty because fields in `future_requirements` will never disable the account. + This is typed as a string for consistency with `requirements.disabled_reason`. """ errors: Optional[List[Error]] """ @@ -694,6 +695,7 @@ class Error(StripeObject): "invalid_company_name_denylisted", "invalid_dob_age_over_maximum", "invalid_dob_age_under_18", + "invalid_dob_age_under_minimum", "invalid_product_description_length", "invalid_product_description_url_match", "invalid_representative_country", @@ -799,7 +801,7 @@ class Error(StripeObject): """ disabled_reason: Optional[str] """ - If the account is disabled, this string describes why. Can be `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.listed`, `rejected.terms_of_service`, `rejected.other`, `under_review`, or `other`. + If the account is disabled, this string describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification). Can be `action_required.requested_capabilities`, `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.incomplete_verification`, `rejected.listed`, `rejected.other`, `rejected.terms_of_service`, `under_review`, or `other`. """ errors: Optional[List[Error]] """ diff --git a/stripe/api_resources/bank_account.py b/stripe/api_resources/bank_account.py index 51b831fcb..2dd87a30c 100644 --- a/stripe/api_resources/bank_account.py +++ b/stripe/api_resources/bank_account.py @@ -48,6 +48,7 @@ class Error(StripeObject): "invalid_company_name_denylisted", "invalid_dob_age_over_maximum", "invalid_dob_age_under_18", + "invalid_dob_age_under_minimum", "invalid_product_description_length", "invalid_product_description_url_match", "invalid_representative_country", @@ -168,6 +169,7 @@ class Error(StripeObject): "invalid_company_name_denylisted", "invalid_dob_age_over_maximum", "invalid_dob_age_under_18", + "invalid_dob_age_under_minimum", "invalid_product_description_length", "invalid_product_description_url_match", "invalid_representative_country", diff --git a/stripe/api_resources/capability.py b/stripe/api_resources/capability.py index 24bc1c3f6..42d2425d1 100644 --- a/stripe/api_resources/capability.py +++ b/stripe/api_resources/capability.py @@ -39,6 +39,7 @@ class Error(StripeObject): "invalid_company_name_denylisted", "invalid_dob_age_over_maximum", "invalid_dob_age_under_18", + "invalid_dob_age_under_minimum", "invalid_product_description_length", "invalid_product_description_url_match", "invalid_representative_country", @@ -185,6 +186,7 @@ class Error(StripeObject): "invalid_company_name_denylisted", "invalid_dob_age_over_maximum", "invalid_dob_age_under_18", + "invalid_dob_age_under_minimum", "invalid_product_description_length", "invalid_product_description_url_match", "invalid_representative_country", diff --git a/stripe/api_resources/invoice.py b/stripe/api_resources/invoice.py index cb4a3b44d..74686ad2d 100644 --- a/stripe/api_resources/invoice.py +++ b/stripe/api_resources/invoice.py @@ -301,6 +301,7 @@ class LastFinalizationError(StripeObject): "application_fees_not_allowed", "authentication_required", "balance_insufficient", + "balance_invalid_parameter", "bank_account_bad_routing_numbers", "bank_account_declined", "bank_account_exists", diff --git a/stripe/api_resources/payment_intent.py b/stripe/api_resources/payment_intent.py index 651d19d4b..59ae54017 100644 --- a/stripe/api_resources/payment_intent.py +++ b/stripe/api_resources/payment_intent.py @@ -112,6 +112,7 @@ class LastPaymentError(StripeObject): "application_fees_not_allowed", "authentication_required", "balance_insufficient", + "balance_invalid_parameter", "bank_account_bad_routing_numbers", "bank_account_declined", "bank_account_exists", @@ -2600,12 +2601,6 @@ class ConfirmParamsPaymentMethodOptionsCardPresent(TypedDict): """ Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) """ - request_incremental_authorization: NotRequired[ - "Literal['if_available', 'never']|None" - ] - """ - Request ability to [increment](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent. - """ request_incremental_authorization_support: NotRequired["bool|None"] """ Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support. @@ -3682,7 +3677,7 @@ class CreateParams(RequestOptions): "PaymentIntent.CreateParamsTransferData|None" ] """ - The parameters that you can use to automatically create a Transfer after the payment succeeds. + The parameters that you can use to automatically create a Transfer. Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). """ transfer_group: NotRequired["str|None"] @@ -4446,12 +4441,6 @@ class CreateParamsPaymentMethodOptionsCardPresent(TypedDict): """ Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) """ - request_incremental_authorization: NotRequired[ - "Literal['if_available', 'never']|None" - ] - """ - Request ability to [increment](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent. - """ request_incremental_authorization_support: NotRequired["bool|None"] """ Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support. @@ -6292,12 +6281,6 @@ class ModifyParamsPaymentMethodOptionsCardPresent(TypedDict): """ Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) """ - request_incremental_authorization: NotRequired[ - "Literal['if_available', 'never']|None" - ] - """ - Request ability to [increment](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent. - """ request_incremental_authorization_support: NotRequired["bool|None"] """ Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support. diff --git a/stripe/api_resources/payment_link.py b/stripe/api_resources/payment_link.py index 9c876b92d..53b83b8f8 100644 --- a/stripe/api_resources/payment_link.py +++ b/stripe/api_resources/payment_link.py @@ -538,7 +538,7 @@ class ShippingOption(StripeObject): class SubscriptionData(StripeObject): description: Optional[str] """ - The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription. + The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. """ metadata: Dict[str, str] """ @@ -735,7 +735,7 @@ class CreateParamsTaxIdCollection(TypedDict): class CreateParamsSubscriptionData(TypedDict): description: NotRequired["str|None"] """ - The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription. + The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. """ metadata: NotRequired["Dict[str, str]|None"] """ diff --git a/stripe/api_resources/person.py b/stripe/api_resources/person.py index d200f0f0a..dd0aeaa5e 100644 --- a/stripe/api_resources/person.py +++ b/stripe/api_resources/person.py @@ -163,6 +163,7 @@ class Error(StripeObject): "invalid_company_name_denylisted", "invalid_dob_age_over_maximum", "invalid_dob_age_under_18", + "invalid_dob_age_under_minimum", "invalid_product_description_length", "invalid_product_description_url_match", "invalid_representative_country", @@ -357,6 +358,7 @@ class Error(StripeObject): "invalid_company_name_denylisted", "invalid_dob_age_over_maximum", "invalid_dob_age_under_18", + "invalid_dob_age_under_minimum", "invalid_product_description_length", "invalid_product_description_url_match", "invalid_representative_country", diff --git a/stripe/api_resources/quote.py b/stripe/api_resources/quote.py index 2d30ef829..832d64975 100644 --- a/stripe/api_resources/quote.py +++ b/stripe/api_resources/quote.py @@ -292,7 +292,7 @@ class StatusTransitions(StripeObject): class SubscriptionData(StripeObject): description: Optional[str] """ - The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription. + The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. """ effective_date: Optional[int] """ @@ -518,7 +518,7 @@ class CreateParamsTransferData(TypedDict): class CreateParamsSubscriptionData(TypedDict): description: NotRequired["str|None"] """ - The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription. + The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. """ effective_date: NotRequired[ "Literal['']|Literal['current_period_end']|int|None" @@ -800,7 +800,7 @@ class ModifyParamsTransferData(TypedDict): class ModifyParamsSubscriptionData(TypedDict): description: NotRequired["Literal['']|str|None"] """ - The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription. + The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. """ effective_date: NotRequired[ "Literal['']|Literal['current_period_end']|int|None" diff --git a/stripe/api_resources/setup_attempt.py b/stripe/api_resources/setup_attempt.py index c1a1f71f2..888562451 100644 --- a/stripe/api_resources/setup_attempt.py +++ b/stripe/api_resources/setup_attempt.py @@ -406,6 +406,7 @@ class SetupError(StripeObject): "application_fees_not_allowed", "authentication_required", "balance_insufficient", + "balance_invalid_parameter", "bank_account_bad_routing_numbers", "bank_account_declined", "bank_account_exists", diff --git a/stripe/api_resources/setup_intent.py b/stripe/api_resources/setup_intent.py index 41d816a58..0940ee441 100644 --- a/stripe/api_resources/setup_intent.py +++ b/stripe/api_resources/setup_intent.py @@ -98,6 +98,7 @@ class LastSetupError(StripeObject): "application_fees_not_allowed", "authentication_required", "balance_insufficient", + "balance_invalid_parameter", "bank_account_bad_routing_numbers", "bank_account_declined", "bank_account_exists", diff --git a/stripe/api_resources/subscription.py b/stripe/api_resources/subscription.py index 21e719367..2ddc3818c 100644 --- a/stripe/api_resources/subscription.py +++ b/stripe/api_resources/subscription.py @@ -481,7 +481,7 @@ class CreateParams(RequestOptions): """ description: NotRequired["str|None"] """ - The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces. + The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. """ expand: NotRequired["List[str]|None"] """ @@ -1132,7 +1132,7 @@ class ModifyParams(RequestOptions): """ description: NotRequired["Literal['']|str|None"] """ - The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces. + The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. """ expand: NotRequired["List[str]|None"] """ @@ -1751,7 +1751,7 @@ class SearchParams(RequestOptions): """ description: Optional[str] """ - The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces. + The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. """ discount: Optional["Discount"] """ diff --git a/stripe/api_resources/subscription_schedule.py b/stripe/api_resources/subscription_schedule.py index f5bf8354e..9c299d335 100644 --- a/stripe/api_resources/subscription_schedule.py +++ b/stripe/api_resources/subscription_schedule.py @@ -117,7 +117,7 @@ class TransferData(StripeObject): """ description: Optional[str] """ - Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription. + Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. """ invoice_settings: Optional[InvoiceSettings] """ @@ -259,7 +259,7 @@ class TransferData(StripeObject): """ description: Optional[str] """ - Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription. + Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. """ end_date: int """ @@ -417,7 +417,7 @@ class CreateParamsPhase(TypedDict): """ description: NotRequired["Literal['']|str|None"] """ - Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription. + Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. """ end_date: NotRequired["int|None"] """ @@ -655,7 +655,7 @@ class CreateParamsDefaultSettings(TypedDict): """ description: NotRequired["Literal['']|str|None"] """ - Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription. + Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. """ invoice_settings: NotRequired[ "SubscriptionSchedule.CreateParamsDefaultSettingsInvoiceSettings|None" @@ -915,7 +915,7 @@ class ModifyParamsPhase(TypedDict): """ description: NotRequired["Literal['']|str|None"] """ - Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription. + Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. """ end_date: NotRequired["int|Literal['now']|None"] """ @@ -1157,7 +1157,7 @@ class ModifyParamsDefaultSettings(TypedDict): """ description: NotRequired["Literal['']|str|None"] """ - Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription. + Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. """ invoice_settings: NotRequired[ "SubscriptionSchedule.ModifyParamsDefaultSettingsInvoiceSettings|None"