Skip to content

Commit

Permalink
Merge pull request #1339 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] committed Jun 6, 2024
2 parents f150867 + e3f6bc6 commit 90949f6
Show file tree
Hide file tree
Showing 19 changed files with 384 additions and 36 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@
* Add support for `en-RO` on enums `stripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsKlarna.preferred_locale` and `stripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsKlarna.preferred_locale`
* Add support for `ro-RO` on enums `stripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsKlarna.preferred_locale` and `stripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsKlarna.preferred_locale`

## 9.9.0 - 2024-05-30
* [#1335](https://github.com/stripe/stripe-python/pull/1335) Add method to list invoice line items
* Add methods `list_lines()` and `list_lines_async()` on the class `Invoice` to list the invoice line items
* [#1336](https://github.com/stripe/stripe-python/pull/1336) Update generated code
* Add support for `generated_from` on resource classes `stripe.ConfirmationToken.PaymentMethodPreview.Card` and `stripe.PaymentMethod.Card`
* Add support for `default_value` on parameter classes `stripe.checkout.Session.CreateParamsCustomFieldDropdown`, `stripe.checkout.Session.CreateParamsCustomFieldNumeric`, and `stripe.checkout.Session.CreateParamsCustomFieldText` and resource classes `stripe.checkout.Session.CustomField.Dropdown`, `stripe.checkout.Session.CustomField.Numeric`, and `stripe.checkout.Session.CustomField.Text`
* Add support for `verification_requires_additional_proof_of_registration` on enums `stripe.Account.FutureRequirements.Error.code`, `stripe.Account.Requirements.Error.code`, `stripe.BankAccount.FutureRequirements.Error.code`, `stripe.BankAccount.Requirements.Error.code`, `stripe.Capability.FutureRequirements.Error.code`, `stripe.Capability.Requirements.Error.code`, `stripe.Person.FutureRequirements.Error.code`, and `stripe.Person.Requirements.Error.code`
* Add support for `issuing_personalization_design.activated` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
* Add support for `issuing_personalization_design.deactivated` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
* Add support for `issuing_personalization_design.rejected` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
* Add support for `issuing_personalization_design.updated` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
* Add support for `en-RO` on enums `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsKlarna.preferred_locale`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsKlarna.preferred_locale`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsKlarna.preferred_locale`
* Add support for `ro-RO` on enums `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsKlarna.preferred_locale`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsKlarna.preferred_locale`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsKlarna.preferred_locale`
* Change type of `features` on `stripe.issuing.PhysicalBundle` from `Optional[Features]` to `Features`

## 9.9.0b1 - 2024-05-23
* [#1331](https://github.com/stripe/stripe-python/pull/1331) Update generated code for beta
* Change type of `refund` on `stripe.CreditNote.CreateParamsRefund`, `stripe.CreditNote.PreviewParamsRefund`, and `stripe.CreditNote.PreviewLinesParamsRefund` from `str` to `NotRequired[str]`
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1058
v1065
90 changes: 90 additions & 0 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,12 @@ class Capabilities(StripeObject):
"""
The status of the FPX payments capability of the account, or whether the account can directly process FPX charges.
"""
gb_bank_transfer_payments: Optional[
Literal["active", "inactive", "pending"]
]
"""
The status of the GB customer_balance payments (GBP currency) capability of the account, or whether the account can directly process GB customer_balance charges.
"""
giropay_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the giropay payments capability of the account, or whether the account can directly process giropay charges.
Expand All @@ -250,6 +256,12 @@ class Capabilities(StripeObject):
"""
The status of the JCB payments capability of the account, or whether the account (Japan only) can directly process JCB credit card charges in JPY currency.
"""
jp_bank_transfer_payments: Optional[
Literal["active", "inactive", "pending"]
]
"""
The status of the Japanese customer_balance payments (JPY currency) capability of the account, or whether the account can directly process Japanese customer_balance charges.
"""
klarna_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the Klarna payments capability of the account, or whether the account can directly process Klarna charges.
Expand All @@ -270,6 +282,12 @@ class Capabilities(StripeObject):
"""
The status of the MobilePay capability of the account, or whether the account can directly process MobilePay charges.
"""
mx_bank_transfer_payments: Optional[
Literal["active", "inactive", "pending"]
]
"""
The status of the Mexican customer_balance payments (MXN currency) capability of the account, or whether the account can directly process Mexican customer_balance charges.
"""
oxxo_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.
Expand Down Expand Up @@ -304,6 +322,12 @@ class Capabilities(StripeObject):
"""
The status of the RevolutPay capability of the account, or whether the account can directly process RevolutPay payments.
"""
sepa_bank_transfer_payments: Optional[
Literal["active", "inactive", "pending"]
]
"""
The status of the SEPA customer_balance payments (EUR currency) capability of the account, or whether the account can directly process SEPA customer_balance charges.
"""
sepa_debit_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
Expand Down Expand Up @@ -346,6 +370,12 @@ class Capabilities(StripeObject):
"""
The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges.
"""
us_bank_transfer_payments: Optional[
Literal["active", "inactive", "pending"]
]
"""
The status of the US customer_balance payments (USD currency) capability of the account, or whether the account can directly process US customer_balance charges.
"""
zip_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the Zip capability of the account, or whether the account can directly process Zip charges.
Expand Down Expand Up @@ -1569,6 +1599,12 @@ class CreateParamsCapabilities(TypedDict):
"""
The fpx_payments capability.
"""
gb_bank_transfer_payments: NotRequired[
"Account.CreateParamsCapabilitiesGbBankTransferPayments"
]
"""
The gb_bank_transfer_payments capability.
"""
giropay_payments: NotRequired[
"Account.CreateParamsCapabilitiesGiropayPayments"
]
Expand Down Expand Up @@ -1599,6 +1635,12 @@ class CreateParamsCapabilities(TypedDict):
"""
The jcb_payments capability.
"""
jp_bank_transfer_payments: NotRequired[
"Account.CreateParamsCapabilitiesJpBankTransferPayments"
]
"""
The jp_bank_transfer_payments capability.
"""
klarna_payments: NotRequired[
"Account.CreateParamsCapabilitiesKlarnaPayments"
]
Expand Down Expand Up @@ -1629,6 +1671,12 @@ class CreateParamsCapabilities(TypedDict):
"""
The mobilepay_payments capability.
"""
mx_bank_transfer_payments: NotRequired[
"Account.CreateParamsCapabilitiesMxBankTransferPayments"
]
"""
The mx_bank_transfer_payments capability.
"""
oxxo_payments: NotRequired[
"Account.CreateParamsCapabilitiesOxxoPayments"
]
Expand Down Expand Up @@ -1677,6 +1725,12 @@ class CreateParamsCapabilities(TypedDict):
"""
The revolut_pay_payments capability.
"""
sepa_bank_transfer_payments: NotRequired[
"Account.CreateParamsCapabilitiesSepaBankTransferPayments"
]
"""
The sepa_bank_transfer_payments capability.
"""
sepa_debit_payments: NotRequired[
"Account.CreateParamsCapabilitiesSepaDebitPayments"
]
Expand Down Expand Up @@ -1727,6 +1781,12 @@ class CreateParamsCapabilities(TypedDict):
"""
The us_bank_account_ach_payments capability.
"""
us_bank_transfer_payments: NotRequired[
"Account.CreateParamsCapabilitiesUsBankTransferPayments"
]
"""
The us_bank_transfer_payments capability.
"""
zip_payments: NotRequired[
"Account.CreateParamsCapabilitiesZipPayments"
]
Expand Down Expand Up @@ -1830,6 +1890,12 @@ class CreateParamsCapabilitiesFpxPayments(TypedDict):
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesGbBankTransferPayments(TypedDict):
requested: NotRequired[bool]
"""
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesGiropayPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down Expand Up @@ -1860,6 +1926,12 @@ class CreateParamsCapabilitiesJcbPayments(TypedDict):
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesJpBankTransferPayments(TypedDict):
requested: NotRequired[bool]
"""
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesKlarnaPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down Expand Up @@ -1890,6 +1962,12 @@ class CreateParamsCapabilitiesMobilepayPayments(TypedDict):
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesMxBankTransferPayments(TypedDict):
requested: NotRequired[bool]
"""
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesOxxoPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down Expand Up @@ -1938,6 +2016,12 @@ class CreateParamsCapabilitiesRevolutPayPayments(TypedDict):
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesSepaBankTransferPayments(TypedDict):
requested: NotRequired[bool]
"""
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesSepaDebitPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down Expand Up @@ -1992,6 +2076,12 @@ class CreateParamsCapabilitiesUsBankAccountAchPayments(TypedDict):
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesUsBankTransferPayments(TypedDict):
requested: NotRequired[bool]
"""
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesZipPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down
Loading

0 comments on commit 90949f6

Please sign in to comment.