Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code for beta #1151

Closed
wants to merge 3 commits into from
Closed
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 OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v691
v704
5 changes: 5 additions & 0 deletions stripe/_account_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,15 @@ class AccountSession(CreateableAPIResource["AccountSession"]):

class Components(StripeObject):
class AccountOnboarding(StripeObject):
class Features(StripeObject):
pass

enabled: bool
"""
Whether the embedded component is enabled.
"""
features: Features
_inner_class_types = {"features": Features}

class PaymentDetails(StripeObject):
class Features(StripeObject):
Expand Down
6 changes: 4 additions & 2 deletions stripe/_balance_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class ListParams(RequestOptions):
"""
type: NotRequired["str"]
"""
Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_inbound`, `obligation_outbound`, `obligation_reversal_inbound`, `obligation_reversal_outbound`, `obligation_payout`, `obligation_payout_failure`, `payment`, `payment_failure_refund`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_inbound`, `obligation_outbound`, `obligation_reversal_inbound`, `obligation_reversal_outbound`, `obligation_payout`, `obligation_payout_failure`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
"""

class ListParamsCreated(TypedDict):
Expand Down Expand Up @@ -231,6 +231,8 @@ class RetrieveParams(RequestOptions):
"obligation_reversal_outbound",
"payment",
"payment_failure_refund",
"payment_network_reserve_hold",
"payment_network_reserve_release",
"payment_refund",
"payment_reversal",
"payment_unreconciled",
Expand All @@ -252,7 +254,7 @@ class RetrieveParams(RequestOptions):
"transfer_refund",
]
"""
Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_inbound`, `obligation_outbound`, `obligation_reversal_inbound`, `obligation_reversal_outbound`, `obligation_payout`, `obligation_payout_failure`, `payment`, `payment_failure_refund`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_inbound`, `obligation_outbound`, `obligation_reversal_inbound`, `obligation_reversal_outbound`, `obligation_payout`, `obligation_payout_failure`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
"""

@classmethod
Expand Down
36 changes: 20 additions & 16 deletions stripe/_customer_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,21 @@ class CustomerSession(CreateableAPIResource["CustomerSession"]):
class Components(StripeObject):
class PaymentElement(StripeObject):
class Features(StripeObject):
payment_method_detach: Literal["auto", "never"]
payment_method_remove: Literal["auto", "never"]
"""
Whether the payment element supports detaching payment methods.
Controls whether the Payment Element allows the removal of a saved payment method.
"""
payment_method_set_as_customer_default: Literal[
"auto", "never"
]
payment_method_save: Literal["auto", "never"]
"""
Whether the payment element supports setting payment methods as the customer's default.
Controls whether the Payment Element offers to save a new payment method.
"""
payment_method_set_as_default: Literal["auto", "never"]
"""
Controls whether the Payment Element offers to set a payment method as the default.
"""
payment_method_update: Literal["auto", "never"]
"""
Whether the payment element supports updating payment methods.
Controls whether the Payment Element allows the updating of a saved payment method.
"""

enabled: bool
Expand All @@ -49,7 +51,7 @@ class Features(StripeObject):
"""
features: Optional[Features]
"""
This hash contains the features the Payment Element supports.
This hash defines whether the payment element supports certain features.
"""
_inner_class_types = {"features": Features}

Expand Down Expand Up @@ -103,7 +105,7 @@ class CreateParamsComponents(TypedDict):
class CreateParamsComponentsPricingTable(TypedDict):
enabled: bool
"""
Whether pricing table is enabled.
Whether the pricing table is enabled.
"""

class CreateParamsComponentsPaymentElement(TypedDict):
Expand All @@ -119,19 +121,21 @@ class CreateParamsComponentsPaymentElement(TypedDict):
"""

class CreateParamsComponentsPaymentElementFeatures(TypedDict):
payment_method_detach: NotRequired["Literal['auto', 'never']"]
payment_method_remove: NotRequired["Literal['auto', 'never']"]
"""
Whether the payment element supports detaching a payment method.
Controls whether the Payment Element allows the removal of a saved payment method.
"""
payment_method_set_as_customer_default: NotRequired[
"Literal['auto', 'never']"
]
payment_method_save: NotRequired["Literal['auto', 'never']"]
"""
Controls whether the Payment Element offers to save a new payment method.
"""
payment_method_set_as_default: NotRequired["Literal['auto', 'never']"]
"""
Whether the payment element supports setting a payment method as the customer's default.
Controls whether the Payment Element offers to set a payment method as the default.
"""
payment_method_update: NotRequired["Literal['auto', 'never']"]
"""
Whether the payment element supports updating a payment method.
Controls whether the Payment Element allows the updating of a saved payment method.
"""

client_secret: str
Expand Down
2 changes: 2 additions & 0 deletions stripe/_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,12 @@ class LastFinalizationError(StripeObject):
"coupon_expired",
"customer_max_payment_methods",
"customer_max_subscriptions",
"customer_tax_location_invalid",
"debit_not_authorized",
"email_invalid",
"expired_card",
"financial_connections_account_inactive",
"financial_connections_no_successful_transaction_refresh",
"gift_card_balance_insufficient",
"gift_card_code_exists",
"gift_card_inactive",
Expand Down
14 changes: 7 additions & 7 deletions stripe/_payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,12 @@ class LastPaymentError(StripeObject):
"coupon_expired",
"customer_max_payment_methods",
"customer_max_subscriptions",
"customer_tax_location_invalid",
"debit_not_authorized",
"email_invalid",
"expired_card",
"financial_connections_account_inactive",
"financial_connections_no_successful_transaction_refresh",
"gift_card_balance_insufficient",
"gift_card_code_exists",
"gift_card_inactive",
Expand Down Expand Up @@ -1532,11 +1534,9 @@ class Address(StripeObject):
"""
Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
"""
request_three_d_secure: Optional[
Literal["any", "automatic", "challenge", "challenge_only"]
]
request_three_d_secure: Optional[Literal["any", "automatic"]]
"""
We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Permitted values include: `automatic` or `any`. If not provided, defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
"""
setup_future_usage: Optional[
Literal["none", "off_session", "on_session"]
Expand Down Expand Up @@ -3782,7 +3782,7 @@ class ConfirmParamsPaymentMethodOptionsCard(TypedDict):
"""
request_three_d_secure: NotRequired["Literal['any', 'automatic']"]
"""
We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Permitted values include: `automatic` or `any`. If not provided, defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
"""
setup_future_usage: NotRequired[
"Literal['']|Literal['none', 'off_session', 'on_session']"
Expand Down Expand Up @@ -6397,7 +6397,7 @@ class CreateParamsPaymentMethodOptionsCard(TypedDict):
"""
request_three_d_secure: NotRequired["Literal['any', 'automatic']"]
"""
We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Permitted values include: `automatic` or `any`. If not provided, defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
"""
setup_future_usage: NotRequired[
"Literal['']|Literal['none', 'off_session', 'on_session']"
Expand Down Expand Up @@ -9008,7 +9008,7 @@ class ModifyParamsPaymentMethodOptionsCard(TypedDict):
"""
request_three_d_secure: NotRequired["Literal['any', 'automatic']"]
"""
We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Permitted values include: `automatic` or `any`. If not provided, defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
"""
setup_future_usage: NotRequired[
"Literal['']|Literal['none', 'off_session', 'on_session']"
Expand Down
Loading
Loading