From 410ac74ff940b461cc9dc8c86a3cb6a457b55add Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 27 Jun 2024 14:20:43 -0700 Subject: [PATCH 1/2] Update generated code (#1353) * Update generated code for v1096 * Update generated code for v1097 * Update generated code for v1099 * Update generated code for v1101 * Update generated code for v1103 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- stripe/_capability.py | 2 +- stripe/_credit_note.py | 12 ++++ stripe/_credit_note_preview_lines_service.py | 4 ++ stripe/_credit_note_service.py | 8 +++ stripe/_invoice.py | 42 ++++++++++++++ stripe/_invoice_service.py | 32 ++++++++++ stripe/_payment_intent.py | 58 +++++++++++++++++++ stripe/_payment_intent_service.py | 48 +++++++++++++++ stripe/_payment_link.py | 8 ++- stripe/_payment_link_service.py | 5 +- stripe/_setup_intent.py | 58 +++++++++++++++++++ stripe/_setup_intent_service.py | 48 +++++++++++++++ stripe/_subscription.py | 42 ++++++++++++++ stripe/_subscription_service.py | 32 ++++++++++ stripe/billing/_meter.py | 4 +- .../billing/_meter_event_summary_service.py | 4 +- stripe/checkout/_session.py | 10 ++++ stripe/financial_connections/_session.py | 28 +++++++++ .../financial_connections/_session_service.py | 14 +++++ stripe/terminal/_configuration.py | 42 ++++++++++++++ stripe/terminal/_configuration_service.py | 32 ++++++++++ 22 files changed, 527 insertions(+), 8 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index eb43ae0c9..1129f2eb6 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1095 \ No newline at end of file +v1103 \ No newline at end of file diff --git a/stripe/_capability.py b/stripe/_capability.py index 3c8670d29..0974b8d52 100644 --- a/stripe/_capability.py +++ b/stripe/_capability.py @@ -160,7 +160,7 @@ class Error(StripeObject): ] ] """ - This is typed as a string for consistency with `requirements.disabled_reason`, but it safe to assume `future_requirements.disabled_reason` is empty because fields in `future_requirements` will never disable the account. + This is typed as an enum for consistency with `requirements.disabled_reason`, but it safe to assume `future_requirements.disabled_reason` is null because fields in `future_requirements` will never disable the account. """ errors: List[Error] """ diff --git a/stripe/_credit_note.py b/stripe/_credit_note.py index 3a634a940..8054b28e5 100644 --- a/stripe/_credit_note.py +++ b/stripe/_credit_note.py @@ -167,6 +167,10 @@ class CreateParams(RequestOptions): """ The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF. """ + email_type: NotRequired[Literal["credit_note", "none"]] + """ + Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. @@ -368,6 +372,10 @@ class PreviewLinesParams(RequestOptions): """ The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF. """ + email_type: NotRequired[Literal["credit_note", "none"]] + """ + Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`. + """ 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. @@ -501,6 +509,10 @@ class PreviewParams(RequestOptions): """ The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF. """ + email_type: NotRequired[Literal["credit_note", "none"]] + """ + Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. diff --git a/stripe/_credit_note_preview_lines_service.py b/stripe/_credit_note_preview_lines_service.py index 72f949caa..fa41fb7c0 100644 --- a/stripe/_credit_note_preview_lines_service.py +++ b/stripe/_credit_note_preview_lines_service.py @@ -22,6 +22,10 @@ class ListParams(TypedDict): """ The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF. """ + email_type: NotRequired[Literal["credit_note", "none"]] + """ + Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`. + """ 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. diff --git a/stripe/_credit_note_service.py b/stripe/_credit_note_service.py index e70713b8d..a076ce15b 100644 --- a/stripe/_credit_note_service.py +++ b/stripe/_credit_note_service.py @@ -32,6 +32,10 @@ class CreateParams(TypedDict): """ The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF. """ + email_type: NotRequired[Literal["credit_note", "none"]] + """ + Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. @@ -203,6 +207,10 @@ class PreviewParams(TypedDict): """ The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF. """ + email_type: NotRequired[Literal["credit_note", "none"]] + """ + Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. diff --git a/stripe/_invoice.py b/stripe/_invoice.py index 609963f3e..0f7a80139 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -649,6 +649,15 @@ class SepaDebit(StripeObject): class UsBankAccount(StripeObject): class FinancialConnections(StripeObject): + class Filters(StripeObject): + account_subcategories: Optional[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. + """ + + filters: Optional[Filters] permissions: Optional[ List[ Literal[ @@ -668,6 +677,7 @@ class FinancialConnections(StripeObject): """ Data features requested to be retrieved upon account creation. """ + _inner_class_types = {"filters": Filters} financial_connections: Optional[FinancialConnections] verification_method: Optional[ @@ -1393,6 +1403,12 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount( class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method. + """ permissions: NotRequired[ List[ Literal[ @@ -1410,6 +1426,16 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne List of data features that you would like to retrieve upon account creation. """ + class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class CreateParamsRendering(TypedDict): amount_tax_display: NotRequired[ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']" @@ -3062,6 +3088,12 @@ class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount( class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method. + """ permissions: NotRequired[ List[ Literal[ @@ -3079,6 +3111,16 @@ class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne List of data features that you would like to retrieve upon account creation. """ + class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class ModifyParamsRendering(TypedDict): amount_tax_display: NotRequired[ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']" diff --git a/stripe/_invoice_service.py b/stripe/_invoice_service.py index 41ce4c565..6c654de69 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -421,6 +421,12 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount( class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "InvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method. + """ permissions: NotRequired[ List[ Literal[ @@ -438,6 +444,16 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne List of data features that you would like to retrieve upon account creation. """ + class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class CreateParamsRendering(TypedDict): amount_tax_display: NotRequired[ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']" @@ -3274,6 +3290,12 @@ class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount( class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method. + """ permissions: NotRequired[ List[ Literal[ @@ -3291,6 +3313,16 @@ class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne List of data features that you would like to retrieve upon account creation. """ + class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class UpdateParamsRendering(TypedDict): amount_tax_display: NotRequired[ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']" diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 590cddb2a..5c8d804c3 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -1686,6 +1686,15 @@ class Twint(StripeObject): class UsBankAccount(StripeObject): class FinancialConnections(StripeObject): + class Filters(StripeObject): + account_subcategories: Optional[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. + """ + + filters: Optional[Filters] permissions: Optional[ List[ Literal[ @@ -1709,6 +1718,7 @@ class FinancialConnections(StripeObject): """ For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + _inner_class_types = {"filters": Filters} class MandateOptions(StripeObject): collection_method: Optional[Literal["paper"]] @@ -4071,6 +4081,12 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccount(TypedDict): class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "PaymentIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -4092,6 +4108,16 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class ConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): @@ -6328,6 +6354,12 @@ class CreateParamsPaymentMethodOptionsUsBankAccount(TypedDict): class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "PaymentIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -6349,6 +6381,16 @@ class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class CreateParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): @@ -8579,6 +8621,12 @@ class ModifyParamsPaymentMethodOptionsUsBankAccount(TypedDict): class ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "PaymentIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -8600,6 +8648,16 @@ class ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class ModifyParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): diff --git a/stripe/_payment_intent_service.py b/stripe/_payment_intent_service.py index b0fc670d6..23fd5c18d 100644 --- a/stripe/_payment_intent_service.py +++ b/stripe/_payment_intent_service.py @@ -2172,6 +2172,12 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccount(TypedDict): class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "PaymentIntentService.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -2193,6 +2199,16 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class ConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): @@ -4455,6 +4471,12 @@ class CreateParamsPaymentMethodOptionsUsBankAccount(TypedDict): class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "PaymentIntentService.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -4476,6 +4498,16 @@ class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class CreateParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): @@ -6760,6 +6792,12 @@ class UpdateParamsPaymentMethodOptionsUsBankAccount(TypedDict): class UpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "PaymentIntentService.UpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -6781,6 +6819,16 @@ class UpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class UpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class UpdateParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): diff --git a/stripe/_payment_link.py b/stripe/_payment_link.py index 2e83eeadb..7cd67469d 100644 --- a/stripe/_payment_link.py +++ b/stripe/_payment_link.py @@ -790,6 +790,7 @@ class CreateParams(RequestOptions): "konbini", "link", "mobilepay", + "multibanco", "oxxo", "p24", "paynow", @@ -799,8 +800,10 @@ class CreateParams(RequestOptions): "sepa_debit", "sofort", "swish", + "twint", "us_bank_account", "wechat_pay", + "zip", ] ] ] @@ -1668,7 +1671,7 @@ class ModifyParams(RequestOptions): If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://stripe.com/docs/payments/checkout/free-trials). """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mobilepay', 'oxxo', 'p24', 'paynow', 'paypal', 'pix', 'promptpay', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'paynow', 'paypal', 'pix', 'promptpay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). @@ -2430,6 +2433,7 @@ class RetrieveParams(RequestOptions): "konbini", "link", "mobilepay", + "multibanco", "oxxo", "p24", "paynow", @@ -2439,8 +2443,10 @@ class RetrieveParams(RequestOptions): "sepa_debit", "sofort", "swish", + "twint", "us_bank_account", "wechat_pay", + "zip", ] ] ] diff --git a/stripe/_payment_link_service.py b/stripe/_payment_link_service.py index f9a83c5be..026046830 100644 --- a/stripe/_payment_link_service.py +++ b/stripe/_payment_link_service.py @@ -132,6 +132,7 @@ class CreateParams(TypedDict): "konbini", "link", "mobilepay", + "multibanco", "oxxo", "p24", "paynow", @@ -141,8 +142,10 @@ class CreateParams(TypedDict): "sepa_debit", "sofort", "swish", + "twint", "us_bank_account", "wechat_pay", + "zip", ] ] ] @@ -1012,7 +1015,7 @@ class UpdateParams(TypedDict): If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://stripe.com/docs/payments/checkout/free-trials). """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mobilepay', 'oxxo', 'p24', 'paynow', 'paypal', 'pix', 'promptpay', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'paynow', 'paypal', 'pix', 'promptpay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index c969607f5..dedeefd03 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -560,6 +560,15 @@ class MandateOptions(StripeObject): class UsBankAccount(StripeObject): class FinancialConnections(StripeObject): + class Filters(StripeObject): + account_subcategories: Optional[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. + """ + + filters: Optional[Filters] permissions: Optional[ List[ Literal[ @@ -583,6 +592,7 @@ class FinancialConnections(StripeObject): """ For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + _inner_class_types = {"filters": Filters} class MandateOptions(StripeObject): collection_method: Optional[Literal["paper"]] @@ -1632,6 +1642,12 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccount(TypedDict): class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "SetupIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -1653,6 +1669,16 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class ConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): @@ -2734,6 +2760,12 @@ class CreateParamsPaymentMethodOptionsUsBankAccount(TypedDict): class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "SetupIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -2755,6 +2787,16 @@ class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class CreateParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): @@ -3803,6 +3845,12 @@ class ModifyParamsPaymentMethodOptionsUsBankAccount(TypedDict): class ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "SetupIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -3824,6 +3872,16 @@ class ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class ModifyParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): diff --git a/stripe/_setup_intent_service.py b/stripe/_setup_intent_service.py index cf675859d..f08d7e158 100644 --- a/stripe/_setup_intent_service.py +++ b/stripe/_setup_intent_service.py @@ -1062,6 +1062,12 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccount(TypedDict): class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "SetupIntentService.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -1083,6 +1089,16 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class ConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): @@ -2196,6 +2212,12 @@ class CreateParamsPaymentMethodOptionsUsBankAccount(TypedDict): class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "SetupIntentService.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -2217,6 +2239,16 @@ class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class CreateParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): @@ -3307,6 +3339,12 @@ class UpdateParamsPaymentMethodOptionsUsBankAccount(TypedDict): class UpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "SetupIntentService.UpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -3328,6 +3366,16 @@ class UpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class UpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class UpdateParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): diff --git a/stripe/_subscription.py b/stripe/_subscription.py index f75d8170b..218f56c86 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -269,6 +269,15 @@ class SepaDebit(StripeObject): class UsBankAccount(StripeObject): class FinancialConnections(StripeObject): + class Filters(StripeObject): + account_subcategories: Optional[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. + """ + + filters: Optional[Filters] permissions: Optional[ List[ Literal[ @@ -288,6 +297,7 @@ class FinancialConnections(StripeObject): """ Data features requested to be retrieved upon account creation. """ + _inner_class_types = {"filters": Filters} financial_connections: Optional[FinancialConnections] verification_method: Optional[ @@ -1103,6 +1113,12 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount( class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method. + """ permissions: NotRequired[ List[ Literal[ @@ -1120,6 +1136,16 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne List of data features that you would like to retrieve upon account creation. """ + class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class CreateParamsPendingInvoiceItemInterval(TypedDict): interval: Literal["day", "month", "week", "year"] """ @@ -1916,6 +1942,12 @@ class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount( class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method. + """ permissions: NotRequired[ List[ Literal[ @@ -1933,6 +1965,16 @@ class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne List of data features that you would like to retrieve upon account creation. """ + class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class ModifyParamsPendingInvoiceItemInterval(TypedDict): interval: Literal["day", "month", "week", "year"] """ diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index 8ab003b72..c853c8aad 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -680,6 +680,12 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount( class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "SubscriptionService.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method. + """ permissions: NotRequired[ List[ Literal[ @@ -697,6 +703,16 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne List of data features that you would like to retrieve upon account creation. """ + class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class CreateParamsPendingInvoiceItemInterval(TypedDict): interval: Literal["day", "month", "week", "year"] """ @@ -1549,6 +1565,12 @@ class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount( class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "SubscriptionService.UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method. + """ permissions: NotRequired[ List[ Literal[ @@ -1566,6 +1588,16 @@ class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne List of data features that you would like to retrieve upon account creation. """ + class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class UpdateParamsPendingInvoiceItemInterval(TypedDict): interval: Literal["day", "month", "week", "year"] """ diff --git a/stripe/billing/_meter.py b/stripe/billing/_meter.py index 084c06e2a..f2fe0f0ee 100644 --- a/stripe/billing/_meter.py +++ b/stripe/billing/_meter.py @@ -148,9 +148,9 @@ class ListEventSummariesParams(RequestOptions): """ 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. """ - value_grouping_window: NotRequired[Literal["hour"]] + value_grouping_window: NotRequired[Literal["day", "hour"]] """ - Specifies what granularity to use when generating event summaries. If not specified, a single event summary would be returned for the specified time range. + Specifies what granularity to use when generating event summaries. If not specified, a single event summary would be returned for the specified time range. For hourly granularity, start and end times must align with hour boundaries (e.g., 00:00, 01:00, ..., 23:00). For daily granularity, start and end times must align with UTC day boundaries (00:00 UTC). """ class ListParams(RequestOptions): diff --git a/stripe/billing/_meter_event_summary_service.py b/stripe/billing/_meter_event_summary_service.py index 73096be0e..48b2cacb5 100644 --- a/stripe/billing/_meter_event_summary_service.py +++ b/stripe/billing/_meter_event_summary_service.py @@ -39,9 +39,9 @@ class ListParams(TypedDict): """ 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. """ - value_grouping_window: NotRequired[Literal["hour"]] + value_grouping_window: NotRequired[Literal["day", "hour"]] """ - Specifies what granularity to use when generating event summaries. If not specified, a single event summary would be returned for the specified time range. + Specifies what granularity to use when generating event summaries. If not specified, a single event summary would be returned for the specified time range. For hourly granularity, start and end times must align with hour boundaries (e.g., 00:00, 01:00, ..., 23:00). For daily granularity, start and end times must align with UTC day boundaries (00:00 UTC). """ def list( diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index 7b1f3ed88..9fcb892bc 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -967,6 +967,15 @@ class Swish(StripeObject): class UsBankAccount(StripeObject): class FinancialConnections(StripeObject): + class Filters(StripeObject): + account_subcategories: Optional[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. + """ + + filters: Optional[Filters] permissions: Optional[ List[ Literal[ @@ -990,6 +999,7 @@ class FinancialConnections(StripeObject): """ For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + _inner_class_types = {"filters": Filters} financial_connections: Optional[FinancialConnections] setup_future_usage: Optional[ diff --git a/stripe/financial_connections/_session.py b/stripe/financial_connections/_session.py index 8dc534188..1109ccda9 100644 --- a/stripe/financial_connections/_session.py +++ b/stripe/financial_connections/_session.py @@ -46,6 +46,20 @@ class AccountHolder(StripeObject): """ class Filters(StripeObject): + account_subcategories: Optional[ + List[ + Literal[ + "checking", + "credit_card", + "line_of_credit", + "mortgage", + "savings", + ] + ] + ] + """ + Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`. + """ countries: Optional[List[str]] """ List of countries from which to filter accounts. @@ -98,6 +112,20 @@ class CreateParamsAccountHolder(TypedDict): """ class CreateParamsFilters(TypedDict): + account_subcategories: NotRequired[ + List[ + Literal[ + "checking", + "credit_card", + "line_of_credit", + "mortgage", + "savings", + ] + ] + ] + """ + Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`. + """ 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 69a70c80d..3ca67b8bf 100644 --- a/stripe/financial_connections/_session_service.py +++ b/stripe/financial_connections/_session_service.py @@ -56,6 +56,20 @@ class CreateParamsAccountHolder(TypedDict): """ class CreateParamsFilters(TypedDict): + account_subcategories: NotRequired[ + List[ + Literal[ + "checking", + "credit_card", + "line_of_credit", + "mortgage", + "savings", + ] + ] + ] + """ + Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`. + """ countries: NotRequired[List[str]] """ List of countries from which to collect accounts. diff --git a/stripe/terminal/_configuration.py b/stripe/terminal/_configuration.py index a9f1351c9..84a7dda32 100644 --- a/stripe/terminal/_configuration.py +++ b/stripe/terminal/_configuration.py @@ -48,6 +48,16 @@ class Offline(StripeObject): Determines whether to allow transactions to be collected while reader is offline. Defaults to false. """ + class RebootWindow(StripeObject): + end_hour: int + """ + Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour. + """ + start_hour: int + """ + Integer between 0 to 23 that represents the start hour of the reboot time window. + """ + class StripeS700(StripeObject): splashscreen: Optional[ExpandableField["File"]] """ @@ -305,6 +315,10 @@ class CreateParams(RequestOptions): """ Configurations for collecting transactions offline. """ + reboot_window: NotRequired["Configuration.CreateParamsRebootWindow"] + """ + Reboot time settings for readers that support customized reboot time configuration. + """ stripe_s700: NotRequired["Configuration.CreateParamsStripeS700"] """ An object containing device type specific settings for Stripe S700 readers @@ -330,6 +344,16 @@ class CreateParamsOffline(TypedDict): Determines whether to allow transactions to be collected while reader is offline. Defaults to false. """ + class CreateParamsRebootWindow(TypedDict): + end_hour: int + """ + Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour. + """ + start_hour: int + """ + Integer between 0 to 23 that represents the start hour of the reboot time window. + """ + class CreateParamsStripeS700(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ @@ -640,6 +664,12 @@ class ModifyParams(RequestOptions): """ Configurations for collecting transactions offline. """ + reboot_window: NotRequired[ + "Literal['']|Configuration.ModifyParamsRebootWindow" + ] + """ + Reboot time settings for readers that support customized reboot time configuration. + """ stripe_s700: NotRequired[ "Literal['']|Configuration.ModifyParamsStripeS700" ] @@ -669,6 +699,16 @@ class ModifyParamsOffline(TypedDict): Determines whether to allow transactions to be collected while reader is offline. Defaults to false. """ + class ModifyParamsRebootWindow(TypedDict): + end_hour: int + """ + Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour. + """ + start_hour: int + """ + Integer between 0 to 23 that represents the start hour of the reboot time window. + """ + class ModifyParamsStripeS700(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ @@ -963,6 +1003,7 @@ class RetrieveParams(RequestOptions): String representing the object's type. Objects of the same type share the same value. """ offline: Optional[Offline] + reboot_window: Optional[RebootWindow] stripe_s700: Optional[StripeS700] tipping: Optional[Tipping] verifone_p400: Optional[VerifoneP400] @@ -1200,6 +1241,7 @@ async def retrieve_async( _inner_class_types = { "bbpos_wisepos_e": BbposWiseposE, "offline": Offline, + "reboot_window": RebootWindow, "stripe_s700": StripeS700, "tipping": Tipping, "verifone_p400": VerifoneP400, diff --git a/stripe/terminal/_configuration_service.py b/stripe/terminal/_configuration_service.py index 7a87a5fc2..002f55fb5 100644 --- a/stripe/terminal/_configuration_service.py +++ b/stripe/terminal/_configuration_service.py @@ -31,6 +31,12 @@ class CreateParams(TypedDict): """ Configurations for collecting transactions offline. """ + reboot_window: NotRequired[ + "ConfigurationService.CreateParamsRebootWindow" + ] + """ + Reboot time settings for readers that support customized reboot time configuration. + """ stripe_s700: NotRequired["ConfigurationService.CreateParamsStripeS700"] """ An object containing device type specific settings for Stripe S700 readers @@ -60,6 +66,16 @@ class CreateParamsOffline(TypedDict): Determines whether to allow transactions to be collected while reader is offline. Defaults to false. """ + class CreateParamsRebootWindow(TypedDict): + end_hour: int + """ + Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour. + """ + start_hour: int + """ + Integer between 0 to 23 that represents the start hour of the reboot time window. + """ + class CreateParamsStripeS700(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ @@ -378,6 +394,12 @@ class UpdateParams(TypedDict): """ Configurations for collecting transactions offline. """ + reboot_window: NotRequired[ + "Literal['']|ConfigurationService.UpdateParamsRebootWindow" + ] + """ + Reboot time settings for readers that support customized reboot time configuration. + """ stripe_s700: NotRequired[ "Literal['']|ConfigurationService.UpdateParamsStripeS700" ] @@ -409,6 +431,16 @@ class UpdateParamsOffline(TypedDict): Determines whether to allow transactions to be collected while reader is offline. Defaults to false. """ + class UpdateParamsRebootWindow(TypedDict): + end_hour: int + """ + Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour. + """ + start_hour: int + """ + Integer between 0 to 23 that represents the start hour of the reboot time window. + """ + class UpdateParamsStripeS700(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ From 26db537efdd18b195254af162bda74acb4c15754 Mon Sep 17 00:00:00 2001 From: Ramya Rao Date: Thu, 27 Jun 2024 14:28:05 -0700 Subject: [PATCH 2/2] Bump version to 10.1.0 --- CHANGELOG.md | 11 +++++++++++ VERSION | 2 +- stripe/_version.py | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86c54179f..69075a3e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +## 10.1.0 - 2024-06-27 +* [#1353](https://github.com/stripe/stripe-python/pull/1353) Update generated code + * Add support for `email_type` on parameter classes `stripe.CreditNote.CreateParams`, `stripe.CreditNote.PreviewLinesParams`, and `stripe.CreditNote.PreviewParams` + * Add support for `filters` on parameter classes `stripe.Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections`, `stripe.Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections`, `stripe.SetupIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections`, `stripe.SetupIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections`, `stripe.SetupIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections`, `stripe.Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections`, and `stripe.Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections` and resource classes `stripe.Invoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections`, `stripe.PaymentIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections`, `stripe.SetupIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections`, `stripe.Subscription.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections`, and `stripe.checkout.Session.PaymentMethodOptions.UsBankAccount.FinancialConnections` + * Add support for `account_subcategories` on parameter class `stripe.financial_connections.Session.CreateParamsFilters` and resource class `stripe.financial_connections.Session.Filters` + * Add support for `reboot_window` on parameter classes `stripe.terminal.Configuration.CreateParams` and `stripe.terminal.Configuration.ModifyParams` and resource `stripe.terminal.Configuration` + * Add support for `day` on enum `stripe.billing.Meter.ListEventSummariesParams.value_grouping_window` + * Add support for `multibanco` on enums `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, and `stripe.PaymentLink.ModifyParams.payment_method_types` + * Add support for `twint` on enums `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, and `stripe.PaymentLink.ModifyParams.payment_method_types` + * Add support for `zip` on enums `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, and `stripe.PaymentLink.ModifyParams.payment_method_types` + ## 10.0.0 - 2024-06-24 * [#1350](https://github.com/stripe/stripe-python/pull/1350) Update generated code diff --git a/VERSION b/VERSION index a13e7b9c8..4149c39ee 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -10.0.0 +10.1.0 diff --git a/stripe/_version.py b/stripe/_version.py index b91ab216f..906fdd39a 100644 --- a/stripe/_version.py +++ b/stripe/_version.py @@ -1 +1 @@ -VERSION = "10.0.0" +VERSION = "10.1.0"