From e11f4fb02be8a1ad83785810a9d1ab5add7b4654 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 16 May 2024 22:05:00 +0000 Subject: [PATCH 1/9] Update generated code (#1328) * Update generated code for v1022 * Update generated code for v1023 * Update generated code for v1025 * Update generated code for v1027 * Update generated code for v1028 * Update generated code for v1029 * Update generated code for v1030 * Update generated code for v1032 * Update generated code for v1033 * Update generated code for v1034 * Update generated code for v1035 * Update generated code for v1036 * Update generated code for v1037 * Update generated code for v1038 * Update generated code for v1039 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- stripe/_application_fee.py | 21 ++++++ stripe/_balance.py | 35 ++++++++- stripe/_charge.py | 4 + stripe/_confirmation_token.py | 4 + stripe/_dispute.py | 11 ++- stripe/_invoice.py | 2 +- stripe/_payment_intent.py | 46 ++++++++++++ stripe/_payment_intent_service.py | 36 +++++++++ stripe/_payment_method.py | 4 + stripe/_payout.py | 9 +++ stripe/_price.py | 2 +- stripe/_price_service.py | 2 +- stripe/_product.py | 6 +- stripe/_product_service.py | 4 +- stripe/_token.py | 2 +- stripe/_token_service.py | 2 +- stripe/checkout/_session.py | 4 +- stripe/checkout/_session_service.py | 2 +- stripe/entitlements/_feature.py | 8 ++ stripe/entitlements/_feature_service.py | 8 ++ stripe/financial_connections/_session.py | 2 +- .../financial_connections/_session_service.py | 2 +- stripe/issuing/_dispute.py | 74 +++++++++++++++++++ stripe/issuing/_dispute_service.py | 34 +++++++++ stripe/terminal/_configuration.py | 30 ++++++++ stripe/terminal/_configuration_service.py | 22 ++++++ 27 files changed, 359 insertions(+), 19 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 280e945f8..e0801e4ff 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1020 \ No newline at end of file +v1039 \ No newline at end of file diff --git a/stripe/_application_fee.py b/stripe/_application_fee.py index c6428ac9e..b7051d248 100644 --- a/stripe/_application_fee.py +++ b/stripe/_application_fee.py @@ -5,6 +5,7 @@ from stripe._listable_api_resource import ListableAPIResource from stripe._nested_resource_class_methods import nested_resource_class_methods from stripe._request_options import RequestOptions +from stripe._stripe_object import StripeObject from stripe._util import class_method_variant, sanitize_id from typing import ClassVar, Dict, List, Optional, cast, overload from typing_extensions import ( @@ -27,6 +28,20 @@ class ApplicationFee(ListableAPIResource["ApplicationFee"]): OBJECT_NAME: ClassVar[Literal["application_fee"]] = "application_fee" + class FeeSource(StripeObject): + charge: Optional[str] + """ + Charge ID that created this application fee. + """ + payout: Optional[str] + """ + Payout ID that created this application fee. + """ + type: Literal["charge", "payout"] + """ + Type of object that created the application fee, either `charge` or `payout`. + """ + class CreateRefundParams(RequestOptions): amount: NotRequired[int] """ @@ -171,6 +186,10 @@ class RetrieveRefundParams(RequestOptions): """ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). """ + fee_source: Optional[FeeSource] + """ + Polymorphic source of the application fee. Includes the ID of the object the application fee was created from. + """ id: str """ Unique identifier for the object. @@ -595,3 +614,5 @@ async def list_refunds_async( params=params, ), ) + + _inner_class_types = {"fee_source": FeeSource} diff --git a/stripe/_balance.py b/stripe/_balance.py index 1cbc6312e..ed80ed6ab 100644 --- a/stripe/_balance.py +++ b/stripe/_balance.py @@ -77,6 +77,32 @@ class SourceTypes(StripeObject): _inner_class_types = {"source_types": SourceTypes} class InstantAvailable(StripeObject): + class NetAvailable(StripeObject): + class SourceTypes(StripeObject): + bank_account: Optional[int] + """ + Amount for bank account. + """ + card: Optional[int] + """ + Amount for card. + """ + fpx: Optional[int] + """ + Amount for FPX. + """ + + amount: int + """ + Net balance amount, subtracting fees from platform-set pricing. + """ + destination: str + """ + ID of the external account for this net balance (not expandable). + """ + source_types: Optional[SourceTypes] + _inner_class_types = {"source_types": SourceTypes} + class SourceTypes(StripeObject): bank_account: Optional[int] """ @@ -99,8 +125,15 @@ class SourceTypes(StripeObject): """ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). """ + net_available: Optional[List[NetAvailable]] + """ + Breakdown of balance by destination. + """ source_types: Optional[SourceTypes] - _inner_class_types = {"source_types": SourceTypes} + _inner_class_types = { + "net_available": NetAvailable, + "source_types": SourceTypes, + } class Issuing(StripeObject): class Available(StripeObject): diff --git a/stripe/_charge.py b/stripe/_charge.py index 1b4f60f29..63d1385fc 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -918,6 +918,10 @@ class Receipt(StripeObject): """ Defines whether the authorized amount can be over-captured or not """ + preferred_locales: Optional[List[str]] + """ + EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + """ read_method: Optional[ Literal[ "contact_emv", diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index 7d2b24833..c8cbd375b 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -539,6 +539,10 @@ class Networks(StripeObject): """ Contains information about card networks that can be used to process the payment. """ + preferred_locales: Optional[List[str]] + """ + EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + """ read_method: Optional[ Literal[ "contact_emv", diff --git a/stripe/_dispute.py b/stripe/_dispute.py index 851becaec..092b2986b 100644 --- a/stripe/_dispute.py +++ b/stripe/_dispute.py @@ -175,6 +175,12 @@ class Card(StripeObject): The card network's specific dispute reason code, which maps to one of Stripe's primary dispute categories to simplify response guidance. The [Network code map](https://stripe.com/docs/disputes/categories#network-code-map) lists all available dispute reason codes by network. """ + class Klarna(StripeObject): + reason_code: Optional[str] + """ + The reason for the dispute as defined by Klarna + """ + class Paypal(StripeObject): case_id: Optional[str] """ @@ -186,12 +192,13 @@ class Paypal(StripeObject): """ card: Optional[Card] + klarna: Optional[Klarna] paypal: Optional[Paypal] - type: Literal["card", "paypal"] + type: Literal["card", "klarna", "paypal"] """ Payment method type. """ - _inner_class_types = {"card": Card, "paypal": Paypal} + _inner_class_types = {"card": Card, "klarna": Klarna, "paypal": Paypal} class CloseParams(RequestOptions): expand: NotRequired[List[str]] diff --git a/stripe/_invoice.py b/stripe/_invoice.py index a3b70fe4d..7f450660b 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -5612,7 +5612,7 @@ class VoidInvoiceParams(RequestOptions): """ attempt_count: int """ - Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule. + Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule. If a failure is returned with a non-retryable return code, the invoice can no longer be retried unless a new payment method is obtained. Retries will continue to be scheduled, and attempt_count will continue to increment, but retries will only be executed if a new payment method is obtained. """ attempted: bool """ diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index aff76766f..9fea82170 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -1278,6 +1278,14 @@ class MandateOptions(StripeObject): } class CardPresent(StripeObject): + class Routing(StripeObject): + requested_priority: Optional[ + Literal["domestic", "international"] + ] + """ + Requested routing priority + """ + request_extended_authorization: Optional[bool] """ Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) @@ -1286,6 +1294,8 @@ class CardPresent(StripeObject): """ 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. """ + routing: Optional[Routing] + _inner_class_types = {"routing": Routing} class Cashapp(StripeObject): capture_method: Optional[Literal["manual"]] @@ -3311,6 +3321,18 @@ class ConfirmParamsPaymentMethodOptionsCardPresent(TypedDict): """ 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. """ + routing: NotRequired[ + "PaymentIntent.ConfirmParamsPaymentMethodOptionsCardPresentRouting" + ] + """ + Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. + """ + + class ConfirmParamsPaymentMethodOptionsCardPresentRouting(TypedDict): + requested_priority: NotRequired[Literal["domestic", "international"]] + """ + Routing requested priority + """ class ConfirmParamsPaymentMethodOptionsCardThreeDSecure(TypedDict): ares_trans_status: NotRequired[ @@ -5500,6 +5522,18 @@ class CreateParamsPaymentMethodOptionsCardPresent(TypedDict): """ 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. """ + routing: NotRequired[ + "PaymentIntent.CreateParamsPaymentMethodOptionsCardPresentRouting" + ] + """ + Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. + """ + + class CreateParamsPaymentMethodOptionsCardPresentRouting(TypedDict): + requested_priority: NotRequired[Literal["domestic", "international"]] + """ + Routing requested priority + """ class CreateParamsPaymentMethodOptionsCardThreeDSecure(TypedDict): ares_trans_status: NotRequired[ @@ -7683,6 +7717,18 @@ class ModifyParamsPaymentMethodOptionsCardPresent(TypedDict): """ 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. """ + routing: NotRequired[ + "PaymentIntent.ModifyParamsPaymentMethodOptionsCardPresentRouting" + ] + """ + Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. + """ + + class ModifyParamsPaymentMethodOptionsCardPresentRouting(TypedDict): + requested_priority: NotRequired[Literal["domestic", "international"]] + """ + Routing requested priority + """ class ModifyParamsPaymentMethodOptionsCardThreeDSecure(TypedDict): ares_trans_status: NotRequired[ diff --git a/stripe/_payment_intent_service.py b/stripe/_payment_intent_service.py index 1dee3a221..d2e1c83d4 100644 --- a/stripe/_payment_intent_service.py +++ b/stripe/_payment_intent_service.py @@ -1465,6 +1465,18 @@ class ConfirmParamsPaymentMethodOptionsCardPresent(TypedDict): """ 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. """ + routing: NotRequired[ + "PaymentIntentService.ConfirmParamsPaymentMethodOptionsCardPresentRouting" + ] + """ + Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. + """ + + class ConfirmParamsPaymentMethodOptionsCardPresentRouting(TypedDict): + requested_priority: NotRequired[Literal["domestic", "international"]] + """ + Routing requested priority + """ class ConfirmParamsPaymentMethodOptionsCardThreeDSecure(TypedDict): ares_trans_status: NotRequired[ @@ -3678,6 +3690,18 @@ class CreateParamsPaymentMethodOptionsCardPresent(TypedDict): """ 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. """ + routing: NotRequired[ + "PaymentIntentService.CreateParamsPaymentMethodOptionsCardPresentRouting" + ] + """ + Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. + """ + + class CreateParamsPaymentMethodOptionsCardPresentRouting(TypedDict): + requested_priority: NotRequired[Literal["domestic", "international"]] + """ + Routing requested priority + """ class CreateParamsPaymentMethodOptionsCardThreeDSecure(TypedDict): ares_trans_status: NotRequired[ @@ -5913,6 +5937,18 @@ class UpdateParamsPaymentMethodOptionsCardPresent(TypedDict): """ 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. """ + routing: NotRequired[ + "PaymentIntentService.UpdateParamsPaymentMethodOptionsCardPresentRouting" + ] + """ + Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. + """ + + class UpdateParamsPaymentMethodOptionsCardPresentRouting(TypedDict): + requested_priority: NotRequired[Literal["domestic", "international"]] + """ + Routing requested priority + """ class UpdateParamsPaymentMethodOptionsCardThreeDSecure(TypedDict): ares_trans_status: NotRequired[ diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 8070922e7..aa5f8e897 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -515,6 +515,10 @@ class Networks(StripeObject): """ Contains information about card networks that can be used to process the payment. """ + preferred_locales: Optional[List[str]] + """ + EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + """ read_method: Optional[ Literal[ "contact_emv", diff --git a/stripe/_payout.py b/stripe/_payout.py index 7e1d627c2..62fbe67ee 100644 --- a/stripe/_payout.py +++ b/stripe/_payout.py @@ -17,6 +17,7 @@ ) if TYPE_CHECKING: + from stripe._application_fee import ApplicationFee from stripe._balance_transaction import BalanceTransaction from stripe._bank_account import BankAccount from stripe._card import Card @@ -184,6 +185,14 @@ class ReverseParams(RequestOptions): """ The amount (in cents (or local equivalent)) that transfers to your bank account or debit card. """ + application_fee: Optional[ExpandableField["ApplicationFee"]] + """ + The application fee (if any) for the payout. [See the Connect documentation](https://stripe.com/docs/connect/instant-payouts#monetization-and-fees) for details. + """ + application_fee_amount: Optional[int] + """ + The amount of the application fee (if any) requested for the payout. [See the Connect documentation](https://stripe.com/docs/connect/instant-payouts#monetization-and-fees) for details. + """ arrival_date: int """ Date that you can expect the payout to arrive in the bank. This factors in delays to account for weekends or bank holidays. diff --git a/stripe/_price.py b/stripe/_price.py index 9397e6c80..3b2811826 100644 --- a/stripe/_price.py +++ b/stripe/_price.py @@ -472,7 +472,7 @@ class ListParams(RequestOptions): """ lookup_keys: NotRequired[List[str]] """ - Only return the price with these lookup_keys, if any exist. + Only return the price with these lookup_keys, if any exist. You can specify up to 10 lookup_keys. """ product: NotRequired[str] """ diff --git a/stripe/_price_service.py b/stripe/_price_service.py index f43af4019..bf2388309 100644 --- a/stripe/_price_service.py +++ b/stripe/_price_service.py @@ -302,7 +302,7 @@ class ListParams(TypedDict): """ lookup_keys: NotRequired[List[str]] """ - Only return the price with these lookup_keys, if any exist. + Only return the price with these lookup_keys, if any exist. You can specify up to 10 lookup_keys. """ product: NotRequired[str] """ diff --git a/stripe/_product.py b/stripe/_product.py index b660d5146..ea3cda794 100644 --- a/stripe/_product.py +++ b/stripe/_product.py @@ -146,7 +146,7 @@ class CreateParams(RequestOptions): An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all. This may be up to 22 characters. The statement description may not include `<`, `>`, `\\`, `"`, `'` characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped. - It must contain at least one letter. + It must contain at least one letter. Only used for subscription payments. """ tax_code: NotRequired[str] """ @@ -433,7 +433,7 @@ class ModifyParams(RequestOptions): An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all. This may be up to 22 characters. The statement description may not include `<`, `>`, `\\`, `"`, `'` characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped. - It must contain at least one letter. May only be set if `type=service`. + It must contain at least one letter. May only be set if `type=service`. Only used for subscription payments. """ tax_code: NotRequired["Literal['']|str"] """ @@ -556,7 +556,7 @@ class SearchParams(RequestOptions): """ statement_descriptor: Optional[str] """ - Extra information about a product which will appear on your customer's credit card statement. In the case that multiple products are billed at once, the first statement descriptor will be used. + Extra information about a product which will appear on your customer's credit card statement. In the case that multiple products are billed at once, the first statement descriptor will be used. Only used for subscription payments. """ tax_code: Optional[ExpandableField["TaxCode"]] """ diff --git a/stripe/_product_service.py b/stripe/_product_service.py index 90b17ca4a..cde4ad8a0 100644 --- a/stripe/_product_service.py +++ b/stripe/_product_service.py @@ -72,7 +72,7 @@ class CreateParams(TypedDict): An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all. This may be up to 22 characters. The statement description may not include `<`, `>`, `\\`, `"`, `'` characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped. - It must contain at least one letter. + It must contain at least one letter. Only used for subscription payments. """ tax_code: NotRequired[str] """ @@ -369,7 +369,7 @@ class UpdateParams(TypedDict): An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all. This may be up to 22 characters. The statement description may not include `<`, `>`, `\\`, `"`, `'` characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped. - It must contain at least one letter. May only be set if `type=service`. + It must contain at least one letter. May only be set if `type=service`. Only used for subscription payments. """ tax_code: NotRequired["Literal['']|str"] """ diff --git a/stripe/_token.py b/stripe/_token.py index 3b1dd5358..36ae4308a 100644 --- a/stripe/_token.py +++ b/stripe/_token.py @@ -627,7 +627,7 @@ class CreateParamsBankAccount(TypedDict): """ routing_number: NotRequired[str] """ - The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required. + The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required. """ class CreateParamsCard(TypedDict): diff --git a/stripe/_token_service.py b/stripe/_token_service.py index dae80cd3f..841017566 100644 --- a/stripe/_token_service.py +++ b/stripe/_token_service.py @@ -598,7 +598,7 @@ class CreateParamsBankAccount(TypedDict): """ routing_number: NotRequired[str] """ - The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required. + The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required. """ class CreateParamsCard(TypedDict): diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index 983b1d8ba..8d504d963 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -1062,7 +1062,7 @@ class SavedPaymentMethodOptions(StripeObject): List[Literal["always", "limited", "unspecified"]] ] """ - Controls which payment methods are eligible to be redisplayed to returning customers. Corresponds to `allow_redisplay` on the payment method. + 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_save: Optional[Literal["disabled", "enabled"]] """ @@ -3097,7 +3097,7 @@ class CreateParamsSavedPaymentMethodOptions(TypedDict): List[Literal["always", "limited", "unspecified"]] ] """ - Controls which payment methods are eligible to be redisplayed to returning customers. Corresponds to `allow_redisplay` on the payment method. + 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_save: NotRequired[Literal["disabled", "enabled"]] """ diff --git a/stripe/checkout/_session_service.py b/stripe/checkout/_session_service.py index 05cff7d09..defe9f25a 100644 --- a/stripe/checkout/_session_service.py +++ b/stripe/checkout/_session_service.py @@ -1649,7 +1649,7 @@ class CreateParamsSavedPaymentMethodOptions(TypedDict): List[Literal["always", "limited", "unspecified"]] ] """ - Controls which payment methods are eligible to be redisplayed to returning customers. Corresponds to `allow_redisplay` on the payment method. + 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_save: NotRequired[Literal["disabled", "enabled"]] """ diff --git a/stripe/entitlements/_feature.py b/stripe/entitlements/_feature.py index 99162f70a..85bca6f8f 100644 --- a/stripe/entitlements/_feature.py +++ b/stripe/entitlements/_feature.py @@ -43,6 +43,10 @@ class CreateParams(RequestOptions): """ class ListParams(RequestOptions): + archived: NotRequired[bool] + """ + If set, filter results to only include features with the given archive status. + """ ending_before: NotRequired[str] """ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. @@ -55,6 +59,10 @@ class ListParams(RequestOptions): """ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. """ + lookup_key: NotRequired[str] + """ + If set, filter results to only include features with the given lookup_key. + """ starting_after: NotRequired[str] """ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. diff --git a/stripe/entitlements/_feature_service.py b/stripe/entitlements/_feature_service.py index d9b480b8b..dea34b0f2 100644 --- a/stripe/entitlements/_feature_service.py +++ b/stripe/entitlements/_feature_service.py @@ -29,6 +29,10 @@ class CreateParams(TypedDict): """ class ListParams(TypedDict): + archived: NotRequired[bool] + """ + If set, filter results to only include features with the given archive status. + """ ending_before: NotRequired[str] """ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. @@ -41,6 +45,10 @@ class ListParams(TypedDict): """ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. """ + lookup_key: NotRequired[str] + """ + If set, filter results to only include features with the given lookup_key. + """ starting_after: NotRequired[str] """ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. diff --git a/stripe/financial_connections/_session.py b/stripe/financial_connections/_session.py index 0b9cff990..8dc534188 100644 --- a/stripe/financial_connections/_session.py +++ b/stripe/financial_connections/_session.py @@ -98,7 +98,7 @@ class CreateParamsAccountHolder(TypedDict): """ class CreateParamsFilters(TypedDict): - countries: List[str] + countries: NotRequired[List[str]] """ List of countries from which to collect accounts. """ diff --git a/stripe/financial_connections/_session_service.py b/stripe/financial_connections/_session_service.py index d15529e5e..69a70c80d 100644 --- a/stripe/financial_connections/_session_service.py +++ b/stripe/financial_connections/_session_service.py @@ -56,7 +56,7 @@ class CreateParamsAccountHolder(TypedDict): """ class CreateParamsFilters(TypedDict): - countries: List[str] + countries: NotRequired[List[str]] """ List of countries from which to collect accounts. """ diff --git a/stripe/issuing/_dispute.py b/stripe/issuing/_dispute.py index 9102bcf07..c6bcb13d1 100644 --- a/stripe/issuing/_dispute.py +++ b/stripe/issuing/_dispute.py @@ -141,6 +141,16 @@ class MerchandiseNotAsDescribed(StripeObject): Date when the product was returned or attempted to be returned. """ + class NoValidAuthorization(StripeObject): + additional_documentation: Optional[ExpandableField["File"]] + """ + (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. + """ + explanation: Optional[str] + """ + Explanation of why the cardholder is disputing this transaction. + """ + class NotReceived(StripeObject): additional_documentation: Optional[ExpandableField["File"]] """ @@ -207,6 +217,7 @@ class ServiceNotAsDescribed(StripeObject): duplicate: Optional[Duplicate] fraudulent: Optional[Fraudulent] merchandise_not_as_described: Optional[MerchandiseNotAsDescribed] + no_valid_authorization: Optional[NoValidAuthorization] not_received: Optional[NotReceived] other: Optional[Other] reason: Literal[ @@ -214,6 +225,7 @@ class ServiceNotAsDescribed(StripeObject): "duplicate", "fraudulent", "merchandise_not_as_described", + "no_valid_authorization", "not_received", "other", "service_not_as_described", @@ -227,6 +239,7 @@ class ServiceNotAsDescribed(StripeObject): "duplicate": Duplicate, "fraudulent": Fraudulent, "merchandise_not_as_described": MerchandiseNotAsDescribed, + "no_valid_authorization": NoValidAuthorization, "not_received": NotReceived, "other": Other, "service_not_as_described": ServiceNotAsDescribed, @@ -293,6 +306,12 @@ class CreateParamsEvidence(TypedDict): """ Evidence provided when `reason` is 'merchandise_not_as_described'. """ + no_valid_authorization: NotRequired[ + "Literal['']|Dispute.CreateParamsEvidenceNoValidAuthorization" + ] + """ + Evidence provided when `reason` is 'no_valid_authorization'. + """ not_received: NotRequired[ "Literal['']|Dispute.CreateParamsEvidenceNotReceived" ] @@ -309,6 +328,7 @@ class CreateParamsEvidence(TypedDict): "duplicate", "fraudulent", "merchandise_not_as_described", + "no_valid_authorization", "not_received", "other", "service_not_as_described", @@ -434,6 +454,16 @@ class CreateParamsEvidenceMerchandiseNotAsDescribed(TypedDict): Date when the product was returned or attempted to be returned. """ + class CreateParamsEvidenceNoValidAuthorization(TypedDict): + additional_documentation: NotRequired["Literal['']|str"] + """ + (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. + """ + explanation: NotRequired["Literal['']|str"] + """ + Explanation of why the cardholder is disputing this transaction. + """ + class CreateParamsEvidenceNotReceived(TypedDict): additional_documentation: NotRequired["Literal['']|str"] """ @@ -599,6 +629,12 @@ class ModifyParamsEvidence(TypedDict): """ Evidence provided when `reason` is 'merchandise_not_as_described'. """ + no_valid_authorization: NotRequired[ + "Literal['']|Dispute.ModifyParamsEvidenceNoValidAuthorization" + ] + """ + Evidence provided when `reason` is 'no_valid_authorization'. + """ not_received: NotRequired[ "Literal['']|Dispute.ModifyParamsEvidenceNotReceived" ] @@ -615,6 +651,7 @@ class ModifyParamsEvidence(TypedDict): "duplicate", "fraudulent", "merchandise_not_as_described", + "no_valid_authorization", "not_received", "other", "service_not_as_described", @@ -740,6 +777,16 @@ class ModifyParamsEvidenceMerchandiseNotAsDescribed(TypedDict): Date when the product was returned or attempted to be returned. """ + class ModifyParamsEvidenceNoValidAuthorization(TypedDict): + additional_documentation: NotRequired["Literal['']|str"] + """ + (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. + """ + explanation: NotRequired["Literal['']|str"] + """ + Explanation of why the cardholder is disputing this transaction. + """ + class ModifyParamsEvidenceNotReceived(TypedDict): additional_documentation: NotRequired["Literal['']|str"] """ @@ -847,6 +894,33 @@ class SubmitParams(RequestOptions): """ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. """ + loss_reason: Optional[ + Literal[ + "cardholder_authentication_issuer_liability", + "eci5_token_transaction_with_tavv", + "excess_disputes_in_timeframe", + "has_not_met_the_minimum_dispute_amount_requirements", + "invalid_duplicate_dispute", + "invalid_incorrect_amount_dispute", + "invalid_no_authorization", + "invalid_use_of_disputes", + "merchandise_delivered_or_shipped", + "merchandise_or_service_as_described", + "not_cancelled", + "other", + "refund_issued", + "submitted_beyond_allowable_time_limit", + "transaction_3ds_required", + "transaction_approved_after_prior_fraud_dispute", + "transaction_authorized", + "transaction_electronically_read", + "transaction_qualifies_for_visa_easy_payment_service", + "transaction_unattended", + ] + ] + """ + The enum that describes the dispute loss outcome. If the dispute is not lost, this field will be absent. New enum values may be added in the future, so be sure to handle unknown values. + """ metadata: Dict[str, str] """ Set of [key-value pairs](https://stripe.com/docs/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/issuing/_dispute_service.py b/stripe/issuing/_dispute_service.py index 4b567e3ce..66492a871 100644 --- a/stripe/issuing/_dispute_service.py +++ b/stripe/issuing/_dispute_service.py @@ -61,6 +61,12 @@ class CreateParamsEvidence(TypedDict): """ Evidence provided when `reason` is 'merchandise_not_as_described'. """ + no_valid_authorization: NotRequired[ + "Literal['']|DisputeService.CreateParamsEvidenceNoValidAuthorization" + ] + """ + Evidence provided when `reason` is 'no_valid_authorization'. + """ not_received: NotRequired[ "Literal['']|DisputeService.CreateParamsEvidenceNotReceived" ] @@ -79,6 +85,7 @@ class CreateParamsEvidence(TypedDict): "duplicate", "fraudulent", "merchandise_not_as_described", + "no_valid_authorization", "not_received", "other", "service_not_as_described", @@ -204,6 +211,16 @@ class CreateParamsEvidenceMerchandiseNotAsDescribed(TypedDict): Date when the product was returned or attempted to be returned. """ + class CreateParamsEvidenceNoValidAuthorization(TypedDict): + additional_documentation: NotRequired["Literal['']|str"] + """ + (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. + """ + explanation: NotRequired["Literal['']|str"] + """ + Explanation of why the cardholder is disputing this transaction. + """ + class CreateParamsEvidenceNotReceived(TypedDict): additional_documentation: NotRequired["Literal['']|str"] """ @@ -385,6 +402,12 @@ class UpdateParamsEvidence(TypedDict): """ Evidence provided when `reason` is 'merchandise_not_as_described'. """ + no_valid_authorization: NotRequired[ + "Literal['']|DisputeService.UpdateParamsEvidenceNoValidAuthorization" + ] + """ + Evidence provided when `reason` is 'no_valid_authorization'. + """ not_received: NotRequired[ "Literal['']|DisputeService.UpdateParamsEvidenceNotReceived" ] @@ -403,6 +426,7 @@ class UpdateParamsEvidence(TypedDict): "duplicate", "fraudulent", "merchandise_not_as_described", + "no_valid_authorization", "not_received", "other", "service_not_as_described", @@ -528,6 +552,16 @@ class UpdateParamsEvidenceMerchandiseNotAsDescribed(TypedDict): Date when the product was returned or attempted to be returned. """ + class UpdateParamsEvidenceNoValidAuthorization(TypedDict): + additional_documentation: NotRequired["Literal['']|str"] + """ + (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. + """ + explanation: NotRequired["Literal['']|str"] + """ + Explanation of why the cardholder is disputing this transaction. + """ + class UpdateParamsEvidenceNotReceived(TypedDict): additional_documentation: NotRequired["Literal['']|str"] """ diff --git a/stripe/terminal/_configuration.py b/stripe/terminal/_configuration.py index 14a7e1e7f..a9f1351c9 100644 --- a/stripe/terminal/_configuration.py +++ b/stripe/terminal/_configuration.py @@ -48,6 +48,12 @@ class Offline(StripeObject): Determines whether to allow transactions to be collected while reader is offline. Defaults to false. """ + class StripeS700(StripeObject): + splashscreen: Optional[ExpandableField["File"]] + """ + A File ID representing an image you would like displayed on the reader. + """ + class Tipping(StripeObject): class Aud(StripeObject): fixed_amounts: Optional[List[int]] @@ -299,6 +305,10 @@ class CreateParams(RequestOptions): """ Configurations for collecting transactions offline. """ + stripe_s700: NotRequired["Configuration.CreateParamsStripeS700"] + """ + An object containing device type specific settings for Stripe S700 readers + """ tipping: NotRequired["Literal['']|Configuration.CreateParamsTipping"] """ Tipping configurations for readers supporting on-reader tips @@ -320,6 +330,12 @@ class CreateParamsOffline(TypedDict): Determines whether to allow transactions to be collected while reader is offline. Defaults to false. """ + class CreateParamsStripeS700(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you would like displayed on the reader. + """ + class CreateParamsTipping(TypedDict): aud: NotRequired["Configuration.CreateParamsTippingAud"] """ @@ -624,6 +640,12 @@ class ModifyParams(RequestOptions): """ Configurations for collecting transactions offline. """ + stripe_s700: NotRequired[ + "Literal['']|Configuration.ModifyParamsStripeS700" + ] + """ + An object containing device type specific settings for Stripe S700 readers + """ tipping: NotRequired["Literal['']|Configuration.ModifyParamsTipping"] """ Tipping configurations for readers supporting on-reader tips @@ -647,6 +669,12 @@ class ModifyParamsOffline(TypedDict): Determines whether to allow transactions to be collected while reader is offline. Defaults to false. """ + class ModifyParamsStripeS700(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you would like displayed on the reader. + """ + class ModifyParamsTipping(TypedDict): aud: NotRequired["Configuration.ModifyParamsTippingAud"] """ @@ -935,6 +963,7 @@ class RetrieveParams(RequestOptions): String representing the object's type. Objects of the same type share the same value. """ offline: Optional[Offline] + stripe_s700: Optional[StripeS700] tipping: Optional[Tipping] verifone_p400: Optional[VerifoneP400] deleted: Optional[Literal[True]] @@ -1171,6 +1200,7 @@ async def retrieve_async( _inner_class_types = { "bbpos_wisepos_e": BbposWiseposE, "offline": Offline, + "stripe_s700": StripeS700, "tipping": Tipping, "verifone_p400": VerifoneP400, } diff --git a/stripe/terminal/_configuration_service.py b/stripe/terminal/_configuration_service.py index 76740d703..7a87a5fc2 100644 --- a/stripe/terminal/_configuration_service.py +++ b/stripe/terminal/_configuration_service.py @@ -31,6 +31,10 @@ class CreateParams(TypedDict): """ Configurations for collecting transactions offline. """ + stripe_s700: NotRequired["ConfigurationService.CreateParamsStripeS700"] + """ + An object containing device type specific settings for Stripe S700 readers + """ tipping: NotRequired[ "Literal['']|ConfigurationService.CreateParamsTipping" ] @@ -56,6 +60,12 @@ class CreateParamsOffline(TypedDict): Determines whether to allow transactions to be collected while reader is offline. Defaults to false. """ + class CreateParamsStripeS700(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you would like displayed on the reader. + """ + class CreateParamsTipping(TypedDict): aud: NotRequired["ConfigurationService.CreateParamsTippingAud"] """ @@ -368,6 +378,12 @@ class UpdateParams(TypedDict): """ Configurations for collecting transactions offline. """ + stripe_s700: NotRequired[ + "Literal['']|ConfigurationService.UpdateParamsStripeS700" + ] + """ + An object containing device type specific settings for Stripe S700 readers + """ tipping: NotRequired[ "Literal['']|ConfigurationService.UpdateParamsTipping" ] @@ -393,6 +409,12 @@ class UpdateParamsOffline(TypedDict): Determines whether to allow transactions to be collected while reader is offline. Defaults to false. """ + class UpdateParamsStripeS700(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you would like displayed on the reader. + """ + class UpdateParamsTipping(TypedDict): aud: NotRequired["ConfigurationService.UpdateParamsTippingAud"] """ From 6809d4cafa3184c43bdcdfe0f0ceeffe69748c19 Mon Sep 17 00:00:00 2001 From: Prathmesh Ranaut Date: Thu, 16 May 2024 18:19:27 -0400 Subject: [PATCH 2/9] Bump version to 9.7.0 --- CHANGELOG.md | 18 ++++++++++++++++++ VERSION | 2 +- stripe/_version.py | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d0d3a85cb..9f02a0b82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,21 @@ +## 9.7.0 - 2024-05-16 +* [#1328](https://github.com/stripe/stripe-python/pull/1328) Update generated code + * Add support for `fee_source` on resource `stripe.ApplicationFee` + * Add support for `net_available` on resource class `stripe.Balance.InstantAvailable` + * Add support for `preferred_locales` on resource classes `stripe.Charge.PaymentMethodDetails.CardPresent`, `stripe.ConfirmationToken.PaymentMethodPreview.CardPresent`, and `stripe.PaymentMethod.CardPresent` + * Add support for `klarna` on resource class `stripe.Dispute.PaymentMethodDetails` + * Add support for `routing` on parameter classes `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsCardPresent`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsCardPresent`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsCardPresent` and resource class `stripe.PaymentIntent.PaymentMethodOptions.CardPresent` + * Add support for `application_fee` on resource `stripe.Payout` + * Add support for `archived` on parameter class `stripe.entitlements.Feature.ListParams` + * Add support for `lookup_key` on parameter class `stripe.entitlements.Feature.ListParams` + * Add support for `no_valid_authorization` on parameter classes `stripe.issuing.Dispute.CreateParamsEvidence` and `stripe.issuing.Dispute.ModifyParamsEvidence` and resource class `stripe.issuing.Dispute.Evidence` + * Add support for `loss_reason` on resource `stripe.issuing.Dispute` + * Add support for `stripe_s700` on parameter classes `stripe.terminal.Configuration.CreateParams` and `stripe.terminal.Configuration.ModifyParams` and resource `stripe.terminal.Configuration` + * Add support for `klarna` on enum `stripe.Dispute.PaymentMethodDetails.type` + * Add support for `no_valid_authorization` on enums `stripe.issuing.Dispute.Evidence.reason`, `stripe.issuing.Dispute.CreateParamsEvidence.reason`, and `stripe.issuing.Dispute.ModifyParamsEvidence.reason` + * Change type of `countries` on `stripe.financial_connections.Session.CreateParamsFilters` from `List[str]` to `NotRequired[List[str]]` +* [#1329](https://github.com/stripe/stripe-python/pull/1329) Switch from `black` to `ruff` for formatting + ## 9.6.0 - 2024-05-09 * [#1323](https://github.com/stripe/stripe-python/pull/1323) Update generated code * Add support for `allow_redisplay` on resource class `stripe.ConfirmationToken.PaymentMethodPreview` and resource `stripe.PaymentMethod` diff --git a/VERSION b/VERSION index 7b0680f4e..a458a24cc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -9.6.0 +9.7.0 diff --git a/stripe/_version.py b/stripe/_version.py index bace651be..0cb2df74f 100644 --- a/stripe/_version.py +++ b/stripe/_version.py @@ -1 +1 @@ -VERSION = "9.6.0" +VERSION = "9.7.0" From e3743fbd3cfcee6010467d6dc9a0de3835d21fcf Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 00:06:58 +0000 Subject: [PATCH 3/9] Update generated code for v1041 --- OPENAPI_VERSION | 2 +- stripe/_invoice.py | 18 +++++++++--------- stripe/_invoice_service.py | 12 ++++++------ stripe/_invoice_upcoming_lines_service.py | 6 +++--- stripe/_quote.py | 8 ++++---- stripe/_quote_service.py | 8 ++++---- stripe/_subscription.py | 2 +- stripe/_subscription_item.py | 2 +- stripe/_subscription_item_service.py | 2 +- stripe/_subscription_schedule.py | 8 ++++---- stripe/_subscription_schedule_service.py | 8 ++++---- stripe/_subscription_service.py | 2 +- 12 files changed, 39 insertions(+), 39 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c84f8a128..358e1bf76 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1040 \ No newline at end of file +v1041 \ No newline at end of file diff --git a/stripe/_invoice.py b/stripe/_invoice.py index ba610c948..8a80a2c8d 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -2882,7 +2882,7 @@ class CreatePreviewParamsScheduleDetailsAmendmentItemActionAddTrial( ): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -2986,7 +2986,7 @@ class CreatePreviewParamsScheduleDetailsAmendmentItemActionSetTrial( ): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -3542,7 +3542,7 @@ class CreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurring( class CreatePreviewParamsScheduleDetailsPhaseItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -5659,7 +5659,7 @@ class UpcomingLinesParamsScheduleDetailsAmendmentItemActionAddTrial( ): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -5763,7 +5763,7 @@ class UpcomingLinesParamsScheduleDetailsAmendmentItemActionSetTrial( ): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -6319,7 +6319,7 @@ class UpcomingLinesParamsScheduleDetailsPhaseItemPriceDataRecurring( class UpcomingLinesParamsScheduleDetailsPhaseItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -7704,7 +7704,7 @@ class UpcomingParamsScheduleDetailsAmendmentItemActionAddDiscountDiscountEndDura class UpcomingParamsScheduleDetailsAmendmentItemActionAddTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -7804,7 +7804,7 @@ class UpcomingParamsScheduleDetailsAmendmentItemActionSetDiscountDiscountEndDura class UpcomingParamsScheduleDetailsAmendmentItemActionSetTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -8342,7 +8342,7 @@ class UpcomingParamsScheduleDetailsPhaseItemPriceDataRecurring(TypedDict): class UpcomingParamsScheduleDetailsPhaseItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ diff --git a/stripe/_invoice_service.py b/stripe/_invoice_service.py index b27a5e6f4..0f23c454b 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -1851,7 +1851,7 @@ class CreatePreviewParamsScheduleDetailsAmendmentItemActionAddTrial( ): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -1955,7 +1955,7 @@ class CreatePreviewParamsScheduleDetailsAmendmentItemActionSetTrial( ): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -2513,7 +2513,7 @@ class CreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurring( class CreatePreviewParamsScheduleDetailsPhaseItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -3944,7 +3944,7 @@ class UpcomingParamsScheduleDetailsAmendmentItemActionAddDiscountDiscountEndDura class UpcomingParamsScheduleDetailsAmendmentItemActionAddTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -4044,7 +4044,7 @@ class UpcomingParamsScheduleDetailsAmendmentItemActionSetDiscountDiscountEndDura class UpcomingParamsScheduleDetailsAmendmentItemActionSetTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -4582,7 +4582,7 @@ class UpcomingParamsScheduleDetailsPhaseItemPriceDataRecurring(TypedDict): class UpcomingParamsScheduleDetailsPhaseItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ diff --git a/stripe/_invoice_upcoming_lines_service.py b/stripe/_invoice_upcoming_lines_service.py index dabb2cf24..5390aae58 100644 --- a/stripe/_invoice_upcoming_lines_service.py +++ b/stripe/_invoice_upcoming_lines_service.py @@ -963,7 +963,7 @@ class ListParamsScheduleDetailsAmendmentItemActionAddDiscountDiscountEndDuration class ListParamsScheduleDetailsAmendmentItemActionAddTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -1061,7 +1061,7 @@ class ListParamsScheduleDetailsAmendmentItemActionSetDiscountDiscountEndDuration class ListParamsScheduleDetailsAmendmentItemActionSetTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -1597,7 +1597,7 @@ class ListParamsScheduleDetailsPhaseItemPriceDataRecurring(TypedDict): class ListParamsScheduleDetailsPhaseItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ diff --git a/stripe/_quote.py b/stripe/_quote.py index da4b640ad..15bccaa4d 100644 --- a/stripe/_quote.py +++ b/stripe/_quote.py @@ -1303,7 +1303,7 @@ class CreateParamsLineActionAddItemDiscountDiscountEndDuration(TypedDict): class CreateParamsLineActionAddItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -1421,7 +1421,7 @@ class CreateParamsLineActionSetItemDiscountDiscountEndDuration(TypedDict): class CreateParamsLineActionSetItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -2807,7 +2807,7 @@ class ModifyParamsLineActionAddItemDiscountDiscountEndDuration(TypedDict): class ModifyParamsLineActionAddItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -2925,7 +2925,7 @@ class ModifyParamsLineActionSetItemDiscountDiscountEndDuration(TypedDict): class ModifyParamsLineActionSetItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ diff --git a/stripe/_quote_service.py b/stripe/_quote_service.py index 6ab4b351a..92f569101 100644 --- a/stripe/_quote_service.py +++ b/stripe/_quote_service.py @@ -481,7 +481,7 @@ class CreateParamsLineActionAddItemDiscountDiscountEndDuration(TypedDict): class CreateParamsLineActionAddItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -599,7 +599,7 @@ class CreateParamsLineActionSetItemDiscountDiscountEndDuration(TypedDict): class CreateParamsLineActionSetItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -1949,7 +1949,7 @@ class UpdateParamsLineActionAddItemDiscountDiscountEndDuration(TypedDict): class UpdateParamsLineActionAddItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -2067,7 +2067,7 @@ class UpdateParamsLineActionSetItemDiscountDiscountEndDuration(TypedDict): class UpdateParamsLineActionSetItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ diff --git a/stripe/_subscription.py b/stripe/_subscription.py index 003ef5e36..f1ff9772f 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -1018,7 +1018,7 @@ class CreateParamsItemPriceDataRecurring(TypedDict): class CreateParamsItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ diff --git a/stripe/_subscription_item.py b/stripe/_subscription_item.py index 9e832e89c..d426def14 100644 --- a/stripe/_subscription_item.py +++ b/stripe/_subscription_item.py @@ -229,7 +229,7 @@ class CreateParamsPriceDataRecurring(TypedDict): class CreateParamsTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ diff --git a/stripe/_subscription_item_service.py b/stripe/_subscription_item_service.py index f8349ed99..06278f3fc 100644 --- a/stripe/_subscription_item_service.py +++ b/stripe/_subscription_item_service.py @@ -199,7 +199,7 @@ class CreateParamsPriceDataRecurring(TypedDict): class CreateParamsTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ diff --git a/stripe/_subscription_schedule.py b/stripe/_subscription_schedule.py index 4a70b48e6..88cab9fe2 100644 --- a/stripe/_subscription_schedule.py +++ b/stripe/_subscription_schedule.py @@ -911,7 +911,7 @@ class AmendParamsAmendmentItemActionAddDiscountDiscountEndDuration( class AmendParamsAmendmentItemActionAddTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -1007,7 +1007,7 @@ class AmendParamsAmendmentItemActionSetDiscountDiscountEndDuration( class AmendParamsAmendmentItemActionSetTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -1799,7 +1799,7 @@ class CreateParamsPhaseItemPriceDataRecurring(TypedDict): class CreateParamsPhaseItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -2597,7 +2597,7 @@ class ModifyParamsPhaseItemPriceDataRecurring(TypedDict): class ModifyParamsPhaseItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ diff --git a/stripe/_subscription_schedule_service.py b/stripe/_subscription_schedule_service.py index 9b84ac1a7..5f433cd5b 100644 --- a/stripe/_subscription_schedule_service.py +++ b/stripe/_subscription_schedule_service.py @@ -385,7 +385,7 @@ class AmendParamsAmendmentItemActionAddDiscountDiscountEndDuration( class AmendParamsAmendmentItemActionAddTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -481,7 +481,7 @@ class AmendParamsAmendmentItemActionSetDiscountDiscountEndDuration( class AmendParamsAmendmentItemActionSetTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -1277,7 +1277,7 @@ class CreateParamsPhaseItemPriceDataRecurring(TypedDict): class CreateParamsPhaseItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ @@ -2097,7 +2097,7 @@ class UpdateParamsPhaseItemPriceDataRecurring(TypedDict): class UpdateParamsPhaseItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index e829cfb6d..88bf8a0b8 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -586,7 +586,7 @@ class CreateParamsItemPriceDataRecurring(TypedDict): class CreateParamsItemTrial(TypedDict): converts_to: NotRequired[List[str]] """ - List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. + List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID. """ type: Literal["free", "paid"] """ From 448aaee6893c74518180632c22b32b8fe2578b63 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 08:24:02 +0000 Subject: [PATCH 4/9] Update generated code for v1042 --- OPENAPI_VERSION | 2 +- stripe/_confirmation_token.py | 2 +- stripe/_payment_intent.py | 6 +++--- stripe/_payment_intent_service.py | 6 +++--- stripe/_payment_method.py | 2 +- stripe/_payment_method_service.py | 2 +- stripe/_setup_intent.py | 6 +++--- stripe/_setup_intent_service.py | 6 +++--- stripe/test_helpers/_confirmation_token_service.py | 2 +- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 358e1bf76..4c2752c3f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1041 \ No newline at end of file +v1042 \ No newline at end of file diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index 9775de160..3f026c9a5 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -1512,7 +1512,7 @@ class CreateParamsPaymentMethodData(TypedDict): "ConfirmationToken.CreateParamsPaymentMethodDataTwint" ] """ - If this is a Twint PaymentMethod, this hash contains details about the Twint payment method. + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: Literal[ "acss_debit", diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 66c6cd75c..066a2fbb2 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -4127,7 +4127,7 @@ class ConfirmParamsPaymentMethodData(TypedDict): """ twint: NotRequired["PaymentIntent.ConfirmParamsPaymentMethodDataTwint"] """ - If this is a Twint PaymentMethod, this hash contains details about the Twint payment method. + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: Literal[ "acss_debit", @@ -7241,7 +7241,7 @@ class CreateParamsPaymentMethodData(TypedDict): """ twint: NotRequired["PaymentIntent.CreateParamsPaymentMethodDataTwint"] """ - If this is a Twint PaymentMethod, this hash contains details about the Twint payment method. + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: Literal[ "acss_debit", @@ -10412,7 +10412,7 @@ class ModifyParamsPaymentMethodData(TypedDict): """ twint: NotRequired["PaymentIntent.ModifyParamsPaymentMethodDataTwint"] """ - If this is a Twint PaymentMethod, this hash contains details about the Twint payment method. + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: Literal[ "acss_debit", diff --git a/stripe/_payment_intent_service.py b/stripe/_payment_intent_service.py index 558f9712c..1cade630f 100644 --- a/stripe/_payment_intent_service.py +++ b/stripe/_payment_intent_service.py @@ -1803,7 +1803,7 @@ class ConfirmParamsPaymentMethodData(TypedDict): "PaymentIntentService.ConfirmParamsPaymentMethodDataTwint" ] """ - If this is a Twint PaymentMethod, this hash contains details about the Twint payment method. + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: Literal[ "acss_debit", @@ -4957,7 +4957,7 @@ class CreateParamsPaymentMethodData(TypedDict): "PaymentIntentService.CreateParamsPaymentMethodDataTwint" ] """ - If this is a Twint PaymentMethod, this hash contains details about the Twint payment method. + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: Literal[ "acss_debit", @@ -8198,7 +8198,7 @@ class UpdateParamsPaymentMethodData(TypedDict): "PaymentIntentService.UpdateParamsPaymentMethodDataTwint" ] """ - If this is a Twint PaymentMethod, this hash contains details about the Twint payment method. + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: Literal[ "acss_debit", diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 01aa48ccd..5daff4c08 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -1242,7 +1242,7 @@ class CreateParams(RequestOptions): """ twint: NotRequired["PaymentMethod.CreateParamsTwint"] """ - If this is a Twint PaymentMethod, this hash contains details about the Twint payment method. + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: NotRequired[ Literal[ diff --git a/stripe/_payment_method_service.py b/stripe/_payment_method_service.py index a6f052b84..3c3926169 100644 --- a/stripe/_payment_method_service.py +++ b/stripe/_payment_method_service.py @@ -209,7 +209,7 @@ class CreateParams(TypedDict): """ twint: NotRequired["PaymentMethodService.CreateParamsTwint"] """ - If this is a Twint PaymentMethod, this hash contains details about the Twint payment method. + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: NotRequired[ Literal[ diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index 6d44c509f..da0980c46 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -1008,7 +1008,7 @@ class ConfirmParamsPaymentMethodData(TypedDict): """ twint: NotRequired["SetupIntent.ConfirmParamsPaymentMethodDataTwint"] """ - If this is a Twint PaymentMethod, this hash contains details about the Twint payment method. + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: Literal[ "acss_debit", @@ -2251,7 +2251,7 @@ class CreateParamsPaymentMethodData(TypedDict): """ twint: NotRequired["SetupIntent.CreateParamsPaymentMethodDataTwint"] """ - If this is a Twint PaymentMethod, this hash contains details about the Twint payment method. + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: Literal[ "acss_debit", @@ -3459,7 +3459,7 @@ class ModifyParamsPaymentMethodData(TypedDict): """ twint: NotRequired["SetupIntent.ModifyParamsPaymentMethodDataTwint"] """ - If this is a Twint PaymentMethod, this hash contains details about the Twint payment method. + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: Literal[ "acss_debit", diff --git a/stripe/_setup_intent_service.py b/stripe/_setup_intent_service.py index 406344779..585be0342 100644 --- a/stripe/_setup_intent_service.py +++ b/stripe/_setup_intent_service.py @@ -344,7 +344,7 @@ class ConfirmParamsPaymentMethodData(TypedDict): "SetupIntentService.ConfirmParamsPaymentMethodDataTwint" ] """ - If this is a Twint PaymentMethod, this hash contains details about the Twint payment method. + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: Literal[ "acss_debit", @@ -1623,7 +1623,7 @@ class CreateParamsPaymentMethodData(TypedDict): "SetupIntentService.CreateParamsPaymentMethodDataTwint" ] """ - If this is a Twint PaymentMethod, this hash contains details about the Twint payment method. + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: Literal[ "acss_debit", @@ -2877,7 +2877,7 @@ class UpdateParamsPaymentMethodData(TypedDict): "SetupIntentService.UpdateParamsPaymentMethodDataTwint" ] """ - If this is a Twint PaymentMethod, this hash contains details about the Twint payment method. + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: Literal[ "acss_debit", diff --git a/stripe/test_helpers/_confirmation_token_service.py b/stripe/test_helpers/_confirmation_token_service.py index d1b9ef64b..5b6b25e35 100644 --- a/stripe/test_helpers/_confirmation_token_service.py +++ b/stripe/test_helpers/_confirmation_token_service.py @@ -275,7 +275,7 @@ class CreateParamsPaymentMethodData(TypedDict): "ConfirmationTokenService.CreateParamsPaymentMethodDataTwint" ] """ - If this is a Twint PaymentMethod, this hash contains details about the Twint payment method. + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: Literal[ "acss_debit", From 0242eae2d88f844efdd9862ae4b0f4e867f9008a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 20 May 2024 18:18:46 +0000 Subject: [PATCH 5/9] Update generated code for v1044 --- OPENAPI_VERSION | 2 +- stripe/_account.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 4c2752c3f..f484167df 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1042 \ No newline at end of file +v1044 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index 3c45e35e1..11fc02896 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"]] """ From 43b44bf01479203ebb30bca797159ba3a1700a14 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 21 May 2024 21:49:21 +0000 Subject: [PATCH 6/9] Update generated code for v1045 --- OPENAPI_VERSION | 2 +- stripe/_invoice.py | 52 +++++++++++------------ stripe/_invoice_item.py | 8 ++-- stripe/_invoice_item_service.py | 8 ++-- stripe/_invoice_line_item.py | 4 +- stripe/_invoice_line_item_service.py | 4 +- stripe/_invoice_service.py | 36 ++++++++-------- stripe/_invoice_upcoming_lines_service.py | 16 +++---- stripe/_subscription.py | 12 +++--- stripe/_subscription_item.py | 4 +- stripe/_subscription_item_service.py | 4 +- stripe/_subscription_schedule.py | 8 ++-- stripe/_subscription_schedule_service.py | 8 ++-- stripe/_subscription_service.py | 12 +++--- 14 files changed, 89 insertions(+), 89 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f484167df..7ad9e3c03 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1044 \ No newline at end of file +v1045 \ No newline at end of file diff --git a/stripe/_invoice.py b/stripe/_invoice.py index 8a80a2c8d..1b6b8a21e 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -1116,11 +1116,11 @@ class AddLinesParamsLine(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.AddLinesParamsLinePriceData"] """ - 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] """ @@ -2353,13 +2353,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] """ @@ -3188,13 +3188,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] """ @@ -3726,13 +3726,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] """ @@ -5130,13 +5130,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] """ @@ -5965,13 +5965,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] """ @@ -6503,13 +6503,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] """ @@ -6659,13 +6659,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] """ @@ -7187,11 +7187,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] """ @@ -8002,13 +8002,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] """ @@ -8524,13 +8524,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] """ @@ -8676,13 +8676,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] """ @@ -8840,11 +8840,11 @@ class UpdateLinesParamsLine(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.UpdateLinesParamsLinePriceData"] """ - 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 747dcd5a1..713214b91 100644 --- a/stripe/_invoice_item.py +++ b/stripe/_invoice_item.py @@ -111,11 +111,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] """ @@ -320,11 +320,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 ebcd67797..7384c97c5 100644 --- a/stripe/_invoice_item_service.py +++ b/stripe/_invoice_item_service.py @@ -59,11 +59,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] """ @@ -274,11 +274,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 ecc9dbc96..2161e6966 100644 --- a/stripe/_invoice_line_item.py +++ b/stripe/_invoice_line_item.py @@ -152,11 +152,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 6763171bc..42a10bb7d 100644 --- a/stripe/_invoice_line_item_service.py +++ b/stripe/_invoice_line_item_service.py @@ -65,11 +65,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 0f23c454b..23ece4573 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -71,11 +71,11 @@ class AddLinesParamsLine(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.AddLinesParamsLinePriceData"] """ - 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] """ @@ -1324,13 +1324,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] """ @@ -2159,13 +2159,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] """ @@ -2697,13 +2697,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] """ @@ -3423,13 +3423,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] """ @@ -4244,13 +4244,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] """ @@ -4764,13 +4764,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] """ @@ -4914,13 +4914,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] """ @@ -5080,13 +5080,13 @@ class UpdateLinesParamsLine(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.UpdateLinesParamsLinePriceData" ] """ - 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 5390aae58..218647751 100644 --- a/stripe/_invoice_upcoming_lines_service.py +++ b/stripe/_invoice_upcoming_lines_service.py @@ -448,13 +448,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] """ @@ -1261,13 +1261,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] """ @@ -1777,13 +1777,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] """ @@ -1927,13 +1927,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/_subscription.py b/stripe/_subscription.py index f1ff9772f..8a06db291 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -676,13 +676,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] """ @@ -1608,13 +1608,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] """ @@ -1840,11 +1840,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 d426def14..891246d03 100644 --- a/stripe/_subscription_item.py +++ b/stripe/_subscription_item.py @@ -358,11 +358,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 06278f3fc..c44a9a5de 100644 --- a/stripe/_subscription_item_service.py +++ b/stripe/_subscription_item_service.py @@ -298,13 +298,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 88cab9fe2..458332f9d 100644 --- a/stripe/_subscription_schedule.py +++ b/stripe/_subscription_schedule.py @@ -1467,13 +1467,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] """ @@ -2265,13 +2265,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 5f433cd5b..15c321272 100644 --- a/stripe/_subscription_schedule_service.py +++ b/stripe/_subscription_schedule_service.py @@ -945,13 +945,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] """ @@ -1765,13 +1765,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 88bf8a0b8..2e6cec4d5 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -240,13 +240,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] """ @@ -1228,13 +1228,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] """ @@ -1462,13 +1462,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] """ From 471fb211ee30d595fc7552bbf613f7c6f58c6a60 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 22 May 2024 14:57:17 +0000 Subject: [PATCH 7/9] Update generated code for v1046 --- OPENAPI_VERSION | 2 +- stripe/checkout/_session.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7ad9e3c03..86ee76fe9 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1045 \ No newline at end of file +v1046 \ No newline at end of file diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index 9f3db361a..2af21161a 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -1095,6 +1095,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. From 3b91e906c81ae28049f4151851b1c104421bd9d1 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 22 May 2024 18:11:41 +0000 Subject: [PATCH 8/9] Update generated code for v1047 --- OPENAPI_VERSION | 2 +- stripe/_account_session.py | 16 ++++++++++++++++ stripe/_account_session_service.py | 8 ++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 86ee76fe9..20970a9f9 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1046 \ No newline at end of file +v1047 \ No newline at end of file diff --git a/stripe/_account_session.py b/stripe/_account_session.py index 330e675b4..7f42c3995 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. @@ -165,6 +169,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. @@ -383,6 +391,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. @@ -620,6 +632,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 e53754dbe..98eeb2a50 100644 --- a/stripe/_account_session_service.py +++ b/stripe/_account_session_service.py @@ -182,6 +182,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. @@ -419,6 +423,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. From 320bb94398d1400d8c6d43ed9593311696b7b48d Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 23 May 2024 17:50:57 +0000 Subject: [PATCH 9/9] Update generated code for v1048 --- OPENAPI_VERSION | 2 +- stripe/_credit_note.py | 6 +++--- stripe/_credit_note_preview_lines_service.py | 2 +- stripe/_credit_note_service.py | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 20970a9f9..09176b50f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1047 \ No newline at end of file +v1048 \ No newline at end of file diff --git a/stripe/_credit_note.py b/stripe/_credit_note.py index a77300c9b..dbe8d83c9 100644 --- a/stripe/_credit_note.py +++ b/stripe/_credit_note.py @@ -288,7 +288,7 @@ class CreateParamsRefund(TypedDict): """ Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. """ - refund: str + refund: NotRequired[str] """ ID of an existing refund to link this credit note to. """ @@ -515,7 +515,7 @@ class PreviewLinesParamsRefund(TypedDict): """ Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. """ - refund: str + refund: NotRequired[str] """ ID of an existing refund to link this credit note to. """ @@ -650,7 +650,7 @@ class PreviewParamsRefund(TypedDict): """ Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. """ - refund: str + refund: NotRequired[str] """ ID of an existing refund to link this credit note to. """ diff --git a/stripe/_credit_note_preview_lines_service.py b/stripe/_credit_note_preview_lines_service.py index 6e6fdf12d..14b7ebd47 100644 --- a/stripe/_credit_note_preview_lines_service.py +++ b/stripe/_credit_note_preview_lines_service.py @@ -151,7 +151,7 @@ class ListParamsRefund(TypedDict): """ Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. """ - refund: str + refund: NotRequired[str] """ ID of an existing refund to link this credit note to. """ diff --git a/stripe/_credit_note_service.py b/stripe/_credit_note_service.py index 3b8780848..48f963cec 100644 --- a/stripe/_credit_note_service.py +++ b/stripe/_credit_note_service.py @@ -145,7 +145,7 @@ class CreateParamsRefund(TypedDict): """ Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. """ - refund: str + refund: NotRequired[str] """ ID of an existing refund to link this credit note to. """ @@ -330,7 +330,7 @@ class PreviewParamsRefund(TypedDict): """ Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. """ - refund: str + refund: NotRequired[str] """ ID of an existing refund to link this credit note to. """