From 8b881b19a643025905d27bcb940041fd6a27146e Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 11 Feb 2026 14:17:23 +0000 Subject: [PATCH 1/4] Update generated code for v2169 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/_event.py | 7 +++---- stripe/_payment_intent.py | 4 ++-- stripe/_setup_intent.py | 5 ++--- stripe/params/_file_create_params.py | 2 +- stripe/v2/core/_event.py | 2 +- 7 files changed, 11 insertions(+), 13 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 41e180fca..49cddf8d8 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -fdbf5e05015131c7993d2b4017103f0d94561b6a \ No newline at end of file +fce63eb87846dfb612efc9be0e529a67d81b4525 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 469687e75..f8ca2f439 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2160 \ No newline at end of file +v2169 \ No newline at end of file diff --git a/stripe/_event.py b/stripe/_event.py index e203bf164..92dde9c31 100644 --- a/stripe/_event.py +++ b/stripe/_event.py @@ -3,13 +3,12 @@ from stripe._list_object import ListObject from stripe._listable_api_resource import ListableAPIResource from stripe._stripe_object import StripeObject -from typing import ClassVar, Dict, Optional +from typing import Any, ClassVar, Dict, Optional from typing_extensions import Literal, Unpack, TYPE_CHECKING if TYPE_CHECKING: from stripe.params._event_list_params import EventListParams from stripe.params._event_retrieve_params import EventRetrieveParams - from typing import Any class Event(ListableAPIResource["Event"]): @@ -37,11 +36,11 @@ class Event(ListableAPIResource["Event"]): OBJECT_NAME: ClassVar[Literal["event"]] = "event" class Data(StripeObject): - object: Dict[str, "Any"] + object: Dict[str, Any] """ Object containing the API resource relevant to the event. For example, an `invoice.created` event will have a full [invoice object](https://api.stripe.com#invoice_object) as the value of the object key. """ - previous_attributes: Optional[Dict[str, "Any"]] + previous_attributes: Optional[Dict[str, Any]] """ Object containing the names of the updated attributes and their values prior to the event (only included in events of type `*.updated`). If an array attribute has any updated elements, this object contains the entire array. In Stripe API versions 2017-04-06 or earlier, an updated array attribute in this object includes only the updated array elements. """ diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 93b04f57f..ed1be5d9e 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -11,6 +11,7 @@ from stripe._updateable_api_resource import UpdateableAPIResource from stripe._util import class_method_variant, sanitize_id from typing import ( + Any, AsyncIterator, ClassVar, Dict, @@ -73,7 +74,6 @@ from stripe.params._payment_intent_verify_microdeposits_params import ( PaymentIntentVerifyMicrodepositsParams, ) - from typing import Any @nested_resource_class_methods("amount_details_line_item") @@ -1412,7 +1412,7 @@ class WechatPayRedirectToIosApp(StripeObject): """ Type of the next action to perform. Refer to the other child attributes under `next_action` for available values. Examples include: `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`. """ - use_stripe_sdk: Optional[Dict[str, "Any"]] + use_stripe_sdk: Optional[Dict[str, Any]] """ When confirming a PaymentIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js. """ diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index e81c9ff20..e088d121b 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -7,7 +7,7 @@ from stripe._stripe_object import StripeObject from stripe._updateable_api_resource import UpdateableAPIResource from stripe._util import class_method_variant, sanitize_id -from typing import ClassVar, Dict, List, Optional, Union, cast, overload +from typing import Any, ClassVar, Dict, List, Optional, Union, cast, overload from typing_extensions import Literal, Unpack, TYPE_CHECKING if TYPE_CHECKING: @@ -40,7 +40,6 @@ from stripe.params._setup_intent_verify_microdeposits_params import ( SetupIntentVerifyMicrodepositsParams, ) - from typing import Any class SetupIntent( @@ -435,7 +434,7 @@ class VerifyWithMicrodeposits(StripeObject): """ Type of the next action to perform. Refer to the other child attributes under `next_action` for available values. Examples include: `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`. """ - use_stripe_sdk: Optional[Dict[str, "Any"]] + use_stripe_sdk: Optional[Dict[str, Any]] """ When confirming a SetupIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js. """ diff --git a/stripe/params/_file_create_params.py b/stripe/params/_file_create_params.py index a65648464..d61c852f6 100644 --- a/stripe/params/_file_create_params.py +++ b/stripe/params/_file_create_params.py @@ -10,7 +10,7 @@ class FileCreateParams(RequestOptions): """ Specifies which fields in the response should be expanded. """ - file: "Any" + file: Any """ A file to upload. Make sure that the specifications follow RFC 2388, which defines file transfers for the `multipart/form-data` protocol. """ diff --git a/stripe/v2/core/_event.py b/stripe/v2/core/_event.py index cb7ad021b..1a6610d10 100644 --- a/stripe/v2/core/_event.py +++ b/stripe/v2/core/_event.py @@ -42,7 +42,7 @@ class Request(StripeObject): """ _inner_class_types = {"request": Request} - changes: Optional[Dict[str, "Any"]] + changes: Optional[Dict[str, Any]] """ Before and after changes for the primary related object. """ From ed92bea3bbba89367e4b10a5d4fecc410de14230 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 18:00:52 +0000 Subject: [PATCH 2/4] Update generated code for v2183 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/__init__.py | 2 + stripe/_api_version.py | 2 +- stripe/_charge.py | 16 ++++ stripe/_confirmation_token.py | 8 ++ stripe/_event.py | 9 +- stripe/_file.py | 2 + stripe/_invoice.py | 10 ++- stripe/_mandate.py | 8 ++ stripe/_object_classes.py | 3 + stripe/_payment_attempt_record.py | 58 +++++++++--- stripe/_payment_intent.py | 10 ++- ...payment_intent_amount_details_line_item.py | 2 +- stripe/_payment_link.py | 14 +-- stripe/_payment_method.py | 8 ++ stripe/_payment_record.py | 58 +++++++++--- stripe/_promotion_code.py | 2 +- stripe/_setup_attempt.py | 2 + stripe/_setup_intent.py | 2 + stripe/_subscription.py | 19 ++-- stripe/_subscription_service.py | 4 +- stripe/_tax_id.py | 3 +- stripe/checkout/_session.py | 19 ++-- stripe/params/__init__.py | 20 +++++ stripe/params/_credit_note_create_params.py | 6 +- .../_credit_note_preview_lines_list_params.py | 6 +- .../_credit_note_preview_lines_params.py | 6 +- stripe/params/_credit_note_preview_params.py | 6 +- ...omer_create_funding_instructions_params.py | 2 +- stripe/params/_customer_create_params.py | 3 +- .../params/_customer_create_tax_id_params.py | 3 +- ...omer_funding_instructions_create_params.py | 2 +- .../params/_customer_tax_id_create_params.py | 3 +- stripe/params/_file_create_params.py | 2 + stripe/params/_file_list_params.py | 2 + stripe/params/_invoice_create_params.py | 4 +- .../params/_invoice_create_preview_params.py | 3 +- stripe/params/_invoice_modify_params.py | 4 +- stripe/params/_invoice_update_params.py | 4 +- .../params/_payment_intent_capture_params.py | 16 ++-- .../params/_payment_intent_confirm_params.py | 24 +++-- .../params/_payment_intent_create_params.py | 24 +++-- ...t_intent_increment_authorization_params.py | 16 ++-- .../params/_payment_intent_modify_params.py | 24 +++-- .../params/_payment_intent_update_params.py | 24 +++-- stripe/params/_payment_link_create_params.py | 14 +-- stripe/params/_payment_link_modify_params.py | 54 +++++++++-- stripe/params/_payment_link_update_params.py | 54 +++++++++-- ..._report_payment_attempt_canceled_params.py | 3 + ...rd_report_payment_attempt_failed_params.py | 3 + ...eport_payment_attempt_guaranteed_params.py | 3 + .../params/_promotion_code_create_params.py | 2 +- stripe/params/_subscription_create_params.py | 4 +- .../_subscription_item_delete_params.py | 17 ++++ stripe/params/_subscription_modify_params.py | 4 +- stripe/params/_subscription_update_params.py | 4 +- stripe/params/_tax_id_create_params.py | 3 +- .../params/_webhook_endpoint_create_params.py | 10 ++- .../params/_webhook_endpoint_modify_params.py | 9 +- .../params/_webhook_endpoint_update_params.py | 9 +- stripe/params/billing/_alert_create_params.py | 2 +- .../billing_portal/_session_create_params.py | 2 +- .../params/checkout/_session_create_params.py | 16 ++-- stripe/params/tax/__init__.py | 5 ++ .../params/tax/_calculation_create_params.py | 3 +- .../params/tax/_registration_create_params.py | 13 ++- stripe/params/terminal/__init__.py | 15 ++++ .../terminal/_configuration_create_params.py | 11 +++ .../terminal/_configuration_modify_params.py | 13 ++- .../terminal/_configuration_update_params.py | 13 ++- stripe/radar/_payment_evaluation.py | 19 +--- stripe/reserve/__init__.py | 31 +++++++ stripe/reserve/_hold.py | 87 ++++++++++++++++++ stripe/reserve/_plan.py | 84 +++++++++++++++++ stripe/reserve/_release.py | 90 +++++++++++++++++++ stripe/tax/_calculation.py | 3 +- stripe/tax/_registration.py | 8 ++ stripe/tax/_transaction.py | 3 +- stripe/terminal/_configuration.py | 8 ++ 80 files changed, 886 insertions(+), 202 deletions(-) create mode 100644 stripe/reserve/__init__.py create mode 100644 stripe/reserve/_hold.py create mode 100644 stripe/reserve/_plan.py create mode 100644 stripe/reserve/_release.py diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 49cddf8d8..60a90924f 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -fce63eb87846dfb612efc9be0e529a67d81b4525 \ No newline at end of file +c41a73eebe469b45125a46e569713351f88e1e44 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f8ca2f439..f9b83fcee 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2169 \ No newline at end of file +v2183 \ No newline at end of file diff --git a/stripe/__init__.py b/stripe/__init__.py index e4a93185d..ec8c10d93 100644 --- a/stripe/__init__.py +++ b/stripe/__init__.py @@ -126,6 +126,7 @@ def set_app_info( params as params, radar as radar, reporting as reporting, + reserve as reserve, sigma as sigma, tax as tax, terminal as terminal, @@ -555,6 +556,7 @@ def set_app_info( "params": ("stripe.params", True), "radar": ("stripe.radar", True), "reporting": ("stripe.reporting", True), + "reserve": ("stripe.reserve", True), "sigma": ("stripe.sigma", True), "tax": ("stripe.tax", True), "terminal": ("stripe.terminal", True), diff --git a/stripe/_api_version.py b/stripe/_api_version.py index c905d467b..f76b3fe03 100644 --- a/stripe/_api_version.py +++ b/stripe/_api_version.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec class _ApiVersion: - CURRENT = "2026-01-28.clover" + CURRENT = "2026-02-25.clover" CURRENT_MAJOR = "clover" diff --git a/stripe/_charge.py b/stripe/_charge.py index 752819d63..25f58914b 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -1042,6 +1042,10 @@ class Wallet(StripeObject): """ The last four digits of the card. """ + location: Optional[str] + """ + ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to. + """ network: Optional[str] """ Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. @@ -1074,6 +1078,10 @@ class Wallet(StripeObject): """ How card details were read in this transaction. """ + reader: Optional[str] + """ + ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. + """ receipt: Optional[Receipt] """ A collection of fields required to be displayed on receipts. Only required for EMV transactions. @@ -1399,6 +1407,10 @@ class Receipt(StripeObject): """ The last four digits of the card. """ + location: Optional[str] + """ + ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to. + """ network: Optional[str] """ Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. @@ -1423,6 +1435,10 @@ class Receipt(StripeObject): """ How card details were read in this transaction. """ + reader: Optional[str] + """ + ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. + """ receipt: Optional[Receipt] """ A collection of fields required to be displayed on receipts. Only required for EMV transactions. diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index 5ed2307d5..88f9ee0ee 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -378,6 +378,10 @@ class Wallet(StripeObject): """ The last four digits of the card. """ + location: Optional[str] + """ + ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to. + """ network: Optional[str] """ Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. @@ -410,6 +414,10 @@ class Wallet(StripeObject): """ How card details were read in this transaction. """ + reader: Optional[str] + """ + ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. + """ receipt: Optional[Receipt] """ A collection of fields required to be displayed on receipts. Only required for EMV transactions. diff --git a/stripe/_event.py b/stripe/_event.py index 92dde9c31..776df42d2 100644 --- a/stripe/_event.py +++ b/stripe/_event.py @@ -105,6 +105,7 @@ class Request(StripeObject): "balance.available", "balance_settings.updated", "billing.alert.triggered", + "billing.credit_grant.created", "billing_portal.configuration.created", "billing_portal.configuration.updated", "billing_portal.session.created", @@ -268,6 +269,13 @@ class Request(StripeObject): "reporting.report_run.failed", "reporting.report_run.succeeded", "reporting.report_type.updated", + "reserve.hold.created", + "reserve.hold.updated", + "reserve.plan.created", + "reserve.plan.disabled", + "reserve.plan.expired", + "reserve.plan.updated", + "reserve.release.created", "review.closed", "review.opened", "setup_intent.canceled", @@ -340,7 +348,6 @@ class Request(StripeObject): "treasury.received_credit.succeeded", "treasury.received_debit.created", "billing.credit_balance_transaction.created", - "billing.credit_grant.created", "billing.credit_grant.updated", "billing.meter.created", "billing.meter.deactivated", diff --git a/stripe/_file.py b/stripe/_file.py index c20e8ec31..61a79a303 100644 --- a/stripe/_file.py +++ b/stripe/_file.py @@ -69,6 +69,8 @@ class File(CreateableAPIResource["File"], ListableAPIResource["File"]): "tax_document_user_upload", "terminal_android_apk", "terminal_reader_splashscreen", + "terminal_wifi_certificate", + "terminal_wifi_private_key", ] """ The [purpose](https://docs.stripe.com/file-upload#uploading-a-file) of the uploaded file. diff --git a/stripe/_invoice.py b/stripe/_invoice.py index 97269700f..8d5526c4e 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -325,6 +325,7 @@ class CustomerTaxId(StripeObject): "la_tin", "li_uid", "li_vat", + "lk_vat", "ma_vat", "md_vat", "me_pib", @@ -373,7 +374,7 @@ class CustomerTaxId(StripeObject): "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` """ value: Optional[str] """ @@ -575,6 +576,8 @@ class LastFinalizationError(StripeObject): "sku_inactive", "state_unsupported", "status_transition_invalid", + "storer_capability_missing", + "storer_capability_not_active", "stripe_tax_inactive", "tax_id_invalid", "tax_id_prohibited", @@ -774,7 +777,7 @@ class BankTransfer(StripeObject): class EuBankTransfer(StripeObject): country: Literal["BE", "DE", "ES", "FR", "IE", "NL"] """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. """ eu_bank_transfer: Optional[EuBankTransfer] @@ -955,6 +958,7 @@ class Filters(StripeObject): "naver_pay", "nz_bank_account", "p24", + "pay_by_bank", "payco", "paynow", "paypal", @@ -1463,7 +1467,7 @@ class TaxRateDetails(StripeObject): payment_settings: PaymentSettings payments: Optional[ListObject["InvoicePayment"]] """ - Payments for this invoice + Payments for this invoice. Use [invoice payment](https://docs.stripe.com/api/invoice-payment) to get more details. """ period_end: int """ diff --git a/stripe/_mandate.py b/stripe/_mandate.py index 2cb297715..d204b2a8c 100644 --- a/stripe/_mandate.py +++ b/stripe/_mandate.py @@ -76,6 +76,10 @@ class AuBecsDebit(StripeObject): """ class BacsDebit(StripeObject): + display_name: Optional[str] + """ + The display name for the account on this mandate. + """ network_status: Literal[ "accepted", "pending", "refused", "revoked" ] @@ -98,6 +102,10 @@ class BacsDebit(StripeObject): """ When the mandate is revoked on the Bacs network this field displays the reason for the revocation. """ + service_user_number: Optional[str] + """ + The service user number for the account on this mandate. + """ url: str """ The URL that will contain the mandate that the customer has signed. diff --git a/stripe/_object_classes.py b/stripe/_object_classes.py index c5c167535..f887307d6 100644 --- a/stripe/_object_classes.py +++ b/stripe/_object_classes.py @@ -211,6 +211,9 @@ "refund": ("stripe._refund", "Refund"), "reporting.report_run": ("stripe.reporting._report_run", "ReportRun"), "reporting.report_type": ("stripe.reporting._report_type", "ReportType"), + "reserve.hold": ("stripe.reserve._hold", "Hold"), + "reserve.plan": ("stripe.reserve._plan", "Plan"), + "reserve.release": ("stripe.reserve._release", "Release"), "reserve_transaction": ( "stripe._reserve_transaction", "ReserveTransaction", diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py index 2517539fd..9fd003aab 100644 --- a/stripe/_payment_attempt_record.py +++ b/stripe/_payment_attempt_record.py @@ -196,11 +196,11 @@ class AcssDebit(StripeObject): class Affirm(StripeObject): location: Optional[str] """ - ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to. + ID of the location that this reader is assigned to. """ reader: Optional[str] """ - ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. + ID of the reader this transaction was made on. """ transaction_id: Optional[str] """ @@ -358,13 +358,11 @@ class Bancontact(StripeObject): """ preferred_language: Optional[Literal["de", "en", "fr", "nl"]] """ - Preferred language of the Bancontact authorization page that the customer is redirected to. - Can be one of `en`, `de`, `fr`, or `nl` + Preferred language of the Bancontact authorization page that the customer is redirected to. Can be one of `en`, `de`, `fr`, or `nl` """ verified_name: Optional[str] """ - Owner's verified full name. Values are verified or provided by Bancontact directly - (if supported) at the time of authorization or settlement. They cannot be set or mutated. + Owner's verified full name. Values are verified or provided by Bancontact directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. """ class Billie(StripeObject): @@ -425,7 +423,7 @@ class Blik(StripeObject): """ class Boleto(StripeObject): - tax_id: str + tax_id: Optional[str] """ The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers) """ @@ -435,12 +433,21 @@ class Checks(StripeObject): address_line1_check: Optional[ Literal["fail", "pass", "unavailable", "unchecked"] ] + """ + If you provide a value for `address.line1`, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`. + """ address_postal_code_check: Optional[ Literal["fail", "pass", "unavailable", "unchecked"] ] + """ + If you provide a address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`. + """ cvc_check: Optional[ Literal["fail", "pass", "unavailable", "unchecked"] ] + """ + If you provide a CVC, the check results is one of `pass`, `fail`, `unavailable`, or `unchecked`. + """ class Installments(StripeObject): class Plan(StripeObject): @@ -458,6 +465,9 @@ class Plan(StripeObject): """ plan: Optional[Plan] + """ + Installment plan selected for the payment. + """ _inner_class_types = {"plan": Plan} class NetworkToken(StripeObject): @@ -470,6 +480,9 @@ class ThreeDSecure(StripeObject): authentication_flow: Optional[ Literal["challenge", "frictionless"] ] + """ + For authenticated transactions: Indicates how the issuing bank authenticated the customer. + """ result: Optional[ Literal[ "attempt_acknowledged", @@ -480,6 +493,9 @@ class ThreeDSecure(StripeObject): "processing_error", ] ] + """ + Indicates the outcome of 3D Secure authentication. + """ result_reason: Optional[ Literal[ "abandoned", @@ -491,7 +507,13 @@ class ThreeDSecure(StripeObject): "rejected", ] ] + """ + Additional information about why 3D Secure succeeded or failed, based on the `result`. + """ version: Optional[Literal["1.0.2", "2.1.0", "2.2.0"]] + """ + The version of 3D Secure that was used. + """ class Wallet(StripeObject): class ApplePay(StripeObject): @@ -779,6 +801,10 @@ class Wallet(StripeObject): """ The last four digits of the card. """ + location: Optional[str] + """ + ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to. + """ network: Optional[str] """ Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. @@ -811,6 +837,10 @@ class Wallet(StripeObject): """ How card details were read in this transaction. """ + reader: Optional[str] + """ + ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. + """ receipt: Optional[Receipt] """ A collection of fields required to be displayed on receipts. Only required for EMV transactions. @@ -833,7 +863,7 @@ class Cashapp(StripeObject): """ transaction_id: Optional[str] """ - A unique and immutable identifier of payments assigned by Cash App + A unique and immutable identifier of payments assigned by Cash App. """ class Crypto(StripeObject): @@ -962,9 +992,7 @@ class Giropay(StripeObject): """ verified_name: Optional[str] """ - Owner's verified full name. Values are verified or provided by Giropay directly - (if supported) at the time of authorization or settlement. They cannot be set or mutated. - Giropay rarely provides this information so the attribute is usually empty. + Owner's verified full name. Values are verified or provided by Giropay directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Giropay rarely provides this information so the attribute is usually empty. """ class Grabpay(StripeObject): @@ -1146,6 +1174,10 @@ class Receipt(StripeObject): """ The last four digits of the card. """ + location: Optional[str] + """ + ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to. + """ network: Optional[str] """ Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. @@ -1170,6 +1202,10 @@ class Receipt(StripeObject): """ How card details were read in this transaction. """ + reader: Optional[str] + """ + ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. + """ receipt: Optional[Receipt] """ A collection of fields required to be displayed on receipts. Only required for EMV transactions. diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index ed1be5d9e..8526643f2 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -365,6 +365,8 @@ class LastPaymentError(StripeObject): "sku_inactive", "state_unsupported", "status_transition_invalid", + "storer_capability_missing", + "storer_capability_not_active", "stripe_tax_inactive", "tax_id_invalid", "tax_id_prohibited", @@ -1921,7 +1923,7 @@ class BankTransfer(StripeObject): class EuBankTransfer(StripeObject): country: Literal["BE", "DE", "ES", "FR", "IE", "NL"] """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. """ eu_bank_transfer: Optional[EuBankTransfer] @@ -2553,6 +2555,12 @@ class MandateOptions(StripeObject): """ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. """ + transaction_purpose: Optional[ + Literal["goods", "other", "services", "unspecified"] + ] + """ + The purpose of the transaction. + """ verification_method: Optional[ Literal["automatic", "instant", "microdeposits"] ] diff --git a/stripe/_payment_intent_amount_details_line_item.py b/stripe/_payment_intent_amount_details_line_item.py index 789feefc7..4b98c5cf3 100644 --- a/stripe/_payment_intent_amount_details_line_item.py +++ b/stripe/_payment_intent_amount_details_line_item.py @@ -84,7 +84,7 @@ class Tax(StripeObject): """ The product name of the line item. Required for L3 rates. At most 1024 characters long. - For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. + For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For PayPal, this field is truncated to 127 characters. """ quantity: int """ diff --git a/stripe/_payment_link.py b/stripe/_payment_link.py index 579ff4864..1b2f91f3f 100644 --- a/stripe/_payment_link.py +++ b/stripe/_payment_link.py @@ -130,7 +130,7 @@ class Option(StripeObject): default_value: Optional[str] """ - The value that will pre-fill on the payment page. + The value that pre-fills on the payment page. """ options: List[Option] """ @@ -151,7 +151,7 @@ class Label(StripeObject): class Numeric(StripeObject): default_value: Optional[str] """ - The value that will pre-fill the field on the payment page. + The value that pre-fills the field on the payment page. """ maximum_length: Optional[int] """ @@ -165,7 +165,7 @@ class Numeric(StripeObject): class Text(StripeObject): default_value: Optional[str] """ - The value that will pre-fill the field on the payment page. + The value that pre-fills the field on the payment page. """ maximum_length: Optional[int] """ @@ -203,25 +203,25 @@ class CustomText(StripeObject): class AfterSubmit(StripeObject): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ class ShippingAddress(StripeObject): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ class Submit(StripeObject): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ class TermsOfServiceAcceptance(StripeObject): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ after_submit: Optional[AfterSubmit] diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 0b6efddd0..debb3e03b 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -324,6 +324,10 @@ class Wallet(StripeObject): """ The last four digits of the card. """ + location: Optional[str] + """ + ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to. + """ network: Optional[str] """ Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. @@ -356,6 +360,10 @@ class Wallet(StripeObject): """ How card details were read in this transaction. """ + reader: Optional[str] + """ + ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. + """ receipt: Optional[Receipt] """ A collection of fields required to be displayed on receipts. Only required for EMV transactions. diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py index 75ab1e126..3e30c3d8c 100644 --- a/stripe/_payment_record.py +++ b/stripe/_payment_record.py @@ -212,11 +212,11 @@ class AcssDebit(StripeObject): class Affirm(StripeObject): location: Optional[str] """ - ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to. + ID of the location that this reader is assigned to. """ reader: Optional[str] """ - ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. + ID of the reader this transaction was made on. """ transaction_id: Optional[str] """ @@ -374,13 +374,11 @@ class Bancontact(StripeObject): """ preferred_language: Optional[Literal["de", "en", "fr", "nl"]] """ - Preferred language of the Bancontact authorization page that the customer is redirected to. - Can be one of `en`, `de`, `fr`, or `nl` + Preferred language of the Bancontact authorization page that the customer is redirected to. Can be one of `en`, `de`, `fr`, or `nl` """ verified_name: Optional[str] """ - Owner's verified full name. Values are verified or provided by Bancontact directly - (if supported) at the time of authorization or settlement. They cannot be set or mutated. + Owner's verified full name. Values are verified or provided by Bancontact directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. """ class Billie(StripeObject): @@ -441,7 +439,7 @@ class Blik(StripeObject): """ class Boleto(StripeObject): - tax_id: str + tax_id: Optional[str] """ The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers) """ @@ -451,12 +449,21 @@ class Checks(StripeObject): address_line1_check: Optional[ Literal["fail", "pass", "unavailable", "unchecked"] ] + """ + If you provide a value for `address.line1`, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`. + """ address_postal_code_check: Optional[ Literal["fail", "pass", "unavailable", "unchecked"] ] + """ + If you provide a address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`. + """ cvc_check: Optional[ Literal["fail", "pass", "unavailable", "unchecked"] ] + """ + If you provide a CVC, the check results is one of `pass`, `fail`, `unavailable`, or `unchecked`. + """ class Installments(StripeObject): class Plan(StripeObject): @@ -474,6 +481,9 @@ class Plan(StripeObject): """ plan: Optional[Plan] + """ + Installment plan selected for the payment. + """ _inner_class_types = {"plan": Plan} class NetworkToken(StripeObject): @@ -486,6 +496,9 @@ class ThreeDSecure(StripeObject): authentication_flow: Optional[ Literal["challenge", "frictionless"] ] + """ + For authenticated transactions: Indicates how the issuing bank authenticated the customer. + """ result: Optional[ Literal[ "attempt_acknowledged", @@ -496,6 +509,9 @@ class ThreeDSecure(StripeObject): "processing_error", ] ] + """ + Indicates the outcome of 3D Secure authentication. + """ result_reason: Optional[ Literal[ "abandoned", @@ -507,7 +523,13 @@ class ThreeDSecure(StripeObject): "rejected", ] ] + """ + Additional information about why 3D Secure succeeded or failed, based on the `result`. + """ version: Optional[Literal["1.0.2", "2.1.0", "2.2.0"]] + """ + The version of 3D Secure that was used. + """ class Wallet(StripeObject): class ApplePay(StripeObject): @@ -795,6 +817,10 @@ class Wallet(StripeObject): """ The last four digits of the card. """ + location: Optional[str] + """ + ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to. + """ network: Optional[str] """ Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. @@ -827,6 +853,10 @@ class Wallet(StripeObject): """ How card details were read in this transaction. """ + reader: Optional[str] + """ + ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. + """ receipt: Optional[Receipt] """ A collection of fields required to be displayed on receipts. Only required for EMV transactions. @@ -849,7 +879,7 @@ class Cashapp(StripeObject): """ transaction_id: Optional[str] """ - A unique and immutable identifier of payments assigned by Cash App + A unique and immutable identifier of payments assigned by Cash App. """ class Crypto(StripeObject): @@ -978,9 +1008,7 @@ class Giropay(StripeObject): """ verified_name: Optional[str] """ - Owner's verified full name. Values are verified or provided by Giropay directly - (if supported) at the time of authorization or settlement. They cannot be set or mutated. - Giropay rarely provides this information so the attribute is usually empty. + Owner's verified full name. Values are verified or provided by Giropay directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Giropay rarely provides this information so the attribute is usually empty. """ class Grabpay(StripeObject): @@ -1162,6 +1190,10 @@ class Receipt(StripeObject): """ The last four digits of the card. """ + location: Optional[str] + """ + ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to. + """ network: Optional[str] """ Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. @@ -1186,6 +1218,10 @@ class Receipt(StripeObject): """ How card details were read in this transaction. """ + reader: Optional[str] + """ + ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. + """ receipt: Optional[Receipt] """ A collection of fields required to be displayed on receipts. Only required for EMV transactions. diff --git a/stripe/_promotion_code.py b/stripe/_promotion_code.py index 65e0bbcd5..54dc7c5d0 100644 --- a/stripe/_promotion_code.py +++ b/stripe/_promotion_code.py @@ -84,7 +84,7 @@ class CurrencyOptions(StripeObject): """ code: str """ - The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for each customer. Valid characters are lower case letters (a-z), upper case letters (A-Z), and digits (0-9). + The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for each customer. Valid characters are lower case letters (a-z), upper case letters (A-Z), digits (0-9), and dashes (-). """ created: int """ diff --git a/stripe/_setup_attempt.py b/stripe/_setup_attempt.py index 47fcebb72..9244263ad 100644 --- a/stripe/_setup_attempt.py +++ b/stripe/_setup_attempt.py @@ -631,6 +631,8 @@ class SetupError(StripeObject): "sku_inactive", "state_unsupported", "status_transition_invalid", + "storer_capability_missing", + "storer_capability_not_active", "stripe_tax_inactive", "tax_id_invalid", "tax_id_prohibited", diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index e088d121b..b8e319381 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -260,6 +260,8 @@ class LastSetupError(StripeObject): "sku_inactive", "state_unsupported", "status_transition_invalid", + "storer_capability_missing", + "storer_capability_not_active", "stripe_tax_inactive", "tax_id_invalid", "tax_id_prohibited", diff --git a/stripe/_subscription.py b/stripe/_subscription.py index 37dab9864..03b2f5919 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -289,7 +289,7 @@ class BankTransfer(StripeObject): class EuBankTransfer(StripeObject): country: Literal["BE", "DE", "ES", "FR", "IE", "NL"] """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. """ eu_bank_transfer: Optional[EuBankTransfer] @@ -466,6 +466,7 @@ class Filters(StripeObject): "naver_pay", "nz_bank_account", "p24", + "pay_by_bank", "payco", "paynow", "paypal", @@ -1292,7 +1293,7 @@ def _cls_resume( cls, subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. """ return cast( "Subscription", @@ -1311,7 +1312,7 @@ def resume( subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. """ ... @@ -1320,7 +1321,7 @@ def resume( self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. """ ... @@ -1329,7 +1330,7 @@ def resume( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. """ return cast( "Subscription", @@ -1347,7 +1348,7 @@ async def _cls_resume_async( cls, subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. """ return cast( "Subscription", @@ -1366,7 +1367,7 @@ async def resume_async( subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. """ ... @@ -1375,7 +1376,7 @@ async def resume_async( self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. """ ... @@ -1384,7 +1385,7 @@ async def resume_async( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. """ return cast( "Subscription", diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index e1793f584..58e6a02bc 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -462,7 +462,7 @@ def resume( options: Optional["RequestOptions"] = None, ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. """ return cast( "Subscription", @@ -484,7 +484,7 @@ async def resume_async( options: Optional["RequestOptions"] = None, ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. """ return cast( "Subscription", diff --git a/stripe/_tax_id.py b/stripe/_tax_id.py index 8310780de..d53d614fc 100644 --- a/stripe/_tax_id.py +++ b/stripe/_tax_id.py @@ -173,6 +173,7 @@ class Verification(StripeObject): "la_tin", "li_uid", "li_vat", + "lk_vat", "ma_vat", "md_vat", "me_pib", @@ -221,7 +222,7 @@ class Verification(StripeObject): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`. Note that some legacy tax IDs have type `unknown` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`. Note that some legacy tax IDs have type `unknown` """ value: str """ diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index f7a045b21..569118419 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -309,7 +309,7 @@ class Option(StripeObject): default_value: Optional[str] """ - The value that will pre-fill on the payment page. + The value that pre-fills on the payment page. """ options: List[Option] """ @@ -334,7 +334,7 @@ class Label(StripeObject): class Numeric(StripeObject): default_value: Optional[str] """ - The value that will pre-fill the field on the payment page. + The value that pre-fills the field on the payment page. """ maximum_length: Optional[int] """ @@ -352,7 +352,7 @@ class Numeric(StripeObject): class Text(StripeObject): default_value: Optional[str] """ - The value that will pre-fill the field on the payment page. + The value that pre-fills the field on the payment page. """ maximum_length: Optional[int] """ @@ -394,25 +394,25 @@ class CustomText(StripeObject): class AfterSubmit(StripeObject): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ class ShippingAddress(StripeObject): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ class Submit(StripeObject): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ class TermsOfServiceAcceptance(StripeObject): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ after_submit: Optional[AfterSubmit] @@ -533,6 +533,7 @@ class TaxId(StripeObject): "la_tin", "li_uid", "li_vat", + "lk_vat", "ma_vat", "md_vat", "me_pib", @@ -581,7 +582,7 @@ class TaxId(StripeObject): "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` """ value: Optional[str] """ @@ -1058,7 +1059,7 @@ class BankTransfer(StripeObject): class EuBankTransfer(StripeObject): country: Literal["BE", "DE", "ES", "FR", "IE", "NL"] """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. """ eu_bank_transfer: Optional[EuBankTransfer] diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py index c1740f278..a1e842e09 100644 --- a/stripe/params/__init__.py +++ b/stripe/params/__init__.py @@ -2095,6 +2095,8 @@ PaymentLinkModifyParamsNameCollection as PaymentLinkModifyParamsNameCollection, PaymentLinkModifyParamsNameCollectionBusiness as PaymentLinkModifyParamsNameCollectionBusiness, PaymentLinkModifyParamsNameCollectionIndividual as PaymentLinkModifyParamsNameCollectionIndividual, + PaymentLinkModifyParamsOptionalItem as PaymentLinkModifyParamsOptionalItem, + PaymentLinkModifyParamsOptionalItemAdjustableQuantity as PaymentLinkModifyParamsOptionalItemAdjustableQuantity, PaymentLinkModifyParamsPaymentIntentData as PaymentLinkModifyParamsPaymentIntentData, PaymentLinkModifyParamsPhoneNumberCollection as PaymentLinkModifyParamsPhoneNumberCollection, PaymentLinkModifyParamsRestrictions as PaymentLinkModifyParamsRestrictions, @@ -2138,6 +2140,8 @@ PaymentLinkUpdateParamsNameCollection as PaymentLinkUpdateParamsNameCollection, PaymentLinkUpdateParamsNameCollectionBusiness as PaymentLinkUpdateParamsNameCollectionBusiness, PaymentLinkUpdateParamsNameCollectionIndividual as PaymentLinkUpdateParamsNameCollectionIndividual, + PaymentLinkUpdateParamsOptionalItem as PaymentLinkUpdateParamsOptionalItem, + PaymentLinkUpdateParamsOptionalItemAdjustableQuantity as PaymentLinkUpdateParamsOptionalItemAdjustableQuantity, PaymentLinkUpdateParamsPaymentIntentData as PaymentLinkUpdateParamsPaymentIntentData, PaymentLinkUpdateParamsPhoneNumberCollection as PaymentLinkUpdateParamsPhoneNumberCollection, PaymentLinkUpdateParamsRestrictions as PaymentLinkUpdateParamsRestrictions, @@ -10242,6 +10246,14 @@ "stripe.params._payment_link_modify_params", False, ), + "PaymentLinkModifyParamsOptionalItem": ( + "stripe.params._payment_link_modify_params", + False, + ), + "PaymentLinkModifyParamsOptionalItemAdjustableQuantity": ( + "stripe.params._payment_link_modify_params", + False, + ), "PaymentLinkModifyParamsPaymentIntentData": ( "stripe.params._payment_link_modify_params", False, @@ -10398,6 +10410,14 @@ "stripe.params._payment_link_update_params", False, ), + "PaymentLinkUpdateParamsOptionalItem": ( + "stripe.params._payment_link_update_params", + False, + ), + "PaymentLinkUpdateParamsOptionalItemAdjustableQuantity": ( + "stripe.params._payment_link_update_params", + False, + ), "PaymentLinkUpdateParamsPaymentIntentData": ( "stripe.params._payment_link_update_params", False, diff --git a/stripe/params/_credit_note_create_params.py b/stripe/params/_credit_note_create_params.py index 6fe871bad..2714e0e6b 100644 --- a/stripe/params/_credit_note_create_params.py +++ b/stripe/params/_credit_note_create_params.py @@ -89,15 +89,15 @@ class CreditNoteCreateParamsLine(TypedDict): "Literal['']|List[CreditNoteCreateParamsLineTaxAmount]" ] """ - A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with `tax_rates`. + A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. """ tax_rates: NotRequired["Literal['']|List[str]"] """ - The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and cannot be mixed with `tax_amounts`. + The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used. """ type: Literal["custom_line_item", "invoice_line_item"] """ - Type of the credit note line item, one of `invoice_line_item` or `custom_line_item` + Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. `custom_line_item` is not valid when the invoice is set up with `automatic_tax[enabled]=true`. """ unit_amount: NotRequired[int] """ diff --git a/stripe/params/_credit_note_preview_lines_list_params.py b/stripe/params/_credit_note_preview_lines_list_params.py index a62d86ebf..dc81f33c1 100644 --- a/stripe/params/_credit_note_preview_lines_list_params.py +++ b/stripe/params/_credit_note_preview_lines_list_params.py @@ -100,15 +100,15 @@ class CreditNotePreviewLinesListParamsLine(TypedDict): "Literal['']|List[CreditNotePreviewLinesListParamsLineTaxAmount]" ] """ - A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with `tax_rates`. + A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. """ tax_rates: NotRequired["Literal['']|List[str]"] """ - The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and cannot be mixed with `tax_amounts`. + The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used. """ type: Literal["custom_line_item", "invoice_line_item"] """ - Type of the credit note line item, one of `invoice_line_item` or `custom_line_item` + Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. `custom_line_item` is not valid when the invoice is set up with `automatic_tax[enabled]=true`. """ unit_amount: NotRequired[int] """ diff --git a/stripe/params/_credit_note_preview_lines_params.py b/stripe/params/_credit_note_preview_lines_params.py index 111011f14..8434b10d8 100644 --- a/stripe/params/_credit_note_preview_lines_params.py +++ b/stripe/params/_credit_note_preview_lines_params.py @@ -101,15 +101,15 @@ class CreditNotePreviewLinesParamsLine(TypedDict): "Literal['']|List[CreditNotePreviewLinesParamsLineTaxAmount]" ] """ - A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with `tax_rates`. + A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. """ tax_rates: NotRequired["Literal['']|List[str]"] """ - The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and cannot be mixed with `tax_amounts`. + The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used. """ type: Literal["custom_line_item", "invoice_line_item"] """ - Type of the credit note line item, one of `invoice_line_item` or `custom_line_item` + Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. `custom_line_item` is not valid when the invoice is set up with `automatic_tax[enabled]=true`. """ unit_amount: NotRequired[int] """ diff --git a/stripe/params/_credit_note_preview_params.py b/stripe/params/_credit_note_preview_params.py index aa978ab53..a88442f97 100644 --- a/stripe/params/_credit_note_preview_params.py +++ b/stripe/params/_credit_note_preview_params.py @@ -89,15 +89,15 @@ class CreditNotePreviewParamsLine(TypedDict): "Literal['']|List[CreditNotePreviewParamsLineTaxAmount]" ] """ - A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with `tax_rates`. + A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. """ tax_rates: NotRequired["Literal['']|List[str]"] """ - The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and cannot be mixed with `tax_amounts`. + The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used. """ type: Literal["custom_line_item", "invoice_line_item"] """ - Type of the credit note line item, one of `invoice_line_item` or `custom_line_item` + Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. `custom_line_item` is not valid when the invoice is set up with `automatic_tax[enabled]=true`. """ unit_amount: NotRequired[int] """ diff --git a/stripe/params/_customer_create_funding_instructions_params.py b/stripe/params/_customer_create_funding_instructions_params.py index a2792948c..5550d52b7 100644 --- a/stripe/params/_customer_create_funding_instructions_params.py +++ b/stripe/params/_customer_create_funding_instructions_params.py @@ -56,5 +56,5 @@ class CustomerCreateFundingInstructionsParamsBankTransferEuBankTransfer( ): country: str """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. """ diff --git a/stripe/params/_customer_create_params.py b/stripe/params/_customer_create_params.py index 2d7b5125b..b5f585565 100644 --- a/stripe/params/_customer_create_params.py +++ b/stripe/params/_customer_create_params.py @@ -303,6 +303,7 @@ class CustomerCreateParamsTaxIdDatum(TypedDict): "la_tin", "li_uid", "li_vat", + "lk_vat", "ma_vat", "md_vat", "me_pib", @@ -350,7 +351,7 @@ class CustomerCreateParamsTaxIdDatum(TypedDict): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/params/_customer_create_tax_id_params.py b/stripe/params/_customer_create_tax_id_params.py index c59f4f8f8..65da6200c 100644 --- a/stripe/params/_customer_create_tax_id_params.py +++ b/stripe/params/_customer_create_tax_id_params.py @@ -77,6 +77,7 @@ class CustomerCreateTaxIdParams(RequestOptions): "la_tin", "li_uid", "li_vat", + "lk_vat", "ma_vat", "md_vat", "me_pib", @@ -124,7 +125,7 @@ class CustomerCreateTaxIdParams(RequestOptions): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/params/_customer_funding_instructions_create_params.py b/stripe/params/_customer_funding_instructions_create_params.py index 24d23ad43..1c455bea5 100644 --- a/stripe/params/_customer_funding_instructions_create_params.py +++ b/stripe/params/_customer_funding_instructions_create_params.py @@ -55,5 +55,5 @@ class CustomerFundingInstructionsCreateParamsBankTransferEuBankTransfer( ): country: str """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. """ diff --git a/stripe/params/_customer_tax_id_create_params.py b/stripe/params/_customer_tax_id_create_params.py index 2d5746f8c..7db835e16 100644 --- a/stripe/params/_customer_tax_id_create_params.py +++ b/stripe/params/_customer_tax_id_create_params.py @@ -76,6 +76,7 @@ class CustomerTaxIdCreateParams(TypedDict): "la_tin", "li_uid", "li_vat", + "lk_vat", "ma_vat", "md_vat", "me_pib", @@ -123,7 +124,7 @@ class CustomerTaxIdCreateParams(TypedDict): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/params/_file_create_params.py b/stripe/params/_file_create_params.py index d61c852f6..bbca80d56 100644 --- a/stripe/params/_file_create_params.py +++ b/stripe/params/_file_create_params.py @@ -32,6 +32,8 @@ class FileCreateParams(RequestOptions): "tax_document_user_upload", "terminal_android_apk", "terminal_reader_splashscreen", + "terminal_wifi_certificate", + "terminal_wifi_private_key", ] """ The [purpose](https://docs.stripe.com/file-upload#uploading-a-file) of the uploaded file. diff --git a/stripe/params/_file_list_params.py b/stripe/params/_file_list_params.py index 4dcb719d1..6c9b4626e 100644 --- a/stripe/params/_file_list_params.py +++ b/stripe/params/_file_list_params.py @@ -43,6 +43,8 @@ class FileListParams(RequestOptions): "tax_document_user_upload", "terminal_android_apk", "terminal_reader_splashscreen", + "terminal_wifi_certificate", + "terminal_wifi_private_key", ] ] """ diff --git a/stripe/params/_invoice_create_params.py b/stripe/params/_invoice_create_params.py index cf6829eb9..3d4810c9b 100644 --- a/stripe/params/_invoice_create_params.py +++ b/stripe/params/_invoice_create_params.py @@ -226,7 +226,7 @@ class InvoiceCreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). @@ -405,7 +405,7 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankT ): country: str """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. """ diff --git a/stripe/params/_invoice_create_preview_params.py b/stripe/params/_invoice_create_preview_params.py index b91b39947..f8c5815d1 100644 --- a/stripe/params/_invoice_create_preview_params.py +++ b/stripe/params/_invoice_create_preview_params.py @@ -267,6 +267,7 @@ class InvoiceCreatePreviewParamsCustomerDetailsTaxId(TypedDict): "la_tin", "li_uid", "li_vat", + "lk_vat", "ma_vat", "md_vat", "me_pib", @@ -314,7 +315,7 @@ class InvoiceCreatePreviewParamsCustomerDetailsTaxId(TypedDict): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/params/_invoice_modify_params.py b/stripe/params/_invoice_modify_params.py index cf77a12ad..b0066ebe3 100644 --- a/stripe/params/_invoice_modify_params.py +++ b/stripe/params/_invoice_modify_params.py @@ -193,7 +193,7 @@ class InvoiceModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). @@ -372,7 +372,7 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankT ): country: str """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. """ diff --git a/stripe/params/_invoice_update_params.py b/stripe/params/_invoice_update_params.py index 019aed872..b9bb7cd2c 100644 --- a/stripe/params/_invoice_update_params.py +++ b/stripe/params/_invoice_update_params.py @@ -192,7 +192,7 @@ class InvoiceUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). @@ -371,7 +371,7 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankT ): country: str """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. """ diff --git a/stripe/params/_payment_intent_capture_params.py b/stripe/params/_payment_intent_capture_params.py index 0656c3a1e..63db97db5 100644 --- a/stripe/params/_payment_intent_capture_params.py +++ b/stripe/params/_payment_intent_capture_params.py @@ -70,7 +70,7 @@ class PaymentIntentCaptureParamsAmountDetails(TypedDict): Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies. - For card payments, Stripe doesn't send line item data if there's an arithmetic validation error to card networks. + For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error. """ line_items: NotRequired[ "Literal['']|List[PaymentIntentCaptureParamsAmountDetailsLineItem]" @@ -111,7 +111,7 @@ class PaymentIntentCaptureParamsAmountDetailsLineItem(TypedDict): """ The product name of the line item. Required for L3 rates. At most 1024 characters long. - For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. + For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For PayPal, this field is truncated to 127 characters. """ quantity: int """ @@ -138,25 +138,25 @@ class PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptions( "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCard" ] """ - This sub-hash contains line item details that are specific to `card` payment method." + This sub-hash contains line item details that are specific to the `card` payment method. """ card_present: NotRequired[ "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent" ] """ - This sub-hash contains line item details that are specific to `card_present` payment method." + This sub-hash contains line item details that are specific to the `card_present` payment method. """ klarna: NotRequired[ "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsKlarna" ] """ - This sub-hash contains line item details that are specific to `klarna` payment method." + This sub-hash contains line item details that are specific to the `klarna` payment method. """ paypal: NotRequired[ "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsPaypal" ] """ - This sub-hash contains line item details that are specific to `paypal` payment method." + This sub-hash contains line item details that are specific to the `paypal` payment method. """ @@ -165,7 +165,7 @@ class PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCard( ): commodity_code: NotRequired[str] """ - Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ @@ -174,7 +174,7 @@ class PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardPre ): commodity_code: NotRequired[str] """ - Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py index cb52954a1..d3d239dd9 100644 --- a/stripe/params/_payment_intent_confirm_params.py +++ b/stripe/params/_payment_intent_confirm_params.py @@ -133,7 +133,7 @@ class PaymentIntentConfirmParamsAmountDetails(TypedDict): Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies. - For card payments, Stripe doesn't send line item data if there's an arithmetic validation error to card networks. + For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error. """ line_items: NotRequired[ "Literal['']|List[PaymentIntentConfirmParamsAmountDetailsLineItem]" @@ -174,7 +174,7 @@ class PaymentIntentConfirmParamsAmountDetailsLineItem(TypedDict): """ The product name of the line item. Required for L3 rates. At most 1024 characters long. - For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. + For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For PayPal, this field is truncated to 127 characters. """ quantity: int """ @@ -201,25 +201,25 @@ class PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptions( "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCard" ] """ - This sub-hash contains line item details that are specific to `card` payment method." + This sub-hash contains line item details that are specific to the `card` payment method. """ card_present: NotRequired[ "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent" ] """ - This sub-hash contains line item details that are specific to `card_present` payment method." + This sub-hash contains line item details that are specific to the `card_present` payment method. """ klarna: NotRequired[ "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsKlarna" ] """ - This sub-hash contains line item details that are specific to `klarna` payment method." + This sub-hash contains line item details that are specific to the `klarna` payment method. """ paypal: NotRequired[ "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsPaypal" ] """ - This sub-hash contains line item details that are specific to `paypal` payment method." + This sub-hash contains line item details that are specific to the `paypal` payment method. """ @@ -228,7 +228,7 @@ class PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCard( ): commodity_code: NotRequired[str] """ - Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ @@ -237,7 +237,7 @@ class PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardPre ): commodity_code: NotRequired[str] """ - Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ @@ -2227,7 +2227,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransferE ): country: str """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. """ @@ -3066,6 +3066,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccount(TypedDict): """ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. """ + transaction_purpose: NotRequired[ + "Literal['']|Literal['goods', 'other', 'services', 'unspecified']" + ] + """ + The purpose of the transaction. + """ verification_method: NotRequired[ Literal["automatic", "instant", "microdeposits"] ] diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py index bc9437dab..c614270c4 100644 --- a/stripe/params/_payment_intent_create_params.py +++ b/stripe/params/_payment_intent_create_params.py @@ -258,7 +258,7 @@ class PaymentIntentCreateParamsAmountDetails(TypedDict): Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies. - For card payments, Stripe doesn't send line item data if there's an arithmetic validation error to card networks. + For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error. """ line_items: NotRequired[ "Literal['']|List[PaymentIntentCreateParamsAmountDetailsLineItem]" @@ -299,7 +299,7 @@ class PaymentIntentCreateParamsAmountDetailsLineItem(TypedDict): """ The product name of the line item. Required for L3 rates. At most 1024 characters long. - For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. + For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For PayPal, this field is truncated to 127 characters. """ quantity: int """ @@ -326,25 +326,25 @@ class PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptions( "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCard" ] """ - This sub-hash contains line item details that are specific to `card` payment method." + This sub-hash contains line item details that are specific to the `card` payment method. """ card_present: NotRequired[ "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent" ] """ - This sub-hash contains line item details that are specific to `card_present` payment method." + This sub-hash contains line item details that are specific to the `card_present` payment method. """ klarna: NotRequired[ "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsKlarna" ] """ - This sub-hash contains line item details that are specific to `klarna` payment method." + This sub-hash contains line item details that are specific to the `klarna` payment method. """ paypal: NotRequired[ "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsPaypal" ] """ - This sub-hash contains line item details that are specific to `paypal` payment method." + This sub-hash contains line item details that are specific to the `paypal` payment method. """ @@ -353,7 +353,7 @@ class PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCard( ): commodity_code: NotRequired[str] """ - Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ @@ -362,7 +362,7 @@ class PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPres ): commodity_code: NotRequired[str] """ - Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ @@ -2355,7 +2355,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEu ): country: str """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. """ @@ -3194,6 +3194,12 @@ class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccount(TypedDict): """ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. """ + transaction_purpose: NotRequired[ + "Literal['']|Literal['goods', 'other', 'services', 'unspecified']" + ] + """ + The purpose of the transaction. + """ verification_method: NotRequired[ Literal["automatic", "instant", "microdeposits"] ] diff --git a/stripe/params/_payment_intent_increment_authorization_params.py b/stripe/params/_payment_intent_increment_authorization_params.py index 0babb863a..407d8685d 100644 --- a/stripe/params/_payment_intent_increment_authorization_params.py +++ b/stripe/params/_payment_intent_increment_authorization_params.py @@ -68,7 +68,7 @@ class PaymentIntentIncrementAuthorizationParamsAmountDetails(TypedDict): Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies. - For card payments, Stripe doesn't send line item data if there's an arithmetic validation error to card networks. + For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error. """ line_items: NotRequired[ "Literal['']|List[PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItem]" @@ -113,7 +113,7 @@ class PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItem( """ The product name of the line item. Required for L3 rates. At most 1024 characters long. - For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. + For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For PayPal, this field is truncated to 127 characters. """ quantity: int """ @@ -142,25 +142,25 @@ class PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMetho "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCard" ] """ - This sub-hash contains line item details that are specific to `card` payment method." + This sub-hash contains line item details that are specific to the `card` payment method. """ card_present: NotRequired[ "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent" ] """ - This sub-hash contains line item details that are specific to `card_present` payment method." + This sub-hash contains line item details that are specific to the `card_present` payment method. """ klarna: NotRequired[ "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsKlarna" ] """ - This sub-hash contains line item details that are specific to `klarna` payment method." + This sub-hash contains line item details that are specific to the `klarna` payment method. """ paypal: NotRequired[ "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsPaypal" ] """ - This sub-hash contains line item details that are specific to `paypal` payment method." + This sub-hash contains line item details that are specific to the `paypal` payment method. """ @@ -169,7 +169,7 @@ class PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMetho ): commodity_code: NotRequired[str] """ - Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ @@ -178,7 +178,7 @@ class PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMetho ): commodity_code: NotRequired[str] """ - Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py index 579796b43..2898435b4 100644 --- a/stripe/params/_payment_intent_modify_params.py +++ b/stripe/params/_payment_intent_modify_params.py @@ -155,7 +155,7 @@ class PaymentIntentModifyParamsAmountDetails(TypedDict): Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies. - For card payments, Stripe doesn't send line item data if there's an arithmetic validation error to card networks. + For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error. """ line_items: NotRequired[ "Literal['']|List[PaymentIntentModifyParamsAmountDetailsLineItem]" @@ -196,7 +196,7 @@ class PaymentIntentModifyParamsAmountDetailsLineItem(TypedDict): """ The product name of the line item. Required for L3 rates. At most 1024 characters long. - For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. + For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For PayPal, this field is truncated to 127 characters. """ quantity: int """ @@ -223,25 +223,25 @@ class PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptions( "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCard" ] """ - This sub-hash contains line item details that are specific to `card` payment method." + This sub-hash contains line item details that are specific to the `card` payment method. """ card_present: NotRequired[ "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent" ] """ - This sub-hash contains line item details that are specific to `card_present` payment method." + This sub-hash contains line item details that are specific to the `card_present` payment method. """ klarna: NotRequired[ "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsKlarna" ] """ - This sub-hash contains line item details that are specific to `klarna` payment method." + This sub-hash contains line item details that are specific to the `klarna` payment method. """ paypal: NotRequired[ "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsPaypal" ] """ - This sub-hash contains line item details that are specific to `paypal` payment method." + This sub-hash contains line item details that are specific to the `paypal` payment method. """ @@ -250,7 +250,7 @@ class PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCard( ): commodity_code: NotRequired[str] """ - Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ @@ -259,7 +259,7 @@ class PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardPres ): commodity_code: NotRequired[str] """ - Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ @@ -2192,7 +2192,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransferEu ): country: str """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. """ @@ -3031,6 +3031,12 @@ class PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccount(TypedDict): """ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. """ + transaction_purpose: NotRequired[ + "Literal['']|Literal['goods', 'other', 'services', 'unspecified']" + ] + """ + The purpose of the transaction. + """ verification_method: NotRequired[ Literal["automatic", "instant", "microdeposits"] ] diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py index aba3d664c..7e6ebc0eb 100644 --- a/stripe/params/_payment_intent_update_params.py +++ b/stripe/params/_payment_intent_update_params.py @@ -154,7 +154,7 @@ class PaymentIntentUpdateParamsAmountDetails(TypedDict): Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies. - For card payments, Stripe doesn't send line item data if there's an arithmetic validation error to card networks. + For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error. """ line_items: NotRequired[ "Literal['']|List[PaymentIntentUpdateParamsAmountDetailsLineItem]" @@ -195,7 +195,7 @@ class PaymentIntentUpdateParamsAmountDetailsLineItem(TypedDict): """ The product name of the line item. Required for L3 rates. At most 1024 characters long. - For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. + For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For PayPal, this field is truncated to 127 characters. """ quantity: int """ @@ -222,25 +222,25 @@ class PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptions( "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCard" ] """ - This sub-hash contains line item details that are specific to `card` payment method." + This sub-hash contains line item details that are specific to the `card` payment method. """ card_present: NotRequired[ "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent" ] """ - This sub-hash contains line item details that are specific to `card_present` payment method." + This sub-hash contains line item details that are specific to the `card_present` payment method. """ klarna: NotRequired[ "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsKlarna" ] """ - This sub-hash contains line item details that are specific to `klarna` payment method." + This sub-hash contains line item details that are specific to the `klarna` payment method. """ paypal: NotRequired[ "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsPaypal" ] """ - This sub-hash contains line item details that are specific to `paypal` payment method." + This sub-hash contains line item details that are specific to the `paypal` payment method. """ @@ -249,7 +249,7 @@ class PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCard( ): commodity_code: NotRequired[str] """ - Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ @@ -258,7 +258,7 @@ class PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardPres ): commodity_code: NotRequired[str] """ - Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ @@ -2191,7 +2191,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEu ): country: str """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. """ @@ -3030,6 +3030,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccount(TypedDict): """ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. """ + transaction_purpose: NotRequired[ + "Literal['']|Literal['goods', 'other', 'services', 'unspecified']" + ] + """ + The purpose of the transaction. + """ verification_method: NotRequired[ Literal["automatic", "instant", "microdeposits"] ] diff --git a/stripe/params/_payment_link_create_params.py b/stripe/params/_payment_link_create_params.py index 3cfe688b6..8e35124f3 100644 --- a/stripe/params/_payment_link_create_params.py +++ b/stripe/params/_payment_link_create_params.py @@ -309,7 +309,7 @@ class PaymentLinkCreateParamsCustomField(TypedDict): class PaymentLinkCreateParamsCustomFieldDropdown(TypedDict): default_value: NotRequired[str] """ - The value that will pre-fill the field on the payment page.Must match a `value` in the `options` array. + The value that pre-fills the field on the payment page.Must match a `value` in the `options` array. """ options: List["PaymentLinkCreateParamsCustomFieldDropdownOption"] """ @@ -342,7 +342,7 @@ class PaymentLinkCreateParamsCustomFieldLabel(TypedDict): class PaymentLinkCreateParamsCustomFieldNumeric(TypedDict): default_value: NotRequired[str] """ - The value that will pre-fill the field on the payment page. + The value that pre-fills the field on the payment page. """ maximum_length: NotRequired[int] """ @@ -357,7 +357,7 @@ class PaymentLinkCreateParamsCustomFieldNumeric(TypedDict): class PaymentLinkCreateParamsCustomFieldText(TypedDict): default_value: NotRequired[str] """ - The value that will pre-fill the field on the payment page. + The value that pre-fills the field on the payment page. """ maximum_length: NotRequired[int] """ @@ -397,28 +397,28 @@ class PaymentLinkCreateParamsCustomText(TypedDict): class PaymentLinkCreateParamsCustomTextAfterSubmit(TypedDict): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ class PaymentLinkCreateParamsCustomTextShippingAddress(TypedDict): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ class PaymentLinkCreateParamsCustomTextSubmit(TypedDict): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ class PaymentLinkCreateParamsCustomTextTermsOfServiceAcceptance(TypedDict): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ diff --git a/stripe/params/_payment_link_modify_params.py b/stripe/params/_payment_link_modify_params.py index 7edfc07d3..dc8524474 100644 --- a/stripe/params/_payment_link_modify_params.py +++ b/stripe/params/_payment_link_modify_params.py @@ -66,6 +66,14 @@ class PaymentLinkModifyParams(RequestOptions): """ Controls settings applied for collecting the customer's name. """ + optional_items: NotRequired[ + "Literal['']|List[PaymentLinkModifyParamsOptionalItem]" + ] + """ + A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices). + There is a maximum of 10 optional items allowed on a payment link, and the existing limits on the number of line items allowed on a payment link apply to the combined number of line items and optional items. + There is a maximum of 20 combined line items and optional items. + """ payment_intent_data: NotRequired[ "PaymentLinkModifyParamsPaymentIntentData" ] @@ -211,7 +219,7 @@ class PaymentLinkModifyParamsCustomField(TypedDict): class PaymentLinkModifyParamsCustomFieldDropdown(TypedDict): default_value: NotRequired[str] """ - The value that will pre-fill the field on the payment page.Must match a `value` in the `options` array. + The value that pre-fills the field on the payment page.Must match a `value` in the `options` array. """ options: List["PaymentLinkModifyParamsCustomFieldDropdownOption"] """ @@ -244,7 +252,7 @@ class PaymentLinkModifyParamsCustomFieldLabel(TypedDict): class PaymentLinkModifyParamsCustomFieldNumeric(TypedDict): default_value: NotRequired[str] """ - The value that will pre-fill the field on the payment page. + The value that pre-fills the field on the payment page. """ maximum_length: NotRequired[int] """ @@ -259,7 +267,7 @@ class PaymentLinkModifyParamsCustomFieldNumeric(TypedDict): class PaymentLinkModifyParamsCustomFieldText(TypedDict): default_value: NotRequired[str] """ - The value that will pre-fill the field on the payment page. + The value that pre-fills the field on the payment page. """ maximum_length: NotRequired[int] """ @@ -299,28 +307,28 @@ class PaymentLinkModifyParamsCustomText(TypedDict): class PaymentLinkModifyParamsCustomTextAfterSubmit(TypedDict): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ class PaymentLinkModifyParamsCustomTextShippingAddress(TypedDict): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ class PaymentLinkModifyParamsCustomTextSubmit(TypedDict): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ class PaymentLinkModifyParamsCustomTextTermsOfServiceAcceptance(TypedDict): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ @@ -476,6 +484,38 @@ class PaymentLinkModifyParamsNameCollectionIndividual(TypedDict): """ +class PaymentLinkModifyParamsOptionalItem(TypedDict): + adjustable_quantity: NotRequired[ + "PaymentLinkModifyParamsOptionalItemAdjustableQuantity" + ] + """ + When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order. + """ + price: str + """ + The ID of the [Price](https://docs.stripe.com/api/prices) or [Plan](https://docs.stripe.com/api/plans) object. + """ + quantity: int + """ + The initial quantity of the line item created when a customer chooses to add this optional item to their order. + """ + + +class PaymentLinkModifyParamsOptionalItemAdjustableQuantity(TypedDict): + enabled: bool + """ + Set to true if the quantity can be adjusted to any non-negative integer. + """ + maximum: NotRequired[int] + """ + The maximum quantity of this item the customer can purchase. By default this value is 99. + """ + minimum: NotRequired[int] + """ + The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0. + """ + + class PaymentLinkModifyParamsPaymentIntentData(TypedDict): description: NotRequired["Literal['']|str"] """ diff --git a/stripe/params/_payment_link_update_params.py b/stripe/params/_payment_link_update_params.py index 128d5074a..3c6174fd8 100644 --- a/stripe/params/_payment_link_update_params.py +++ b/stripe/params/_payment_link_update_params.py @@ -65,6 +65,14 @@ class PaymentLinkUpdateParams(TypedDict): """ Controls settings applied for collecting the customer's name. """ + optional_items: NotRequired[ + "Literal['']|List[PaymentLinkUpdateParamsOptionalItem]" + ] + """ + A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices). + There is a maximum of 10 optional items allowed on a payment link, and the existing limits on the number of line items allowed on a payment link apply to the combined number of line items and optional items. + There is a maximum of 20 combined line items and optional items. + """ payment_intent_data: NotRequired[ "PaymentLinkUpdateParamsPaymentIntentData" ] @@ -210,7 +218,7 @@ class PaymentLinkUpdateParamsCustomField(TypedDict): class PaymentLinkUpdateParamsCustomFieldDropdown(TypedDict): default_value: NotRequired[str] """ - The value that will pre-fill the field on the payment page.Must match a `value` in the `options` array. + The value that pre-fills the field on the payment page.Must match a `value` in the `options` array. """ options: List["PaymentLinkUpdateParamsCustomFieldDropdownOption"] """ @@ -243,7 +251,7 @@ class PaymentLinkUpdateParamsCustomFieldLabel(TypedDict): class PaymentLinkUpdateParamsCustomFieldNumeric(TypedDict): default_value: NotRequired[str] """ - The value that will pre-fill the field on the payment page. + The value that pre-fills the field on the payment page. """ maximum_length: NotRequired[int] """ @@ -258,7 +266,7 @@ class PaymentLinkUpdateParamsCustomFieldNumeric(TypedDict): class PaymentLinkUpdateParamsCustomFieldText(TypedDict): default_value: NotRequired[str] """ - The value that will pre-fill the field on the payment page. + The value that pre-fills the field on the payment page. """ maximum_length: NotRequired[int] """ @@ -298,28 +306,28 @@ class PaymentLinkUpdateParamsCustomText(TypedDict): class PaymentLinkUpdateParamsCustomTextAfterSubmit(TypedDict): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ class PaymentLinkUpdateParamsCustomTextShippingAddress(TypedDict): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ class PaymentLinkUpdateParamsCustomTextSubmit(TypedDict): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ class PaymentLinkUpdateParamsCustomTextTermsOfServiceAcceptance(TypedDict): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ @@ -475,6 +483,38 @@ class PaymentLinkUpdateParamsNameCollectionIndividual(TypedDict): """ +class PaymentLinkUpdateParamsOptionalItem(TypedDict): + adjustable_quantity: NotRequired[ + "PaymentLinkUpdateParamsOptionalItemAdjustableQuantity" + ] + """ + When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order. + """ + price: str + """ + The ID of the [Price](https://docs.stripe.com/api/prices) or [Plan](https://docs.stripe.com/api/plans) object. + """ + quantity: int + """ + The initial quantity of the line item created when a customer chooses to add this optional item to their order. + """ + + +class PaymentLinkUpdateParamsOptionalItemAdjustableQuantity(TypedDict): + enabled: bool + """ + Set to true if the quantity can be adjusted to any non-negative integer. + """ + maximum: NotRequired[int] + """ + The maximum quantity of this item the customer can purchase. By default this value is 99. + """ + minimum: NotRequired[int] + """ + The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0. + """ + + class PaymentLinkUpdateParamsPaymentIntentData(TypedDict): description: NotRequired["Literal['']|str"] """ diff --git a/stripe/params/_payment_record_report_payment_attempt_canceled_params.py b/stripe/params/_payment_record_report_payment_attempt_canceled_params.py index 6e464723b..58aed8965 100644 --- a/stripe/params/_payment_record_report_payment_attempt_canceled_params.py +++ b/stripe/params/_payment_record_report_payment_attempt_canceled_params.py @@ -15,3 +15,6 @@ class PaymentRecordReportPaymentAttemptCanceledParams(RequestOptions): Specifies which fields in the response should be expanded. """ metadata: NotRequired["Literal['']|Dict[str, str]"] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + """ diff --git a/stripe/params/_payment_record_report_payment_attempt_failed_params.py b/stripe/params/_payment_record_report_payment_attempt_failed_params.py index 2c6b2ee25..b4fa06fa4 100644 --- a/stripe/params/_payment_record_report_payment_attempt_failed_params.py +++ b/stripe/params/_payment_record_report_payment_attempt_failed_params.py @@ -15,3 +15,6 @@ class PaymentRecordReportPaymentAttemptFailedParams(RequestOptions): When the reported payment failed. Measured in seconds since the Unix epoch. """ metadata: NotRequired["Literal['']|Dict[str, str]"] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + """ diff --git a/stripe/params/_payment_record_report_payment_attempt_guaranteed_params.py b/stripe/params/_payment_record_report_payment_attempt_guaranteed_params.py index d43676a62..7bf231d2f 100644 --- a/stripe/params/_payment_record_report_payment_attempt_guaranteed_params.py +++ b/stripe/params/_payment_record_report_payment_attempt_guaranteed_params.py @@ -15,3 +15,6 @@ class PaymentRecordReportPaymentAttemptGuaranteedParams(RequestOptions): When the reported payment was guaranteed. Measured in seconds since the Unix epoch. """ metadata: NotRequired["Literal['']|Dict[str, str]"] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + """ diff --git a/stripe/params/_promotion_code_create_params.py b/stripe/params/_promotion_code_create_params.py index e63c0566a..2c7914ea8 100644 --- a/stripe/params/_promotion_code_create_params.py +++ b/stripe/params/_promotion_code_create_params.py @@ -12,7 +12,7 @@ class PromotionCodeCreateParams(RequestOptions): """ code: NotRequired[str] """ - The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for a specific customer. Valid characters are lower case letters (a-z), upper case letters (A-Z), and digits (0-9). + The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for a specific customer. Valid characters are lower case letters (a-z), upper case letters (A-Z), digits (0-9), and dashes (-). If left blank, we will generate one automatically. """ diff --git a/stripe/params/_subscription_create_params.py b/stripe/params/_subscription_create_params.py index 35c75cfe2..4ea23d05c 100644 --- a/stripe/params/_subscription_create_params.py +++ b/stripe/params/_subscription_create_params.py @@ -501,7 +501,7 @@ class SubscriptionCreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration @@ -687,7 +687,7 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance ): country: str """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. """ diff --git a/stripe/params/_subscription_item_delete_params.py b/stripe/params/_subscription_item_delete_params.py index b03385454..746aa91a7 100644 --- a/stripe/params/_subscription_item_delete_params.py +++ b/stripe/params/_subscription_item_delete_params.py @@ -9,6 +9,23 @@ class SubscriptionItemDeleteParams(RequestOptions): """ Delete all usage for the given subscription item. Allowed only when the current plan's `usage_type` is `metered`. """ + payment_behavior: NotRequired[ + Literal[ + "allow_incomplete", + "default_incomplete", + "error_if_incomplete", + "pending_if_incomplete", + ] + ] + """ + Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. + + Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. + + Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). + + Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + """ proration_behavior: NotRequired[ Literal["always_invoice", "create_prorations", "none"] ] diff --git a/stripe/params/_subscription_modify_params.py b/stripe/params/_subscription_modify_params.py index 0891345b0..3b18c5e19 100644 --- a/stripe/params/_subscription_modify_params.py +++ b/stripe/params/_subscription_modify_params.py @@ -482,7 +482,7 @@ class SubscriptionModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration @@ -668,7 +668,7 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance ): country: str """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. """ diff --git a/stripe/params/_subscription_update_params.py b/stripe/params/_subscription_update_params.py index 3fe0aeecf..1c3fe50ec 100644 --- a/stripe/params/_subscription_update_params.py +++ b/stripe/params/_subscription_update_params.py @@ -481,7 +481,7 @@ class SubscriptionUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration @@ -667,7 +667,7 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance ): country: str """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. """ diff --git a/stripe/params/_tax_id_create_params.py b/stripe/params/_tax_id_create_params.py index 88c34a3f5..7dc4b04ac 100644 --- a/stripe/params/_tax_id_create_params.py +++ b/stripe/params/_tax_id_create_params.py @@ -81,6 +81,7 @@ class TaxIdCreateParams(RequestOptions): "la_tin", "li_uid", "li_vat", + "lk_vat", "ma_vat", "md_vat", "me_pib", @@ -128,7 +129,7 @@ class TaxIdCreateParams(RequestOptions): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/params/_webhook_endpoint_create_params.py b/stripe/params/_webhook_endpoint_create_params.py index 2b49034a0..14fb2d966 100644 --- a/stripe/params/_webhook_endpoint_create_params.py +++ b/stripe/params/_webhook_endpoint_create_params.py @@ -128,6 +128,7 @@ class WebhookEndpointCreateParams(RequestOptions): "2025-11-17.clover", "2025-12-15.clover", "2026-01-28.clover", + "2026-02-25.clover", ] ] """ @@ -156,6 +157,7 @@ class WebhookEndpointCreateParams(RequestOptions): "balance.available", "balance_settings.updated", "billing.alert.triggered", + "billing.credit_grant.created", "billing_portal.configuration.created", "billing_portal.configuration.updated", "billing_portal.session.created", @@ -319,6 +321,13 @@ class WebhookEndpointCreateParams(RequestOptions): "reporting.report_run.failed", "reporting.report_run.succeeded", "reporting.report_type.updated", + "reserve.hold.created", + "reserve.hold.updated", + "reserve.plan.created", + "reserve.plan.disabled", + "reserve.plan.expired", + "reserve.plan.updated", + "reserve.release.created", "review.closed", "review.opened", "setup_intent.canceled", @@ -391,7 +400,6 @@ class WebhookEndpointCreateParams(RequestOptions): "treasury.received_credit.succeeded", "treasury.received_debit.created", "billing.credit_balance_transaction.created", - "billing.credit_grant.created", "billing.credit_grant.updated", "billing.meter.created", "billing.meter.deactivated", diff --git a/stripe/params/_webhook_endpoint_modify_params.py b/stripe/params/_webhook_endpoint_modify_params.py index 66fa34971..3e5e70209 100644 --- a/stripe/params/_webhook_endpoint_modify_params.py +++ b/stripe/params/_webhook_endpoint_modify_params.py @@ -30,6 +30,7 @@ class WebhookEndpointModifyParams(RequestOptions): "balance.available", "balance_settings.updated", "billing.alert.triggered", + "billing.credit_grant.created", "billing_portal.configuration.created", "billing_portal.configuration.updated", "billing_portal.session.created", @@ -193,6 +194,13 @@ class WebhookEndpointModifyParams(RequestOptions): "reporting.report_run.failed", "reporting.report_run.succeeded", "reporting.report_type.updated", + "reserve.hold.created", + "reserve.hold.updated", + "reserve.plan.created", + "reserve.plan.disabled", + "reserve.plan.expired", + "reserve.plan.updated", + "reserve.release.created", "review.closed", "review.opened", "setup_intent.canceled", @@ -265,7 +273,6 @@ class WebhookEndpointModifyParams(RequestOptions): "treasury.received_credit.succeeded", "treasury.received_debit.created", "billing.credit_balance_transaction.created", - "billing.credit_grant.created", "billing.credit_grant.updated", "billing.meter.created", "billing.meter.deactivated", diff --git a/stripe/params/_webhook_endpoint_update_params.py b/stripe/params/_webhook_endpoint_update_params.py index ce676a54a..e1749930f 100644 --- a/stripe/params/_webhook_endpoint_update_params.py +++ b/stripe/params/_webhook_endpoint_update_params.py @@ -29,6 +29,7 @@ class WebhookEndpointUpdateParams(TypedDict): "balance.available", "balance_settings.updated", "billing.alert.triggered", + "billing.credit_grant.created", "billing_portal.configuration.created", "billing_portal.configuration.updated", "billing_portal.session.created", @@ -192,6 +193,13 @@ class WebhookEndpointUpdateParams(TypedDict): "reporting.report_run.failed", "reporting.report_run.succeeded", "reporting.report_type.updated", + "reserve.hold.created", + "reserve.hold.updated", + "reserve.plan.created", + "reserve.plan.disabled", + "reserve.plan.expired", + "reserve.plan.updated", + "reserve.release.created", "review.closed", "review.opened", "setup_intent.canceled", @@ -264,7 +272,6 @@ class WebhookEndpointUpdateParams(TypedDict): "treasury.received_credit.succeeded", "treasury.received_debit.created", "billing.credit_balance_transaction.created", - "billing.credit_grant.created", "billing.credit_grant.updated", "billing.meter.created", "billing.meter.deactivated", diff --git a/stripe/params/billing/_alert_create_params.py b/stripe/params/billing/_alert_create_params.py index 95d96ca8c..4bbd000f7 100644 --- a/stripe/params/billing/_alert_create_params.py +++ b/stripe/params/billing/_alert_create_params.py @@ -31,7 +31,7 @@ class AlertCreateParamsUsageThreshold(TypedDict): """ gte: int """ - Defines at which value the alert will fire. + Defines the threshold value that triggers the alert. """ meter: str """ diff --git a/stripe/params/billing_portal/_session_create_params.py b/stripe/params/billing_portal/_session_create_params.py index be54d2a44..4c6c4c73e 100644 --- a/stripe/params/billing_portal/_session_create_params.py +++ b/stripe/params/billing_portal/_session_create_params.py @@ -8,7 +8,7 @@ class SessionCreateParams(RequestOptions): configuration: NotRequired[str] """ - The ID of an existing [configuration](https://docs.stripe.com/api/customer_portal/configuration) to use for this session, describing its functionality and features. If not specified, the session uses the default configuration. + The ID of an existing [configuration](https://docs.stripe.com/api/customer_portal/configurations) to use for this session, describing its functionality and features. If not specified, the session uses the default configuration. """ customer: NotRequired[str] """ diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py index 38a3754e5..92f47e76d 100644 --- a/stripe/params/checkout/_session_create_params.py +++ b/stripe/params/checkout/_session_create_params.py @@ -621,7 +621,7 @@ class SessionCreateParamsCustomField(TypedDict): class SessionCreateParamsCustomFieldDropdown(TypedDict): default_value: NotRequired[str] """ - The value that will pre-fill the field on the payment page.Must match a `value` in the `options` array. + The value that pre-fills the field on the payment page.Must match a `value` in the `options` array. """ options: List["SessionCreateParamsCustomFieldDropdownOption"] """ @@ -654,7 +654,7 @@ class SessionCreateParamsCustomFieldLabel(TypedDict): class SessionCreateParamsCustomFieldNumeric(TypedDict): default_value: NotRequired[str] """ - The value that will pre-fill the field on the payment page. + The value that pre-fills the field on the payment page. """ maximum_length: NotRequired[int] """ @@ -669,7 +669,7 @@ class SessionCreateParamsCustomFieldNumeric(TypedDict): class SessionCreateParamsCustomFieldText(TypedDict): default_value: NotRequired[str] """ - The value that will pre-fill the field on the payment page. + The value that pre-fills the field on the payment page. """ maximum_length: NotRequired[int] """ @@ -709,28 +709,28 @@ class SessionCreateParamsCustomText(TypedDict): class SessionCreateParamsCustomTextAfterSubmit(TypedDict): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ class SessionCreateParamsCustomTextShippingAddress(TypedDict): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ class SessionCreateParamsCustomTextSubmit(TypedDict): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ class SessionCreateParamsCustomTextTermsOfServiceAcceptance(TypedDict): message: str """ - Text may be up to 1200 characters in length. + Text can be up to 1200 characters in length. """ @@ -1768,7 +1768,7 @@ class SessionCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTr ): country: str """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. """ diff --git a/stripe/params/tax/__init__.py b/stripe/params/tax/__init__.py index 116e07891..d318eaa46 100644 --- a/stripe/params/tax/__init__.py +++ b/stripe/params/tax/__init__.py @@ -119,6 +119,7 @@ RegistrationCreateParamsCountryOptionsKr as RegistrationCreateParamsCountryOptionsKr, RegistrationCreateParamsCountryOptionsKz as RegistrationCreateParamsCountryOptionsKz, RegistrationCreateParamsCountryOptionsLa as RegistrationCreateParamsCountryOptionsLa, + RegistrationCreateParamsCountryOptionsLk as RegistrationCreateParamsCountryOptionsLk, RegistrationCreateParamsCountryOptionsLt as RegistrationCreateParamsCountryOptionsLt, RegistrationCreateParamsCountryOptionsLtStandard as RegistrationCreateParamsCountryOptionsLtStandard, RegistrationCreateParamsCountryOptionsLu as RegistrationCreateParamsCountryOptionsLu, @@ -655,6 +656,10 @@ "stripe.params.tax._registration_create_params", False, ), + "RegistrationCreateParamsCountryOptionsLk": ( + "stripe.params.tax._registration_create_params", + False, + ), "RegistrationCreateParamsCountryOptionsLt": ( "stripe.params.tax._registration_create_params", False, diff --git a/stripe/params/tax/_calculation_create_params.py b/stripe/params/tax/_calculation_create_params.py index 882bd35e8..90d7925eb 100644 --- a/stripe/params/tax/_calculation_create_params.py +++ b/stripe/params/tax/_calculation_create_params.py @@ -160,6 +160,7 @@ class CalculationCreateParamsCustomerDetailsTaxId(TypedDict): "la_tin", "li_uid", "li_vat", + "lk_vat", "ma_vat", "md_vat", "me_pib", @@ -207,7 +208,7 @@ class CalculationCreateParamsCustomerDetailsTaxId(TypedDict): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/params/tax/_registration_create_params.py b/stripe/params/tax/_registration_create_params.py index 01e660e14..13a24f564 100644 --- a/stripe/params/tax/_registration_create_params.py +++ b/stripe/params/tax/_registration_create_params.py @@ -252,6 +252,10 @@ class RegistrationCreateParamsCountryOptions( """ Options for the registration in LA. """ + lk: NotRequired["RegistrationCreateParamsCountryOptionsLk"] + """ + Options for the registration in LK. + """ lt: NotRequired["RegistrationCreateParamsCountryOptionsLt"] """ Options for the registration in LT. @@ -1238,6 +1242,13 @@ class RegistrationCreateParamsCountryOptionsLa(TypedDict): """ +class RegistrationCreateParamsCountryOptionsLk(TypedDict): + type: Literal["simplified"] + """ + Type of registration to be created in `country`. + """ + + class RegistrationCreateParamsCountryOptionsLt(TypedDict): standard: NotRequired["RegistrationCreateParamsCountryOptionsLtStandard"] """ @@ -1784,7 +1795,7 @@ class RegistrationCreateParamsCountryOptionsUs(TypedDict): class RegistrationCreateParamsCountryOptionsUsLocalAmusementTax(TypedDict): jurisdiction: str """ - A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `14000` (Chicago), `02154` (Arlington Heights), `06613` (Bloomington), `10906` (Campton Hills), `21696` (East Dundee), `24582` (Evanston), `45421` (Lynwood), `48892` (Midlothian), `64343` (River Grove), and `68081` (Schiller Park). + A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `02154` (Arlington Heights), `05248` (Bensenville), `06613` (Bloomington), `10906` (Campton Hills), `14000` (Chicago), `21696` (East Dundee), `24582` (Evanston), `45421` (Lynwood), `48892` (Midlothian), `64343` (River Grove), `64421` (Riverside), `65806` (Roselle), and `68081` (Schiller Park). """ diff --git a/stripe/params/terminal/__init__.py b/stripe/params/terminal/__init__.py index 39bc928e1..b1ab56698 100644 --- a/stripe/params/terminal/__init__.py +++ b/stripe/params/terminal/__init__.py @@ -8,6 +8,7 @@ ConfigurationCreateParams as ConfigurationCreateParams, ConfigurationCreateParamsBbposWisepad3 as ConfigurationCreateParamsBbposWisepad3, ConfigurationCreateParamsBbposWiseposE as ConfigurationCreateParamsBbposWiseposE, + ConfigurationCreateParamsCellular as ConfigurationCreateParamsCellular, ConfigurationCreateParamsOffline as ConfigurationCreateParamsOffline, ConfigurationCreateParamsRebootWindow as ConfigurationCreateParamsRebootWindow, ConfigurationCreateParamsStripeS700 as ConfigurationCreateParamsStripeS700, @@ -49,6 +50,7 @@ ConfigurationModifyParams as ConfigurationModifyParams, ConfigurationModifyParamsBbposWisepad3 as ConfigurationModifyParamsBbposWisepad3, ConfigurationModifyParamsBbposWiseposE as ConfigurationModifyParamsBbposWiseposE, + ConfigurationModifyParamsCellular as ConfigurationModifyParamsCellular, ConfigurationModifyParamsOffline as ConfigurationModifyParamsOffline, ConfigurationModifyParamsRebootWindow as ConfigurationModifyParamsRebootWindow, ConfigurationModifyParamsStripeS700 as ConfigurationModifyParamsStripeS700, @@ -87,6 +89,7 @@ ConfigurationUpdateParams as ConfigurationUpdateParams, ConfigurationUpdateParamsBbposWisepad3 as ConfigurationUpdateParamsBbposWisepad3, ConfigurationUpdateParamsBbposWiseposE as ConfigurationUpdateParamsBbposWiseposE, + ConfigurationUpdateParamsCellular as ConfigurationUpdateParamsCellular, ConfigurationUpdateParamsOffline as ConfigurationUpdateParamsOffline, ConfigurationUpdateParamsRebootWindow as ConfigurationUpdateParamsRebootWindow, ConfigurationUpdateParamsStripeS700 as ConfigurationUpdateParamsStripeS700, @@ -236,6 +239,10 @@ "stripe.params.terminal._configuration_create_params", False, ), + "ConfigurationCreateParamsCellular": ( + "stripe.params.terminal._configuration_create_params", + False, + ), "ConfigurationCreateParamsOffline": ( "stripe.params.terminal._configuration_create_params", False, @@ -376,6 +383,10 @@ "stripe.params.terminal._configuration_modify_params", False, ), + "ConfigurationModifyParamsCellular": ( + "stripe.params.terminal._configuration_modify_params", + False, + ), "ConfigurationModifyParamsOffline": ( "stripe.params.terminal._configuration_modify_params", False, @@ -512,6 +523,10 @@ "stripe.params.terminal._configuration_update_params", False, ), + "ConfigurationUpdateParamsCellular": ( + "stripe.params.terminal._configuration_update_params", + False, + ), "ConfigurationUpdateParamsOffline": ( "stripe.params.terminal._configuration_update_params", False, diff --git a/stripe/params/terminal/_configuration_create_params.py b/stripe/params/terminal/_configuration_create_params.py index 8313ce911..c03239848 100644 --- a/stripe/params/terminal/_configuration_create_params.py +++ b/stripe/params/terminal/_configuration_create_params.py @@ -14,6 +14,10 @@ class ConfigurationCreateParams(RequestOptions): """ An object containing device type specific settings for BBPOS WisePOS E readers. """ + cellular: NotRequired["Literal['']|ConfigurationCreateParamsCellular"] + """ + Configuration for cellular connectivity. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. @@ -62,6 +66,13 @@ class ConfigurationCreateParamsBbposWiseposE(TypedDict): """ +class ConfigurationCreateParamsCellular(TypedDict): + enabled: bool + """ + Determines whether to allow the reader to connect to a cellular network. Defaults to false. + """ + + class ConfigurationCreateParamsOffline(TypedDict): enabled: bool """ diff --git a/stripe/params/terminal/_configuration_modify_params.py b/stripe/params/terminal/_configuration_modify_params.py index c410054fe..60cbccc0f 100644 --- a/stripe/params/terminal/_configuration_modify_params.py +++ b/stripe/params/terminal/_configuration_modify_params.py @@ -18,6 +18,10 @@ class ConfigurationModifyParams(RequestOptions): """ An object containing device type specific settings for BBPOS WisePOS E readers. """ + cellular: NotRequired["Literal['']|ConfigurationModifyParamsCellular"] + """ + Configuration for cellular connectivity. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. @@ -42,7 +46,7 @@ class ConfigurationModifyParams(RequestOptions): """ tipping: NotRequired["Literal['']|ConfigurationModifyParamsTipping"] """ - Tipping configurations for readers. supporting on-reader tips + Tipping configurations for readers that support on-reader tips. """ verifone_p400: NotRequired[ "Literal['']|ConfigurationModifyParamsVerifoneP400" @@ -70,6 +74,13 @@ class ConfigurationModifyParamsBbposWiseposE(TypedDict): """ +class ConfigurationModifyParamsCellular(TypedDict): + enabled: bool + """ + Determines whether to allow the reader to connect to a cellular network. Defaults to false. + """ + + class ConfigurationModifyParamsOffline(TypedDict): enabled: bool """ diff --git a/stripe/params/terminal/_configuration_update_params.py b/stripe/params/terminal/_configuration_update_params.py index 9defbfd12..fc1961290 100644 --- a/stripe/params/terminal/_configuration_update_params.py +++ b/stripe/params/terminal/_configuration_update_params.py @@ -17,6 +17,10 @@ class ConfigurationUpdateParams(TypedDict): """ An object containing device type specific settings for BBPOS WisePOS E readers. """ + cellular: NotRequired["Literal['']|ConfigurationUpdateParamsCellular"] + """ + Configuration for cellular connectivity. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. @@ -41,7 +45,7 @@ class ConfigurationUpdateParams(TypedDict): """ tipping: NotRequired["Literal['']|ConfigurationUpdateParamsTipping"] """ - Tipping configurations for readers. supporting on-reader tips + Tipping configurations for readers that support on-reader tips. """ verifone_p400: NotRequired[ "Literal['']|ConfigurationUpdateParamsVerifoneP400" @@ -69,6 +73,13 @@ class ConfigurationUpdateParamsBbposWiseposE(TypedDict): """ +class ConfigurationUpdateParamsCellular(TypedDict): + enabled: bool + """ + Determines whether to allow the reader to connect to a cellular network. Defaults to false. + """ + + class ConfigurationUpdateParamsOffline(TypedDict): enabled: bool """ diff --git a/stripe/radar/_payment_evaluation.py b/stripe/radar/_payment_evaluation.py index a256753c3..d64a2ecba 100644 --- a/stripe/radar/_payment_evaluation.py +++ b/stripe/radar/_payment_evaluation.py @@ -178,16 +178,6 @@ class UserInterventionResolved(StripeObject): } class Insights(StripeObject): - class CardIssuerDecline(StripeObject): - model_score: float - """ - Stripe Radar's evaluation of the likelihood that the payment will be declined by the card issuer. Scores range from 0 to 100, with higher values indicating a higher likelihood of decline. - """ - recommended_action: Literal["block", "continue"] - """ - Recommended action based on the model score. Possible values are `block` and `continue`. - """ - class FraudulentDispute(StripeObject): recommended_action: Literal["block", "continue"] """ @@ -198,10 +188,6 @@ class FraudulentDispute(StripeObject): Stripe Radar's evaluation of the risk level of the payment. Possible values for evaluated payments are between 0 and 100, with higher scores indicating higher risk. """ - card_issuer_decline: Optional[CardIssuerDecline] - """ - Stripe Radar's evaluation of the likelihood of a card issuer decline on this payment. - """ evaluated_at: int """ The timestamp when the evaluation was performed. @@ -210,10 +196,7 @@ class FraudulentDispute(StripeObject): """ Scores, insights and recommended action for one scorer for this PaymentEvaluation. """ - _inner_class_types = { - "card_issuer_decline": CardIssuerDecline, - "fraudulent_dispute": FraudulentDispute, - } + _inner_class_types = {"fraudulent_dispute": FraudulentDispute} class Outcome(StripeObject): class MerchantBlocked(StripeObject): diff --git a/stripe/reserve/__init__.py b/stripe/reserve/__init__.py new file mode 100644 index 000000000..5b1a81796 --- /dev/null +++ b/stripe/reserve/__init__.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from importlib import import_module +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe.reserve._hold import Hold as Hold + from stripe.reserve._plan import Plan as Plan + from stripe.reserve._release import Release as Release + +# name -> (import_target, is_submodule) +_import_map = { + "Hold": ("stripe.reserve._hold", False), + "Plan": ("stripe.reserve._plan", False), + "Release": ("stripe.reserve._release", False), +} +if not TYPE_CHECKING: + + def __getattr__(name): + try: + target, is_submodule = _import_map[name] + module = import_module(target) + if is_submodule: + return module + + return getattr( + module, + name, + ) + except KeyError: + raise AttributeError() diff --git a/stripe/reserve/_hold.py b/stripe/reserve/_hold.py new file mode 100644 index 000000000..0808b9e8a --- /dev/null +++ b/stripe/reserve/_hold.py @@ -0,0 +1,87 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._expandable_field import ExpandableField +from stripe._stripe_object import StripeObject +from typing import ClassVar, Dict, Optional +from typing_extensions import Literal, TYPE_CHECKING + +if TYPE_CHECKING: + from stripe._charge import Charge + from stripe.reserve._plan import Plan + + +class Hold(StripeObject): + """ + ReserveHolds are used to place a temporary ReserveHold on a merchant's funds. + """ + + OBJECT_NAME: ClassVar[Literal["reserve.hold"]] = "reserve.hold" + + class ReleaseSchedule(StripeObject): + release_after: Optional[int] + """ + The time after which the ReserveHold is requested to be released. + """ + scheduled_release: Optional[int] + """ + The time at which the ReserveHold is scheduled to be released, automatically set to midnight UTC of the day after `release_after`. + """ + + amount: int + """ + Amount reserved. A positive integer representing how much is reserved in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + """ + amount_releasable: Optional[int] + """ + Amount in cents that can be released from this ReserveHold + """ + created: int + """ + Time at which the object was created. Measured in seconds since the Unix epoch. + """ + created_by: Literal["application", "stripe"] + """ + Indicates which party created this ReserveHold. + """ + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + id: str + """ + Unique identifier for the object. + """ + is_releasable: Optional[bool] + """ + Whether there are any funds available to release on this ReserveHold. Note that if the ReserveHold is in the process of being released, this could be false, even though the funds haven't been fully released yet. + """ + livemode: bool + """ + Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + """ + metadata: Optional[Dict[str, str]] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ + object: Literal["reserve.hold"] + """ + String representing the object's type. Objects of the same type share the same value. + """ + reason: Literal["charge", "standalone"] + """ + The reason for the ReserveHold. + """ + release_schedule: ReleaseSchedule + reserve_plan: Optional[ExpandableField["Plan"]] + """ + The ReservePlan which produced this ReserveHold (i.e., resplan_123) + """ + source_charge: Optional[ExpandableField["Charge"]] + """ + The Charge which funded this ReserveHold (e.g., ch_123) + """ + source_type: Literal["bank_account", "card", "fpx"] + """ + Which source balance type this ReserveHold reserves funds from. One of `bank_account`, `card`, or `fpx`. + """ + _inner_class_types = {"release_schedule": ReleaseSchedule} diff --git a/stripe/reserve/_plan.py b/stripe/reserve/_plan.py new file mode 100644 index 000000000..0b60e3894 --- /dev/null +++ b/stripe/reserve/_plan.py @@ -0,0 +1,84 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_object import StripeObject +from typing import ClassVar, Dict, Optional +from typing_extensions import Literal + + +class Plan(StripeObject): + """ + ReservePlans are used to automatically place holds on a merchant's funds until the plan expires. It takes a portion of each incoming Charge (including those resulting from a Transfer from a platform account). + """ + + OBJECT_NAME: ClassVar[Literal["reserve.plan"]] = "reserve.plan" + + class FixedRelease(StripeObject): + release_after: int + """ + The time after which all reserved funds are requested for release. + """ + scheduled_release: int + """ + The time at which reserved funds are scheduled for release, automatically set to midnight UTC of the day after `release_after`. + """ + + class RollingRelease(StripeObject): + days_after_charge: int + """ + The number of days to reserve funds before releasing. + """ + expires_on: Optional[int] + """ + The time at which the ReservePlan expires. + """ + + created: int + """ + Time at which the object was created. Measured in seconds since the Unix epoch. + """ + created_by: Literal["application", "stripe"] + """ + Indicates which party created this ReservePlan. + """ + currency: Optional[str] + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). An unset currency indicates that the plan applies to all currencies. + """ + disabled_at: Optional[int] + """ + Time at which the ReservePlan was disabled. + """ + fixed_release: Optional[FixedRelease] + id: str + """ + Unique identifier for the object. + """ + livemode: bool + """ + Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + """ + metadata: Optional[Dict[str, str]] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ + object: Literal["reserve.plan"] + """ + String representing the object's type. Objects of the same type share the same value. + """ + percent: int + """ + The percent of each Charge to reserve. + """ + rolling_release: Optional[RollingRelease] + status: Literal["active", "disabled", "expired"] + """ + The current status of the ReservePlan. The ReservePlan only affects charges if it is `active`. + """ + type: Literal["fixed_release", "rolling_release"] + """ + The type of the ReservePlan. + """ + _inner_class_types = { + "fixed_release": FixedRelease, + "rolling_release": RollingRelease, + } diff --git a/stripe/reserve/_release.py b/stripe/reserve/_release.py new file mode 100644 index 000000000..2cdecd6b7 --- /dev/null +++ b/stripe/reserve/_release.py @@ -0,0 +1,90 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._expandable_field import ExpandableField +from stripe._stripe_object import StripeObject +from typing import ClassVar, Dict, Optional +from typing_extensions import Literal, TYPE_CHECKING + +if TYPE_CHECKING: + from stripe._dispute import Dispute + from stripe._refund import Refund + from stripe.reserve._hold import Hold + from stripe.reserve._plan import Plan + + +class Release(StripeObject): + """ + ReserveReleases represent the release of funds from a ReserveHold. + """ + + OBJECT_NAME: ClassVar[Literal["reserve.release"]] = "reserve.release" + + class SourceTransaction(StripeObject): + dispute: Optional[ExpandableField["Dispute"]] + """ + The ID of the dispute. + """ + refund: Optional[ExpandableField["Refund"]] + """ + The ID of the refund. + """ + type: Literal["dispute", "refund"] + """ + The type of source transaction. + """ + + amount: int + """ + Amount released. A positive integer representing how much is released in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + """ + created: int + """ + Time at which the object was created. Measured in seconds since the Unix epoch. + """ + created_by: Literal["application", "stripe"] + """ + Indicates which party created this ReserveRelease. + """ + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + id: str + """ + Unique identifier for the object. + """ + livemode: bool + """ + Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + """ + metadata: Optional[Dict[str, str]] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ + object: Literal["reserve.release"] + """ + String representing the object's type. Objects of the same type share the same value. + """ + reason: Literal[ + "bulk_hold_expiry", + "hold_released_early", + "hold_reversed", + "plan_disabled", + ] + """ + The reason for the ReserveRelease, indicating why the funds were released. + """ + released_at: int + """ + The release timestamp of the funds. + """ + reserve_hold: Optional[ExpandableField["Hold"]] + """ + The ReserveHold this ReserveRelease is associated with. + """ + reserve_plan: Optional[ExpandableField["Plan"]] + """ + The ReservePlan ID this ReserveRelease is associated with. This field is only populated if a ReserveRelease is created by a ReservePlan disable operation, or from a scheduled ReservedHold expiry. + """ + source_transaction: Optional[SourceTransaction] + _inner_class_types = {"source_transaction": SourceTransaction} diff --git a/stripe/tax/_calculation.py b/stripe/tax/_calculation.py index 0c1a613de..344fdfe23 100644 --- a/stripe/tax/_calculation.py +++ b/stripe/tax/_calculation.py @@ -124,6 +124,7 @@ class TaxId(StripeObject): "la_tin", "li_uid", "li_vat", + "lk_vat", "ma_vat", "md_vat", "me_pib", @@ -172,7 +173,7 @@ class TaxId(StripeObject): "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` """ value: str """ diff --git a/stripe/tax/_registration.py b/stripe/tax/_registration.py index 328747a08..aef4287f0 100644 --- a/stripe/tax/_registration.py +++ b/stripe/tax/_registration.py @@ -578,6 +578,12 @@ class La(StripeObject): Type of registration in `country`. """ + class Lk(StripeObject): + type: Literal["simplified"] + """ + Type of registration in `country`. + """ + class Lt(StripeObject): class Standard(StripeObject): place_of_supply_scheme: Literal[ @@ -1088,6 +1094,7 @@ class Zw(StripeObject): kr: Optional[Kr] kz: Optional[Kz] la: Optional[La] + lk: Optional[Lk] lt: Optional[Lt] lu: Optional[Lu] lv: Optional[Lv] @@ -1189,6 +1196,7 @@ class Zw(StripeObject): "kr": Kr, "kz": Kz, "la": La, + "lk": Lk, "lt": Lt, "lu": Lu, "lv": Lv, diff --git a/stripe/tax/_transaction.py b/stripe/tax/_transaction.py index 64e69089a..79bfe9fe4 100644 --- a/stripe/tax/_transaction.py +++ b/stripe/tax/_transaction.py @@ -127,6 +127,7 @@ class TaxId(StripeObject): "la_tin", "li_uid", "li_vat", + "lk_vat", "ma_vat", "md_vat", "me_pib", @@ -175,7 +176,7 @@ class TaxId(StripeObject): "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` """ value: str """ diff --git a/stripe/terminal/_configuration.py b/stripe/terminal/_configuration.py index 38747f962..11dd957ab 100644 --- a/stripe/terminal/_configuration.py +++ b/stripe/terminal/_configuration.py @@ -57,6 +57,12 @@ class BbposWiseposE(StripeObject): A File ID representing an image to display on the reader """ + class Cellular(StripeObject): + enabled: bool + """ + Whether a cellular-capable reader can connect to the internet over cellular. + """ + class Offline(StripeObject): enabled: Optional[bool] """ @@ -493,6 +499,7 @@ class PersonalPsk(StripeObject): bbpos_wisepad3: Optional[BbposWisepad3] bbpos_wisepos_e: Optional[BbposWiseposE] + cellular: Optional[Cellular] deleted: Optional[Literal[True]] """ Always true for a deleted object @@ -753,6 +760,7 @@ async def retrieve_async( _inner_class_types = { "bbpos_wisepad3": BbposWisepad3, "bbpos_wisepos_e": BbposWiseposE, + "cellular": Cellular, "offline": Offline, "reboot_window": RebootWindow, "stripe_s700": StripeS700, From c63bef7362e83828b764a516e9804d14a0e06a5a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 20:49:57 +0000 Subject: [PATCH 3/4] Update generated code for v2184 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/v2/billing/_meter_event.py | 2 +- stripe/v2/billing/_meter_event_adjustment.py | 4 ++++ stripe/v2/billing/_meter_event_session.py | 4 ++++ stripe/v2/core/_account.py | 4 +++- 6 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 60a90924f..c9b922226 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -c41a73eebe469b45125a46e569713351f88e1e44 \ No newline at end of file +35e26af8c8a4fb5988922dfcb4d9bd22f7f850c5 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f9b83fcee..580aa33b9 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2183 \ No newline at end of file +v2184 \ No newline at end of file diff --git a/stripe/v2/billing/_meter_event.py b/stripe/v2/billing/_meter_event.py index 7ab581a1a..8b4a2dd3c 100644 --- a/stripe/v2/billing/_meter_event.py +++ b/stripe/v2/billing/_meter_event.py @@ -7,7 +7,7 @@ class MeterEvent(StripeObject): """ - Fix me empty_doc_string. + A Meter Event is a usage record that captures billable activity for usage-based billing. Meter Events contain an event name, timestamp, and payload with customer mapping and usage value, enabling accurate usage tracking and billing. """ OBJECT_NAME: ClassVar[Literal["v2.billing.meter_event"]] = ( diff --git a/stripe/v2/billing/_meter_event_adjustment.py b/stripe/v2/billing/_meter_event_adjustment.py index 662e8b9bc..603e75d50 100644 --- a/stripe/v2/billing/_meter_event_adjustment.py +++ b/stripe/v2/billing/_meter_event_adjustment.py @@ -6,6 +6,10 @@ class MeterEventAdjustment(StripeObject): + """ + A Meter Event Adjustment is used to cancel or modify previously recorded meter events. Meter Event Adjustments allow you to correct billing data by canceling individual events or event ranges, with tracking of adjustment status and creation time. + """ + OBJECT_NAME: ClassVar[Literal["v2.billing.meter_event_adjustment"]] = ( "v2.billing.meter_event_adjustment" ) diff --git a/stripe/v2/billing/_meter_event_session.py b/stripe/v2/billing/_meter_event_session.py index 8a6d47538..90364bb1a 100644 --- a/stripe/v2/billing/_meter_event_session.py +++ b/stripe/v2/billing/_meter_event_session.py @@ -6,6 +6,10 @@ class MeterEventSession(StripeObject): + """ + A Meter Event Session is an authentication session for the high-throughput meter event API. Meter Event Sessions provide temporary authentication tokens with expiration times, enabling secure and efficient bulk submission of usage events. + """ + OBJECT_NAME: ClassVar[Literal["v2.billing.meter_event_session"]] = ( "v2.billing.meter_event_session" ) diff --git a/stripe/v2/core/_account.py b/stripe/v2/core/_account.py index 1dac5e66b..dbd504df6 100644 --- a/stripe/v2/core/_account.py +++ b/stripe/v2/core/_account.py @@ -7,7 +7,9 @@ class Account(StripeObject): """ - A V2 Account is a representation of a company or individual that a Stripe user does business with. Accounts contain the contact details, Legal Entity information, and configuration required to enable the Account for use across Stripe products. + An Account v2 object represents a company, individual, or other entity that interacts with a platform on Stripe. It contains both identifying information and properties that control its behavior and functionality. An Account can have one or more configurations that enable sets of related features, such as allowing it to act as a merchant or customer. + The Accounts v2 API supports both the Global Payouts preview feature and the Connect-Billing integration preview feature. However, a particular Account can only access one of them. + The Connect-Billing integration preview feature allows an Account v2 to pay subscription fees to a platform. An Account v1 required a separate Customer object to pay subscription fees. """ OBJECT_NAME: ClassVar[Literal["v2.core.account"]] = "v2.core.account" From 84ce59922ac3e9b58bc66edd5b1ee4821f031c92 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 22:19:42 +0000 Subject: [PATCH 4/4] Update generated code for v2186 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/_subscription.py | 2 +- stripe/params/terminal/__init__.py | 15 +++++++++++++++ .../terminal/_configuration_create_params.py | 11 +++++++++++ .../terminal/_configuration_modify_params.py | 11 +++++++++++ .../terminal/_configuration_update_params.py | 11 +++++++++++ stripe/params/terminal/_reader_list_params.py | 2 ++ stripe/terminal/_configuration.py | 8 ++++++++ stripe/terminal/_reader.py | 2 ++ 10 files changed, 63 insertions(+), 3 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index c9b922226..17557a68f 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -35e26af8c8a4fb5988922dfcb4d9bd22f7f850c5 \ No newline at end of file +e65e48569f6dfad2d5f1b58018017856520c3ae6 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 580aa33b9..58dae7935 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2184 \ No newline at end of file +v2186 \ No newline at end of file diff --git a/stripe/_subscription.py b/stripe/_subscription.py index 03b2f5919..5efecb7e8 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -546,7 +546,7 @@ class EndBehavior(StripeObject): end_behavior: EndBehavior """ - Defines how a subscription behaves when a free trial ends. + Defines how a subscription behaves when a trial ends. """ _inner_class_types = {"end_behavior": EndBehavior} diff --git a/stripe/params/terminal/__init__.py b/stripe/params/terminal/__init__.py index b1ab56698..0e4fff399 100644 --- a/stripe/params/terminal/__init__.py +++ b/stripe/params/terminal/__init__.py @@ -12,6 +12,7 @@ ConfigurationCreateParamsOffline as ConfigurationCreateParamsOffline, ConfigurationCreateParamsRebootWindow as ConfigurationCreateParamsRebootWindow, ConfigurationCreateParamsStripeS700 as ConfigurationCreateParamsStripeS700, + ConfigurationCreateParamsStripeS710 as ConfigurationCreateParamsStripeS710, ConfigurationCreateParamsTipping as ConfigurationCreateParamsTipping, ConfigurationCreateParamsTippingAed as ConfigurationCreateParamsTippingAed, ConfigurationCreateParamsTippingAud as ConfigurationCreateParamsTippingAud, @@ -54,6 +55,7 @@ ConfigurationModifyParamsOffline as ConfigurationModifyParamsOffline, ConfigurationModifyParamsRebootWindow as ConfigurationModifyParamsRebootWindow, ConfigurationModifyParamsStripeS700 as ConfigurationModifyParamsStripeS700, + ConfigurationModifyParamsStripeS710 as ConfigurationModifyParamsStripeS710, ConfigurationModifyParamsTipping as ConfigurationModifyParamsTipping, ConfigurationModifyParamsTippingAed as ConfigurationModifyParamsTippingAed, ConfigurationModifyParamsTippingAud as ConfigurationModifyParamsTippingAud, @@ -93,6 +95,7 @@ ConfigurationUpdateParamsOffline as ConfigurationUpdateParamsOffline, ConfigurationUpdateParamsRebootWindow as ConfigurationUpdateParamsRebootWindow, ConfigurationUpdateParamsStripeS700 as ConfigurationUpdateParamsStripeS700, + ConfigurationUpdateParamsStripeS710 as ConfigurationUpdateParamsStripeS710, ConfigurationUpdateParamsTipping as ConfigurationUpdateParamsTipping, ConfigurationUpdateParamsTippingAed as ConfigurationUpdateParamsTippingAed, ConfigurationUpdateParamsTippingAud as ConfigurationUpdateParamsTippingAud, @@ -255,6 +258,10 @@ "stripe.params.terminal._configuration_create_params", False, ), + "ConfigurationCreateParamsStripeS710": ( + "stripe.params.terminal._configuration_create_params", + False, + ), "ConfigurationCreateParamsTipping": ( "stripe.params.terminal._configuration_create_params", False, @@ -399,6 +406,10 @@ "stripe.params.terminal._configuration_modify_params", False, ), + "ConfigurationModifyParamsStripeS710": ( + "stripe.params.terminal._configuration_modify_params", + False, + ), "ConfigurationModifyParamsTipping": ( "stripe.params.terminal._configuration_modify_params", False, @@ -539,6 +550,10 @@ "stripe.params.terminal._configuration_update_params", False, ), + "ConfigurationUpdateParamsStripeS710": ( + "stripe.params.terminal._configuration_update_params", + False, + ), "ConfigurationUpdateParamsTipping": ( "stripe.params.terminal._configuration_update_params", False, diff --git a/stripe/params/terminal/_configuration_create_params.py b/stripe/params/terminal/_configuration_create_params.py index c03239848..7c3d3d215 100644 --- a/stripe/params/terminal/_configuration_create_params.py +++ b/stripe/params/terminal/_configuration_create_params.py @@ -38,6 +38,10 @@ class ConfigurationCreateParams(RequestOptions): """ An object containing device type specific settings for Stripe S700 readers. """ + stripe_s710: NotRequired["ConfigurationCreateParamsStripeS710"] + """ + An object containing device type specific settings for Stripe S710 readers. + """ tipping: NotRequired["Literal['']|ConfigurationCreateParamsTipping"] """ Tipping configurations for readers that support on-reader tips. @@ -98,6 +102,13 @@ class ConfigurationCreateParamsStripeS700(TypedDict): """ +class ConfigurationCreateParamsStripeS710(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationCreateParamsTipping(TypedDict): aed: NotRequired["ConfigurationCreateParamsTippingAed"] """ diff --git a/stripe/params/terminal/_configuration_modify_params.py b/stripe/params/terminal/_configuration_modify_params.py index 60cbccc0f..a6993430e 100644 --- a/stripe/params/terminal/_configuration_modify_params.py +++ b/stripe/params/terminal/_configuration_modify_params.py @@ -44,6 +44,10 @@ class ConfigurationModifyParams(RequestOptions): """ An object containing device type specific settings for Stripe S700 readers. """ + stripe_s710: NotRequired["Literal['']|ConfigurationModifyParamsStripeS710"] + """ + An object containing device type specific settings for Stripe S710 readers. + """ tipping: NotRequired["Literal['']|ConfigurationModifyParamsTipping"] """ Tipping configurations for readers that support on-reader tips. @@ -106,6 +110,13 @@ class ConfigurationModifyParamsStripeS700(TypedDict): """ +class ConfigurationModifyParamsStripeS710(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationModifyParamsTipping(TypedDict): aed: NotRequired["ConfigurationModifyParamsTippingAed"] """ diff --git a/stripe/params/terminal/_configuration_update_params.py b/stripe/params/terminal/_configuration_update_params.py index fc1961290..6dc96a26d 100644 --- a/stripe/params/terminal/_configuration_update_params.py +++ b/stripe/params/terminal/_configuration_update_params.py @@ -43,6 +43,10 @@ class ConfigurationUpdateParams(TypedDict): """ An object containing device type specific settings for Stripe S700 readers. """ + stripe_s710: NotRequired["Literal['']|ConfigurationUpdateParamsStripeS710"] + """ + An object containing device type specific settings for Stripe S710 readers. + """ tipping: NotRequired["Literal['']|ConfigurationUpdateParamsTipping"] """ Tipping configurations for readers that support on-reader tips. @@ -105,6 +109,13 @@ class ConfigurationUpdateParamsStripeS700(TypedDict): """ +class ConfigurationUpdateParamsStripeS710(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationUpdateParamsTipping(TypedDict): aed: NotRequired["ConfigurationUpdateParamsTippingAed"] """ diff --git a/stripe/params/terminal/_reader_list_params.py b/stripe/params/terminal/_reader_list_params.py index 6f77b07ab..e39cb2d36 100644 --- a/stripe/params/terminal/_reader_list_params.py +++ b/stripe/params/terminal/_reader_list_params.py @@ -13,9 +13,11 @@ class ReaderListParams(RequestOptions): "bbpos_wisepos_e", "mobile_phone_reader", "simulated_stripe_s700", + "simulated_stripe_s710", "simulated_wisepos_e", "stripe_m2", "stripe_s700", + "stripe_s710", "verifone_P400", ] ] diff --git a/stripe/terminal/_configuration.py b/stripe/terminal/_configuration.py index 11dd957ab..5d28c6f8e 100644 --- a/stripe/terminal/_configuration.py +++ b/stripe/terminal/_configuration.py @@ -85,6 +85,12 @@ class StripeS700(StripeObject): A File ID representing an image to display on the reader """ + class StripeS710(StripeObject): + splashscreen: Optional[ExpandableField["File"]] + """ + A File ID representing an image to display on the reader + """ + class Tipping(StripeObject): class Aed(StripeObject): fixed_amounts: Optional[List[int]] @@ -527,6 +533,7 @@ class PersonalPsk(StripeObject): offline: Optional[Offline] reboot_window: Optional[RebootWindow] stripe_s700: Optional[StripeS700] + stripe_s710: Optional[StripeS710] tipping: Optional[Tipping] verifone_p400: Optional[VerifoneP400] wifi: Optional[Wifi] @@ -764,6 +771,7 @@ async def retrieve_async( "offline": Offline, "reboot_window": RebootWindow, "stripe_s700": StripeS700, + "stripe_s710": StripeS710, "tipping": Tipping, "verifone_p400": VerifoneP400, "wifi": Wifi, diff --git a/stripe/terminal/_reader.py b/stripe/terminal/_reader.py index 1f78be200..985c9180c 100644 --- a/stripe/terminal/_reader.py +++ b/stripe/terminal/_reader.py @@ -530,9 +530,11 @@ class LineItem(StripeObject): "bbpos_wisepos_e", "mobile_phone_reader", "simulated_stripe_s700", + "simulated_stripe_s710", "simulated_wisepos_e", "stripe_m2", "stripe_s700", + "stripe_s710", "verifone_P400", ] """