diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e0801e4ff..20970a9f9 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1039 \ No newline at end of file +v1047 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index 4e47dcbf8..e58390170 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -268,7 +268,7 @@ class Capabilities(StripeObject): """ mobilepay_payments: Optional[Literal["active", "inactive", "pending"]] """ - The status of the MobilepPay capability of the account, or whether the account can directly process MobilePay charges. + The status of the MobilePay capability of the account, or whether the account can directly process MobilePay charges. """ oxxo_payments: Optional[Literal["active", "inactive", "pending"]] """ diff --git a/stripe/_account_session.py b/stripe/_account_session.py index dee4292d1..c4ae483f8 100644 --- a/stripe/_account_session.py +++ b/stripe/_account_session.py @@ -55,6 +55,10 @@ class Features(StripeObject): """ Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. """ + external_account_collection: bool + """ + Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + """ instant_payouts: bool """ Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. @@ -154,6 +158,10 @@ class Features(StripeObject): """ Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. """ + external_account_collection: bool + """ + Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + """ instant_payouts: bool """ Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. @@ -319,6 +327,10 @@ class CreateParamsComponentsBalancesFeatures(TypedDict): """ Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. """ + external_account_collection: NotRequired[bool] + """ + Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + """ instant_payouts: NotRequired[bool] """ Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. @@ -438,6 +450,10 @@ class CreateParamsComponentsPayoutsFeatures(TypedDict): """ Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. """ + external_account_collection: NotRequired[bool] + """ + Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + """ instant_payouts: NotRequired[bool] """ Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. diff --git a/stripe/_account_session_service.py b/stripe/_account_session_service.py index f30dfb65f..39b7f6407 100644 --- a/stripe/_account_session_service.py +++ b/stripe/_account_session_service.py @@ -131,6 +131,10 @@ class CreateParamsComponentsBalancesFeatures(TypedDict): """ Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. """ + external_account_collection: NotRequired[bool] + """ + Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + """ instant_payouts: NotRequired[bool] """ Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. @@ -250,6 +254,10 @@ class CreateParamsComponentsPayoutsFeatures(TypedDict): """ Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. """ + external_account_collection: NotRequired[bool] + """ + Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + """ instant_payouts: NotRequired[bool] """ Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. diff --git a/stripe/_invoice.py b/stripe/_invoice.py index 7f450660b..f6cbbbfb6 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -476,6 +476,7 @@ class LastFinalizationError(StripeObject): "terminal_location_country_unsupported", "terminal_reader_busy", "terminal_reader_hardware_fault", + "terminal_reader_invalid_location_for_payment", "terminal_reader_offline", "terminal_reader_timeout", "testmode_charges_only", @@ -1922,13 +1923,13 @@ class CreatePreviewParamsInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "Invoice.CreatePreviewParamsInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -2156,13 +2157,13 @@ class CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "Invoice.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -2488,13 +2489,13 @@ class CreatePreviewParamsSubscriptionDetailsItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired[ "Invoice.CreatePreviewParamsSubscriptionDetailsItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -3699,13 +3700,13 @@ class UpcomingLinesParamsInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "Invoice.UpcomingLinesParamsInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -3933,13 +3934,13 @@ class UpcomingLinesParamsScheduleDetailsPhaseAddInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "Invoice.UpcomingLinesParamsScheduleDetailsPhaseAddInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -4265,13 +4266,13 @@ class UpcomingLinesParamsSubscriptionDetailsItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired[ "Invoice.UpcomingLinesParamsSubscriptionDetailsItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -4379,13 +4380,13 @@ class UpcomingLinesParamsSubscriptionItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired[ "Invoice.UpcomingLinesParamsSubscriptionItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -4831,11 +4832,11 @@ class UpcomingParamsInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired["Invoice.UpcomingParamsInvoiceItemPriceData"] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -5059,13 +5060,13 @@ class UpcomingParamsScheduleDetailsPhaseAddInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "Invoice.UpcomingParamsScheduleDetailsPhaseAddInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -5381,13 +5382,13 @@ class UpcomingParamsSubscriptionDetailsItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired[ "Invoice.UpcomingParamsSubscriptionDetailsItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -5493,13 +5494,13 @@ class UpcomingParamsSubscriptionItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired[ "Invoice.UpcomingParamsSubscriptionItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ diff --git a/stripe/_invoice_item.py b/stripe/_invoice_item.py index 9fa29f594..968f94dd0 100644 --- a/stripe/_invoice_item.py +++ b/stripe/_invoice_item.py @@ -106,11 +106,11 @@ class CreateParams(RequestOptions): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired["InvoiceItem.CreateParamsPriceData"] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -279,11 +279,11 @@ class ModifyParams(RequestOptions): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired["InvoiceItem.ModifyParamsPriceData"] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ diff --git a/stripe/_invoice_item_service.py b/stripe/_invoice_item_service.py index f1f2cf8d0..aa97cd0c7 100644 --- a/stripe/_invoice_item_service.py +++ b/stripe/_invoice_item_service.py @@ -55,11 +55,11 @@ class CreateParams(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired["InvoiceItemService.CreateParamsPriceData"] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -234,11 +234,11 @@ class UpdateParams(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired["InvoiceItemService.UpdateParamsPriceData"] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ diff --git a/stripe/_invoice_line_item.py b/stripe/_invoice_line_item.py index 837e0b337..4ebc11c7f 100644 --- a/stripe/_invoice_line_item.py +++ b/stripe/_invoice_line_item.py @@ -137,11 +137,11 @@ class ModifyParams(RequestOptions): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired["InvoiceLineItem.ModifyParamsPriceData"] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ diff --git a/stripe/_invoice_line_item_service.py b/stripe/_invoice_line_item_service.py index 4cacab135..21be17673 100644 --- a/stripe/_invoice_line_item_service.py +++ b/stripe/_invoice_line_item_service.py @@ -61,11 +61,11 @@ class UpdateParams(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired["InvoiceLineItemService.UpdateParamsPriceData"] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ diff --git a/stripe/_invoice_service.py b/stripe/_invoice_service.py index 52ce5b187..82a527768 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -964,13 +964,13 @@ class CreatePreviewParamsInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "InvoiceService.CreatePreviewParamsInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -1200,13 +1200,13 @@ class CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "InvoiceService.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -1532,13 +1532,13 @@ class CreatePreviewParamsSubscriptionDetailsItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired[ "InvoiceService.CreatePreviewParamsSubscriptionDetailsItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -2154,13 +2154,13 @@ class UpcomingParamsInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "InvoiceService.UpcomingParamsInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -2388,13 +2388,13 @@ class UpcomingParamsScheduleDetailsPhaseAddInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "InvoiceService.UpcomingParamsScheduleDetailsPhaseAddInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -2708,13 +2708,13 @@ class UpcomingParamsSubscriptionDetailsItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired[ "InvoiceService.UpcomingParamsSubscriptionDetailsItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -2818,13 +2818,13 @@ class UpcomingParamsSubscriptionItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired[ "InvoiceService.UpcomingParamsSubscriptionItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ diff --git a/stripe/_invoice_upcoming_lines_service.py b/stripe/_invoice_upcoming_lines_service.py index ca4b3665d..0087c058e 100644 --- a/stripe/_invoice_upcoming_lines_service.py +++ b/stripe/_invoice_upcoming_lines_service.py @@ -410,13 +410,13 @@ class ListParamsInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "InvoiceUpcomingLinesService.ListParamsInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -646,13 +646,13 @@ class ListParamsScheduleDetailsPhaseAddInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "InvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseAddInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -968,13 +968,13 @@ class ListParamsSubscriptionDetailsItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired[ "InvoiceUpcomingLinesService.ListParamsSubscriptionDetailsItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -1078,13 +1078,13 @@ class ListParamsSubscriptionItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired[ "InvoiceUpcomingLinesService.ListParamsSubscriptionItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 9fea82170..b64e38c66 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -257,6 +257,7 @@ class LastPaymentError(StripeObject): "terminal_location_country_unsupported", "terminal_reader_busy", "terminal_reader_hardware_fault", + "terminal_reader_invalid_location_for_payment", "terminal_reader_offline", "terminal_reader_timeout", "testmode_charges_only", diff --git a/stripe/_setup_attempt.py b/stripe/_setup_attempt.py index 027b1280d..7aedd8bb3 100644 --- a/stripe/_setup_attempt.py +++ b/stripe/_setup_attempt.py @@ -589,6 +589,7 @@ class SetupError(StripeObject): "terminal_location_country_unsupported", "terminal_reader_busy", "terminal_reader_hardware_fault", + "terminal_reader_invalid_location_for_payment", "terminal_reader_offline", "terminal_reader_timeout", "testmode_charges_only", diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index 72d19b7d8..55eda45b1 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -242,6 +242,7 @@ class LastSetupError(StripeObject): "terminal_location_country_unsupported", "terminal_reader_busy", "terminal_reader_hardware_fault", + "terminal_reader_invalid_location_for_payment", "terminal_reader_offline", "terminal_reader_timeout", "testmode_charges_only", diff --git a/stripe/_subscription.py b/stripe/_subscription.py index dd79eb2f0..0f51f8a44 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -643,13 +643,13 @@ class CreateParamsAddInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "Subscription.CreateParamsAddInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -1444,13 +1444,13 @@ class ModifyParamsAddInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "Subscription.ModifyParamsAddInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -1612,11 +1612,11 @@ class ModifyParamsItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired["Subscription.ModifyParamsItemPriceData"] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ diff --git a/stripe/_subscription_item.py b/stripe/_subscription_item.py index 9fbf79626..4614d3a90 100644 --- a/stripe/_subscription_item.py +++ b/stripe/_subscription_item.py @@ -302,11 +302,11 @@ class ModifyParams(RequestOptions): """ price: NotRequired[str] """ - The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired["SubscriptionItem.ModifyParamsPriceData"] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ proration_behavior: NotRequired[ Literal["always_invoice", "create_prorations", "none"] diff --git a/stripe/_subscription_item_service.py b/stripe/_subscription_item_service.py index 2e591da78..e8f520ec7 100644 --- a/stripe/_subscription_item_service.py +++ b/stripe/_subscription_item_service.py @@ -252,13 +252,13 @@ class UpdateParams(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired[ "SubscriptionItemService.UpdateParamsPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ proration_behavior: NotRequired[ Literal["always_invoice", "create_prorations", "none"] diff --git a/stripe/_subscription_schedule.py b/stripe/_subscription_schedule.py index 11738c8f3..d688436d7 100644 --- a/stripe/_subscription_schedule.py +++ b/stripe/_subscription_schedule.py @@ -717,13 +717,13 @@ class CreateParamsPhaseAddInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "SubscriptionSchedule.CreateParamsPhaseAddInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -1347,13 +1347,13 @@ class ModifyParamsPhaseAddInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "SubscriptionSchedule.ModifyParamsPhaseAddInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ diff --git a/stripe/_subscription_schedule_service.py b/stripe/_subscription_schedule_service.py index ca63af91f..48bd47bfb 100644 --- a/stripe/_subscription_schedule_service.py +++ b/stripe/_subscription_schedule_service.py @@ -301,13 +301,13 @@ class CreateParamsPhaseAddInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "SubscriptionScheduleService.CreateParamsPhaseAddInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -949,13 +949,13 @@ class UpdateParamsPhaseAddInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "SubscriptionScheduleService.UpdateParamsPhaseAddInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index 0fbe94712..4e8b279eb 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -236,13 +236,13 @@ class CreateParamsAddInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "SubscriptionService.CreateParamsAddInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -1093,13 +1093,13 @@ class UpdateParamsAddInvoiceItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. + The ID of the price object. One of `price` or `price_data` is required. """ price_data: NotRequired[ "SubscriptionService.UpdateParamsAddInvoiceItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -1263,13 +1263,13 @@ class UpdateParamsItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired[ "SubscriptionService.UpdateParamsItemPriceData" ] """ - Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index 8d504d963..8535824d1 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -1064,6 +1064,10 @@ class SavedPaymentMethodOptions(StripeObject): """ Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with 'allow_redisplay: ‘always' are shown in Checkout. """ + payment_method_remove: Optional[Literal["disabled", "enabled"]] + """ + Enable customers to choose if they wish to remove their saved payment methods. Disabled by default. + """ payment_method_save: Optional[Literal["disabled", "enabled"]] """ Enable customers to choose if they wish to save their payment method for future use. Disabled by default.