Skip to content
Open
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 @@
01d1ea0975f54150dffdde2a2c3d21e609c3b89f
0c1425f1eef7039fa5583c81a40bcb722d24512a
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2458
v2470
1 change: 1 addition & 0 deletions stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ class ThreeDSecure(StripeObject):
Literal[
"attempt_acknowledged",
"authenticated",
"data_share_only",
"exempted",
"failed",
"not_supported",
Expand Down
6 changes: 4 additions & 2 deletions stripe/_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -2829,7 +2829,8 @@ def modify(
) -> "Invoice":
"""
Draft invoices are fully editable. Once an invoice is [finalized](https://docs.stripe.com/docs/billing/invoices/workflow#finalized),
monetary values, as well as collection_method, become uneditable.
you can no longer change most of its details, including monetary values and collection_method. For most invoices,
this also includes description.

If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on,
sending reminders for, or [automatically reconciling](https://docs.stripe.com/docs/billing/invoices/reconciliation) invoices, pass
Expand All @@ -2851,7 +2852,8 @@ async def modify_async(
) -> "Invoice":
"""
Draft invoices are fully editable. Once an invoice is [finalized](https://docs.stripe.com/docs/billing/invoices/workflow#finalized),
monetary values, as well as collection_method, become uneditable.
you can no longer change most of its details, including monetary values and collection_method. For most invoices,
this also includes description.

If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on,
sending reminders for, or [automatically reconciling](https://docs.stripe.com/docs/billing/invoices/reconciliation) invoices, pass
Expand Down
6 changes: 4 additions & 2 deletions stripe/_invoice_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ def update(
) -> "Invoice":
"""
Draft invoices are fully editable. Once an invoice is [finalized](https://docs.stripe.com/docs/billing/invoices/workflow#finalized),
monetary values, as well as collection_method, become uneditable.
you can no longer change most of its details, including monetary values and collection_method. For most invoices,
this also includes description.

If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on,
sending reminders for, or [automatically reconciling](https://docs.stripe.com/docs/billing/invoices/reconciliation) invoices, pass
Expand All @@ -194,7 +195,8 @@ async def update_async(
) -> "Invoice":
"""
Draft invoices are fully editable. Once an invoice is [finalized](https://docs.stripe.com/docs/billing/invoices/workflow#finalized),
monetary values, as well as collection_method, become uneditable.
you can no longer change most of its details, including monetary values and collection_method. For most invoices,
this also includes description.

If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on,
sending reminders for, or [automatically reconciling](https://docs.stripe.com/docs/billing/invoices/reconciliation) invoices, pass
Expand Down
1 change: 1 addition & 0 deletions stripe/_payment_attempt_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ class ThreeDSecure(StripeObject):
Literal[
"attempt_acknowledged",
"authenticated",
"data_share_only",
"exempted",
"failed",
"not_supported",
Expand Down
4 changes: 2 additions & 2 deletions stripe/_payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -7587,7 +7587,7 @@ def retrieve(

You can retrieve a PaymentIntent client-side using a publishable key when the client_secret is in the query string.

If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api#payment_intent_object) object reference for more details.
If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api/payment_intents/object) object reference for more details.
"""
instance = cls(id, **params)
instance.refresh()
Expand All @@ -7602,7 +7602,7 @@ async def retrieve_async(

You can retrieve a PaymentIntent client-side using a publishable key when the client_secret is in the query string.

If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api#payment_intent_object) object reference for more details.
If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api/payment_intents/object) object reference for more details.
"""
instance = cls(id, **params)
await instance.refresh_async()
Expand Down
4 changes: 4 additions & 0 deletions stripe/_payment_intent_amount_details_line_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ class Tax(StripeObject):
"""
The unit cost of the line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
"""
unit_cost_precision: Optional[int]
"""
The number of decimal places implied in the unit_cost. For example, if unit_cost is 10000 and unit_cost_precision is 1, the actual unit cost is 1000.0. Defaults to 0 if not provided.
"""
unit_of_measure: Optional[str]
"""
A unit of measure for the line item, such as gallons, feet, meters, etc. Required for L3 rates. At most 12 alphanumeric characters long.
Expand Down
4 changes: 2 additions & 2 deletions stripe/_payment_intent_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def retrieve(

You can retrieve a PaymentIntent client-side using a publishable key when the client_secret is in the query string.

If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api#payment_intent_object) object reference for more details.
If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api/payment_intents/object) object reference for more details.
"""
return cast(
"PaymentIntent",
Expand All @@ -221,7 +221,7 @@ async def retrieve_async(

You can retrieve a PaymentIntent client-side using a publishable key when the client_secret is in the query string.

If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api#payment_intent_object) object reference for more details.
If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api/payment_intents/object) object reference for more details.
"""
return cast(
"PaymentIntent",
Expand Down
1 change: 1 addition & 0 deletions stripe/_payment_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ class ThreeDSecure(StripeObject):
Literal[
"attempt_acknowledged",
"authenticated",
"data_share_only",
"exempted",
"failed",
"not_supported",
Expand Down
1 change: 1 addition & 0 deletions stripe/_setup_attempt.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class ThreeDSecure(StripeObject):
Literal[
"attempt_acknowledged",
"authenticated",
"data_share_only",
"exempted",
"failed",
"not_supported",
Expand Down
4 changes: 1 addition & 3 deletions stripe/capital/_financing_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@

class FinancingSummary(SingletonAPIResource["FinancingSummary"]):
"""
A financing summary object describes a connected account's financing status in real time.
A financing status is either `accepted`, `delivered`, or `none`.
You can read the status of your connected accounts.
A financing summary object describes a connected account's financing details in real time.
"""

OBJECT_NAME: ClassVar[Literal["capital.financing_summary"]] = (
Expand Down
4 changes: 4 additions & 0 deletions stripe/checkout/_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -1246,6 +1246,10 @@ class EndBehavior(StripeObject):
"""
_inner_class_types = {"end_behavior": EndBehavior}

backdate_start_date: Optional[int]
"""
The Unix timestamp marking the subscription's backdated start date.
"""
description: Optional[str]
"""
The description for the subscription.
Expand Down
174 changes: 174 additions & 0 deletions stripe/identity/_verification_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,178 @@ class Error(StripeObject):
"""
_inner_class_types = {"error": Error}

class Signals(StripeObject):
class FraudulentEmail(StripeObject):
class Indicator(StripeObject):
explanation: str
"""
A brief explanation of how this indicator contributed to the risk level
"""
impact: Union[
Literal[
"decrease",
"neutral",
"slight_increase",
"strong_increase",
],
str,
]
"""
The effect this indicator had on the overall risk level.
"""
indicator: Union[
Literal[
"address_mismatch",
"domain_reputation",
"domain_tenure",
"email_reputation",
"email_tenure",
"gibberish_email",
"invalid_email",
"name_mismatch",
"other",
"phone_mismatch",
],
str,
]
"""
The name of the specific indicator used in the risk assessment.
"""

indicators: List[Indicator]
"""
Array of objects representing individual factors that contributed to the calculated risk level.
"""
risk_level: Union[
Literal[
"elevated",
"highest",
"low",
"normal",
"not_assessed",
"unknown",
],
str,
]
"""
Categorical assessment of the email risk.
"""
_inner_class_types = {"indicators": Indicator}

class FraudulentPerson(StripeObject):
class Indicator(StripeObject):
explanation: str
"""
A brief explanation of how this indicator contributed to the risk level
"""
impact: Union[
Literal[
"decrease",
"neutral",
"slight_increase",
"strong_increase",
],
str,
]
"""
The effect this indicator had on the overall risk level.
"""
indicator: Union[
Literal[
"fraudulent_person_match",
"no_transaction_match",
"other",
],
str,
]
"""
The name of the specific indicator used in the risk assessment.
"""

indicators: List[Indicator]
"""
Array of objects representing individual factors that contributed to the calculated risk level.
"""
risk_level: Union[
Literal[
"elevated",
"highest",
"low",
"normal",
"not_assessed",
"unknown",
],
str,
]
"""
Categorical assessment of the fraudulent person risk.
"""
_inner_class_types = {"indicators": Indicator}

class FraudulentPhone(StripeObject):
class Indicator(StripeObject):
explanation: str
"""
A brief explanation of how this indicator contributed to the risk level
"""
impact: Union[
Literal[
"decrease",
"neutral",
"slight_increase",
"strong_increase",
],
str,
]
"""
The effect this indicator had on the overall risk level.
"""
indicator: Union[
Literal[
"address_mismatch",
"carrier_reputation",
"line_type",
"name_mismatch",
"other",
"phone_reputation",
"phone_tenure",
"phone_velocity",
],
str,
]
"""
The name of the specific indicator used in the risk assessment.
"""

indicators: List[Indicator]
"""
Array of objects representing individual factors that contributed to the calculated risk level.
"""
risk_level: Union[
Literal[
"elevated",
"highest",
"low",
"normal",
"not_assessed",
"unknown",
],
str,
]
"""
Categorical assessment of the phone risk.
"""
_inner_class_types = {"indicators": Indicator}

fraudulent_email: Optional[FraudulentEmail]
fraudulent_person: Optional[FraudulentPerson]
fraudulent_phone: Optional[FraudulentPhone]
_inner_class_types = {
"fraudulent_email": FraudulentEmail,
"fraudulent_person": FraudulentPerson,
"fraudulent_phone": FraudulentPhone,
}

client_reference_id: Optional[str]
"""
A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
Expand Down Expand Up @@ -538,6 +710,7 @@ class Error(StripeObject):
"""
Result from a selfie check
"""
signals: Optional[Signals]
type: Union[
Literal["document", "email", "id_number", "verification_flow"], str
]
Expand Down Expand Up @@ -622,4 +795,5 @@ async def retrieve_async(
"options": Options,
"phone": Phone,
"selfie": Selfie,
"signals": Signals,
}
4 changes: 4 additions & 0 deletions stripe/issuing/_authorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -1311,6 +1311,10 @@ class TraceId(StripeObject):
"""
Details about the authorization request, such as identifiers, set by the card network.
"""
network_response_code: Optional[str]
"""
The network-specific response code associated with Stripe's decision for this authorization request. The value is a Visa or Mastercard response code depending on the network over which the authorization was routed.
"""
network_risk_score: Optional[int]
"""
The card network's estimate of the likelihood that an authorization is fraudulent. Takes on values between 1 and 99.
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_customer_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class CustomerCreateParams(RequestOptions):
"""
invoice_prefix: NotRequired[str]
"""
The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
The prefix for the customer used to generate unique invoice numbers. Must be 1–12 uppercase letters or numbers.
"""
invoice_settings: NotRequired["CustomerCreateParamsInvoiceSettings"]
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_customer_modify_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class CustomerModifyParams(RequestOptions):
"""
invoice_prefix: NotRequired[str]
"""
The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
The prefix for the customer used to generate unique invoice numbers. Must be 1–12 uppercase letters or numbers.
"""
invoice_settings: NotRequired["CustomerModifyParamsInvoiceSettings"]
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_customer_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class CustomerUpdateParams(TypedDict):
"""
invoice_prefix: NotRequired[str]
"""
The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
The prefix for the customer used to generate unique invoice numbers. Must be 1–12 uppercase letters or numbers.
"""
invoice_settings: NotRequired["CustomerUpdateParamsInvoiceSettings"]
"""
Expand Down
4 changes: 4 additions & 0 deletions stripe/params/_payment_intent_capture_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ class PaymentIntentCaptureParamsAmountDetailsLineItem(TypedDict):
"""
The unit cost of the line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
"""
unit_cost_precision: NotRequired[int]
"""
The number of decimal places implied in the unit_cost. For example, if unit_cost is 10000 and unit_cost_precision is 1, the actual unit cost is 1000.0. Defaults to 0 if not provided.
"""
unit_of_measure: NotRequired[str]
"""
A unit of measure for the line item, such as gallons, feet, meters, etc.
Expand Down
Loading