From 16aea24975daaa9fa5ca527c80592cf623eee921 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 13 Jun 2024 22:15:56 +0000 Subject: [PATCH 1/5] Update generated code for v1078 --- OPENAPI_VERSION | 2 +- stripe/terminal/_connection_token.py | 4 ++-- stripe/terminal/_connection_token_service.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ebd06a813..b6130d4d5 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1077 \ No newline at end of file +v1078 \ No newline at end of file diff --git a/stripe/terminal/_connection_token.py b/stripe/terminal/_connection_token.py index a454b68dc..4500eefe1 100644 --- a/stripe/terminal/_connection_token.py +++ b/stripe/terminal/_connection_token.py @@ -24,12 +24,12 @@ class CreateParams(RequestOptions): """ location: NotRequired[str] """ - The id of the location that this connection token is scoped to. If specified the connection token will only be usable with readers assigned to that location, otherwise the connection token will be usable with all readers. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://stripe.com/docs/terminal/fleet/locations#connection-tokens). + The id of the location that this connection token is scoped to. If specified the connection token will only be usable with readers assigned to that location, otherwise the connection token will be usable with all readers. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://docs.stripe.com/terminal/fleet/locations-and-zones?dashboard-or-api=api#connection-tokens). """ location: Optional[str] """ - The id of the location that this connection token is scoped to. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://stripe.com/docs/terminal/fleet/locations#connection-tokens). + The id of the location that this connection token is scoped to. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://docs.stripe.com/terminal/fleet/locations-and-zones?dashboard-or-api=api#connection-tokens). """ object: Literal["terminal.connection_token"] """ diff --git a/stripe/terminal/_connection_token_service.py b/stripe/terminal/_connection_token_service.py index 12861c259..536ca8795 100644 --- a/stripe/terminal/_connection_token_service.py +++ b/stripe/terminal/_connection_token_service.py @@ -15,7 +15,7 @@ class CreateParams(TypedDict): """ location: NotRequired[str] """ - The id of the location that this connection token is scoped to. If specified the connection token will only be usable with readers assigned to that location, otherwise the connection token will be usable with all readers. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://stripe.com/docs/terminal/fleet/locations#connection-tokens). + The id of the location that this connection token is scoped to. If specified the connection token will only be usable with readers assigned to that location, otherwise the connection token will be usable with all readers. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://docs.stripe.com/terminal/fleet/locations-and-zones?dashboard-or-api=api#connection-tokens). """ def create( From 62133ef207a1b6bf788ca03a35f6153b6bd473db Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 14 Jun 2024 08:06:21 +0000 Subject: [PATCH 2/5] Update generated code for v1079 --- OPENAPI_VERSION | 2 +- stripe/tax/_calculation.py | 16 ++++++++-------- stripe/tax/_calculation_line_item_service.py | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b6130d4d5..ac0cc575d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1078 \ No newline at end of file +v1079 \ No newline at end of file diff --git a/stripe/tax/_calculation.py b/stripe/tax/_calculation.py index eabc373a4..0d4ad60a2 100644 --- a/stripe/tax/_calculation.py +++ b/stripe/tax/_calculation.py @@ -745,7 +745,7 @@ def _cls_list_line_items( **params: Unpack["Calculation.ListLineItemsParams"], ) -> ListObject["CalculationLineItem"]: """ - Retrieves the line items of a persisted tax calculation as a collection. + Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. """ return cast( ListObject["CalculationLineItem"], @@ -764,7 +764,7 @@ def list_line_items( calculation: str, **params: Unpack["Calculation.ListLineItemsParams"] ) -> ListObject["CalculationLineItem"]: """ - Retrieves the line items of a persisted tax calculation as a collection. + Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. """ ... @@ -773,7 +773,7 @@ def list_line_items( self, **params: Unpack["Calculation.ListLineItemsParams"] ) -> ListObject["CalculationLineItem"]: """ - Retrieves the line items of a persisted tax calculation as a collection. + Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. """ ... @@ -782,7 +782,7 @@ def list_line_items( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["Calculation.ListLineItemsParams"] ) -> ListObject["CalculationLineItem"]: """ - Retrieves the line items of a persisted tax calculation as a collection. + Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. """ return cast( ListObject["CalculationLineItem"], @@ -802,7 +802,7 @@ async def _cls_list_line_items_async( **params: Unpack["Calculation.ListLineItemsParams"], ) -> ListObject["CalculationLineItem"]: """ - Retrieves the line items of a persisted tax calculation as a collection. + Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. """ return cast( ListObject["CalculationLineItem"], @@ -821,7 +821,7 @@ async def list_line_items_async( calculation: str, **params: Unpack["Calculation.ListLineItemsParams"] ) -> ListObject["CalculationLineItem"]: """ - Retrieves the line items of a persisted tax calculation as a collection. + Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. """ ... @@ -830,7 +830,7 @@ async def list_line_items_async( self, **params: Unpack["Calculation.ListLineItemsParams"] ) -> ListObject["CalculationLineItem"]: """ - Retrieves the line items of a persisted tax calculation as a collection. + Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. """ ... @@ -839,7 +839,7 @@ async def list_line_items_async( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["Calculation.ListLineItemsParams"] ) -> ListObject["CalculationLineItem"]: """ - Retrieves the line items of a persisted tax calculation as a collection. + Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. """ return cast( ListObject["CalculationLineItem"], diff --git a/stripe/tax/_calculation_line_item_service.py b/stripe/tax/_calculation_line_item_service.py index 1061d0ed2..08651f8eb 100644 --- a/stripe/tax/_calculation_line_item_service.py +++ b/stripe/tax/_calculation_line_item_service.py @@ -35,7 +35,7 @@ def list( options: RequestOptions = {}, ) -> ListObject[CalculationLineItem]: """ - Retrieves the line items of a persisted tax calculation as a collection. + Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. """ return cast( ListObject[CalculationLineItem], @@ -58,7 +58,7 @@ async def list_async( options: RequestOptions = {}, ) -> ListObject[CalculationLineItem]: """ - Retrieves the line items of a persisted tax calculation as a collection. + Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. """ return cast( ListObject[CalculationLineItem], From 8c660c0ed31d90f417bf581c828939d2fd0b18f5 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 14 Jun 2024 16:53:00 +0000 Subject: [PATCH 3/5] Update generated code for v1081 --- OPENAPI_VERSION | 2 +- stripe/_payment_link.py | 12 ++++++++++++ stripe/_payment_link_service.py | 12 ++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ac0cc575d..070a17759 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1079 \ No newline at end of file +v1081 \ No newline at end of file diff --git a/stripe/_payment_link.py b/stripe/_payment_link.py index 31ba7f183..9750cd359 100644 --- a/stripe/_payment_link.py +++ b/stripe/_payment_link.py @@ -1690,6 +1690,12 @@ class ModifyParams(RequestOptions): """ When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use `subscription_data`. """ + tax_id_collection: NotRequired[ + "PaymentLink.ModifyParamsTaxIdCollection" + ] + """ + Controls tax ID collection during checkout. + """ class ModifyParamsAfterCompletion(TypedDict): hosted_confirmation: NotRequired[ @@ -2306,6 +2312,12 @@ class ModifyParamsSubscriptionDataTrialSettingsEndBehavior(TypedDict): Indicates how the subscription should change when the trial ends if the user did not provide a payment method. """ + class ModifyParamsTaxIdCollection(TypedDict): + enabled: bool + """ + Set to `true` to enable tax ID collection. + """ + class RetrieveParams(RequestOptions): expand: NotRequired[List[str]] """ diff --git a/stripe/_payment_link_service.py b/stripe/_payment_link_service.py index 553136978..3f9426a3f 100644 --- a/stripe/_payment_link_service.py +++ b/stripe/_payment_link_service.py @@ -1034,6 +1034,12 @@ class UpdateParams(TypedDict): """ When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use `subscription_data`. """ + tax_id_collection: NotRequired[ + "PaymentLinkService.UpdateParamsTaxIdCollection" + ] + """ + Controls tax ID collection during checkout. + """ class UpdateParamsAfterCompletion(TypedDict): hosted_confirmation: NotRequired[ @@ -1656,6 +1662,12 @@ class UpdateParamsSubscriptionDataTrialSettingsEndBehavior(TypedDict): Indicates how the subscription should change when the trial ends if the user did not provide a payment method. """ + class UpdateParamsTaxIdCollection(TypedDict): + enabled: bool + """ + Set to `true` to enable tax ID collection. + """ + def list( self, params: "PaymentLinkService.ListParams" = {}, From 54e83b878b95e651244eec43fb9705374c94e61e Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 14 Jun 2024 20:44:53 +0000 Subject: [PATCH 4/5] Update generated code for v1082 --- OPENAPI_VERSION | 2 +- stripe/_account.py | 2 +- stripe/_account_capability_service.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 070a17759..63c4f7568 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1081 \ No newline at end of file +v1082 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index 1479bcee4..69b146b5f 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -3327,7 +3327,7 @@ class ModifyCapabilityParams(RequestOptions): """ To request a new capability for an account, pass true. There can be a delay before the requested capability becomes active. If the capability has any activation requirements, the response includes them in the `requirements` arrays. - If a capability isn't permanent, you can remove it from the account by passing false. Most capabilities are permanent after they've been requested. Attempting to remove a permanent capability returns an error. + If a capability isn't permanent, you can remove it from the account by passing false. Some capabilities are permanent after they've been requested. Attempting to remove a permanent capability returns an error. """ class ModifyExternalAccountParams(RequestOptions): diff --git a/stripe/_account_capability_service.py b/stripe/_account_capability_service.py index c2deeefe8..184b97c10 100644 --- a/stripe/_account_capability_service.py +++ b/stripe/_account_capability_service.py @@ -31,7 +31,7 @@ class UpdateParams(TypedDict): """ To request a new capability for an account, pass true. There can be a delay before the requested capability becomes active. If the capability has any activation requirements, the response includes them in the `requirements` arrays. - If a capability isn't permanent, you can remove it from the account by passing false. Most capabilities are permanent after they've been requested. Attempting to remove a permanent capability returns an error. + If a capability isn't permanent, you can remove it from the account by passing false. Some capabilities are permanent after they've been requested. Attempting to remove a permanent capability returns an error. """ def list( From c4647af19453f998b5e45e712279e0fe1e97cd92 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Sat, 15 Jun 2024 18:25:36 +0000 Subject: [PATCH 5/5] Update generated code for v1083 --- OPENAPI_VERSION | 2 +- stripe/_payment_link.py | 4 +++- stripe/_payment_link_service.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 63c4f7568..eeeff1529 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1082 \ No newline at end of file +v1083 \ No newline at end of file diff --git a/stripe/_payment_link.py b/stripe/_payment_link.py index 9750cd359..0dea20568 100644 --- a/stripe/_payment_link.py +++ b/stripe/_payment_link.py @@ -789,6 +789,7 @@ class CreateParams(RequestOptions): "klarna", "konbini", "link", + "mobilepay", "oxxo", "p24", "paynow", @@ -1667,7 +1668,7 @@ class ModifyParams(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://stripe.com/docs/payments/checkout/free-trials). """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'oxxo', 'p24', 'paynow', 'paypal', 'pix', 'promptpay', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mobilepay', 'oxxo', 'p24', 'paynow', 'paypal', 'pix', 'promptpay', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ 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). @@ -2428,6 +2429,7 @@ class RetrieveParams(RequestOptions): "klarna", "konbini", "link", + "mobilepay", "oxxo", "p24", "paynow", diff --git a/stripe/_payment_link_service.py b/stripe/_payment_link_service.py index 3f9426a3f..771f8b27f 100644 --- a/stripe/_payment_link_service.py +++ b/stripe/_payment_link_service.py @@ -131,6 +131,7 @@ class CreateParams(TypedDict): "klarna", "konbini", "link", + "mobilepay", "oxxo", "p24", "paynow", @@ -1011,7 +1012,7 @@ class UpdateParams(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://stripe.com/docs/payments/checkout/free-trials). """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'oxxo', 'p24', 'paynow', 'paypal', 'pix', 'promptpay', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mobilepay', 'oxxo', 'p24', 'paynow', 'paypal', 'pix', 'promptpay', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ 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).