Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code #1342

Merged
merged 13 commits into from
Jun 13, 2024
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1065
v1077
32 changes: 32 additions & 0 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ class Capabilities(StripeObject):
"""
The status of the MobilePay capability of the account, or whether the account can directly process MobilePay charges.
"""
multibanco_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the Multibanco payments capability of the account, or whether the account can directly process Multibanco charges.
"""
mx_bank_transfer_payments: Optional[
Literal["active", "inactive", "pending"]
]
Expand Down Expand Up @@ -348,6 +352,10 @@ class Capabilities(StripeObject):
"""
The status of the banking capability, or whether the account can have bank accounts.
"""
twint_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the TWINT capability of the account, or whether the account can directly process TWINT charges.
"""
us_bank_account_ach_payments: Optional[
Literal["active", "inactive", "pending"]
]
Expand Down Expand Up @@ -1601,6 +1609,12 @@ class CreateParamsCapabilities(TypedDict):
"""
The mobilepay_payments capability.
"""
multibanco_payments: NotRequired[
"Account.CreateParamsCapabilitiesMultibancoPayments"
]
"""
The multibanco_payments capability.
"""
mx_bank_transfer_payments: NotRequired[
"Account.CreateParamsCapabilitiesMxBankTransferPayments"
]
Expand Down Expand Up @@ -1681,6 +1695,12 @@ class CreateParamsCapabilities(TypedDict):
"""
The treasury capability.
"""
twint_payments: NotRequired[
"Account.CreateParamsCapabilitiesTwintPayments"
]
"""
The twint_payments capability.
"""
us_bank_account_ach_payments: NotRequired[
"Account.CreateParamsCapabilitiesUsBankAccountAchPayments"
]
Expand Down Expand Up @@ -1868,6 +1888,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 CreateParamsCapabilitiesMultibancoPayments(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 CreateParamsCapabilitiesMxBankTransferPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down Expand Up @@ -1952,6 +1978,12 @@ class CreateParamsCapabilitiesTreasury(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 CreateParamsCapabilitiesTwintPayments(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 CreateParamsCapabilitiesUsBankAccountAchPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down
48 changes: 48 additions & 0 deletions stripe/_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,12 @@ class CreateParamsCapabilities(TypedDict):
"""
The mobilepay_payments capability.
"""
multibanco_payments: NotRequired[
"AccountService.CreateParamsCapabilitiesMultibancoPayments"
]
"""
The multibanco_payments capability.
"""
mx_bank_transfer_payments: NotRequired[
"AccountService.CreateParamsCapabilitiesMxBankTransferPayments"
]
Expand Down Expand Up @@ -490,6 +496,12 @@ class CreateParamsCapabilities(TypedDict):
"""
The treasury capability.
"""
twint_payments: NotRequired[
"AccountService.CreateParamsCapabilitiesTwintPayments"
]
"""
The twint_payments capability.
"""
us_bank_account_ach_payments: NotRequired[
"AccountService.CreateParamsCapabilitiesUsBankAccountAchPayments"
]
Expand Down Expand Up @@ -677,6 +689,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 CreateParamsCapabilitiesMultibancoPayments(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 CreateParamsCapabilitiesMxBankTransferPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down Expand Up @@ -761,6 +779,12 @@ class CreateParamsCapabilitiesTreasury(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 CreateParamsCapabilitiesTwintPayments(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 CreateParamsCapabilitiesUsBankAccountAchPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down Expand Up @@ -2068,6 +2092,12 @@ class UpdateParamsCapabilities(TypedDict):
"""
The mobilepay_payments capability.
"""
multibanco_payments: NotRequired[
"AccountService.UpdateParamsCapabilitiesMultibancoPayments"
]
"""
The multibanco_payments capability.
"""
mx_bank_transfer_payments: NotRequired[
"AccountService.UpdateParamsCapabilitiesMxBankTransferPayments"
]
Expand Down Expand Up @@ -2152,6 +2182,12 @@ class UpdateParamsCapabilities(TypedDict):
"""
The treasury capability.
"""
twint_payments: NotRequired[
"AccountService.UpdateParamsCapabilitiesTwintPayments"
]
"""
The twint_payments capability.
"""
us_bank_account_ach_payments: NotRequired[
"AccountService.UpdateParamsCapabilitiesUsBankAccountAchPayments"
]
Expand Down Expand Up @@ -2339,6 +2375,12 @@ class UpdateParamsCapabilitiesMobilepayPayments(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 UpdateParamsCapabilitiesMultibancoPayments(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 UpdateParamsCapabilitiesMxBankTransferPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down Expand Up @@ -2423,6 +2465,12 @@ class UpdateParamsCapabilitiesTreasury(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 UpdateParamsCapabilitiesTwintPayments(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 UpdateParamsCapabilitiesUsBankAccountAchPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down
3 changes: 1 addition & 2 deletions stripe/_bank_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ class BankAccount(
These bank accounts are payment methods on `Customer` objects.
On the other hand [External Accounts](https://stripe.com/api#external_accounts) are transfer
destinations on `Account` objects for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
is `application`, which includes [Custom accounts](https://stripe.com/connect/custom-accounts).
destinations on `Account` objects for connected accounts.
They can be bank accounts or debit cards as well, and are documented in the links above.
Related guide: [Bank debits and transfers](https://stripe.com/payments/bank-debits-transfers)
Expand Down
5 changes: 5 additions & 0 deletions stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1529,6 +1529,9 @@ class Swish(StripeObject):
The last four digits of the Swish account phone number
"""

class Twint(StripeObject):
pass

class UsBankAccount(StripeObject):
account_holder_type: Optional[Literal["company", "individual"]]
"""
Expand Down Expand Up @@ -1618,6 +1621,7 @@ class Zip(StripeObject):
sofort: Optional[Sofort]
stripe_account: Optional[StripeAccount]
swish: Optional[Swish]
twint: Optional[Twint]
type: str
"""
The type of transaction-specific details of the payment method used in the payment, one of `ach_credit_transfer`, `ach_debit`, `acss_debit`, `alipay`, `au_becs_debit`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `klarna`, `multibanco`, `p24`, `sepa_debit`, `sofort`, `stripe_account`, or `wechat`.
Expand Down Expand Up @@ -1668,6 +1672,7 @@ class Zip(StripeObject):
"sofort": Sofort,
"stripe_account": StripeAccount,
"swish": Swish,
"twint": Twint,
"us_bank_account": UsBankAccount,
"wechat": Wechat,
"wechat_pay": WechatPay,
Expand Down
32 changes: 32 additions & 0 deletions stripe/_confirmation_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,9 @@ class Link(StripeObject):
class Mobilepay(StripeObject):
pass

class Multibanco(StripeObject):
pass

class Oxxo(StripeObject):
pass

Expand Down Expand Up @@ -1100,6 +1103,9 @@ class Sofort(StripeObject):
class Swish(StripeObject):
pass

class Twint(StripeObject):
pass

class UsBankAccount(StripeObject):
class Networks(StripeObject):
preferred: Optional[str]
Expand Down Expand Up @@ -1225,6 +1231,7 @@ class Zip(StripeObject):
konbini: Optional[Konbini]
link: Optional[Link]
mobilepay: Optional[Mobilepay]
multibanco: Optional[Multibanco]
oxxo: Optional[Oxxo]
p24: Optional[P24]
paynow: Optional[Paynow]
Expand All @@ -1235,6 +1242,7 @@ class Zip(StripeObject):
sepa_debit: Optional[SepaDebit]
sofort: Optional[Sofort]
swish: Optional[Swish]
twint: Optional[Twint]
type: Literal[
"acss_debit",
"affirm",
Expand All @@ -1260,6 +1268,7 @@ class Zip(StripeObject):
"konbini",
"link",
"mobilepay",
"multibanco",
"oxxo",
"p24",
"paynow",
Expand All @@ -1270,6 +1279,7 @@ class Zip(StripeObject):
"sepa_debit",
"sofort",
"swish",
"twint",
"us_bank_account",
"wechat_pay",
"zip",
Expand Down Expand Up @@ -1306,6 +1316,7 @@ class Zip(StripeObject):
"konbini": Konbini,
"link": Link,
"mobilepay": Mobilepay,
"multibanco": Multibanco,
"oxxo": Oxxo,
"p24": P24,
"paynow": Paynow,
Expand All @@ -1316,6 +1327,7 @@ class Zip(StripeObject):
"sepa_debit": SepaDebit,
"sofort": Sofort,
"swish": Swish,
"twint": Twint,
"us_bank_account": UsBankAccount,
"wechat_pay": WechatPay,
"zip": Zip,
Expand Down Expand Up @@ -1534,6 +1546,12 @@ class CreateParamsPaymentMethodData(TypedDict):
"""
If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
"""
multibanco: NotRequired[
"ConfirmationToken.CreateParamsPaymentMethodDataMultibanco"
]
"""
If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
"""
oxxo: NotRequired[
"ConfirmationToken.CreateParamsPaymentMethodDataOxxo"
]
Expand Down Expand Up @@ -1596,6 +1614,12 @@ class CreateParamsPaymentMethodData(TypedDict):
"""
If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
"""
twint: NotRequired[
"ConfirmationToken.CreateParamsPaymentMethodDataTwint"
]
"""
If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
"""
type: Literal[
"acss_debit",
"affirm",
Expand All @@ -1618,6 +1642,7 @@ class CreateParamsPaymentMethodData(TypedDict):
"konbini",
"link",
"mobilepay",
"multibanco",
"oxxo",
"p24",
"paynow",
Expand All @@ -1628,6 +1653,7 @@ class CreateParamsPaymentMethodData(TypedDict):
"sepa_debit",
"sofort",
"swish",
"twint",
"us_bank_account",
"wechat_pay",
"zip",
Expand Down Expand Up @@ -1897,6 +1923,9 @@ class CreateParamsPaymentMethodDataLink(TypedDict):
class CreateParamsPaymentMethodDataMobilepay(TypedDict):
pass

class CreateParamsPaymentMethodDataMultibanco(TypedDict):
pass

class CreateParamsPaymentMethodDataOxxo(TypedDict):
pass

Expand Down Expand Up @@ -1971,6 +2000,9 @@ class CreateParamsPaymentMethodDataSofort(TypedDict):
class CreateParamsPaymentMethodDataSwish(TypedDict):
pass

class CreateParamsPaymentMethodDataTwint(TypedDict):
pass

class CreateParamsPaymentMethodDataUsBankAccount(TypedDict):
account_holder_type: NotRequired[Literal["company", "individual"]]
"""
Expand Down
8 changes: 6 additions & 2 deletions stripe/_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ class CreateParamsTaxIdDatum(TypedDict):
"cn_tin",
"co_nit",
"cr_tin",
"de_stn",
"do_rcn",
"ec_ruc",
"eg_tin",
Expand Down Expand Up @@ -578,7 +579,7 @@ class CreateParamsTaxIdDatum(TypedDict):
"za_vat",
]
"""
Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
"""
value: str
"""
Expand Down Expand Up @@ -627,6 +628,7 @@ class CreateTaxIdParams(RequestOptions):
"cn_tin",
"co_nit",
"cr_tin",
"de_stn",
"do_rcn",
"ec_ruc",
"eg_tin",
Expand Down Expand Up @@ -679,7 +681,7 @@ class CreateTaxIdParams(RequestOptions):
"za_vat",
]
"""
Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
"""
value: str
"""
Expand Down Expand Up @@ -850,6 +852,7 @@ class ListPaymentMethodsParams(RequestOptions):
"konbini",
"link",
"mobilepay",
"multibanco",
"oxxo",
"p24",
"paynow",
Expand All @@ -860,6 +863,7 @@ class ListPaymentMethodsParams(RequestOptions):
"sepa_debit",
"sofort",
"swish",
"twint",
"us_bank_account",
"wechat_pay",
"zip",
Expand Down
Loading
Loading