Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fdbf5e05015131c7993d2b4017103f0d94561b6a
e65e48569f6dfad2d5f1b58018017856520c3ae6
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2160
v2186
2 changes: 2 additions & 0 deletions stripe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion stripe/_api_version.py
Original file line number Diff line number Diff line change
@@ -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"
16 changes: 16 additions & 0 deletions stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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`.
Expand All @@ -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.
Expand Down
8 changes: 8 additions & 0 deletions stripe/_confirmation_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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.
Expand Down
16 changes: 11 additions & 5 deletions stripe/_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]):
Expand Down Expand Up @@ -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.
"""
Expand Down Expand Up @@ -106,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",
Expand Down Expand Up @@ -269,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",
Expand Down Expand Up @@ -341,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",
Expand Down
2 changes: 2 additions & 0 deletions stripe/_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 7 additions & 3 deletions stripe/_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ class CustomerTaxId(StripeObject):
"la_tin",
"li_uid",
"li_vat",
"lk_vat",
"ma_vat",
"md_vat",
"me_pib",
Expand Down Expand Up @@ -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]
"""
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -955,6 +958,7 @@ class Filters(StripeObject):
"naver_pay",
"nz_bank_account",
"p24",
"pay_by_bank",
"payco",
"paynow",
"paypal",
Expand Down Expand Up @@ -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
"""
Expand Down
8 changes: 8 additions & 0 deletions stripe/_mandate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Expand All @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions stripe/_object_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading