8000 Merge python-beta by jar-stripe · Pull Request #1467 · stripe/stripe-python · GitHub
[go: up one dir, main page]

Skip to content

Merge python-beta #1467

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

Merged
merged 8 commits into from
Mar 7, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
regen from beta spec
  • Loading branch information
jar-stripe committed Mar 7, 2025
commit d982adcaf3c6e7aa02c6f8cf68a464dc3b6375fd
4 changes: 2 additions & 2 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -3563,7 +3563,7 @@ class CreatePersonParams(RequestOptions):
"""
The person's phone number.
"""
political_exposure: NotRequired[Literal["existing", "none"]]
political_exposure: NotRequired[str]
"""
Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
"""
Expand Down Expand Up @@ -4152,7 +4152,7 @@ class ModifyPersonParams(RequestOptions):
"""
The person's phone number.
"""
political_exposure: NotRequired[Literal["existing", "none"]]
political_exposure: NotRequired[str]
"""
Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
"""
Expand Down
4 changes: 2 additions & 2 deletions stripe/_account_person_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class CreateParams(TypedDict):
"""
The person's phone number.
"""
political_exposure: NotRequired[Literal["existing", "none"]]
political_exposure: NotRequired[str]
"""
Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
"""
Expand Down Expand Up @@ -546,7 +546,7 @@ class UpdateParams(TypedDict):
"""
The person's phone number.
"""
political_exposure: NotRequired[Literal["existing", "none"]]
political_exposure: NotRequired[str]
"""
Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/_api_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
class _ApiVersion:
CURRENT = "2025-02-24.acacia"
CURRENT = "2025-01-27.acacia"
2 changes: 1 addition & 1 deletion stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -2026,7 +2026,7 @@ class Zip(StripeObject):
twint: Optional[Twint]
type: str
"""
The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type) for the full list of possible types.
The type of transaction-specific details of the payment method used in the payment, one of `ach_credit_transfer`, `ach_debit`, `acss_debit`, `alipay`, `au_becs_debit`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `klarna`, `multibanco`, `p24`, `sepa_debit`, `sofort`, `stripe_account`, or `wechat`.
An additional hash is included on `payment_method_details` with a name matching this value.
It contains information specific to the payment method.
"""
Expand Down
88 changes: 4 additions & 84 deletions stripe/_payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1705,10 +1705,6 @@ class MandateOptions(StripeObject):

When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
"""
target_date: Optional[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""
verification_method: Optional[
Literal["automatic", "instant", "microdeposits"]
]
Expand Down Expand Up @@ -1805,10 +1801,6 @@ class AuBecsDebit(StripeObject):

When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
"""
target_date: Optional[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""

class BacsDebit(StripeObject):
class MandateOptions(StripeObject):
Expand All @@ -1830,10 +1822,6 @@ class MandateOptions(StripeObject):

When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
"""
target_date: Optional[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""
_inner_class_types = {"mandate_options": MandateOptions}

class Bancontact(StripeObject):
Expand Down Expand Up @@ -2727,10 +2715,6 @@ class MandateOptions(StripeObject):

When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
"""
target_date: Optional[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""
_inner_class_types = {"mandate_options": MandateOptions}

class Shopeepay(StripeObject):
Expand Down Expand Up @@ -2874,10 +2858,6 @@ class MandateOptions(StripeObject):

When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
"""
target_date: Optional[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""
verification_method: Optional[
Literal["automatic", "instant", "microdeposits"]
]
Expand Down Expand Up @@ -3103,13 +3083,13 @@ class Address(StripeObject):
class TransferData(StripeObject):
amount: Optional[int]
"""
The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account.
The amount must be less than or equal to the [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer
representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00).
Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
"""
destination: ExpandableField["Account"]
"""
The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success.
The account (if any) that the payment is attributed to for tax
reporting, and where funds from the payment are transferred to after
payment success.
"""

class ApplyCustomerBalanceParams(RequestOptions):
Expand Down Expand Up @@ -5820,10 +5800,6 @@ class ConfirmParamsPaymentMethodOptionsAcssDebit(TypedDict):

If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
target_date: NotRequired[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""
verification_method: NotRequired[
Literal["automatic", "instant", "microdeposits"]
]
Expand Down Expand Up @@ -5969,10 +5945,6 @@ class ConfirmParamsPaymentMethodOptionsAuBecsDebit(TypedDict):

If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
target_date: NotRequired[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""

class ConfirmParamsPaymentMethodOptionsBacsDebit(TypedDict):
mandate_options: NotRequired[
Expand All @@ -5995,10 +5967,6 @@ class ConfirmParamsPaymentMethodOptionsBacsDebit(TypedDict):

If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
target_date: NotRequired[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""

class ConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions(TypedDict):
reference_prefix: NotRequired["Literal['']|str"]
Expand Down Expand Up @@ -7209,10 +7177,6 @@ class ConfirmParamsPaymentMethodOptionsSepaDebit(TypedDict):

If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
target_date: NotRequired[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""

class ConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions(TypedDict):
reference_prefix: NotRequired["Literal['']|str"]
Expand Down Expand Up @@ -7327,10 +7291,6 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccount(TypedDict):

If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
target_date: NotRequired[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""
verification_method: NotRequired[
Literal["automatic", "instant", "microdeposits"]
]
Expand Down Expand Up @@ -9527,10 +9487,6 @@ class CreateParamsPaymentMethodOptionsAcssDebit(TypedDict):

If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
target_date: NotRequired[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""
verification_method: NotRequired[
Literal["automatic", "instant", "microdeposits"]
]
Expand Down Expand Up @@ -9676,10 +9632,6 @@ class CreateParamsPaymentMethodOptionsAuBecsDebit(TypedDict):

If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
target_date: NotRequired[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""

class CreateParamsPaymentMethodOptionsBacsDebit(TypedDict):
mandate_options: NotRequired[
Expand All @@ -9702,10 +9654,6 @@ class CreateParamsPaymentMethodOptionsBacsDebit(TypedDict):

If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
target_date: NotRequired[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""

class CreateParamsPaymentMethodOptionsBacsDebitMandateOptions(TypedDict):
reference_prefix: NotRequired["Literal['']|str"]
Expand Down Expand Up @@ -10916,10 +10864,6 @@ class CreateParamsPaymentMethodOptionsSepaDebit(TypedDict):

If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
target_date: NotRequired[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""

class CreateParamsPaymentMethodOptionsSepaDebitMandateOptions(TypedDict):
reference_prefix: NotRequired["Literal['']|str"]
Expand Down Expand Up @@ -11034,10 +10978,6 @@ class CreateParamsPaymentMethodOptionsUsBankAccount(TypedDict):

If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
target_date: NotRequired[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""
verification_method: NotRequired[
Literal["automatic", "instant", "microdeposits"]
]
Expand Down Expand Up @@ -13366,10 +13306,6 @@ class ModifyParamsPaymentMethodOptionsAcssDebit(TypedDict):

If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
target_date: NotRequired[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""
verification_method: NotRequired[
Literal["automatic", "instant", "microdeposits"]
]
Expand Down Expand Up @@ -13515,10 +13451,6 @@ class ModifyParamsPaymentMethodOptionsAuBecsDebit(TypedDict):

If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
target_date: NotRequired[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""

class ModifyParamsPaymentMethodOptionsBacsDebit(TypedDict):
mandate_options: NotRequired[
Expand All @@ -13541,10 +13473,6 @@ class ModifyParamsPaymentMethodOptionsBacsDebit(TypedDict):
BC4D
If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
target_date: NotRequired[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""

class ModifyParamsPaymentMethodOptionsBacsDebitMandateOptions(TypedDict):
reference_prefix: NotRequired["Literal['']|str"]
Expand Down Expand Up @@ -14755,10 +14683,6 @@ class ModifyParamsPaymentMethodOptionsSepaDebit(TypedDict):

If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
target_date: NotRequired[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""

class ModifyParamsPaymentMethodOptionsSepaDebitMandateOptions(TypedDict):
reference_prefix: NotRequired["Literal['']|str"]
Expand Down Expand Up @@ -14873,10 +14797,6 @@ class ModifyParamsPaymentMethodOptionsUsBankAccount(TypedDict):

If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
target_date: NotRequired[str]
"""
Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
"""
verification_method: NotRequired[
Literal["automatic", "instant", "microdeposits"]
]
Expand Down
Loading
Loading
0