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 @@
9e950cbf7b5a814a98f27d1a94b72cd6f1df2078
6f80705d2d79a2be4fee472e1156515f7bbfe3e3
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2203
v2204
6 changes: 0 additions & 6 deletions stripe/_payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -4188,12 +4188,6 @@ class MandateOptions(StripeObject):

financial_connections: Optional[FinancialConnections]
mandate_options: Optional[MandateOptions]
preferred_settlement_speed: Optional[
Literal["fastest", "standard"]
]
"""
Preferred transaction settlement speed
"""
setup_future_usage: Optional[
Literal["none", "off_session", "on_session"]
]
Expand Down
14 changes: 2 additions & 12 deletions stripe/events/_v2_core_health_fraud_rate_increased_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from stripe._api_mode import ApiMode
from stripe._stripe_object import StripeObject
from stripe._stripe_response import StripeResponse
from stripe.v2._amount import Amount
from stripe.v2.core._event import Event, EventNotification
from typing import Any, Dict, Optional, cast
from typing_extensions import Literal, TYPE_CHECKING, override
Expand Down Expand Up @@ -36,16 +37,6 @@ class V2CoreHealthFraudRateIncreasedEvent(Event):

class V2CoreHealthFraudRateIncreasedEventData(StripeObject):
class Impact(StripeObject):
class RealizedFraudAmount(StripeObject):
currency: str
"""
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
"""
value: int
"""
A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""

attack_type: Literal["spike", "sustained_attack"]
"""
Fraud attack type.
Expand All @@ -54,11 +45,10 @@ class RealizedFraudAmount(StripeObject):
"""
The number of impacted requests which are detected.
"""
realized_fraud_amount: RealizedFraudAmount
realized_fraud_amount: Amount
"""
Estimated aggregated amount for the impacted requests.
"""
_inner_class_types = {"realized_fraud_amount": RealizedFraudAmount}

alert_id: str
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from stripe._api_mode import ApiMode
from stripe._stripe_object import StripeObject
from stripe._stripe_response import StripeResponse
from stripe.v2._amount import Amount
from stripe.v2.core._event import Event, EventNotification
from typing import Any, Dict, Optional, cast
from typing_extensions import Literal, TYPE_CHECKING, override
Expand Down Expand Up @@ -44,46 +45,22 @@ class V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventData(
StripeObject,
):
class Impact(StripeObject):
class ApprovedAmount(StripeObject):
currency: str
"""
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
"""
value: int
"""
A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""

class DeclinedAmount(StripeObject):
currency: str
"""
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
"""
value: int
"""
A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""

approved_amount: Optional[ApprovedAmount]
approved_amount: Optional[Amount]
"""
Estimated aggregated amount for the approved requests.
"""
approved_impacted_requests: Optional[int]
"""
The number of approved requests which are impacted.
"""
declined_amount: Optional[DeclinedAmount]
declined_amount: Optional[Amount]
"""
Estimated aggregated amount for the declined requests.
"""
declined_impacted_requests: Optional[int]
"""
The number of declined requests which are impacted.
"""
_inner_class_types = {
"approved_amount": ApprovedAmount,
"declined_amount": DeclinedAmount,
}

grouping_key: str
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from stripe._api_mode import ApiMode
from stripe._stripe_object import StripeObject
from stripe._stripe_response import StripeResponse
from stripe.v2._amount import Amount
from stripe.v2.core._event import Event, EventNotification
from typing import Any, Dict, Optional, cast
from typing_extensions import Literal, TYPE_CHECKING, override
Expand Down Expand Up @@ -52,46 +53,22 @@ class V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventData(
StripeObject,
):
class Impact(StripeObject):
class ApprovedAmount(StripeObject):
currency: str
"""
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
"""
value: int
"""
A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""

class DeclinedAmount(StripeObject):
currency: str
"""
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
"""
value: int
"""
A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""

approved_amount: Optional[ApprovedAmount]
approved_amount: Optional[Amount]
"""
Estimated aggregated amount for the approved requests.
"""
approved_impacted_requests: Optional[int]
"""
The number of approved requests which are impacted.
"""
declined_amount: Optional[DeclinedAmount]
declined_amount: Optional[Amount]
"""
Estimated aggregated amount for the declined requests.
"""
declined_impacted_requests: Optional[int]
"""
The number of declined requests which are impacted.
"""
_inner_class_types = {
"approved_amount": ApprovedAmount,
"declined_amount": DeclinedAmount,
}

grouping_key: str
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from stripe._api_mode import ApiMode
from stripe._stripe_object import StripeObject
from stripe._stripe_response import StripeResponse
from stripe.v2._amount import Amount
from stripe.v2.core._event import Event, EventNotification
from typing import Any, Dict, Optional, cast
from typing_extensions import Literal, TYPE_CHECKING, override
Expand Down Expand Up @@ -48,46 +49,22 @@ class V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventData(
StripeObject,
):
class Impact(StripeObject):
class ApprovedAmount(StripeObject):
currency: str
"""
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
"""
value: int
"""
A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""

class DeclinedAmount(StripeObject):
currency: str
"""
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
"""
value: int
"""
A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""

approved_amount: Optional[ApprovedAmount]
approved_amount: Optional[Amount]
"""
Estimated aggregated amount for the approved requests.
"""
approved_impacted_requests: Optional[int]
"""
The number of approved requests which are impacted.
"""
declined_amount: Optional[DeclinedAmount]
declined_amount: Optional[Amount]
"""
Estimated aggregated amount for the declined requests.
"""
declined_impacted_requests: Optional[int]
"""
The number of declined requests which are impacted.
"""
_inner_class_types = {
"approved_amount": ApprovedAmount,
"declined_amount": DeclinedAmount,
}

alert_id: str
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from stripe._api_mode import ApiMode
from stripe._stripe_object import StripeObject
from stripe._stripe_response import StripeResponse
from stripe.v2._amount import Amount
from stripe.v2.core._event import Event, EventNotification
from typing import Any, Dict, Optional, cast
from typing_extensions import Literal, TYPE_CHECKING, override
Expand Down Expand Up @@ -52,46 +53,22 @@ class V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventData(
StripeObject,
):
class Impact(StripeObject):
class ApprovedAmount(StripeObject):
currency: str
"""
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
"""
value: int
"""
A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""

class DeclinedAmount(StripeObject):
currency: str
"""
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
"""
value: int
"""
A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""

approved_amount: Optional[ApprovedAmount]
approved_amount: Optional[Amount]
"""
Estimated aggregated amount for the approved requests.
"""
approved_impacted_requests: Optional[int]
"""
The number of approved requests which are impacted.
"""
declined_amount: Optional[DeclinedAmount]
declined_amount: Optional[Amount]
"""
Estimated aggregated amount for the declined requests.
"""
declined_impacted_requests: Optional[int]
"""
The number of declined requests which are impacted.
"""
_inner_class_types = {
"approved_amount": ApprovedAmount,
"declined_amount": DeclinedAmount,
}

grouping_key: str
"""
Expand Down
6 changes: 0 additions & 6 deletions stripe/params/_payment_intent_confirm_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -6451,12 +6451,6 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccount(TypedDict):
"""
Bank account verification method.
"""
preferred_settlement_speed: NotRequired[
"Literal['']|Literal['fastest', 'standard']"
]
"""
Preferred transaction settlement speed
"""


class PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections(
Expand Down
6 changes: 0 additions & 6 deletions stripe/params/_payment_intent_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -6574,12 +6574,6 @@ class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccount(TypedDict):
"""
Bank account verification method.
"""
preferred_settlement_speed: NotRequired[
"Literal['']|Literal['fastest', 'standard']"
]
"""
Preferred transaction settlement speed
"""


class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections(
Expand Down
6 changes: 0 additions & 6 deletions stripe/params/_payment_intent_modify_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -6422,12 +6422,6 @@ class PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccount(TypedDict):
"""
Bank account verification method.
"""
preferred_settlement_speed: NotRequired[
"Literal['']|Literal['fastest', 'standard']"
]
"""
Preferred transaction settlement speed
"""


class PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections(
Expand Down
6 changes: 0 additions & 6 deletions stripe/params/_payment_intent_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -6421,12 +6421,6 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccount(TypedDict):
"""
Bank account verification method.
"""
preferred_settlement_speed: NotRequired[
"Literal['']|Literal['fastest', 'standard']"
]
"""
Preferred transaction settlement speed
"""


class PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections(
Expand Down
10 changes: 0 additions & 10 deletions stripe/params/v2/billing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,14 +334,12 @@
ServiceActionCreateParamsCreditGrant as ServiceActionCreateParamsCreditGrant,
ServiceActionCreateParamsCreditGrantAmount as ServiceActionCreateParamsCreditGrantAmount,
ServiceActionCreateParamsCreditGrantAmountCustomPricingUnit as ServiceActionCreateParamsCreditGrantAmountCustomPricingUnit,
ServiceActionCreateParamsCreditGrantAmountMonetary as ServiceActionCreateParamsCreditGrantAmountMonetary,
ServiceActionCreateParamsCreditGrantApplicabilityConfig as ServiceActionCreateParamsCreditGrantApplicabilityConfig,
ServiceActionCreateParamsCreditGrantApplicabilityConfigScope as ServiceActionCreateParamsCreditGrantApplicabilityConfigScope,
ServiceActionCreateParamsCreditGrantExpiryConfig as ServiceActionCreateParamsCreditGrantExpiryConfig,
ServiceActionCreateParamsCreditGrantPerTenant as ServiceActionCreateParamsCreditGrantPerTenant,
ServiceActionCreateParamsCreditGrantPerTenantAmount as ServiceActionCreateParamsCreditGrantPerTenantAmount,
ServiceActionCreateParamsCreditGrantPerTenantAmountCustomPricingUnit as ServiceActionCreateParamsCreditGrantPerTenantAmountCustomPricingUnit,
ServiceActionCreateParamsCreditGrantPerTenantAmountMonetary as ServiceActionCreateParamsCreditGrantPerTenantAmountMonetary,
ServiceActionCreateParamsCreditGrantPerTenantApplicabilityConfig as ServiceActionCreateParamsCreditGrantPerTenantApplicabilityConfig,
ServiceActionCreateParamsCreditGrantPerTenantApplicabilityConfigScope as ServiceActionCreateParamsCreditGrantPerTenantApplicabilityConfigScope,
ServiceActionCreateParamsCreditGrantPerTenantExpiryConfig as ServiceActionCreateParamsCreditGrantPerTenantExpiryConfig,
Expand Down Expand Up @@ -1131,10 +1129,6 @@
"stripe.params.v2.billing._service_action_create_params",
False,
),
"ServiceActionCreateParamsCreditGrantAmountMonetary": (
"stripe.params.v2.billing._service_action_create_params",
False,
),
"ServiceActionCreateParamsCreditGrantApplicabilityConfig": (
"stripe.params.v2.billing._service_action_create_params",
False,
Expand All @@ -1159,10 +1153,6 @@
"stripe.params.v2.billing._service_action_create_params",
False,
),
"ServiceActionCreateParamsCreditGrantPerTenantAmountMonetary": (
"stripe.params.v2.billing._service_action_create_params",
False,
),
"ServiceActionCreateParamsCreditGrantPerTenantApplicabilityConfig": (
"stripe.params.v2.billing._service_action_create_params",
False,
Expand Down
Loading
Loading