Skip to content
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
74913070eb5bc81c058d07ad167346b6d68d8b0b
fce63eb87846dfb612efc9be0e529a67d81b4525
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2164
v2169
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,12 @@ just format
# or: venv/bin/ruff format . --quiet
```

Update bundled CA certificates from the [Mozilla cURL release][curl]:

```sh
just update-certs
```

[api-keys]: https://dashboard.stripe.com/account/apikeys
[ruff]: https://github.com/astral-sh/ruff
[connect]: https://stripe.com/connect
Expand Down
4 changes: 4 additions & 0 deletions stripe/_application_fee.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ class FeeSource(StripeObject):
"""
A list of refunds that have been applied to the fee.
"""
settlement_type: Optional[Literal["gross_settled", "net_settled"]]
"""
Type of settlement for the application fee. One of `net_settled` or `gross_settled`.
"""

@classmethod
def list(
Expand Down
5 changes: 2 additions & 3 deletions stripe/_coupon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, cast, overload
from typing import Any, ClassVar, Dict, List, Optional, cast, overload
from typing_extensions import Literal, Unpack, TYPE_CHECKING

if TYPE_CHECKING:
Expand All @@ -16,7 +16,6 @@
from stripe.params._coupon_list_params import CouponListParams
from stripe.params._coupon_modify_params import CouponModifyParams
from stripe.params._coupon_retrieve_params import CouponRetrieveParams
from typing import Any


class Coupon(
Expand Down Expand Up @@ -46,7 +45,7 @@ class CurrencyOptions(StripeObject):
"""

class Script(StripeObject):
configuration: Dict[str, "Any"]
configuration: Dict[str, Any]
"""
The configuration values of the script. The keys and values are specific to the script implementation.
"""
Expand Down
7 changes: 3 additions & 4 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
34 changes: 27 additions & 7 deletions stripe/_fr_meal_vouchers_onboarding.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@ class FrMealVouchersOnboarding(
UpdateableAPIResource["FrMealVouchersOnboarding"],
):
"""
The French Meal Vouchers Onboarding resource encapsulates the onboarding status and other related information
The `French Meal Vouchers Onboarding` resource encapsulates the onboarding status and other related information
for a single restaurant (SIRET number) in the context of the French Meal Vouchers program.

To onboard a restaurant for the French Meal Vouchers program, you create a `French Meal Vouchers Onboarding` object.
You can retrieve individual objects, list all such objects, or update objects to correct the postal code of the restaurant.
We identify `French Meal Vouchers Onboarding` objects with a unique, random ID.

Related guide: [Set up a restaurant for titres-restaurant payments](https://docs.stripe.com/payments/meal-vouchers/fr-meal-vouchers/set-up-restaurant)
"""

OBJECT_NAME: ClassVar[Literal["fr_meal_vouchers_onboarding"]] = (
Expand Down Expand Up @@ -166,7 +172,7 @@ def list(
cls, **params: Unpack["FrMealVouchersOnboardingListParams"]
) -> ListObject["FrMealVouchersOnboarding"]:
"""
Lists French Meal Vouchers Onboarding objects
Lists French Meal Vouchers Onboarding objects. The objects are returned in sorted order, with the most recently created objects appearing first.
"""
result = cls._static_request(
"get",
Expand All @@ -186,7 +192,7 @@ async def list_async(
cls, **params: Unpack["FrMealVouchersOnboardingListParams"]
) -> ListObject["FrMealVouchersOnboarding"]:
"""
Lists French Meal Vouchers Onboarding objects
Lists French Meal Vouchers Onboarding objects. The objects are returned in sorted order, with the most recently created objects appearing first.
"""
result = await cls._static_request_async(
"get",
Expand All @@ -206,7 +212,11 @@ def modify(
cls, id: str, **params: Unpack["FrMealVouchersOnboardingModifyParams"]
) -> "FrMealVouchersOnboarding":
"""
Updates the details of a restaurant's French Meal Vouchers Onboarding object
Updates the details of a restaurant's French Meal Vouchers Onboarding object by
setting the values of the parameters passed. Any parameters not provided are left unchanged.
After you update the object, the onboarding process automatically restarts.

You can only update French Meal Vouchers Onboarding objects with the postal_code field requirement in past_due.
"""
url = "%s/%s" % (cls.class_url(), sanitize_id(id))
return cast(
Expand All @@ -223,7 +233,11 @@ async def modify_async(
cls, id: str, **params: Unpack["FrMealVouchersOnboardingModifyParams"]
) -> "FrMealVouchersOnboarding":
"""
Updates the details of a restaurant's French Meal Vouchers Onboarding object
Updates the details of a restaurant's French Meal Vouchers Onboarding object by
setting the values of the parameters passed. Any parameters not provided are left unchanged.
After you update the object, the onboarding process automatically restarts.

You can only update French Meal Vouchers Onboarding objects with the postal_code field requirement in past_due.
"""
url = "%s/%s" % (cls.class_url(), sanitize_id(id))
return cast(
Expand All @@ -242,7 +256,10 @@ def retrieve(
**params: Unpack["FrMealVouchersOnboardingRetrieveParams"],
) -> "FrMealVouchersOnboarding":
"""
Retrieves the details of a French Meal Vouchers Onboarding object
Retrieves the details of a previously created French Meal Vouchers Onboarding object.

Supply the unique French Meal Vouchers Onboarding ID that was returned from your previous request,
and Stripe returns the corresponding onboarding information.
"""
instance = cls(id, **params)
instance.refresh()
Expand All @@ -255,7 +272,10 @@ async def retrieve_async(
**params: Unpack["FrMealVouchersOnboardingRetrieveParams"],
) -> "FrMealVouchersOnboarding":
"""
Retrieves the details of a French Meal Vouchers Onboarding object
Retrieves the details of a previously created French Meal Vouchers Onboarding object.

Supply the unique French Meal Vouchers Onboarding ID that was returned from your previous request,
and Stripe returns the corresponding onboarding information.
"""
instance = cls(id, **params)
await instance.refresh_async()
Expand Down
26 changes: 20 additions & 6 deletions stripe/_fr_meal_vouchers_onboarding_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def list(
options: Optional["RequestOptions"] = None,
) -> "ListObject[FrMealVouchersOnboarding]":
"""
Lists French Meal Vouchers Onboarding objects
Lists French Meal Vouchers Onboarding objects. The objects are returned in sorted order, with the most recently created objects appearing first.
"""
return cast(
"ListObject[FrMealVouchersOnboarding]",
Expand All @@ -49,7 +49,7 @@ async def list_async(
options: Optional["RequestOptions"] = None,
) -> "ListObject[FrMealVouchersOnboarding]":
"""
Lists French Meal Vouchers Onboarding objects
Lists French Meal Vouchers Onboarding objects. The objects are returned in sorted order, with the most recently created objects appearing first.
"""
return cast(
"ListObject[FrMealVouchersOnboarding]",
Expand Down Expand Up @@ -107,7 +107,10 @@ def retrieve(
options: Optional["RequestOptions"] = None,
) -> "FrMealVouchersOnboarding":
"""
Retrieves the details of a French Meal Vouchers Onboarding object
Retrieves the details of a previously created French Meal Vouchers Onboarding object.

Supply the unique French Meal Vouchers Onboarding ID that was returned from your previous request,
and Stripe returns the corresponding onboarding information.
"""
return cast(
"FrMealVouchersOnboarding",
Expand All @@ -129,7 +132,10 @@ async def retrieve_async(
options: Optional["RequestOptions"] = None,
) -> "FrMealVouchersOnboarding":
"""
Retrieves the details of a French Meal Vouchers Onboarding object
Retrieves the details of a previously created French Meal Vouchers Onboarding object.

Supply the unique French Meal Vouchers Onboarding ID that was returned from your previous request,
and Stripe returns the corresponding onboarding information.
"""
return cast(
"FrMealVouchersOnboarding",
Expand All @@ -151,7 +157,11 @@ def update(
options: Optional["RequestOptions"] = None,
) -> "FrMealVouchersOnboarding":
"""
Updates the details of a restaurant's French Meal Vouchers Onboarding object
Updates the details of a restaurant's French Meal Vouchers Onboarding object by
setting the values of the parameters passed. Any parameters not provided are left unchanged.
After you update the object, the onboarding process automatically restarts.

You can only update French Meal Vouchers Onboarding objects with the postal_code field requirement in past_due.
"""
return cast(
"FrMealVouchersOnboarding",
Expand All @@ -173,7 +183,11 @@ async def update_async(
options: Optional["RequestOptions"] = None,
) -> "FrMealVouchersOnboarding":
"""
Updates the details of a restaurant's French Meal Vouchers Onboarding object
Updates the details of a restaurant's French Meal Vouchers Onboarding object by
setting the values of the parameters passed. Any parameters not provided are left unchanged.
After you update the object, the onboarding process automatically restarts.

You can only update French Meal Vouchers Onboarding objects with the postal_code field requirement in past_due.
"""
return cast(
"FrMealVouchersOnboarding",
Expand Down
27 changes: 26 additions & 1 deletion stripe/_invoice_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,24 @@ class PriceDetails(StripeObject):
The ID of the product this item is associated with.
"""

class RateCardCustomPricingUnitOverageRateDetails(StripeObject):
custom_pricing_unit: str
"""
The ID of the custom pricing unit this item is associated with
"""
custom_pricing_unit_overage_rate: str
"""
The ID of the custom pricing unit overage rate this item is associated with
"""
one_time_item: str
"""
The ID of the one-time item this custom pricing unit overage rate is associated with
"""
rate_card: str
"""
The ID of the rate card this item is associated with
"""

class RateCardRateDetails(StripeObject):
metered_item: str
"""
Expand All @@ -191,9 +209,15 @@ class RateCardRateDetails(StripeObject):

license_fee_details: Optional[LicenseFeeDetails]
price_details: Optional[PriceDetails]
rate_card_custom_pricing_unit_overage_rate_details: Optional[
RateCardCustomPricingUnitOverageRateDetails
]
rate_card_rate_details: Optional[RateCardRateDetails]
type: Literal[
"license_fee_details", "price_details", "rate_card_rate_details"
"license_fee_details",
"price_details",
"rate_card_custom_pricing_unit_overage_rate_details",
"rate_card_rate_details",
]
"""
The type of the pricing details.
Expand All @@ -205,6 +229,7 @@ class RateCardRateDetails(StripeObject):
_inner_class_types = {
"license_fee_details": LicenseFeeDetails,
"price_details": PriceDetails,
"rate_card_custom_pricing_unit_overage_rate_details": RateCardCustomPricingUnitOverageRateDetails,
"rate_card_rate_details": RateCardRateDetails,
}

Expand Down
27 changes: 26 additions & 1 deletion stripe/_invoice_line_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,24 @@ class PriceDetails(StripeObject):
The ID of the product this item is associated with.
"""

class RateCardCustomPricingUnitOverageRateDetails(StripeObject):
custom_pricing_unit: str
"""
The ID of the custom pricing unit this item is associated with
"""
custom_pricing_unit_overage_rate: str
"""
The ID of the custom pricing unit overage rate this item is associated with
"""
one_time_item: str
"""
The ID of the one-time item this custom pricing unit overage rate is associated with
"""
rate_card: str
"""
The ID of the rate card this item is associated with
"""

class RateCardRateDetails(StripeObject):
metered_item: str
"""
Expand All @@ -288,9 +306,15 @@ class RateCardRateDetails(StripeObject):

license_fee_details: Optional[LicenseFeeDetails]
price_details: Optional[PriceDetails]
rate_card_custom_pricing_unit_overage_rate_details: Optional[
RateCardCustomPricingUnitOverageRateDetails
]
rate_card_rate_details: Optional[RateCardRateDetails]
type: Literal[
"license_fee_details", "price_details", "rate_card_rate_details"
"license_fee_details",
"price_details",
"rate_card_custom_pricing_unit_overage_rate_details",
"rate_card_rate_details",
]
"""
The type of the pricing details.
Expand All @@ -302,6 +326,7 @@ class RateCardRateDetails(StripeObject):
_inner_class_types = {
"license_fee_details": LicenseFeeDetails,
"price_details": PriceDetails,
"rate_card_custom_pricing_unit_overage_rate_details": RateCardCustomPricingUnitOverageRateDetails,
"rate_card_rate_details": RateCardRateDetails,
}

Expand Down
12 changes: 12 additions & 0 deletions stripe/_object_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@
"BillSettingVersion",
),
"v2.billing.cadence": ("stripe.v2.billing._cadence", "Cadence"),
"v2.billing.cadence_spend_modifier": (
"stripe.v2.billing._cadence_spend_modifier",
"CadenceSpendModifier",
),
"v2.billing.collection_setting": (
"stripe.v2.billing._collection_setting",
"CollectionSetting",
Expand Down Expand Up @@ -479,6 +483,10 @@
"stripe.v2.billing._meter_event_session",
"MeterEventSession",
),
"v2.billing.one_time_item": (
"stripe.v2.billing._one_time_item",
"OneTimeItem",
),
"v2.billing.pricing_plan": (
"stripe.v2.billing._pricing_plan",
"PricingPlan",
Expand All @@ -501,6 +509,10 @@
),
"v2.billing.profile": ("stripe.v2.billing._profile", "Profile"),
"v2.billing.rate_card": ("stripe.v2.billing._rate_card", "RateCard"),
"v2.billing.rate_card_custom_pricing_unit_overage_rate": (
"stripe.v2.billing._rate_card_custom_pricing_unit_overage_rate",
"RateCardCustomPricingUnitOverageRate",
),
"v2.billing.rate_card_rate": (
"stripe.v2.billing._rate_card_rate",
"RateCardRate",
Expand Down
4 changes: 2 additions & 2 deletions stripe/_payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -79,7 +80,6 @@
from stripe.params._payment_intent_verify_microdeposits_params import (
PaymentIntentVerifyMicrodepositsParams,
)
from typing import Any


@nested_resource_class_methods("amount_details_line_item")
Expand Down Expand Up @@ -1443,7 +1443,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.
"""
Expand Down
Loading