diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 70e65014b..2fd2b0687 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v807 \ No newline at end of file +v814 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index 25af3088a..4795e9748 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -27,6 +27,7 @@ from stripe._card import Card from stripe._file import File from stripe._login_link import LoginLink + from stripe._tax_id import TaxId @nested_resource_class_methods("capability") @@ -934,6 +935,12 @@ class Dashboard(StripeObject): The timezone used in the Stripe Dashboard for this account. A list of possible time zone values is maintained at the [IANA Time Zone Database](http://www.iana.org/time-zones). """ + class Invoices(StripeObject): + default_account_tax_ids: Optional[List[ExpandableField["TaxId"]]] + """ + The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized. + """ + class Payments(StripeObject): statement_descriptor: Optional[str] """ @@ -1015,6 +1022,7 @@ class TosAcceptance(StripeObject): card_issuing: Optional[CardIssuing] card_payments: CardPayments dashboard: Dashboard + invoices: Optional[Invoices] payments: Payments payouts: Optional[Payouts] sepa_debit_payments: Optional[SepaDebitPayments] @@ -1025,6 +1033,7 @@ class TosAcceptance(StripeObject): "card_issuing": CardIssuing, "card_payments": CardPayments, "dashboard": Dashboard, + "invoices": Invoices, "payments": Payments, "payouts": Payouts, "sepa_debit_payments": SepaDebitPayments, @@ -3886,9 +3895,6 @@ def reject( # pyright: ignore[reportGeneralTypeIssues] ), ) - # We are not adding a helper for capabilities here as the Account object already has a - # capabilities property which is a hash and not the sub-list of capabilities. - @classmethod def retrieve(cls, id=None, **params) -> "Account": instance = cls(id, **params) diff --git a/stripe/_account_service.py b/stripe/_account_service.py index cf555557d..492e334ce 100644 --- a/stripe/_account_service.py +++ b/stripe/_account_service.py @@ -2836,6 +2836,10 @@ class UpdateParamsSettings(TypedDict): """ Settings specific to card charging on the account. """ + invoices: NotRequired["AccountService.UpdateParamsSettingsInvoices"] + """ + Settings specific to the account's use of Invoices. + """ payments: NotRequired["AccountService.UpdateParamsSettingsPayments"] """ Settings that apply across payment methods for charging on the account. @@ -2925,6 +2929,12 @@ class UpdateParamsSettingsCardPaymentsDeclineOn(TypedDict): Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification. """ + class UpdateParamsSettingsInvoices(TypedDict): + default_account_tax_ids: NotRequired["Literal['']|List[str]"] + """ + The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized. + """ + class UpdateParamsSettingsPayments(TypedDict): statement_descriptor: NotRequired["str"] """ diff --git a/stripe/_charge.py b/stripe/_charge.py index f0e830fff..a8822ff21 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -1313,11 +1313,12 @@ class P24(StripeObject): "santander_przelew24", "tmobile_usbugi_bankowe", "toyota_bank", + "velobank", "volkswagen_bank", ] ] """ - The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`. + The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `velobank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`. """ reference: Optional[str] """ diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index ec4bde097..d625333b8 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -1056,7 +1056,14 @@ class Bancontact(StripeObject): """ class Blik(StripeObject): - pass + setup_future_usage: Optional[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + + When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + """ class Boleto(StripeObject): expires_after_days: int @@ -1219,6 +1226,10 @@ class MandateOptions(StripeObject): """ We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. """ + require_cvc_recollection: Optional[bool] + """ + When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). + """ setup_future_usage: Optional[ Literal["none", "off_session", "on_session"] ] @@ -2443,7 +2454,7 @@ class ConfirmParamsPaymentMethodDataOxxo(TypedDict): class ConfirmParamsPaymentMethodDataP24(TypedDict): bank: NotRequired[ - "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'volkswagen_bank']" + "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'velobank', 'volkswagen_bank']" ] """ The customer's bank. @@ -2887,6 +2898,16 @@ class ConfirmParamsPaymentMethodOptionsBlik(TypedDict): """ The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. """ + setup_future_usage: NotRequired["Literal['']|Literal['none']"] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + + When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + + If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`. + """ class ConfirmParamsPaymentMethodOptionsBoleto(TypedDict): expires_after_days: NotRequired["int"] @@ -2971,6 +2992,10 @@ class ConfirmParamsPaymentMethodOptionsCard(TypedDict): """ We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. """ + require_cvc_recollection: NotRequired["bool"] + """ + When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). + """ setup_future_usage: NotRequired[ "Literal['']|Literal['none', 'off_session', 'on_session']" ] @@ -4362,7 +4387,7 @@ class CreateParamsPaymentMethodDataOxxo(TypedDict): class CreateParamsPaymentMethodDataP24(TypedDict): bank: NotRequired[ - "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'volkswagen_bank']" + "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'velobank', 'volkswagen_bank']" ] """ The customer's bank. @@ -4806,6 +4831,16 @@ class CreateParamsPaymentMethodOptionsBlik(TypedDict): """ The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. """ + setup_future_usage: NotRequired["Literal['']|Literal['none']"] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + + When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + + If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`. + """ class CreateParamsPaymentMethodOptionsBoleto(TypedDict): expires_after_days: NotRequired["int"] @@ -4890,6 +4925,10 @@ class CreateParamsPaymentMethodOptionsCard(TypedDict): """ We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. """ + require_cvc_recollection: NotRequired["bool"] + """ + When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). + """ setup_future_usage: NotRequired[ "Literal['']|Literal['none', 'off_session', 'on_session']" ] @@ -6283,7 +6322,7 @@ class ModifyParamsPaymentMethodDataOxxo(TypedDict): class ModifyParamsPaymentMethodDataP24(TypedDict): bank: NotRequired[ - "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'volkswagen_bank']" + "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'velobank', 'volkswagen_bank']" ] """ The customer's bank. @@ -6727,6 +6766,16 @@ class ModifyParamsPaymentMethodOptionsBlik(TypedDict): """ The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. """ + setup_future_usage: NotRequired["Literal['']|Literal['none']"] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + + When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + + If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`. + """ class ModifyParamsPaymentMethodOptionsBoleto(TypedDict): expires_after_days: NotRequired["int"] @@ -6811,6 +6860,10 @@ class ModifyParamsPaymentMethodOptionsCard(TypedDict): """ We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. """ + require_cvc_recollection: NotRequired["bool"] + """ + When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). + """ setup_future_usage: NotRequired[ "Literal['']|Literal['none', 'off_session', 'on_session']" ] diff --git a/stripe/_payment_intent_service.py b/stripe/_payment_intent_service.py index 003f98755..aa5ec6594 100644 --- a/stripe/_payment_intent_service.py +++ b/stripe/_payment_intent_service.py @@ -663,7 +663,7 @@ class ConfirmParamsPaymentMethodDataOxxo(TypedDict): class ConfirmParamsPaymentMethodDataP24(TypedDict): bank: NotRequired[ - "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'volkswagen_bank']" + "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'velobank', 'volkswagen_bank']" ] """ The customer's bank. @@ -1107,6 +1107,16 @@ class ConfirmParamsPaymentMethodOptionsBlik(TypedDict): """ The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. """ + setup_future_usage: NotRequired["Literal['']|Literal['none']"] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + + When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + + If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`. + """ class ConfirmParamsPaymentMethodOptionsBoleto(TypedDict): expires_after_days: NotRequired["int"] @@ -1191,6 +1201,10 @@ class ConfirmParamsPaymentMethodOptionsCard(TypedDict): """ We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. """ + require_cvc_recollection: NotRequired["bool"] + """ + When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). + """ setup_future_usage: NotRequired[ "Literal['']|Literal['none', 'off_session', 'on_session']" ] @@ -2606,7 +2620,7 @@ class CreateParamsPaymentMethodDataOxxo(TypedDict): class CreateParamsPaymentMethodDataP24(TypedDict): bank: NotRequired[ - "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'volkswagen_bank']" + "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'velobank', 'volkswagen_bank']" ] """ The customer's bank. @@ -3050,6 +3064,16 @@ class CreateParamsPaymentMethodOptionsBlik(TypedDict): """ The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. """ + setup_future_usage: NotRequired["Literal['']|Literal['none']"] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + + When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + + If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`. + """ class CreateParamsPaymentMethodOptionsBoleto(TypedDict): expires_after_days: NotRequired["int"] @@ -3134,6 +3158,10 @@ class CreateParamsPaymentMethodOptionsCard(TypedDict): """ We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. """ + require_cvc_recollection: NotRequired["bool"] + """ + When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). + """ setup_future_usage: NotRequired[ "Literal['']|Literal['none', 'off_session', 'on_session']" ] @@ -4579,7 +4607,7 @@ class UpdateParamsPaymentMethodDataOxxo(TypedDict): class UpdateParamsPaymentMethodDataP24(TypedDict): bank: NotRequired[ - "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'volkswagen_bank']" + "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'velobank', 'volkswagen_bank']" ] """ The customer's bank. @@ -5023,6 +5051,16 @@ class UpdateParamsPaymentMethodOptionsBlik(TypedDict): """ The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. """ + setup_future_usage: NotRequired["Literal['']|Literal['none']"] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + + When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + + If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`. + """ class UpdateParamsPaymentMethodOptionsBoleto(TypedDict): expires_after_days: NotRequired["int"] @@ -5107,6 +5145,10 @@ class UpdateParamsPaymentMethodOptionsCard(TypedDict): """ We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. """ + require_cvc_recollection: NotRequired["bool"] + """ + When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). + """ setup_future_usage: NotRequired[ "Literal['']|Literal['none', 'off_session', 'on_session']" ] diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 230ad569a..4080c1ff5 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -176,7 +176,7 @@ class Networks(StripeObject): """ preferred: Optional[str] """ - The preferred network for the card. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. + The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. """ class ThreeDSecureUsage(StripeObject): @@ -803,6 +803,7 @@ class P24(StripeObject): "santander_przelew24", "tmobile_usbugi_bankowe", "toyota_bank", + "velobank", "volkswagen_bank", ] ] @@ -1385,7 +1386,7 @@ class CreateParamsOxxo(TypedDict): class CreateParamsP24(TypedDict): bank: NotRequired[ - "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'volkswagen_bank']" + "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'velobank', 'volkswagen_bank']" ] """ The customer's bank. diff --git a/stripe/_payment_method_service.py b/stripe/_payment_method_service.py index faacc1703..6b4933e59 100644 --- a/stripe/_payment_method_service.py +++ b/stripe/_payment_method_service.py @@ -420,7 +420,7 @@ class CreateParamsOxxo(TypedDict): class CreateParamsP24(TypedDict): bank: NotRequired[ - "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'volkswagen_bank']" + "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'velobank', 'volkswagen_bank']" ] """ The customer's bank. diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index fc7708e70..f7a95b46f 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -1106,7 +1106,7 @@ class ConfirmParamsPaymentMethodDataOxxo(TypedDict): class ConfirmParamsPaymentMethodDataP24(TypedDict): bank: NotRequired[ - "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'volkswagen_bank']" + "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'velobank', 'volkswagen_bank']" ] """ The customer's bank. @@ -2047,7 +2047,7 @@ class CreateParamsPaymentMethodDataOxxo(TypedDict): class CreateParamsPaymentMethodDataP24(TypedDict): bank: NotRequired[ - "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'volkswagen_bank']" + "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'velobank', 'volkswagen_bank']" ] """ The customer's bank. @@ -2963,7 +2963,7 @@ class ModifyParamsPaymentMethodDataOxxo(TypedDict): class ModifyParamsPaymentMethodDataP24(TypedDict): bank: NotRequired[ - "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'volkswagen_bank']" + "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'velobank', 'volkswagen_bank']" ] """ The customer's bank. diff --git a/stripe/_setup_intent_service.py b/stripe/_setup_intent_service.py index b26b825d7..289785f85 100644 --- a/stripe/_setup_intent_service.py +++ b/stripe/_setup_intent_service.py @@ -552,7 +552,7 @@ class ConfirmParamsPaymentMethodDataOxxo(TypedDict): class ConfirmParamsPaymentMethodDataP24(TypedDict): bank: NotRequired[ - "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'volkswagen_bank']" + "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'velobank', 'volkswagen_bank']" ] """ The customer's bank. @@ -1523,7 +1523,7 @@ class CreateParamsPaymentMethodDataOxxo(TypedDict): class CreateParamsPaymentMethodDataP24(TypedDict): bank: NotRequired[ - "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'volkswagen_bank']" + "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'velobank', 'volkswagen_bank']" ] """ The customer's bank. @@ -2479,7 +2479,7 @@ class UpdateParamsPaymentMethodDataOxxo(TypedDict): class UpdateParamsPaymentMethodDataP24(TypedDict): bank: NotRequired[ - "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'volkswagen_bank']" + "Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'velobank', 'volkswagen_bank']" ] """ The customer's bank. diff --git a/stripe/_subscription.py b/stripe/_subscription.py index 62ed5acf7..36f72b14e 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -708,6 +708,10 @@ class CreateParamsBillingThresholds(TypedDict): """ class CreateParamsInvoiceSettings(TypedDict): + account_tax_ids: NotRequired["Literal['']|List[str]"] + """ + The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. + """ issuer: NotRequired["Subscription.CreateParamsInvoiceSettingsIssuer"] """ The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. @@ -1389,6 +1393,10 @@ class ModifyParamsCancellationDetails(TypedDict): """ class ModifyParamsInvoiceSettings(TypedDict): + account_tax_ids: NotRequired["Literal['']|List[str]"] + """ + The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. + """ issuer: NotRequired["Subscription.ModifyParamsInvoiceSettingsIssuer"] """ The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. diff --git a/stripe/_subscription_schedule.py b/stripe/_subscription_schedule.py index 103216c64..913c6a37e 100644 --- a/stripe/_subscription_schedule.py +++ b/stripe/_subscription_schedule.py @@ -26,6 +26,7 @@ from stripe._plan import Plan from stripe._price import Price from stripe._subscription import Subscription + from stripe._tax_id import TaxId from stripe._tax_rate import TaxRate from stripe.test_helpers._test_clock import TestClock @@ -98,6 +99,10 @@ class Issuer(StripeObject): Type of the account referenced. """ + account_tax_ids: Optional[List[ExpandableField["TaxId"]]] + """ + The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule. + """ days_until_due: Optional[int] """ Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`. @@ -215,6 +220,10 @@ class Issuer(StripeObject): Type of the account referenced. """ + account_tax_ids: Optional[List[ExpandableField["TaxId"]]] + """ + The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule. + """ days_until_due: Optional[int] """ Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`. @@ -497,6 +506,10 @@ class CreateParamsDefaultSettingsBillingThresholds(TypedDict): """ class CreateParamsDefaultSettingsInvoiceSettings(TypedDict): + account_tax_ids: NotRequired["Literal['']|List[str]"] + """ + The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule. + """ days_until_due: NotRequired["int"] """ Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`. @@ -707,6 +720,10 @@ class CreateParamsPhaseBillingThresholds(TypedDict): """ class CreateParamsPhaseInvoiceSettings(TypedDict): + account_tax_ids: NotRequired["Literal['']|List[str]"] + """ + The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule. + """ days_until_due: NotRequired["int"] """ Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`. @@ -1055,6 +1072,10 @@ class ModifyParamsDefaultSettingsBillingThresholds(TypedDict): """ class ModifyParamsDefaultSettingsInvoiceSettings(TypedDict): + account_tax_ids: NotRequired["Literal['']|List[str]"] + """ + The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule. + """ days_until_due: NotRequired["int"] """ Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`. @@ -1269,6 +1290,10 @@ class ModifyParamsPhaseBillingThresholds(TypedDict): """ class ModifyParamsPhaseInvoiceSettings(TypedDict): + account_tax_ids: NotRequired["Literal['']|List[str]"] + """ + The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule. + """ days_until_due: NotRequired["int"] """ Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`. diff --git a/stripe/_subscription_schedule_service.py b/stripe/_subscription_schedule_service.py index 2a932a344..aa592cfc5 100644 --- a/stripe/_subscription_schedule_service.py +++ b/stripe/_subscription_schedule_service.py @@ -151,6 +151,10 @@ class CreateParamsDefaultSettingsBillingThresholds(TypedDict): """ class CreateParamsDefaultSettingsInvoiceSettings(TypedDict): + account_tax_ids: NotRequired["Literal['']|List[str]"] + """ + The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule. + """ days_until_due: NotRequired["int"] """ Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`. @@ -361,6 +365,10 @@ class CreateParamsPhaseBillingThresholds(TypedDict): """ class CreateParamsPhaseInvoiceSettings(TypedDict): + account_tax_ids: NotRequired["Literal['']|List[str]"] + """ + The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule. + """ days_until_due: NotRequired["int"] """ Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`. @@ -729,6 +737,10 @@ class UpdateParamsDefaultSettingsBillingThresholds(TypedDict): """ class UpdateParamsDefaultSettingsInvoiceSettings(TypedDict): + account_tax_ids: NotRequired["Literal['']|List[str]"] + """ + The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule. + """ days_until_due: NotRequired["int"] """ Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`. @@ -943,6 +955,10 @@ class UpdateParamsPhaseBillingThresholds(TypedDict): """ class UpdateParamsPhaseInvoiceSettings(TypedDict): + account_tax_ids: NotRequired["Literal['']|List[str]"] + """ + The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule. + """ days_until_due: NotRequired["int"] """ Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`. diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index 3fd4ed487..f0a3bafca 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -315,6 +315,10 @@ class CreateParamsBillingThresholds(TypedDict): """ class CreateParamsInvoiceSettings(TypedDict): + account_tax_ids: NotRequired["Literal['']|List[str]"] + """ + The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. + """ issuer: NotRequired[ "SubscriptionService.CreateParamsInvoiceSettingsIssuer" ] @@ -1050,6 +1054,10 @@ class UpdateParamsCancellationDetails(TypedDict): """ class UpdateParamsInvoiceSettings(TypedDict): + account_tax_ids: NotRequired["Literal['']|List[str]"] + """ + The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. + """ issuer: NotRequired[ "SubscriptionService.UpdateParamsInvoiceSettingsIssuer" ] diff --git a/stripe/_tax_id.py b/stripe/_tax_id.py index aab908670..386d26c0c 100644 --- a/stripe/_tax_id.py +++ b/stripe/_tax_id.py @@ -6,7 +6,11 @@ from stripe._stripe_object import StripeObject from stripe._util import sanitize_id from typing import ClassVar, Optional -from typing_extensions import Literal +from typing_extensions import Literal, TYPE_CHECKING + +if TYPE_CHECKING: + from stripe._account import Account + from stripe._application import Application class TaxId(APIResource["TaxId"]): @@ -19,6 +23,24 @@ class TaxId(APIResource["TaxId"]): OBJECT_NAME: ClassVar[Literal["tax_id"]] = "tax_id" + class Owner(StripeObject): + account: Optional[ExpandableField["Account"]] + """ + The account being referenced when `type` is `account`. + """ + application: Optional[ExpandableField["Application"]] + """ + The Connect Application being referenced when `type` is `application`. + """ + customer: Optional[ExpandableField["Customer"]] + """ + The customer being referenced when `type` is `customer`. + """ + type: Literal["account", "application", "customer", "self"] + """ + Type of owner referenced. + """ + class Verification(StripeObject): status: Literal["pending", "unavailable", "unverified", "verified"] """ @@ -57,6 +79,10 @@ class Verification(StripeObject): """ String representing the object's type. Objects of the same type share the same value. """ + owner: Optional[Owner] + """ + The account or customer the tax ID belongs to. + """ type: Literal[ "ad_nrt", "ae_trn", @@ -159,4 +185,4 @@ def retrieve(cls, id, **params): "Can't retrieve a tax id without a customer ID. Use customer.retrieve_tax_id('tax_id')" ) - _inner_class_types = {"verification": Verification} + _inner_class_types = {"owner": Owner, "verification": Verification} diff --git a/stripe/identity/_verification_report.py b/stripe/identity/_verification_report.py index c1dec98ff..6701de048 100644 --- a/stripe/identity/_verification_report.py +++ b/stripe/identity/_verification_report.py @@ -213,7 +213,7 @@ class Error(StripeObject): """ id_number: Optional[str] """ - ID number. + ID number. When `id_number_type` is `us_ssn`, only the last 4 digits are present. """ id_number_type: Optional[Literal["br_cpf", "sg_nric", "us_ssn"]] """