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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
102 changes: 102 additions & 0 deletions .hark/changes/2026-10-30_stripe-openapi_3ffc9490.change.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3a5e392ca3f7564fd6496837a3ccc9bb5d2647cd
305a4cda5bfda341d0099795803d0af4637923c0
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2588
v2596
2 changes: 2 additions & 0 deletions stripe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ def add_beta_version(
AuthenticationError as AuthenticationError,
BlockedByStripeError as BlockedByStripeError,
CannotProceedError as CannotProceedError,
CapabilityNotEnabledError as CapabilityNotEnabledError,
CardError as CardError,
ControlledByAlternateResourceError as ControlledByAlternateResourceError,
FeatureNotEnabledError as FeatureNotEnabledError,
Expand Down Expand Up @@ -872,6 +873,7 @@ def add_beta_version(
"AuthenticationError": ("stripe._error", False),
"BlockedByStripeError": ("stripe._error", False),
"CannotProceedError": ("stripe._error", False),
"CapabilityNotEnabledError": ("stripe._error", False),
"CardError": ("stripe._error", False),
"ControlledByAlternateResourceError": ("stripe._error", False),
"FeatureNotEnabledError": ("stripe._error", False),
Expand Down
28 changes: 28 additions & 0 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,32 @@ class OwnershipDeclaration(StripeObject):
The user-agent string from the browser where the beneficial owner attestation was made.
"""

class PhysicalAddress(StripeObject):
city: Optional[str]
"""
City, district, suburb, town, or village.
"""
country: Optional[str]
"""
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
line1: Optional[str]
"""
Address line 1, such as the street, PO Box, or company name.
"""
line2: Optional[str]
"""
Address line 2, such as the apartment, suite, unit, or building.
"""
postal_code: Optional[str]
"""
ZIP or postal code.
"""
state: Optional[str]
"""
State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
"""

class PrincipalPlaceOfBusiness(StripeObject):
city: Optional[str]
"""
Expand Down Expand Up @@ -1001,6 +1027,7 @@ class Document(StripeObject):
"""
The company's phone number (used for verification).
"""
physical_address: Optional[PhysicalAddress]
principal_place_of_business: Optional[PrincipalPlaceOfBusiness]
registration_date: Optional[RegistrationDate]
representative_declaration: Optional[RepresentativeDeclaration]
Expand Down Expand Up @@ -1063,6 +1090,7 @@ class Document(StripeObject):
"administrative_address": AdministrativeAddress,
"directorship_declaration": DirectorshipDeclaration,
"ownership_declaration": OwnershipDeclaration,
"physical_address": PhysicalAddress,
"principal_place_of_business": PrincipalPlaceOfBusiness,
"registration_date": RegistrationDate,
"representative_declaration": RepresentativeDeclaration,
Expand Down
1 change: 1 addition & 0 deletions stripe/_account_notice.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class LinkedObjects(StripeObject):
"issuing.account_closed_for_not_providing_url_clarification",
"issuing.account_closed_for_not_providing_use_case_clarification",
"issuing.account_closed_for_terms_of_service_violation",
"issuing.application_rejected_because_prohibited_business",
"issuing.application_rejected_for_failure_to_verify",
"issuing.credit_application_rejected",
"issuing.credit_increase_application_rejected",
Expand Down
2 changes: 2 additions & 0 deletions stripe/_api_requestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@ def specific_v2_api_error(self, rbody, rcode, resp, rheaders, error_data):
**error_args,
reason=error_data.get("reason"),
)
elif type == "capability_not_enabled":
return error.CapabilityNotEnabledError(**error_args)
elif type == "controlled_by_alternate_resource":
return error.ControlledByAlternateResourceError(**error_args)
elif type == "feature_not_enabled":
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-10-14.preview"
CURRENT = "2026-10-28.preview"
CURRENT_MAJOR = ""
15 changes: 13 additions & 2 deletions stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ class ShippingAddress(StripeObject):
Union[Literal["installment", "recurring", "unscheduled"], str]
]
"""
The payment_method_options.card.stored_credential_usage value that was passed for an off session, merchant-initiated transaction, one of `recurring`, `unscheduled`, `on_session`, or `installment`
The payment_method_options.card.stored_credential_usage value that was passed for an off session, merchant-initiated transaction.
"""
three_d_secure: Optional[ThreeDSecure]
"""
Expand Down Expand Up @@ -2151,7 +2151,10 @@ class VerifiedAddress(StripeObject):
}

class Paypay(StripeObject):
pass
mandate: Optional[str]
"""
ID of the multi-use Mandate created by, or used to make, this PayPay payment.
"""

class Payto(StripeObject):
bsb_number: Optional[str]
Expand Down Expand Up @@ -2412,6 +2415,12 @@ class Tamara(StripeObject):
The Tamara transaction ID associated with this payment.
"""

class TossPay(StripeObject):
buyer_id: Optional[str]
"""
The buyer identifier provided by NICE for this Toss Pay account, when available.
"""

class Twint(StripeObject):
mandate: Optional[str]
"""
Expand Down Expand Up @@ -2561,6 +2570,7 @@ class Zip(StripeObject):
sunbit: Optional[Sunbit]
swish: Optional[Swish]
tamara: Optional[Tamara]
toss_pay: Optional[TossPay]
twint: Optional[Twint]
type: str
"""
Expand Down Expand Up @@ -2643,6 +2653,7 @@ class Zip(StripeObject):
"sunbit": Sunbit,
"swish": Swish,
"tamara": Tamara,
"toss_pay": TossPay,
"twint": Twint,
"upi": Upi,
"us_bank_account": UsBankAccount,
Expand Down
9 changes: 9 additions & 0 deletions stripe/_confirmation_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -1550,6 +1550,12 @@ class Swish(StripeObject):
class Tamara(StripeObject):
pass

class TossPay(StripeObject):
buyer_id: Optional[str]
"""
The buyer identifier provided by NICE for this Toss Pay account, when available.
"""

class Twint(StripeObject):
pass

Expand Down Expand Up @@ -1748,6 +1754,7 @@ class Zip(StripeObject):
sunbit: Optional[Sunbit]
swish: Optional[Swish]
tamara: Optional[Tamara]
toss_pay: Optional[TossPay]
twint: Optional[Twint]
type: Union[
Literal[
Expand Down Expand Up @@ -1817,6 +1824,7 @@ class Zip(StripeObject):
"sunbit",
"swish",
"tamara",
"toss_pay",
"twint",
"upi",
"us_bank_account",
Expand Down Expand Up @@ -1901,6 +1909,7 @@ class Zip(StripeObject):
"sunbit": Sunbit,
"swish": Swish,
"tamara": Tamara,
"toss_pay": TossPay,
"twint": Twint,
"upi": Upi,
"us_bank_account": UsBankAccount,
Expand Down
47 changes: 47 additions & 0 deletions stripe/_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,48 @@ class RenderingOptions(StripeObject):
"rendering_options": RenderingOptions,
}

class MarketingAttribution(StripeObject):
class AdConversion(StripeObject):
consent_collected: bool
"""
Whether the customer consented to sending conversion data to an advertising platform.
"""

ad_conversion: Optional[AdConversion]
click_id: Optional[str]
"""
The advertising platform's click identifier.
"""
occurred_at: Optional[int]
"""
The Unix timestamp when the advertising interaction occurred.
"""
utm_adgroup: Optional[str]
"""
The advertising group ID from the `utm_adgroup` parameter.
"""
utm_content: Optional[str]
"""
The advertising content identifier from the `utm_content` parameter.
"""
utm_id: Optional[str]
"""
The advertising campaign ID from the `utm_id` parameter.
"""
utm_medium: Optional[str]
"""
The marketing medium from the `utm_medium` parameter.
"""
utm_source: Optional[str]
"""
The referral source from the `utm_source` parameter.
"""
utm_term: Optional[str]
"""
The paid search term from the `utm_term` parameter.
"""
_inner_class_types = {"ad_conversion": AdConversion}

class Redaction(StripeObject):
status: Union[Literal["processing", "redacted", "validated"], str]
"""
Expand Down Expand Up @@ -396,6 +438,10 @@ class Location(StripeObject):
"""
If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
"""
marketing_attributions: Optional[List[MarketingAttribution]]
"""
Advertising attribution information for this customer.
"""
metadata: Optional[UntypedStripeObject[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.
Expand Down Expand Up @@ -2234,6 +2280,7 @@ def test_helpers(self):
_inner_class_types = {
"address": Address,
"invoice_settings": InvoiceSettings,
"marketing_attributions": MarketingAttribution,
"redaction": Redaction,
"shipping": Shipping,
"tax": Tax,
Expand Down
4 changes: 3 additions & 1 deletion stripe/_dispute.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,8 @@ class SmartDisputes(StripeObject):
smart_disputes: Optional[SmartDisputes]
status: Union[
Literal[
"appeal_needs_response",
"appeal_under_review",
"lost",
"needs_response",
"prevented",
Expand All @@ -584,7 +586,7 @@ class SmartDisputes(StripeObject):
str,
]
"""
The current status of a dispute. Possible values include:`warning_needs_response`, `warning_under_review`, `warning_closed`, `needs_response`, `under_review`, `won`, `lost`, or `prevented`.
The current status of a dispute. Possible values include:`warning_needs_response`, `warning_under_review`, `warning_closed`, `needs_response`, `under_review`, `appeal_needs_response`, `appeal_under_review`, `won`, `lost`, or `prevented`.
"""

@classmethod
Expand Down
4 changes: 4 additions & 0 deletions stripe/_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ def __init__(
self.reason = reason


class CapabilityNotEnabledError(StripeError):
pass


class ControlledByAlternateResourceError(StripeError):
pass

Expand Down
Loading
Loading