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 @@
6fc967cafa78afc6c6adb86802a26217fa770522
a3131fc4a4603898f1c99ff3f4e8809dd98f05c2
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2350
v2358
4 changes: 4 additions & 0 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,10 @@ class Capabilities(StripeObject):
"""
The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
"""
sequra_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the Sequra capability of the account, or whether the account can directly process Sequra payments.
"""
shopeepay_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the ShopeePay capability of the account, or whether the account can directly process ShopeePay payments.
Expand Down
2 changes: 1 addition & 1 deletion stripe/_quote_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ class EndBehavior(StripeObject):
Union[Literal["automatic", "line_starts_at"], str]
]
"""
For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp. For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
"""
cancel_subscription_schedule: Optional[CancelSubscriptionSchedule]
"""
Expand Down
4 changes: 2 additions & 2 deletions stripe/_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -1752,7 +1752,7 @@ def modify(
When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint.

By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.
By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. You can also [use scripts to prorate your billing. To learn more, see <a href="/billing/subscriptions/prorations">Prorations](https://docs.stripe.com/billing/scripts/stripe-authored/proration).

Switching prices does not normally change the billing date or generate an immediate charge unless:

Expand Down Expand Up @@ -1789,7 +1789,7 @@ async def modify_async(
When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint.

By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.
By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. You can also [use scripts to prorate your billing. To learn more, see <a href="/billing/subscriptions/prorations">Prorations](https://docs.stripe.com/billing/scripts/stripe-authored/proration).

Switching prices does not normally change the billing date or generate an immediate charge unless:

Expand Down
4 changes: 2 additions & 2 deletions stripe/_subscription_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def update(
When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint.

By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.
By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. You can also [use scripts to prorate your billing. To learn more, see <a href="/billing/subscriptions/prorations">Prorations](https://docs.stripe.com/billing/scripts/stripe-authored/proration).

Switching prices does not normally change the billing date or generate an immediate charge unless:

Expand Down Expand Up @@ -207,7 +207,7 @@ async def update_async(
When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint.

By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.
By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. You can also [use scripts to prorate your billing. To learn more, see <a href="/billing/subscriptions/prorations">Prorations](https://docs.stripe.com/billing/scripts/stripe-authored/proration).

Switching prices does not normally change the billing date or generate an immediate charge unless:

Expand Down
2 changes: 1 addition & 1 deletion stripe/capital/_financing_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class CurrentRepaymentInterval(StripeObject):
fee amount, withhold rate, remaining amount, paid amount, current repayment interval,
repayment start date, and advance payout date.

Only present for financing offers with the `paid_out` status.
Only present for financing offers with a `status` other than `none`.
"""
financing_offer: Optional[str]
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_invoice_create_preview_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ class InvoiceCreatePreviewParamsScheduleDetailsAmendment(TypedDict):
"Literal['amendment_start', 'automatic']|str"
]
"""
For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp.For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp. For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
"""
billing_schedules_actions: NotRequired[
List[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class PaymentAttemptRecordReportGuaranteedParams(RequestOptions):
"""
When the reported payment was guaranteed. Measured in seconds since the Unix epoch.
"""
is_anomalous: NotRequired[bool]
"""
Set to `true` to enable writing an anomalous guaranteed payment to an outdated PaymentAttemptRecord. This parameter defaults to `false`.
"""
metadata: NotRequired[
"Literal['']|Dict[str, str]|UntypedStripeObject[str]"
]
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_quote_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class QuoteCreateParamsLine(TypedDict):
"Literal['automatic', 'line_starts_at']|str"
]
"""
For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp. For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
"""
cancel_subscription_schedule: NotRequired[
"QuoteCreateParamsLineCancelSubscriptionSchedule"
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_quote_modify_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ class QuoteModifyParamsLine(TypedDict):
"Literal['automatic', 'line_starts_at']|str"
]
"""
For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp. For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
"""
cancel_subscription_schedule: NotRequired[
"QuoteModifyParamsLineCancelSubscriptionSchedule"
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_quote_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class QuoteUpdateParamsLine(TypedDict):
"Literal['automatic', 'line_starts_at']|str"
]
"""
For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp. For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
"""
cancel_subscription_schedule: NotRequired[
"QuoteUpdateParamsLineCancelSubscriptionSchedule"
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_subscription_schedule_amend_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class SubscriptionScheduleAmendParamsAmendment(TypedDict):
"Literal['amendment_start', 'automatic']|str"
]
"""
For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp.For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp. For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
"""
billing_schedules_actions: NotRequired[
List["SubscriptionScheduleAmendParamsAmendmentBillingSchedulesAction"]
Expand Down
8 changes: 6 additions & 2 deletions stripe/params/checkout/_session_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,11 +1028,11 @@ class SessionCreateParamsItemSubscriptionBillingModeFlexible(TypedDict):
class SessionCreateParamsItemSubscriptionItem(TypedDict):
price: NotRequired[str]
"""
The ID of the price for this subscription item.
The ID of the [Price](https://docs.stripe.com/api/prices). One of `price` or `price_data` is required.
"""
price_data: NotRequired["SessionCreateParamsItemSubscriptionItemPriceData"]
"""
Data used to generate a new Price object inline.
Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.
"""
quantity: NotRequired[int]
"""
Expand Down Expand Up @@ -3283,6 +3283,10 @@ class SessionCreateParamsShippingOption(TypedDict):
"""
Parameters to be passed to Shipping Rate creation for this shipping option.
"""
tax_rates: NotRequired[List[str]]
"""
The tax rates that will be applied to this shipping option. This parameter is only supported for Checkout Sessions with `ui_mode` set to `form` or `elements`.
"""


class SessionCreateParamsShippingOptionShippingRateData(TypedDict):
Expand Down
4 changes: 4 additions & 0 deletions stripe/params/checkout/_session_modify_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,10 @@ class SessionModifyParamsShippingOption(TypedDict):
"""
Parameters to be passed to Shipping Rate creation for this shipping option.
"""
tax_rates: NotRequired["Literal['']|List[str]"]
"""
The tax rates that will be applied to this shipping option. This parameter is only supported for Checkout Sessions with `ui_mode` set to `form` or `elements`.
"""


class SessionModifyParamsShippingOptionShippingRateData(TypedDict):
Expand Down
4 changes: 4 additions & 0 deletions stripe/params/checkout/_session_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,10 @@ class SessionUpdateParamsShippingOption(TypedDict):
"""
Parameters to be passed to Shipping Rate creation for this shipping option.
"""
tax_rates: NotRequired["Literal['']|List[str]"]
"""
The tax rates that will be applied to this shipping option. This parameter is only supported for Checkout Sessions with `ui_mode` set to `form` or `elements`.
"""


class SessionUpdateParamsShippingOptionShippingRateData(TypedDict):
Expand Down
Loading
Loading