diff --git a/API_VERSION b/API_VERSION index b059a5991..506096245 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -7684500f9744e3dbcd9b4b87db96f2e919c105aa +441c0fcde75bcbf836f1a1810d5b9cfe8e8a7da4 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 82b84d57f..81ad24fd4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2110 +v2116 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index b68e8a3b5..45efe0b9f 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -1414,7 +1414,7 @@ class Invoices(StripeObject): Literal["always", "never", "offer"] ] """ - Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page. + Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page. """ class Payments(StripeObject): diff --git a/stripe/_api_version.py b/stripe/_api_version.py index 786a27346..da2f6b5bd 100644 --- a/stripe/_api_version.py +++ b/stripe/_api_version.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec class _ApiVersion: - CURRENT = "2025-09-30.preview" + CURRENT = "2025-10-29.preview" diff --git a/stripe/_invoice.py b/stripe/_invoice.py index 5f31a991e..b1d6a62f1 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -1406,7 +1406,7 @@ class TaxRateDetails(StripeObject): * `subscription_cycle`: A subscription advanced into a new period. * `subscription_threshold`: A subscription reached a billing threshold. * `subscription_update`: A subscription was updated. - * `upcoming`: Reserved for upcoming invoices created through the Create Preview Invoice API or when an `invoice.upcoming` event is generated for an upcoming invoice on a subscription. + * `upcoming`: Reserved for simulated invoices, per the upcoming invoice endpoint. """ collection_method: Literal["charge_automatically", "send_invoice"] """ diff --git a/stripe/_object_classes.py b/stripe/_object_classes.py index 223de490a..45917a17a 100644 --- a/stripe/_object_classes.py +++ b/stripe/_object_classes.py @@ -587,10 +587,6 @@ "stripe.v2.reporting._report_run", "ReportRun", ), - "v2.tax.automatic_rule": ( - "stripe.v2.tax._automatic_rule", - "AutomaticRule", - ), # V2 Object classes: The end of the section generated from our OpenAPI spec } diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 8f9f797ff..c345c037f 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -2256,10 +2256,6 @@ class Routing(StripeObject): Requested routing priority """ - capture_method: Optional[Literal["manual", "manual_preferred"]] - """ - Controls when the funds will be captured from the customer's account. - """ request_extended_authorization: Optional[bool] """ Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) diff --git a/stripe/_person.py b/stripe/_person.py index 3b3608855..8d32badc2 100644 --- a/stripe/_person.py +++ b/stripe/_person.py @@ -504,6 +504,26 @@ class Error(StripeObject): """ _inner_class_types = {"alternatives": Alternative, "errors": Error} + class SelfReportedIncome(StripeObject): + amount: int + """ + Amount in the minor currency unit (e.g., cents for USD) + """ + 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). + """ + + class SelfReportedMonthlyHousingPayment(StripeObject): + amount: int + """ + Amount in the minor currency unit (e.g., cents for USD) + """ + 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). + """ + class UsCfpbData(StripeObject): class EthnicityDetails(StripeObject): ethnicity: Optional[ @@ -747,6 +767,10 @@ class Document(StripeObject): """ Information about the requirements for this person, including what information needs to be collected, and by when. """ + self_reported_income: Optional[SelfReportedIncome] + self_reported_monthly_housing_payment: Optional[ + SelfReportedMonthlyHousingPayment + ] ssn_last_4_provided: Optional[bool] """ Whether the last four digits of the person's Social Security number have been provided (U.S. only). @@ -792,6 +816,8 @@ def retrieve(cls, id, **params): "registered_address": RegisteredAddress, "relationship": Relationship, "requirements": Requirements, + "self_reported_income": SelfReportedIncome, + "self_reported_monthly_housing_payment": SelfReportedMonthlyHousingPayment, "us_cfpb_data": UsCfpbData, "verification": Verification, } diff --git a/stripe/_quote.py b/stripe/_quote.py index df1e94337..cff2bd0ad 100644 --- a/stripe/_quote.py +++ b/stripe/_quote.py @@ -19,6 +19,7 @@ from stripe._invoice import Invoice from stripe._invoice_line_item import InvoiceLineItem from stripe._line_item import LineItem + from stripe._price import Price from stripe._quote_line import QuoteLine from stripe._quote_preview_invoice import QuotePreviewInvoice from stripe._quote_preview_subscription_schedule import ( @@ -616,6 +617,160 @@ class Flexible(StripeObject): """ _inner_class_types = {"flexible": Flexible} + class BillingSchedule(StripeObject): + class AppliesTo(StripeObject): + price: Optional[ExpandableField["Price"]] + """ + The billing schedule will apply to the subscription item with the given price ID. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + class BillFrom(StripeObject): + class AmendmentStart(StripeObject): + index: int + """ + Use an index to specify the position of an amendment to start prebilling with. + """ + + class LineStartsAt(StripeObject): + id: str + """ + Unique identifier for the object. + """ + + class Relative(StripeObject): + interval: Literal["day", "month", "week", "year"] + """ + Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`. + """ + interval_count: Optional[int] + """ + The multiplier applied to the interval. + """ + + amendment_start: Optional[AmendmentStart] + """ + Use an index to specify the position of an amendment to start prebilling with. + """ + computed_timestamp: Optional[int] + """ + The time the billing schedule applies from. + """ + line_starts_at: Optional[LineStartsAt] + """ + Lets you bill the period starting from a particular Quote line. + """ + relative: Optional[Relative] + """ + Timestamp is calculated from the request time. + """ + timestamp: Optional[int] + """ + Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. + """ + type: Literal[ + "amendment_start", + "line_starts_at", + "now", + "pause_collection_start", + "quote_acceptance_date", + "relative", + "timestamp", + ] + """ + Describes how the billing schedule determines the start date. Possible values are `timestamp`, `relative`, `amendment_start`, `now`, `quote_acceptance_date`, `line_starts_at`, or `pause_collection_start`. + """ + _inner_class_types = { + "amendment_start": AmendmentStart, + "line_starts_at": LineStartsAt, + "relative": Relative, + } + + class BillUntil(StripeObject): + class AmendmentEnd(StripeObject): + index: int + """ + Use an index to specify the position of an amendment to end prebilling with. + """ + + class Duration(StripeObject): + interval: Literal["day", "month", "week", "year"] + """ + Specifies billing duration. Either `day`, `week`, `month` or `year`. + """ + interval_count: Optional[int] + """ + The multiplier applied to the interval. + """ + + class LineEndsAt(StripeObject): + id: str + """ + Unique identifier for the object. + """ + + amendment_end: Optional[AmendmentEnd] + """ + Use an index to specify the position of an amendment to end prebilling with. + """ + computed_timestamp: int + """ + The timestamp the billing schedule will apply until. + """ + duration: Optional[Duration] + """ + Specifies the billing period. + """ + line_ends_at: Optional[LineEndsAt] + """ + Lets you bill the period ending at a particular Quote line. + """ + timestamp: Optional[int] + """ + If specified, the billing schedule will apply until the specified timestamp. + """ + type: Literal[ + "amendment_end", + "duration", + "line_ends_at", + "schedule_end", + "timestamp", + "upcoming_invoice", + ] + """ + Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + """ + _inner_class_types = { + "amendment_end": AmendmentEnd, + "duration": Duration, + "line_ends_at": LineEndsAt, + } + + applies_to: Optional[List[AppliesTo]] + """ + Specifies which subscription items the billing schedule applies to. + """ + bill_from: Optional[BillFrom] + """ + Specifies the start of the billing period. + """ + bill_until: BillUntil + """ + Specifies the billing period. + """ + key: str + """ + Unique identifier for the billing schedule. + """ + _inner_class_types = { + "applies_to": AppliesTo, + "bill_from": BillFrom, + "bill_until": BillUntil, + } + class Prebilling(StripeObject): iterations: int @@ -637,6 +792,10 @@ class Prebilling(StripeObject): """ The billing mode of the quote. """ + billing_schedules: Optional[List[BillingSchedule]] + """ + Billing schedules that will be applied to the subscription or subscription schedule created from this quote. + """ description: Optional[str] """ The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. @@ -657,6 +816,12 @@ class Prebilling(StripeObject): """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values. """ + phase_effective_at: Optional[ + Literal["billing_period_start", "phase_start"] + ] + """ + Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + """ prebilling: Optional[Prebilling] """ If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`. @@ -674,6 +839,7 @@ class Prebilling(StripeObject): _inner_class_types = { "bill_on_acceptance": BillOnAcceptance, "billing_mode": BillingMode, + "billing_schedules": BillingSchedule, "prebilling": Prebilling, } @@ -785,6 +951,160 @@ class LineEndsAt(StripeObject): "bill_until": BillUntil, } + class BillingSchedule(StripeObject): + class AppliesTo(StripeObject): + price: Optional[ExpandableField["Price"]] + """ + The billing schedule will apply to the subscription item with the given price ID. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + class BillFrom(StripeObject): + class AmendmentStart(StripeObject): + index: int + """ + Use an index to specify the position of an amendment to start prebilling with. + """ + + class LineStartsAt(StripeObject): + id: str + """ + Unique identifier for the object. + """ + + class Relative(StripeObject): + interval: Literal["day", "month", "week", "year"] + """ + Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`. + """ + interval_count: Optional[int] + """ + The multiplier applied to the interval. + """ + + amendment_start: Optional[AmendmentStart] + """ + Use an index to specify the position of an amendment to start prebilling with. + """ + computed_timestamp: Optional[int] + """ + The time the billing schedule applies from. + """ + line_starts_at: Optional[LineStartsAt] + """ + Lets you bill the period starting from a particular Quote line. + """ + relative: Optional[Relative] + """ + Timestamp is calculated from the request time. + """ + timestamp: Optional[int] + """ + Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. + """ + type: Literal[ + "amendment_start", + "line_starts_at", + "now", + "pause_collection_start", + "quote_acceptance_date", + "relative", + "timestamp", + ] + """ + Describes how the billing schedule determines the start date. Possible values are `timestamp`, `relative`, `amendment_start`, `now`, `quote_acceptance_date`, `line_starts_at`, or `pause_collection_start`. + """ + _inner_class_types = { + "amendment_start": AmendmentStart, + "line_starts_at": LineStartsAt, + "relative": Relative, + } + + class BillUntil(StripeObject): + class AmendmentEnd(StripeObject): + index: int + """ + Use an index to specify the position of an amendment to end prebilling with. + """ + + class Duration(StripeObject): + interval: Literal["day", "month", "week", "year"] + """ + Specifies billing duration. Either `day`, `week`, `month` or `year`. + """ + interval_count: Optional[int] + """ + The multiplier applied to the interval. + """ + + class LineEndsAt(StripeObject): + id: str + """ + Unique identifier for the object. + """ + + amendment_end: Optional[AmendmentEnd] + """ + Use an index to specify the position of an amendment to end prebilling with. + """ + computed_timestamp: int + """ + The timestamp the billing schedule will apply until. + """ + duration: Optional[Duration] + """ + Specifies the billing period. + """ + line_ends_at: Optional[LineEndsAt] + """ + Lets you bill the period ending at a particular Quote line. + """ + timestamp: Optional[int] + """ + If specified, the billing schedule will apply until the specified timestamp. + """ + type: Literal[ + "amendment_end", + "duration", + "line_ends_at", + "schedule_end", + "timestamp", + "upcoming_invoice", + ] + """ + Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + """ + _inner_class_types = { + "amendment_end": AmendmentEnd, + "duration": Duration, + "line_ends_at": LineEndsAt, + } + + applies_to: Optional[List[AppliesTo]] + """ + Specifies which subscription items the billing schedule applies to. + """ + bill_from: Optional[BillFrom] + """ + Specifies the start of the billing period. + """ + bill_until: BillUntil + """ + Specifies the billing period. + """ + key: str + """ + Unique identifier for the billing schedule. + """ + _inner_class_types = { + "applies_to": AppliesTo, + "bill_from": BillFrom, + "bill_until": BillUntil, + } + applies_to: AppliesTo bill_on_acceptance: Optional[BillOnAcceptance] """ @@ -796,6 +1116,10 @@ class LineEndsAt(StripeObject): """ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front. """ + billing_schedules: Optional[List[BillingSchedule]] + """ + Billing schedules that will be applied to the subscription or subscription schedule created from this quote. + """ customer: Optional[str] """ The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed. @@ -808,6 +1132,12 @@ class LineEndsAt(StripeObject): """ Behavior of the subscription schedule and underlying subscription when it ends. """ + phase_effective_at: Optional[ + Literal["billing_period_start", "phase_start"] + ] + """ + Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + """ proration_behavior: Optional[ Literal["always_invoice", "create_prorations", "none"] ] @@ -817,6 +1147,7 @@ class LineEndsAt(StripeObject): _inner_class_types = { "applies_to": AppliesTo, "bill_on_acceptance": BillOnAcceptance, + "billing_schedules": BillingSchedule, } class SubscriptionSchedule(StripeObject): diff --git a/stripe/_subscription.py b/stripe/_subscription.py index e1c585633..227216e93 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -164,7 +164,74 @@ class AppliesTo(StripeObject): Controls which subscription items the billing schedule applies to. """ + class BillFrom(StripeObject): + class AmendmentStart(StripeObject): + index: int + """ + Use an index to specify the position of an amendment to start prebilling with. + """ + + class LineStartsAt(StripeObject): + id: str + """ + Unique identifier for the object. + """ + + class Relative(StripeObject): + interval: Literal["day", "month", "week", "year"] + """ + Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`. + """ + interval_count: Optional[int] + """ + The multiplier applied to the interval. + """ + + amendment_start: Optional[AmendmentStart] + """ + Use an index to specify the position of an amendment to start prebilling with. + """ + computed_timestamp: Optional[int] + """ + The time the billing schedule applies from. + """ + line_starts_at: Optional[LineStartsAt] + """ + Lets you bill the period starting from a particular Quote line. + """ + relative: Optional[Relative] + """ + Timestamp is calculated from the request time. + """ + timestamp: Optional[int] + """ + Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. + """ + type: Literal[ + "amendment_start", + "line_starts_at", + "now", + "pause_collection_start", + "quote_acceptance_date", + "relative", + "timestamp", + ] + """ + Describes how the billing schedule determines the start date. Possible values are `timestamp`, `relative`, `amendment_start`, `now`, `quote_acceptance_date`, `line_starts_at`, or `pause_collection_start`. + """ + _inner_class_types = { + "amendment_start": AmendmentStart, + "line_starts_at": LineStartsAt, + "relative": Relative, + } + class BillUntil(StripeObject): + class AmendmentEnd(StripeObject): + index: int + """ + Use an index to specify the position of an amendment to end prebilling with. + """ + class Duration(StripeObject): interval: Literal["day", "month", "week", "year"] """ @@ -175,6 +242,16 @@ class Duration(StripeObject): The multiplier applied to the interval. """ + class LineEndsAt(StripeObject): + id: str + """ + Unique identifier for the object. + """ + + amendment_end: Optional[AmendmentEnd] + """ + Use an index to specify the position of an amendment to end prebilling with. + """ computed_timestamp: int """ The timestamp the billing schedule will apply until. @@ -183,20 +260,39 @@ class Duration(StripeObject): """ Specifies the billing period. """ + line_ends_at: Optional[LineEndsAt] + """ + Lets you bill the period ending at a particular Quote line. + """ timestamp: Optional[int] """ If specified, the billing schedule will apply until the specified timestamp. """ - type: Literal["duration", "timestamp"] + type: Literal[ + "amendment_end", + "duration", + "line_ends_at", + "schedule_end", + "timestamp", + "upcoming_invoice", + ] """ Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. """ - _inner_class_types = {"duration": Duration} + _inner_class_types = { + "amendment_end": AmendmentEnd, + "duration": Duration, + "line_ends_at": LineEndsAt, + } applies_to: Optional[List[AppliesTo]] """ Specifies which subscription items the billing schedule applies to. """ + bill_from: Optional[BillFrom] + """ + Specifies the start of the billing period. + """ bill_until: BillUntil """ Specifies the billing period. @@ -205,7 +301,11 @@ class Duration(StripeObject): """ Unique identifier for the billing schedule. """ - _inner_class_types = {"applies_to": AppliesTo, "bill_until": BillUntil} + _inner_class_types = { + "applies_to": AppliesTo, + "bill_from": BillFrom, + "bill_until": BillUntil, + } class BillingThresholds(StripeObject): amount_gte: Optional[int] diff --git a/stripe/_v2_services.py b/stripe/_v2_services.py index a2cb185ad..132065de0 100644 --- a/stripe/_v2_services.py +++ b/stripe/_v2_services.py @@ -10,7 +10,6 @@ from stripe.v2._money_management_service import MoneyManagementService from stripe.v2._payment_service import PaymentService from stripe.v2._reporting_service import ReportingService - from stripe.v2._tax_service import TaxService from stripe.v2._test_helper_service import TestHelperService _subservices = { @@ -22,7 +21,6 @@ ], "payments": ["stripe.v2._payment_service", "PaymentService"], "reporting": ["stripe.v2._reporting_service", "ReportingService"], - "tax": ["stripe.v2._tax_service", "TaxService"], "test_helpers": ["stripe.v2._test_helper_service", "TestHelperService"], } @@ -33,7 +31,6 @@ class V2Services(StripeService): money_management: "MoneyManagementService" payments: "PaymentService" reporting: "ReportingService" - tax: "TaxService" test_helpers: "TestHelperService" def __init__(self, requestor): diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py index fdb5b99ed..3b3a6089b 100644 --- a/stripe/params/__init__.py +++ b/stripe/params/__init__.py @@ -162,6 +162,8 @@ AccountCreateParamsIndividualDob as AccountCreateParamsIndividualDob, AccountCreateParamsIndividualRegisteredAddress as AccountCreateParamsIndividualRegisteredAddress, AccountCreateParamsIndividualRelationship as AccountCreateParamsIndividualRelationship, + AccountCreateParamsIndividualSelfReportedIncome as AccountCreateParamsIndividualSelfReportedIncome, + AccountCreateParamsIndividualSelfReportedMonthlyHousingPayment as AccountCreateParamsIndividualSelfReportedMonthlyHousingPayment, AccountCreateParamsIndividualVerification as AccountCreateParamsIndividualVerification, AccountCreateParamsIndividualVerificationAdditionalDocument as AccountCreateParamsIndividualVerificationAdditionalDocument, AccountCreateParamsIndividualVerificationDocument as AccountCreateParamsIndividualVerificationDocument, @@ -200,6 +202,8 @@ AccountCreatePersonParamsDocumentsVisa as AccountCreatePersonParamsDocumentsVisa, AccountCreatePersonParamsRegisteredAddress as AccountCreatePersonParamsRegisteredAddress, AccountCreatePersonParamsRelationship as AccountCreatePersonParamsRelationship, + AccountCreatePersonParamsSelfReportedIncome as AccountCreatePersonParamsSelfReportedIncome, + AccountCreatePersonParamsSelfReportedMonthlyHousingPayment as AccountCreatePersonParamsSelfReportedMonthlyHousingPayment, AccountCreatePersonParamsUsCfpbData as AccountCreatePersonParamsUsCfpbData, AccountCreatePersonParamsUsCfpbDataEthnicityDetails as AccountCreatePersonParamsUsCfpbDataEthnicityDetails, AccountCreatePersonParamsUsCfpbDataRaceDetails as AccountCreatePersonParamsUsCfpbDataRaceDetails, @@ -279,6 +283,8 @@ AccountModifyPersonParamsDocumentsVisa as AccountModifyPersonParamsDocumentsVisa, AccountModifyPersonParamsRegisteredAddress as AccountModifyPersonParamsRegisteredAddress, AccountModifyPersonParamsRelationship as AccountModifyPersonParamsRelationship, + AccountModifyPersonParamsSelfReportedIncome as AccountModifyPersonParamsSelfReportedIncome, + AccountModifyPersonParamsSelfReportedMonthlyHousingPayment as AccountModifyPersonParamsSelfReportedMonthlyHousingPayment, AccountModifyPersonParamsUsCfpbData as AccountModifyPersonParamsUsCfpbData, AccountModifyPersonParamsUsCfpbDataEthnicityDetails as AccountModifyPersonParamsUsCfpbDataEthnicityDetails, AccountModifyPersonParamsUsCfpbDataRaceDetails as AccountModifyPersonParamsUsCfpbDataRaceDetails, @@ -314,6 +320,8 @@ AccountPersonCreateParamsDocumentsVisa as AccountPersonCreateParamsDocumentsVisa, AccountPersonCreateParamsRegisteredAddress as AccountPersonCreateParamsRegisteredAddress, AccountPersonCreateParamsRelationship as AccountPersonCreateParamsRelationship, + AccountPersonCreateParamsSelfReportedIncome as AccountPersonCreateParamsSelfReportedIncome, + AccountPersonCreateParamsSelfReportedMonthlyHousingPayment as AccountPersonCreateParamsSelfReportedMonthlyHousingPayment, AccountPersonCreateParamsUsCfpbData as AccountPersonCreateParamsUsCfpbData, AccountPersonCreateParamsUsCfpbDataEthnicityDetails as AccountPersonCreateParamsUsCfpbDataEthnicityDetails, AccountPersonCreateParamsUsCfpbDataRaceDetails as AccountPersonCreateParamsUsCfpbDataRaceDetails, @@ -345,6 +353,8 @@ AccountPersonUpdateParamsDocumentsVisa as AccountPersonUpdateParamsDocumentsVisa, AccountPersonUpdateParamsRegisteredAddress as AccountPersonUpdateParamsRegisteredAddress, AccountPersonUpdateParamsRelationship as AccountPersonUpdateParamsRelationship, + AccountPersonUpdateParamsSelfReportedIncome as AccountPersonUpdateParamsSelfReportedIncome, + AccountPersonUpdateParamsSelfReportedMonthlyHousingPayment as AccountPersonUpdateParamsSelfReportedMonthlyHousingPayment, AccountPersonUpdateParamsUsCfpbData as AccountPersonUpdateParamsUsCfpbData, AccountPersonUpdateParamsUsCfpbDataEthnicityDetails as AccountPersonUpdateParamsUsCfpbDataEthnicityDetails, AccountPersonUpdateParamsUsCfpbDataRaceDetails as AccountPersonUpdateParamsUsCfpbDataRaceDetails, @@ -552,6 +562,8 @@ AccountUpdateParamsIndividualDob as AccountUpdateParamsIndividualDob, AccountUpdateParamsIndividualRegisteredAddress as AccountUpdateParamsIndividualRegisteredAddress, AccountUpdateParamsIndividualRelationship as AccountUpdateParamsIndividualRelationship, + AccountUpdateParamsIndividualSelfReportedIncome as AccountUpdateParamsIndividualSelfReportedIncome, + AccountUpdateParamsIndividualSelfReportedMonthlyHousingPayment as AccountUpdateParamsIndividualSelfReportedMonthlyHousingPayment, AccountUpdateParamsIndividualVerification as AccountUpdateParamsIndividualVerification, AccountUpdateParamsIndividualVerificationAdditionalDocument as AccountUpdateParamsIndividualVerificationAdditionalDocument, AccountUpdateParamsIndividualVerificationDocument as AccountUpdateParamsIndividualVerificationDocument, @@ -3659,6 +3671,13 @@ QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt as QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt, QuoteCreateParamsSubscriptionDataBillingMode as QuoteCreateParamsSubscriptionDataBillingMode, QuoteCreateParamsSubscriptionDataBillingModeFlexible as QuoteCreateParamsSubscriptionDataBillingModeFlexible, + QuoteCreateParamsSubscriptionDataBillingSchedule as QuoteCreateParamsSubscriptionDataBillingSchedule, + QuoteCreateParamsSubscriptionDataBillingScheduleAppliesTo as QuoteCreateParamsSubscriptionDataBillingScheduleAppliesTo, + QuoteCreateParamsSubscriptionDataBillingScheduleBillFrom as QuoteCreateParamsSubscriptionDataBillingScheduleBillFrom, + QuoteCreateParamsSubscriptionDataBillingScheduleBillFromLineStartsAt as QuoteCreateParamsSubscriptionDataBillingScheduleBillFromLineStartsAt, + QuoteCreateParamsSubscriptionDataBillingScheduleBillUntil as QuoteCreateParamsSubscriptionDataBillingScheduleBillUntil, + QuoteCreateParamsSubscriptionDataBillingScheduleBillUntilDuration as QuoteCreateParamsSubscriptionDataBillingScheduleBillUntilDuration, + QuoteCreateParamsSubscriptionDataBillingScheduleBillUntilLineEndsAt as QuoteCreateParamsSubscriptionDataBillingScheduleBillUntilLineEndsAt, QuoteCreateParamsSubscriptionDataOverride as QuoteCreateParamsSubscriptionDataOverride, QuoteCreateParamsSubscriptionDataOverrideAppliesTo as QuoteCreateParamsSubscriptionDataOverrideAppliesTo, QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptance as QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptance, @@ -3667,6 +3686,13 @@ QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil as QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil, QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration as QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration, QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt as QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt, + QuoteCreateParamsSubscriptionDataOverrideBillingSchedule as QuoteCreateParamsSubscriptionDataOverrideBillingSchedule, + QuoteCreateParamsSubscriptionDataOverrideBillingScheduleAppliesTo as QuoteCreateParamsSubscriptionDataOverrideBillingScheduleAppliesTo, + QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillFrom as QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillFrom, + QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillFromLineStartsAt as QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillFromLineStartsAt, + QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillUntil as QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillUntil, + QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillUntilDuration as QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillUntilDuration, + QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillUntilLineEndsAt as QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillUntilLineEndsAt, QuoteCreateParamsSubscriptionDataPrebilling as QuoteCreateParamsSubscriptionDataPrebilling, QuoteCreateParamsTransferData as QuoteCreateParamsTransferData, ) @@ -3757,6 +3783,13 @@ QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntil as QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntil, QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntilDuration as QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntilDuration, QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt as QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt, + QuoteModifyParamsSubscriptionDataBillingSchedule as QuoteModifyParamsSubscriptionDataBillingSchedule, + QuoteModifyParamsSubscriptionDataBillingScheduleAppliesTo as QuoteModifyParamsSubscriptionDataBillingScheduleAppliesTo, + QuoteModifyParamsSubscriptionDataBillingScheduleBillFrom as QuoteModifyParamsSubscriptionDataBillingScheduleBillFrom, + QuoteModifyParamsSubscriptionDataBillingScheduleBillFromLineStartsAt as QuoteModifyParamsSubscriptionDataBillingScheduleBillFromLineStartsAt, + QuoteModifyParamsSubscriptionDataBillingScheduleBillUntil as QuoteModifyParamsSubscriptionDataBillingScheduleBillUntil, + QuoteModifyParamsSubscriptionDataBillingScheduleBillUntilDuration as QuoteModifyParamsSubscriptionDataBillingScheduleBillUntilDuration, + QuoteModifyParamsSubscriptionDataBillingScheduleBillUntilLineEndsAt as QuoteModifyParamsSubscriptionDataBillingScheduleBillUntilLineEndsAt, QuoteModifyParamsSubscriptionDataOverride as QuoteModifyParamsSubscriptionDataOverride, QuoteModifyParamsSubscriptionDataOverrideAppliesTo as QuoteModifyParamsSubscriptionDataOverrideAppliesTo, QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptance as QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptance, @@ -3765,6 +3798,13 @@ QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil as QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil, QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration as QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration, QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt as QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt, + QuoteModifyParamsSubscriptionDataOverrideBillingSchedule as QuoteModifyParamsSubscriptionDataOverrideBillingSchedule, + QuoteModifyParamsSubscriptionDataOverrideBillingScheduleAppliesTo as QuoteModifyParamsSubscriptionDataOverrideBillingScheduleAppliesTo, + QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillFrom as QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillFrom, + QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillFromLineStartsAt as QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillFromLineStartsAt, + QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillUntil as QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillUntil, + QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillUntilDuration as QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillUntilDuration, + QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillUntilLineEndsAt as QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillUntilLineEndsAt, QuoteModifyParamsSubscriptionDataPrebilling as QuoteModifyParamsSubscriptionDataPrebilling, QuoteModifyParamsTransferData as QuoteModifyParamsTransferData, ) @@ -3834,6 +3874,13 @@ QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntil as QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntil, QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntilDuration as QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntilDuration, QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt as QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt, + QuoteUpdateParamsSubscriptionDataBillingSchedule as QuoteUpdateParamsSubscriptionDataBillingSchedule, + QuoteUpdateParamsSubscriptionDataBillingScheduleAppliesTo as QuoteUpdateParamsSubscriptionDataBillingScheduleAppliesTo, + QuoteUpdateParamsSubscriptionDataBillingScheduleBillFrom as QuoteUpdateParamsSubscriptionDataBillingScheduleBillFrom, + QuoteUpdateParamsSubscriptionDataBillingScheduleBillFromLineStartsAt as QuoteUpdateParamsSubscriptionDataBillingScheduleBillFromLineStartsAt, + QuoteUpdateParamsSubscriptionDataBillingScheduleBillUntil as QuoteUpdateParamsSubscriptionDataBillingScheduleBillUntil, + QuoteUpdateParamsSubscriptionDataBillingScheduleBillUntilDuration as QuoteUpdateParamsSubscriptionDataBillingScheduleBillUntilDuration, + QuoteUpdateParamsSubscriptionDataBillingScheduleBillUntilLineEndsAt as QuoteUpdateParamsSubscriptionDataBillingScheduleBillUntilLineEndsAt, QuoteUpdateParamsSubscriptionDataOverride as QuoteUpdateParamsSubscriptionDataOverride, QuoteUpdateParamsSubscriptionDataOverrideAppliesTo as QuoteUpdateParamsSubscriptionDataOverrideAppliesTo, QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptance as QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptance, @@ -3842,6 +3889,13 @@ QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil as QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil, QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration as QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration, QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt as QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt, + QuoteUpdateParamsSubscriptionDataOverrideBillingSchedule as QuoteUpdateParamsSubscriptionDataOverrideBillingSchedule, + QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleAppliesTo as QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleAppliesTo, + QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillFrom as QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillFrom, + QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillFromLineStartsAt as QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillFromLineStartsAt, + QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillUntil as QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillUntil, + QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillUntilDuration as QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillUntilDuration, + QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillUntilLineEndsAt as QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillUntilLineEndsAt, QuoteUpdateParamsSubscriptionDataPrebilling as QuoteUpdateParamsSubscriptionDataPrebilling, QuoteUpdateParamsTransferData as QuoteUpdateParamsTransferData, ) @@ -4858,6 +4912,8 @@ TokenCreateParamsAccountIndividualDob as TokenCreateParamsAccountIndividualDob, TokenCreateParamsAccountIndividualRegisteredAddress as TokenCreateParamsAccountIndividualRegisteredAddress, TokenCreateParamsAccountIndividualRelationship as TokenCreateParamsAccountIndividualRelationship, + TokenCreateParamsAccountIndividualSelfReportedIncome as TokenCreateParamsAccountIndividualSelfReportedIncome, + TokenCreateParamsAccountIndividualSelfReportedMonthlyHousingPayment as TokenCreateParamsAccountIndividualSelfReportedMonthlyHousingPayment, TokenCreateParamsAccountIndividualVerification as TokenCreateParamsAccountIndividualVerification, TokenCreateParamsAccountIndividualVerificationAdditionalDocument as TokenCreateParamsAccountIndividualVerificationAdditionalDocument, TokenCreateParamsAccountIndividualVerificationDocument as TokenCreateParamsAccountIndividualVerificationDocument, @@ -4878,6 +4934,8 @@ TokenCreateParamsPersonDocumentsVisa as TokenCreateParamsPersonDocumentsVisa, TokenCreateParamsPersonRegisteredAddress as TokenCreateParamsPersonRegisteredAddress, TokenCreateParamsPersonRelationship as TokenCreateParamsPersonRelationship, + TokenCreateParamsPersonSelfReportedIncome as TokenCreateParamsPersonSelfReportedIncome, + TokenCreateParamsPersonSelfReportedMonthlyHousingPayment as TokenCreateParamsPersonSelfReportedMonthlyHousingPayment, TokenCreateParamsPersonUsCfpbData as TokenCreateParamsPersonUsCfpbData, TokenCreateParamsPersonUsCfpbDataEthnicityDetails as TokenCreateParamsPersonUsCfpbDataEthnicityDetails, TokenCreateParamsPersonUsCfpbDataRaceDetails as TokenCreateParamsPersonUsCfpbDataRaceDetails, @@ -5484,6 +5542,14 @@ "stripe.params._account_create_params", False, ), + "AccountCreateParamsIndividualSelfReportedIncome": ( + "stripe.params._account_create_params", + False, + ), + "AccountCreateParamsIndividualSelfReportedMonthlyHousingPayment": ( + "stripe.params._account_create_params", + False, + ), "AccountCreateParamsIndividualVerification": ( "stripe.params._account_create_params", False, @@ -5628,6 +5694,14 @@ "stripe.params._account_create_person_params", False, ), + "AccountCreatePersonParamsSelfReportedIncome": ( + "stripe.params._account_create_person_params", + False, + ), + "AccountCreatePersonParamsSelfReportedMonthlyHousingPayment": ( + "stripe.params._account_create_person_params", + False, + ), "AccountCreatePersonParamsUsCfpbData": ( "stripe.params._account_create_person_params", False, @@ -5799,6 +5873,14 @@ "stripe.params._account_modify_person_params", False, ), + "AccountModifyPersonParamsSelfReportedIncome": ( + "stripe.params._account_modify_person_params", + False, + ), + "AccountModifyPersonParamsSelfReportedMonthlyHousingPayment": ( + "stripe.params._account_modify_person_params", + False, + ), "AccountModifyPersonParamsUsCfpbData": ( "stripe.params._account_modify_person_params", False, @@ -5899,6 +5981,14 @@ "stripe.params._account_person_create_params", False, ), + "AccountPersonCreateParamsSelfReportedIncome": ( + "stripe.params._account_person_create_params", + False, + ), + "AccountPersonCreateParamsSelfReportedMonthlyHousingPayment": ( + "stripe.params._account_person_create_params", + False, + ), "AccountPersonCreateParamsUsCfpbData": ( "stripe.params._account_person_create_params", False, @@ -5991,6 +6081,14 @@ "stripe.params._account_person_update_params", False, ), + "AccountPersonUpdateParamsSelfReportedIncome": ( + "stripe.params._account_person_update_params", + False, + ), + "AccountPersonUpdateParamsSelfReportedMonthlyHousingPayment": ( + "stripe.params._account_person_update_params", + False, + ), "AccountPersonUpdateParamsUsCfpbData": ( "stripe.params._account_person_update_params", False, @@ -6732,6 +6830,14 @@ "stripe.params._account_update_params", False, ), + "AccountUpdateParamsIndividualSelfReportedIncome": ( + "stripe.params._account_update_params", + False, + ), + "AccountUpdateParamsIndividualSelfReportedMonthlyHousingPayment": ( + "stripe.params._account_update_params", + False, + ), "AccountUpdateParamsIndividualVerification": ( "stripe.params._account_update_params", False, @@ -16606,6 +16712,34 @@ "stripe.params._quote_create_params", False, ), + "QuoteCreateParamsSubscriptionDataBillingSchedule": ( + "stripe.params._quote_create_params", + False, + ), + "QuoteCreateParamsSubscriptionDataBillingScheduleAppliesTo": ( + "stripe.params._quote_create_params", + False, + ), + "QuoteCreateParamsSubscriptionDataBillingScheduleBillFrom": ( + "stripe.params._quote_create_params", + False, + ), + "QuoteCreateParamsSubscriptionDataBillingScheduleBillFromLineStartsAt": ( + "stripe.params._quote_create_params", + False, + ), + "QuoteCreateParamsSubscriptionDataBillingScheduleBillUntil": ( + "stripe.params._quote_create_params", + False, + ), + "QuoteCreateParamsSubscriptionDataBillingScheduleBillUntilDuration": ( + "stripe.params._quote_create_params", + False, + ), + "QuoteCreateParamsSubscriptionDataBillingScheduleBillUntilLineEndsAt": ( + "stripe.params._quote_create_params", + False, + ), "QuoteCreateParamsSubscriptionDataOverride": ( "stripe.params._quote_create_params", False, @@ -16638,6 +16772,34 @@ "stripe.params._quote_create_params", False, ), + "QuoteCreateParamsSubscriptionDataOverrideBillingSchedule": ( + "stripe.params._quote_create_params", + False, + ), + "QuoteCreateParamsSubscriptionDataOverrideBillingScheduleAppliesTo": ( + "stripe.params._quote_create_params", + False, + ), + "QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillFrom": ( + "stripe.params._quote_create_params", + False, + ), + "QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillFromLineStartsAt": ( + "stripe.params._quote_create_params", + False, + ), + "QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillUntil": ( + "stripe.params._quote_create_params", + False, + ), + "QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillUntilDuration": ( + "stripe.params._quote_create_params", + False, + ), + "QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillUntilLineEndsAt": ( + "stripe.params._quote_create_params", + False, + ), "QuoteCreateParamsSubscriptionDataPrebilling": ( "stripe.params._quote_create_params", False, @@ -16867,6 +17029,34 @@ "stripe.params._quote_modify_params", False, ), + "QuoteModifyParamsSubscriptionDataBillingSchedule": ( + "stripe.params._quote_modify_params", + False, + ), + "QuoteModifyParamsSubscriptionDataBillingScheduleAppliesTo": ( + "stripe.params._quote_modify_params", + False, + ), + "QuoteModifyParamsSubscriptionDataBillingScheduleBillFrom": ( + "stripe.params._quote_modify_params", + False, + ), + "QuoteModifyParamsSubscriptionDataBillingScheduleBillFromLineStartsAt": ( + "stripe.params._quote_modify_params", + False, + ), + "QuoteModifyParamsSubscriptionDataBillingScheduleBillUntil": ( + "stripe.params._quote_modify_params", + False, + ), + "QuoteModifyParamsSubscriptionDataBillingScheduleBillUntilDuration": ( + "stripe.params._quote_modify_params", + False, + ), + "QuoteModifyParamsSubscriptionDataBillingScheduleBillUntilLineEndsAt": ( + "stripe.params._quote_modify_params", + False, + ), "QuoteModifyParamsSubscriptionDataOverride": ( "stripe.params._quote_modify_params", False, @@ -16899,6 +17089,34 @@ "stripe.params._quote_modify_params", False, ), + "QuoteModifyParamsSubscriptionDataOverrideBillingSchedule": ( + "stripe.params._quote_modify_params", + False, + ), + "QuoteModifyParamsSubscriptionDataOverrideBillingScheduleAppliesTo": ( + "stripe.params._quote_modify_params", + False, + ), + "QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillFrom": ( + "stripe.params._quote_modify_params", + False, + ), + "QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillFromLineStartsAt": ( + "stripe.params._quote_modify_params", + False, + ), + "QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillUntil": ( + "stripe.params._quote_modify_params", + False, + ), + "QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillUntilDuration": ( + "stripe.params._quote_modify_params", + False, + ), + "QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillUntilLineEndsAt": ( + "stripe.params._quote_modify_params", + False, + ), "QuoteModifyParamsSubscriptionDataPrebilling": ( "stripe.params._quote_modify_params", False, @@ -17106,6 +17324,34 @@ "stripe.params._quote_update_params", False, ), + "QuoteUpdateParamsSubscriptionDataBillingSchedule": ( + "stripe.params._quote_update_params", + False, + ), + "QuoteUpdateParamsSubscriptionDataBillingScheduleAppliesTo": ( + "stripe.params._quote_update_params", + False, + ), + "QuoteUpdateParamsSubscriptionDataBillingScheduleBillFrom": ( + "stripe.params._quote_update_params", + False, + ), + "QuoteUpdateParamsSubscriptionDataBillingScheduleBillFromLineStartsAt": ( + "stripe.params._quote_update_params", + False, + ), + "QuoteUpdateParamsSubscriptionDataBillingScheduleBillUntil": ( + "stripe.params._quote_update_params", + False, + ), + "QuoteUpdateParamsSubscriptionDataBillingScheduleBillUntilDuration": ( + "stripe.params._quote_update_params", + False, + ), + "QuoteUpdateParamsSubscriptionDataBillingScheduleBillUntilLineEndsAt": ( + "stripe.params._quote_update_params", + False, + ), "QuoteUpdateParamsSubscriptionDataOverride": ( "stripe.params._quote_update_params", False, @@ -17138,6 +17384,34 @@ "stripe.params._quote_update_params", False, ), + "QuoteUpdateParamsSubscriptionDataOverrideBillingSchedule": ( + "stripe.params._quote_update_params", + False, + ), + "QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleAppliesTo": ( + "stripe.params._quote_update_params", + False, + ), + "QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillFrom": ( + "stripe.params._quote_update_params", + False, + ), + "QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillFromLineStartsAt": ( + "stripe.params._quote_update_params", + False, + ), + "QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillUntil": ( + "stripe.params._quote_update_params", + False, + ), + "QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillUntilDuration": ( + "stripe.params._quote_update_params", + False, + ), + "QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillUntilLineEndsAt": ( + "stripe.params._quote_update_params", + False, + ), "QuoteUpdateParamsSubscriptionDataPrebilling": ( "stripe.params._quote_update_params", False, @@ -20545,6 +20819,14 @@ "stripe.params._token_create_params", False, ), + "TokenCreateParamsAccountIndividualSelfReportedIncome": ( + "stripe.params._token_create_params", + False, + ), + "TokenCreateParamsAccountIndividualSelfReportedMonthlyHousingPayment": ( + "stripe.params._token_create_params", + False, + ), "TokenCreateParamsAccountIndividualVerification": ( "stripe.params._token_create_params", False, @@ -20619,6 +20901,14 @@ "stripe.params._token_create_params", False, ), + "TokenCreateParamsPersonSelfReportedIncome": ( + "stripe.params._token_create_params", + False, + ), + "TokenCreateParamsPersonSelfReportedMonthlyHousingPayment": ( + "stripe.params._token_create_params", + False, + ), "TokenCreateParamsPersonUsCfpbData": ( "stripe.params._token_create_params", False, diff --git a/stripe/params/_account_create_params.py b/stripe/params/_account_create_params.py index c1caa0491..da311f82b 100644 --- a/stripe/params/_account_create_params.py +++ b/stripe/params/_account_create_params.py @@ -1761,6 +1761,18 @@ class AccountCreateParamsIndividual(TypedDict): """ The individual's verification document information. """ + self_reported_income: NotRequired[ + "AccountCreateParamsIndividualSelfReportedIncome" + ] + """ + The credit applicant's self-reported yearly income in minor units. + """ + self_reported_monthly_housing_payment: NotRequired[ + "AccountCreateParamsIndividualSelfReportedMonthlyHousingPayment" + ] + """ + The credit applicant's self-reported monthly housing payment in minor units. + """ class AccountCreateParamsIndividualAddress(TypedDict): @@ -1952,6 +1964,18 @@ class AccountCreateParamsIndividualVerificationDocument(TypedDict): """ +class AccountCreateParamsIndividualSelfReportedIncome(TypedDict): + amount: int + currency: str + + +class AccountCreateParamsIndividualSelfReportedMonthlyHousingPayment( + TypedDict +): + amount: int + currency: str + + class AccountCreateParamsRiskControls(TypedDict): charges: NotRequired["AccountCreateParamsRiskControlsCharges"] """ @@ -2137,7 +2161,7 @@ class AccountCreateParamsSettingsInvoices(TypedDict): Literal["always", "never", "offer"] ] """ - Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page. + Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page. """ diff --git a/stripe/params/_account_create_person_params.py b/stripe/params/_account_create_person_params.py index d52502b95..6c634ae77 100644 --- a/stripe/params/_account_create_person_params.py +++ b/stripe/params/_account_create_person_params.py @@ -126,6 +126,18 @@ class AccountCreatePersonParams(RequestOptions): """ The person's verification status. """ + self_reported_income: NotRequired[ + "AccountCreatePersonParamsSelfReportedIncome" + ] + """ + The credit applicant's self-reported yearly income in minor units. + """ + self_reported_monthly_housing_payment: NotRequired[ + "AccountCreatePersonParamsSelfReportedMonthlyHousingPayment" + ] + """ + The credit applicant's self-reported monthly housing payment in minor units. + """ class AccountCreatePersonParamsAdditionalTosAcceptances(TypedDict): @@ -469,3 +481,13 @@ class AccountCreatePersonParamsVerificationDocument(TypedDict): """ The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ + + +class AccountCreatePersonParamsSelfReportedIncome(TypedDict): + amount: int + currency: str + + +class AccountCreatePersonParamsSelfReportedMonthlyHousingPayment(TypedDict): + amount: int + currency: str diff --git a/stripe/params/_account_modify_person_params.py b/stripe/params/_account_modify_person_params.py index 08a3455a9..1381635f7 100644 --- a/stripe/params/_account_modify_person_params.py +++ b/stripe/params/_account_modify_person_params.py @@ -126,6 +126,18 @@ class AccountModifyPersonParams(RequestOptions): """ The person's verification status. """ + self_reported_income: NotRequired[ + "AccountModifyPersonParamsSelfReportedIncome" + ] + """ + The credit applicant's self-reported yearly income in minor units. + """ + self_reported_monthly_housing_payment: NotRequired[ + "AccountModifyPersonParamsSelfReportedMonthlyHousingPayment" + ] + """ + The credit applicant's self-reported monthly housing payment in minor units. + """ class AccountModifyPersonParamsAdditionalTosAcceptances(TypedDict): @@ -469,3 +481,13 @@ class AccountModifyPersonParamsVerificationDocument(TypedDict): """ The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ + + +class AccountModifyPersonParamsSelfReportedIncome(TypedDict): + amount: int + currency: str + + +class AccountModifyPersonParamsSelfReportedMonthlyHousingPayment(TypedDict): + amount: int + currency: str diff --git a/stripe/params/_account_person_create_params.py b/stripe/params/_account_person_create_params.py index bf5abaf4c..b344f64f2 100644 --- a/stripe/params/_account_person_create_params.py +++ b/stripe/params/_account_person_create_params.py @@ -125,6 +125,18 @@ class AccountPersonCreateParams(TypedDict): """ The person's verification status. """ + self_reported_income: NotRequired[ + "AccountPersonCreateParamsSelfReportedIncome" + ] + """ + The credit applicant's self-reported yearly income in minor units. + """ + self_reported_monthly_housing_payment: NotRequired[ + "AccountPersonCreateParamsSelfReportedMonthlyHousingPayment" + ] + """ + The credit applicant's self-reported monthly housing payment in minor units. + """ class AccountPersonCreateParamsAdditionalTosAcceptances(TypedDict): @@ -468,3 +480,13 @@ class AccountPersonCreateParamsVerificationDocument(TypedDict): """ The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ + + +class AccountPersonCreateParamsSelfReportedIncome(TypedDict): + amount: int + currency: str + + +class AccountPersonCreateParamsSelfReportedMonthlyHousingPayment(TypedDict): + amount: int + currency: str diff --git a/stripe/params/_account_person_update_params.py b/stripe/params/_account_person_update_params.py index c15713705..89a155b18 100644 --- a/stripe/params/_account_person_update_params.py +++ b/stripe/params/_account_person_update_params.py @@ -125,6 +125,18 @@ class AccountPersonUpdateParams(TypedDict): """ The person's verification status. """ + self_reported_income: NotRequired[ + "AccountPersonUpdateParamsSelfReportedIncome" + ] + """ + The credit applicant's self-reported yearly income in minor units. + """ + self_reported_monthly_housing_payment: NotRequired[ + "AccountPersonUpdateParamsSelfReportedMonthlyHousingPayment" + ] + """ + The credit applicant's self-reported monthly housing payment in minor units. + """ class AccountPersonUpdateParamsAdditionalTosAcceptances(TypedDict): @@ -468,3 +480,13 @@ class AccountPersonUpdateParamsVerificationDocument(TypedDict): """ The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ + + +class AccountPersonUpdateParamsSelfReportedIncome(TypedDict): + amount: int + currency: str + + +class AccountPersonUpdateParamsSelfReportedMonthlyHousingPayment(TypedDict): + amount: int + currency: str diff --git a/stripe/params/_account_update_params.py b/stripe/params/_account_update_params.py index a47f27158..0cc87fd4e 100644 --- a/stripe/params/_account_update_params.py +++ b/stripe/params/_account_update_params.py @@ -1673,6 +1673,18 @@ class AccountUpdateParamsIndividual(TypedDict): """ The individual's verification document information. """ + self_reported_income: NotRequired[ + "AccountUpdateParamsIndividualSelfReportedIncome" + ] + """ + The credit applicant's self-reported yearly income in minor units. + """ + self_reported_monthly_housing_payment: NotRequired[ + "AccountUpdateParamsIndividualSelfReportedMonthlyHousingPayment" + ] + """ + The credit applicant's self-reported monthly housing payment in minor units. + """ class AccountUpdateParamsIndividualAddress(TypedDict): @@ -1864,6 +1876,18 @@ class AccountUpdateParamsIndividualVerificationDocument(TypedDict): """ +class AccountUpdateParamsIndividualSelfReportedIncome(TypedDict): + amount: int + currency: str + + +class AccountUpdateParamsIndividualSelfReportedMonthlyHousingPayment( + TypedDict +): + amount: int + currency: str + + class AccountUpdateParamsRiskControls(TypedDict): charges: NotRequired["AccountUpdateParamsRiskControlsCharges"] """ @@ -2053,7 +2077,7 @@ class AccountUpdateParamsSettingsInvoices(TypedDict): Literal["always", "never", "offer"] ] """ - Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page. + Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page. """ diff --git a/stripe/params/_customer_session_create_params.py b/stripe/params/_customer_session_create_params.py index d2009922d..f9f149a81 100644 --- a/stripe/params/_customer_session_create_params.py +++ b/stripe/params/_customer_session_create_params.py @@ -8,7 +8,7 @@ class CustomerSessionCreateParams(RequestOptions): components: "CustomerSessionCreateParamsComponents" """ - Configuration for each component. At least 1 component must be enabled. + Configuration for each component. Exactly 1 component must be enabled. """ customer: NotRequired[str] """ diff --git a/stripe/params/_invoice_create_preview_params.py b/stripe/params/_invoice_create_preview_params.py index af2ef90ab..e615dae76 100644 --- a/stripe/params/_invoice_create_preview_params.py +++ b/stripe/params/_invoice_create_preview_params.py @@ -1984,7 +1984,14 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntil( """ The end date of the billing schedule. """ - type: Literal["duration", "timestamp"] + type: Literal[ + "amendment_end", + "duration", + "line_ends_at", + "schedule_end", + "timestamp", + "upcoming_invoice", + ] """ Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. """ diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py index 5e1d970f9..a7a935dc6 100644 --- a/stripe/params/_payment_intent_confirm_params.py +++ b/stripe/params/_payment_intent_confirm_params.py @@ -3026,14 +3026,6 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptio class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent(TypedDict): - capture_method: NotRequired[Literal["manual", "manual_preferred"]] - """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. - """ request_extended_authorization: NotRequired[bool] """ Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py index 31ac011e0..68d9ba97a 100644 --- a/stripe/params/_payment_intent_create_params.py +++ b/stripe/params/_payment_intent_create_params.py @@ -3153,14 +3153,6 @@ class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOption class PaymentIntentCreateParamsPaymentMethodOptionsCardPresent(TypedDict): - capture_method: NotRequired[Literal["manual", "manual_preferred"]] - """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. - """ request_extended_authorization: NotRequired[bool] """ Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py index de168e3bc..9b450c873 100644 --- a/stripe/params/_payment_intent_modify_params.py +++ b/stripe/params/_payment_intent_modify_params.py @@ -3011,14 +3011,6 @@ class PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOption class PaymentIntentModifyParamsPaymentMethodOptionsCardPresent(TypedDict): - capture_method: NotRequired[Literal["manual", "manual_preferred"]] - """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. - """ request_extended_authorization: NotRequired[bool] """ Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py index 689aeefc8..2baedffe6 100644 --- a/stripe/params/_payment_intent_update_params.py +++ b/stripe/params/_payment_intent_update_params.py @@ -3010,14 +3010,6 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOption class PaymentIntentUpdateParamsPaymentMethodOptionsCardPresent(TypedDict): - capture_method: NotRequired[Literal["manual", "manual_preferred"]] - """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. - """ request_extended_authorization: NotRequired[bool] """ Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) diff --git a/stripe/params/_quote_create_params.py b/stripe/params/_quote_create_params.py index 67b598562..1e733f497 100644 --- a/stripe/params/_quote_create_params.py +++ b/stripe/params/_quote_create_params.py @@ -878,6 +878,18 @@ class QuoteCreateParamsSubscriptionData(TypedDict): """ Integer representing the number of trial period days before the customer is charged for the first time. """ + billing_schedules: NotRequired[ + "Literal['']|List[QuoteCreateParamsSubscriptionDataBillingSchedule]" + ] + """ + Billing schedules that will be applied to the subscription or subscription schedule created when the quote is accepted. + """ + phase_effective_at: NotRequired[ + Literal["billing_period_start", "phase_start"] + ] + """ + Configures how the subscription schedule handles billing for phase transitions when the quote is accepted. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + """ class QuoteCreateParamsSubscriptionDataBillOnAcceptance(TypedDict): @@ -1013,6 +1025,129 @@ class QuoteCreateParamsSubscriptionDataPrebilling(TypedDict): """ +class QuoteCreateParamsSubscriptionDataBillingSchedule(TypedDict): + applies_to: NotRequired[ + List["QuoteCreateParamsSubscriptionDataBillingScheduleAppliesTo"] + ] + """ + Configure billing schedule differently for individual subscription items. + """ + bill_from: "QuoteCreateParamsSubscriptionDataBillingScheduleBillFrom" + """ + The start of the period to bill from when the Quote is accepted. + """ + bill_until: "QuoteCreateParamsSubscriptionDataBillingScheduleBillUntil" + """ + The end of the period to bill until when the Quote is accepted. + """ + key: NotRequired[str] + """ + Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + """ + + +class QuoteCreateParamsSubscriptionDataBillingScheduleAppliesTo(TypedDict): + price: NotRequired[str] + """ + The ID of the price object. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + +class QuoteCreateParamsSubscriptionDataBillingScheduleBillFrom(TypedDict): + line_starts_at: NotRequired[ + "QuoteCreateParamsSubscriptionDataBillingScheduleBillFromLineStartsAt" + ] + """ + Details of a Quote line to start the bill period from. + """ + timestamp: NotRequired[int] + """ + A precise Unix timestamp. + """ + type: Literal[ + "line_starts_at", + "now", + "pause_collection_start", + "quote_acceptance_date", + "timestamp", + ] + """ + The type of method to specify the `bill_from` time. + """ + + +class QuoteCreateParamsSubscriptionDataBillingScheduleBillFromLineStartsAt( + TypedDict, +): + id: NotRequired[str] + """ + The ID of a quote line. + """ + index: NotRequired[int] + """ + The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array. + """ + + +class QuoteCreateParamsSubscriptionDataBillingScheduleBillUntil(TypedDict): + duration: NotRequired[ + "QuoteCreateParamsSubscriptionDataBillingScheduleBillUntilDuration" + ] + """ + Details of the duration over which to bill. + """ + line_ends_at: NotRequired[ + "QuoteCreateParamsSubscriptionDataBillingScheduleBillUntilLineEndsAt" + ] + """ + Details of a Quote line item from which to bill until. + """ + timestamp: NotRequired[int] + """ + A precise Unix timestamp. + """ + type: Literal[ + "duration", + "line_ends_at", + "schedule_end", + "timestamp", + "upcoming_invoice", + ] + """ + The type of method to specify the `bill_until` time. + """ + + +class QuoteCreateParamsSubscriptionDataBillingScheduleBillUntilDuration( + TypedDict, +): + interval: Literal["day", "month", "week", "year"] + """ + Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. + """ + interval_count: int + """ + The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. + """ + + +class QuoteCreateParamsSubscriptionDataBillingScheduleBillUntilLineEndsAt( + TypedDict, +): + id: NotRequired[str] + """ + The ID of a quote line. + """ + index: NotRequired[int] + """ + The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array. + """ + + class QuoteCreateParamsSubscriptionDataOverride(TypedDict): applies_to: "QuoteCreateParamsSubscriptionDataOverrideAppliesTo" """ @@ -1054,6 +1189,18 @@ class QuoteCreateParamsSubscriptionDataOverride(TypedDict): Prorations can be disabled by passing `none`. """ + billing_schedules: NotRequired[ + "Literal['']|List[QuoteCreateParamsSubscriptionDataOverrideBillingSchedule]" + ] + """ + Billing schedules that will be applied to the subscription or subscription schedule created when the quote is accepted. + """ + phase_effective_at: NotRequired[ + Literal["billing_period_start", "phase_start"] + ] + """ + Configures how the subscription schedule handles billing for phase transitions when the quote is accepted. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + """ class QuoteCreateParamsSubscriptionDataOverrideAppliesTo(TypedDict): @@ -1181,6 +1328,141 @@ class QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEnds """ +class QuoteCreateParamsSubscriptionDataOverrideBillingSchedule(TypedDict): + applies_to: NotRequired[ + List[ + "QuoteCreateParamsSubscriptionDataOverrideBillingScheduleAppliesTo" + ] + ] + """ + Configure billing schedule differently for individual subscription items. + """ + bill_from: ( + "QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillFrom" + ) + """ + The start of the period to bill from when the Quote is accepted. + """ + bill_until: ( + "QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillUntil" + ) + """ + The end of the period to bill until when the Quote is accepted. + """ + key: NotRequired[str] + """ + Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + """ + + +class QuoteCreateParamsSubscriptionDataOverrideBillingScheduleAppliesTo( + TypedDict, +): + price: NotRequired[str] + """ + The ID of the price object. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + +class QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillFrom( + TypedDict, +): + line_starts_at: NotRequired[ + "QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillFromLineStartsAt" + ] + """ + Details of a Quote line to start the bill period from. + """ + timestamp: NotRequired[int] + """ + A precise Unix timestamp. + """ + type: Literal[ + "line_starts_at", + "now", + "pause_collection_start", + "quote_acceptance_date", + "timestamp", + ] + """ + The type of method to specify the `bill_from` time. + """ + + +class QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillFromLineStartsAt( + TypedDict, +): + id: NotRequired[str] + """ + The ID of a quote line. + """ + index: NotRequired[int] + """ + The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array. + """ + + +class QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillUntil( + TypedDict, +): + duration: NotRequired[ + "QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillUntilDuration" + ] + """ + Details of the duration over which to bill. + """ + line_ends_at: NotRequired[ + "QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillUntilLineEndsAt" + ] + """ + Details of a Quote line item from which to bill until. + """ + timestamp: NotRequired[int] + """ + A precise Unix timestamp. + """ + type: Literal[ + "duration", + "line_ends_at", + "schedule_end", + "timestamp", + "upcoming_invoice", + ] + """ + The type of method to specify the `bill_until` time. + """ + + +class QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillUntilDuration( + TypedDict, +): + interval: Literal["day", "month", "week", "year"] + """ + Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. + """ + interval_count: int + """ + The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. + """ + + +class QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillUntilLineEndsAt( + TypedDict, +): + id: NotRequired[str] + """ + The ID of a quote line. + """ + index: NotRequired[int] + """ + The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array. + """ + + class QuoteCreateParamsTransferData(TypedDict): amount: NotRequired[int] """ diff --git a/stripe/params/_quote_modify_params.py b/stripe/params/_quote_modify_params.py index 0df3ae8b5..ea8b2c9dd 100644 --- a/stripe/params/_quote_modify_params.py +++ b/stripe/params/_quote_modify_params.py @@ -863,6 +863,18 @@ class QuoteModifyParamsSubscriptionData(TypedDict): """ Integer representing the number of trial period days before the customer is charged for the first time. """ + billing_schedules: NotRequired[ + "Literal['']|List[QuoteModifyParamsSubscriptionDataBillingSchedule]" + ] + """ + Billing schedules that will be applied to the subscription or subscription schedule created when the quote is accepted. + """ + phase_effective_at: NotRequired[ + Literal["billing_period_start", "phase_start"] + ] + """ + Configures how the subscription schedule handles billing for phase transitions when the quote is accepted. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + """ class QuoteModifyParamsSubscriptionDataBillOnAcceptance(TypedDict): @@ -978,6 +990,133 @@ class QuoteModifyParamsSubscriptionDataPrebilling(TypedDict): """ +class QuoteModifyParamsSubscriptionDataBillingSchedule(TypedDict): + applies_to: NotRequired[ + List["QuoteModifyParamsSubscriptionDataBillingScheduleAppliesTo"] + ] + """ + Configure billing schedule differently for individual subscription items. + """ + bill_from: NotRequired[ + "QuoteModifyParamsSubscriptionDataBillingScheduleBillFrom" + ] + """ + The start of the period to bill from when the Quote is accepted. + """ + bill_until: NotRequired[ + "QuoteModifyParamsSubscriptionDataBillingScheduleBillUntil" + ] + """ + The end of the period to bill until when the Quote is accepted. + """ + key: NotRequired[str] + """ + Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + """ + + +class QuoteModifyParamsSubscriptionDataBillingScheduleAppliesTo(TypedDict): + price: NotRequired[str] + """ + The ID of the price object. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + +class QuoteModifyParamsSubscriptionDataBillingScheduleBillFrom(TypedDict): + line_starts_at: NotRequired[ + "QuoteModifyParamsSubscriptionDataBillingScheduleBillFromLineStartsAt" + ] + """ + Details of a Quote line to start the bill period from. + """ + timestamp: NotRequired[int] + """ + A precise Unix timestamp. + """ + type: Literal[ + "line_starts_at", + "now", + "pause_collection_start", + "quote_acceptance_date", + "timestamp", + ] + """ + The type of method to specify the `bill_from` time. + """ + + +class QuoteModifyParamsSubscriptionDataBillingScheduleBillFromLineStartsAt( + TypedDict, +): + id: NotRequired[str] + """ + The ID of a quote line. + """ + index: NotRequired[int] + """ + The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array. + """ + + +class QuoteModifyParamsSubscriptionDataBillingScheduleBillUntil(TypedDict): + duration: NotRequired[ + "QuoteModifyParamsSubscriptionDataBillingScheduleBillUntilDuration" + ] + """ + Details of the duration over which to bill. + """ + line_ends_at: NotRequired[ + "QuoteModifyParamsSubscriptionDataBillingScheduleBillUntilLineEndsAt" + ] + """ + Details of a Quote line item from which to bill until. + """ + timestamp: NotRequired[int] + """ + A precise Unix timestamp. + """ + type: Literal[ + "duration", + "line_ends_at", + "schedule_end", + "timestamp", + "upcoming_invoice", + ] + """ + The type of method to specify the `bill_until` time. + """ + + +class QuoteModifyParamsSubscriptionDataBillingScheduleBillUntilDuration( + TypedDict, +): + interval: Literal["day", "month", "week", "year"] + """ + Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. + """ + interval_count: int + """ + The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. + """ + + +class QuoteModifyParamsSubscriptionDataBillingScheduleBillUntilLineEndsAt( + TypedDict, +): + id: NotRequired[str] + """ + The ID of a quote line. + """ + index: NotRequired[int] + """ + The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array. + """ + + class QuoteModifyParamsSubscriptionDataOverride(TypedDict): applies_to: "QuoteModifyParamsSubscriptionDataOverrideAppliesTo" """ @@ -1019,6 +1158,18 @@ class QuoteModifyParamsSubscriptionDataOverride(TypedDict): Prorations can be disabled by passing `none`. """ + billing_schedules: NotRequired[ + "Literal['']|List[QuoteModifyParamsSubscriptionDataOverrideBillingSchedule]" + ] + """ + Billing schedules that will be applied to the subscription or subscription schedule created when the quote is accepted. + """ + phase_effective_at: NotRequired[ + Literal["billing_period_start", "phase_start"] + ] + """ + Configures how the subscription schedule handles billing for phase transitions when the quote is accepted. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + """ class QuoteModifyParamsSubscriptionDataOverrideAppliesTo(TypedDict): @@ -1146,6 +1297,141 @@ class QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEnds """ +class QuoteModifyParamsSubscriptionDataOverrideBillingSchedule(TypedDict): + applies_to: NotRequired[ + List[ + "QuoteModifyParamsSubscriptionDataOverrideBillingScheduleAppliesTo" + ] + ] + """ + Configure billing schedule differently for individual subscription items. + """ + bill_from: NotRequired[ + "QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillFrom" + ] + """ + The start of the period to bill from when the Quote is accepted. + """ + bill_until: NotRequired[ + "QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillUntil" + ] + """ + The end of the period to bill until when the Quote is accepted. + """ + key: NotRequired[str] + """ + Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + """ + + +class QuoteModifyParamsSubscriptionDataOverrideBillingScheduleAppliesTo( + TypedDict, +): + price: NotRequired[str] + """ + The ID of the price object. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + +class QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillFrom( + TypedDict, +): + line_starts_at: NotRequired[ + "QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillFromLineStartsAt" + ] + """ + Details of a Quote line to start the bill period from. + """ + timestamp: NotRequired[int] + """ + A precise Unix timestamp. + """ + type: Literal[ + "line_starts_at", + "now", + "pause_collection_start", + "quote_acceptance_date", + "timestamp", + ] + """ + The type of method to specify the `bill_from` time. + """ + + +class QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillFromLineStartsAt( + TypedDict, +): + id: NotRequired[str] + """ + The ID of a quote line. + """ + index: NotRequired[int] + """ + The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array. + """ + + +class QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillUntil( + TypedDict, +): + duration: NotRequired[ + "QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillUntilDuration" + ] + """ + Details of the duration over which to bill. + """ + line_ends_at: NotRequired[ + "QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillUntilLineEndsAt" + ] + """ + Details of a Quote line item from which to bill until. + """ + timestamp: NotRequired[int] + """ + A precise Unix timestamp. + """ + type: Literal[ + "duration", + "line_ends_at", + "schedule_end", + "timestamp", + "upcoming_invoice", + ] + """ + The type of method to specify the `bill_until` time. + """ + + +class QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillUntilDuration( + TypedDict, +): + interval: Literal["day", "month", "week", "year"] + """ + Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. + """ + interval_count: int + """ + The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. + """ + + +class QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillUntilLineEndsAt( + TypedDict, +): + id: NotRequired[str] + """ + The ID of a quote line. + """ + index: NotRequired[int] + """ + The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array. + """ + + class QuoteModifyParamsTransferData(TypedDict): amount: NotRequired[int] """ diff --git a/stripe/params/_quote_update_params.py b/stripe/params/_quote_update_params.py index 5e0406b44..188326a36 100644 --- a/stripe/params/_quote_update_params.py +++ b/stripe/params/_quote_update_params.py @@ -862,6 +862,18 @@ class QuoteUpdateParamsSubscriptionData(TypedDict): """ Integer representing the number of trial period days before the customer is charged for the first time. """ + billing_schedules: NotRequired[ + "Literal['']|List[QuoteUpdateParamsSubscriptionDataBillingSchedule]" + ] + """ + Billing schedules that will be applied to the subscription or subscription schedule created when the quote is accepted. + """ + phase_effective_at: NotRequired[ + Literal["billing_period_start", "phase_start"] + ] + """ + Configures how the subscription schedule handles billing for phase transitions when the quote is accepted. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + """ class QuoteUpdateParamsSubscriptionDataBillOnAcceptance(TypedDict): @@ -977,6 +989,133 @@ class QuoteUpdateParamsSubscriptionDataPrebilling(TypedDict): """ +class QuoteUpdateParamsSubscriptionDataBillingSchedule(TypedDict): + applies_to: NotRequired[ + List["QuoteUpdateParamsSubscriptionDataBillingScheduleAppliesTo"] + ] + """ + Configure billing schedule differently for individual subscription items. + """ + bill_from: NotRequired[ + "QuoteUpdateParamsSubscriptionDataBillingScheduleBillFrom" + ] + """ + The start of the period to bill from when the Quote is accepted. + """ + bill_until: NotRequired[ + "QuoteUpdateParamsSubscriptionDataBillingScheduleBillUntil" + ] + """ + The end of the period to bill until when the Quote is accepted. + """ + key: NotRequired[str] + """ + Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + """ + + +class QuoteUpdateParamsSubscriptionDataBillingScheduleAppliesTo(TypedDict): + price: NotRequired[str] + """ + The ID of the price object. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + +class QuoteUpdateParamsSubscriptionDataBillingScheduleBillFrom(TypedDict): + line_starts_at: NotRequired[ + "QuoteUpdateParamsSubscriptionDataBillingScheduleBillFromLineStartsAt" + ] + """ + Details of a Quote line to start the bill period from. + """ + timestamp: NotRequired[int] + """ + A precise Unix timestamp. + """ + type: Literal[ + "line_starts_at", + "now", + "pause_collection_start", + "quote_acceptance_date", + "timestamp", + ] + """ + The type of method to specify the `bill_from` time. + """ + + +class QuoteUpdateParamsSubscriptionDataBillingScheduleBillFromLineStartsAt( + TypedDict, +): + id: NotRequired[str] + """ + The ID of a quote line. + """ + index: NotRequired[int] + """ + The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array. + """ + + +class QuoteUpdateParamsSubscriptionDataBillingScheduleBillUntil(TypedDict): + duration: NotRequired[ + "QuoteUpdateParamsSubscriptionDataBillingScheduleBillUntilDuration" + ] + """ + Details of the duration over which to bill. + """ + line_ends_at: NotRequired[ + "QuoteUpdateParamsSubscriptionDataBillingScheduleBillUntilLineEndsAt" + ] + """ + Details of a Quote line item from which to bill until. + """ + timestamp: NotRequired[int] + """ + A precise Unix timestamp. + """ + type: Literal[ + "duration", + "line_ends_at", + "schedule_end", + "timestamp", + "upcoming_invoice", + ] + """ + The type of method to specify the `bill_until` time. + """ + + +class QuoteUpdateParamsSubscriptionDataBillingScheduleBillUntilDuration( + TypedDict, +): + interval: Literal["day", "month", "week", "year"] + """ + Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. + """ + interval_count: int + """ + The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. + """ + + +class QuoteUpdateParamsSubscriptionDataBillingScheduleBillUntilLineEndsAt( + TypedDict, +): + id: NotRequired[str] + """ + The ID of a quote line. + """ + index: NotRequired[int] + """ + The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array. + """ + + class QuoteUpdateParamsSubscriptionDataOverride(TypedDict): applies_to: "QuoteUpdateParamsSubscriptionDataOverrideAppliesTo" """ @@ -1018,6 +1157,18 @@ class QuoteUpdateParamsSubscriptionDataOverride(TypedDict): Prorations can be disabled by passing `none`. """ + billing_schedules: NotRequired[ + "Literal['']|List[QuoteUpdateParamsSubscriptionDataOverrideBillingSchedule]" + ] + """ + Billing schedules that will be applied to the subscription or subscription schedule created when the quote is accepted. + """ + phase_effective_at: NotRequired[ + Literal["billing_period_start", "phase_start"] + ] + """ + Configures how the subscription schedule handles billing for phase transitions when the quote is accepted. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + """ class QuoteUpdateParamsSubscriptionDataOverrideAppliesTo(TypedDict): @@ -1145,6 +1296,141 @@ class QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEnds """ +class QuoteUpdateParamsSubscriptionDataOverrideBillingSchedule(TypedDict): + applies_to: NotRequired[ + List[ + "QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleAppliesTo" + ] + ] + """ + Configure billing schedule differently for individual subscription items. + """ + bill_from: NotRequired[ + "QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillFrom" + ] + """ + The start of the period to bill from when the Quote is accepted. + """ + bill_until: NotRequired[ + "QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillUntil" + ] + """ + The end of the period to bill until when the Quote is accepted. + """ + key: NotRequired[str] + """ + Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + """ + + +class QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleAppliesTo( + TypedDict, +): + price: NotRequired[str] + """ + The ID of the price object. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + +class QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillFrom( + TypedDict, +): + line_starts_at: NotRequired[ + "QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillFromLineStartsAt" + ] + """ + Details of a Quote line to start the bill period from. + """ + timestamp: NotRequired[int] + """ + A precise Unix timestamp. + """ + type: Literal[ + "line_starts_at", + "now", + "pause_collection_start", + "quote_acceptance_date", + "timestamp", + ] + """ + The type of method to specify the `bill_from` time. + """ + + +class QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillFromLineStartsAt( + TypedDict, +): + id: NotRequired[str] + """ + The ID of a quote line. + """ + index: NotRequired[int] + """ + The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array. + """ + + +class QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillUntil( + TypedDict, +): + duration: NotRequired[ + "QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillUntilDuration" + ] + """ + Details of the duration over which to bill. + """ + line_ends_at: NotRequired[ + "QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillUntilLineEndsAt" + ] + """ + Details of a Quote line item from which to bill until. + """ + timestamp: NotRequired[int] + """ + A precise Unix timestamp. + """ + type: Literal[ + "duration", + "line_ends_at", + "schedule_end", + "timestamp", + "upcoming_invoice", + ] + """ + The type of method to specify the `bill_until` time. + """ + + +class QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillUntilDuration( + TypedDict, +): + interval: Literal["day", "month", "week", "year"] + """ + Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. + """ + interval_count: int + """ + The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. + """ + + +class QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillUntilLineEndsAt( + TypedDict, +): + id: NotRequired[str] + """ + The ID of a quote line. + """ + index: NotRequired[int] + """ + The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array. + """ + + class QuoteUpdateParamsTransferData(TypedDict): amount: NotRequired[int] """ diff --git a/stripe/params/_subscription_create_params.py b/stripe/params/_subscription_create_params.py index a5bd33036..18709de87 100644 --- a/stripe/params/_subscription_create_params.py +++ b/stripe/params/_subscription_create_params.py @@ -435,7 +435,14 @@ class SubscriptionCreateParamsBillingScheduleBillUntil(TypedDict): """ The end date of the billing schedule. """ - type: Literal["duration", "timestamp"] + type: Literal[ + "amendment_end", + "duration", + "line_ends_at", + "schedule_end", + "timestamp", + "upcoming_invoice", + ] """ Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. """ diff --git a/stripe/params/_subscription_modify_params.py b/stripe/params/_subscription_modify_params.py index a30bb899f..5c225983f 100644 --- a/stripe/params/_subscription_modify_params.py +++ b/stripe/params/_subscription_modify_params.py @@ -380,7 +380,14 @@ class SubscriptionModifyParamsBillingScheduleBillUntil(TypedDict): """ The end date of the billing schedule. """ - type: Literal["duration", "timestamp"] + type: Literal[ + "amendment_end", + "duration", + "line_ends_at", + "schedule_end", + "timestamp", + "upcoming_invoice", + ] """ Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. """ diff --git a/stripe/params/_subscription_update_params.py b/stripe/params/_subscription_update_params.py index 5a5b5c34e..61bf6e02e 100644 --- a/stripe/params/_subscription_update_params.py +++ b/stripe/params/_subscription_update_params.py @@ -379,7 +379,14 @@ class SubscriptionUpdateParamsBillingScheduleBillUntil(TypedDict): """ The end date of the billing schedule. """ - type: Literal["duration", "timestamp"] + type: Literal[ + "amendment_end", + "duration", + "line_ends_at", + "schedule_end", + "timestamp", + "upcoming_invoice", + ] """ Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. """ diff --git a/stripe/params/_token_create_params.py b/stripe/params/_token_create_params.py index 658dc00b0..7e2a3b46c 100644 --- a/stripe/params/_token_create_params.py +++ b/stripe/params/_token_create_params.py @@ -438,6 +438,18 @@ class TokenCreateParamsAccountIndividual(TypedDict): """ The individual's verification document information. """ + self_reported_income: NotRequired[ + "TokenCreateParamsAccountIndividualSelfReportedIncome" + ] + """ + The credit applicant's self-reported yearly income in minor units. + """ + self_reported_monthly_housing_payment: NotRequired[ + "TokenCreateParamsAccountIndividualSelfReportedMonthlyHousingPayment" + ] + """ + The credit applicant's self-reported monthly housing payment in minor units. + """ class TokenCreateParamsAccountIndividualAddress(TypedDict): @@ -633,6 +645,18 @@ class TokenCreateParamsAccountIndividualVerificationDocument(TypedDict): """ +class TokenCreateParamsAccountIndividualSelfReportedIncome(TypedDict): + amount: int + currency: str + + +class TokenCreateParamsAccountIndividualSelfReportedMonthlyHousingPayment( + TypedDict, +): + amount: int + currency: str + + class TokenCreateParamsBankAccount(TypedDict): account_holder_name: NotRequired[str] """ @@ -848,6 +872,18 @@ class TokenCreateParamsPerson(TypedDict): """ The person's verification status. """ + self_reported_income: NotRequired[ + "TokenCreateParamsPersonSelfReportedIncome" + ] + """ + The credit applicant's self-reported yearly income in minor units. + """ + self_reported_monthly_housing_payment: NotRequired[ + "TokenCreateParamsPersonSelfReportedMonthlyHousingPayment" + ] + """ + The credit applicant's self-reported monthly housing payment in minor units. + """ class TokenCreateParamsPersonAdditionalTosAcceptances(TypedDict): @@ -1193,6 +1229,16 @@ class TokenCreateParamsPersonVerificationDocument(TypedDict): """ +class TokenCreateParamsPersonSelfReportedIncome(TypedDict): + amount: int + currency: str + + +class TokenCreateParamsPersonSelfReportedMonthlyHousingPayment(TypedDict): + amount: int + currency: str + + class TokenCreateParamsPii(TypedDict): id_number: NotRequired[str] """ diff --git a/stripe/params/capital/_financing_offer_create_params.py b/stripe/params/capital/_financing_offer_create_params.py index fcf09f5d0..82fbc1672 100644 --- a/stripe/params/capital/_financing_offer_create_params.py +++ b/stripe/params/capital/_financing_offer_create_params.py @@ -7,12 +7,21 @@ class FinancingOfferCreateParams(RequestOptions): advance_amount: int + """ + Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. """ fee_amount: int + """ + Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. + """ financing_type: Literal["cash_advance", "fixed_term_loan", "flex_loan"] + """ + The type of financing offer. + """ status: NotRequired[ Literal[ "accepted", @@ -28,4 +37,10 @@ class FinancingOfferCreateParams(RequestOptions): "undelivered", ] ] + """ + The status of the financing offer. + """ withhold_rate: float + """ + Per-transaction rate at which Stripe withholds funds to repay the financing. + """ diff --git a/stripe/params/capital/_financing_offer_refill_params.py b/stripe/params/capital/_financing_offer_refill_params.py index 86557fcfb..c78448268 100644 --- a/stripe/params/capital/_financing_offer_refill_params.py +++ b/stripe/params/capital/_financing_offer_refill_params.py @@ -7,12 +7,21 @@ class FinancingOfferRefillParams(RequestOptions): advance_amount: int + """ + Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. """ fee_amount: int + """ + Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. + """ financing_type: Literal["cash_advance", "fixed_term_loan", "flex_loan"] + """ + The type of financing offer + """ status: NotRequired[ Literal[ "accepted", @@ -28,4 +37,10 @@ class FinancingOfferRefillParams(RequestOptions): "undelivered", ] ] + """ + The status of the financing offer + """ withhold_rate: float + """ + Per-transaction rate at which Stripe withholds funds to repay the financing. + """ diff --git a/stripe/params/delegated_checkout/_requested_session_create_params.py b/stripe/params/delegated_checkout/_requested_session_create_params.py index 7d2be0b47..0776c4204 100644 --- a/stripe/params/delegated_checkout/_requested_session_create_params.py +++ b/stripe/params/delegated_checkout/_requested_session_create_params.py @@ -60,6 +60,9 @@ class RequestedSessionCreateParamsFulfillmentDetails(TypedDict): address: NotRequired[ "RequestedSessionCreateParamsFulfillmentDetailsAddress" ] + """ + The customer's address. + """ email: NotRequired[str] """ The customer's email address. diff --git a/stripe/params/delegated_checkout/_requested_session_modify_params.py b/stripe/params/delegated_checkout/_requested_session_modify_params.py index 92c05e30d..402044852 100644 --- a/stripe/params/delegated_checkout/_requested_session_modify_params.py +++ b/stripe/params/delegated_checkout/_requested_session_modify_params.py @@ -46,6 +46,9 @@ class RequestedSessionModifyParamsFulfillmentDetails(TypedDict): address: NotRequired[ "RequestedSessionModifyParamsFulfillmentDetailsAddress" ] + """ + The customer's address. + """ email: NotRequired[str] """ The customer's email address. diff --git a/stripe/params/delegated_checkout/_requested_session_update_params.py b/stripe/params/delegated_checkout/_requested_session_update_params.py index 298119edf..6de301f40 100644 --- a/stripe/params/delegated_checkout/_requested_session_update_params.py +++ b/stripe/params/delegated_checkout/_requested_session_update_params.py @@ -45,6 +45,9 @@ class RequestedSessionUpdateParamsFulfillmentDetails(TypedDict): address: NotRequired[ "RequestedSessionUpdateParamsFulfillmentDetailsAddress" ] + """ + The customer's address. + """ email: NotRequired[str] """ The customer's email address. diff --git a/stripe/params/terminal/_configuration_create_params.py b/stripe/params/terminal/_configuration_create_params.py index b5e00a9fc..9109080da 100644 --- a/stripe/params/terminal/_configuration_create_params.py +++ b/stripe/params/terminal/_configuration_create_params.py @@ -8,11 +8,11 @@ class ConfigurationCreateParams(RequestOptions): bbpos_wisepad3: NotRequired["ConfigurationCreateParamsBbposWisepad3"] """ - An object containing device type specific settings for BBPOS WisePad 3 readers. + An object containing device type specific settings for BBPOS WisePad 3 readers """ bbpos_wisepos_e: NotRequired["ConfigurationCreateParamsBbposWiseposE"] """ - An object containing device type specific settings for BBPOS WisePOS E readers. + An object containing device type specific settings for BBPOS WisePOS E readers """ expand: NotRequired[List[str]] """ @@ -34,19 +34,19 @@ class ConfigurationCreateParams(RequestOptions): """ reboot_window: NotRequired["ConfigurationCreateParamsRebootWindow"] """ - Reboot time settings for readers. that support customized reboot time configuration. + Reboot time settings for readers that support customized reboot time configuration. """ stripe_s700: NotRequired["ConfigurationCreateParamsStripeS700"] """ - An object containing device type specific settings for Stripe S700 readers. + An object containing device type specific settings for Stripe S700 readers """ tipping: NotRequired["Literal['']|ConfigurationCreateParamsTipping"] """ - Tipping configurations for readers. supporting on-reader tips + Tipping configurations for readers supporting on-reader tips """ verifone_p400: NotRequired["ConfigurationCreateParamsVerifoneP400"] """ - An object containing device type specific settings for Verifone P400 readers. + An object containing device type specific settings for Verifone P400 readers """ wifi: NotRequired["Literal['']|ConfigurationCreateParamsWifi"] """ @@ -57,7 +57,7 @@ class ConfigurationCreateParams(RequestOptions): class ConfigurationCreateParamsBbposWisepad3(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ - A File ID representing an image you want to display on the reader. + A File ID representing an image you would like displayed on the reader. """ @@ -96,7 +96,7 @@ class ConfigurationCreateParamsRebootWindow(TypedDict): class ConfigurationCreateParamsStripeS700(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ - A File ID representing an image you want to display on the reader. + A File ID representing an image you would like displayed on the reader. """ @@ -524,7 +524,7 @@ class ConfigurationCreateParamsTippingUsd(TypedDict): class ConfigurationCreateParamsVerifoneP400(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ - A File ID representing an image you want to display on the reader. + A File ID representing an image you would like displayed on the reader. """ diff --git a/stripe/params/terminal/_configuration_modify_params.py b/stripe/params/terminal/_configuration_modify_params.py index 44b44ec93..5356eb67a 100644 --- a/stripe/params/terminal/_configuration_modify_params.py +++ b/stripe/params/terminal/_configuration_modify_params.py @@ -10,13 +10,13 @@ class ConfigurationModifyParams(RequestOptions): "Literal['']|ConfigurationModifyParamsBbposWisepad3" ] """ - An object containing device type specific settings for BBPOS WisePad 3 readers. + An object containing device type specific settings for BBPOS WisePad 3 readers """ bbpos_wisepos_e: NotRequired[ "Literal['']|ConfigurationModifyParamsBbposWiseposE" ] """ - An object containing device type specific settings for BBPOS WisePOS E readers. + An object containing device type specific settings for BBPOS WisePOS E readers """ expand: NotRequired[List[str]] """ @@ -40,21 +40,21 @@ class ConfigurationModifyParams(RequestOptions): "Literal['']|ConfigurationModifyParamsRebootWindow" ] """ - Reboot time settings for readers. that support customized reboot time configuration. + Reboot time settings for readers that support customized reboot time configuration. """ stripe_s700: NotRequired["Literal['']|ConfigurationModifyParamsStripeS700"] """ - An object containing device type specific settings for Stripe S700 readers. + An object containing device type specific settings for Stripe S700 readers """ tipping: NotRequired["Literal['']|ConfigurationModifyParamsTipping"] """ - Tipping configurations for readers. supporting on-reader tips + Tipping configurations for readers supporting on-reader tips """ verifone_p400: NotRequired[ "Literal['']|ConfigurationModifyParamsVerifoneP400" ] """ - An object containing device type specific settings for Verifone P400 readers. + An object containing device type specific settings for Verifone P400 readers """ wifi: NotRequired["Literal['']|ConfigurationModifyParamsWifi"] """ @@ -65,7 +65,7 @@ class ConfigurationModifyParams(RequestOptions): class ConfigurationModifyParamsBbposWisepad3(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ - A File ID representing an image you want to display on the reader. + A File ID representing an image you would like displayed on the reader. """ @@ -104,7 +104,7 @@ class ConfigurationModifyParamsRebootWindow(TypedDict): class ConfigurationModifyParamsStripeS700(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ - A File ID representing an image you want to display on the reader. + A File ID representing an image you would like displayed on the reader. """ @@ -532,7 +532,7 @@ class ConfigurationModifyParamsTippingUsd(TypedDict): class ConfigurationModifyParamsVerifoneP400(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ - A File ID representing an image you want to display on the reader. + A File ID representing an image you would like displayed on the reader. """ diff --git a/stripe/params/terminal/_configuration_update_params.py b/stripe/params/terminal/_configuration_update_params.py index d89546304..93806b36f 100644 --- a/stripe/params/terminal/_configuration_update_params.py +++ b/stripe/params/terminal/_configuration_update_params.py @@ -9,13 +9,13 @@ class ConfigurationUpdateParams(TypedDict): "Literal['']|ConfigurationUpdateParamsBbposWisepad3" ] """ - An object containing device type specific settings for BBPOS WisePad 3 readers. + An object containing device type specific settings for BBPOS WisePad 3 readers """ bbpos_wisepos_e: NotRequired[ "Literal['']|ConfigurationUpdateParamsBbposWiseposE" ] """ - An object containing device type specific settings for BBPOS WisePOS E readers. + An object containing device type specific settings for BBPOS WisePOS E readers """ expand: NotRequired[List[str]] """ @@ -39,21 +39,21 @@ class ConfigurationUpdateParams(TypedDict): "Literal['']|ConfigurationUpdateParamsRebootWindow" ] """ - Reboot time settings for readers. that support customized reboot time configuration. + Reboot time settings for readers that support customized reboot time configuration. """ stripe_s700: NotRequired["Literal['']|ConfigurationUpdateParamsStripeS700"] """ - An object containing device type specific settings for Stripe S700 readers. + An object containing device type specific settings for Stripe S700 readers """ tipping: NotRequired["Literal['']|ConfigurationUpdateParamsTipping"] """ - Tipping configurations for readers. supporting on-reader tips + Tipping configurations for readers supporting on-reader tips """ verifone_p400: NotRequired[ "Literal['']|ConfigurationUpdateParamsVerifoneP400" ] """ - An object containing device type specific settings for Verifone P400 readers. + An object containing device type specific settings for Verifone P400 readers """ wifi: NotRequired["Literal['']|ConfigurationUpdateParamsWifi"] """ @@ -64,7 +64,7 @@ class ConfigurationUpdateParams(TypedDict): class ConfigurationUpdateParamsBbposWisepad3(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ - A File ID representing an image you want to display on the reader. + A File ID representing an image you would like displayed on the reader. """ @@ -103,7 +103,7 @@ class ConfigurationUpdateParamsRebootWindow(TypedDict): class ConfigurationUpdateParamsStripeS700(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ - A File ID representing an image you want to display on the reader. + A File ID representing an image you would like displayed on the reader. """ @@ -531,7 +531,7 @@ class ConfigurationUpdateParamsTippingUsd(TypedDict): class ConfigurationUpdateParamsVerifoneP400(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ - A File ID representing an image you want to display on the reader. + A File ID representing an image you would like displayed on the reader. """ diff --git a/stripe/params/test_helpers/capital/_financing_offer_create_params.py b/stripe/params/test_helpers/capital/_financing_offer_create_params.py index 83cb943f6..9e4ecf182 100644 --- a/stripe/params/test_helpers/capital/_financing_offer_create_params.py +++ b/stripe/params/test_helpers/capital/_financing_offer_create_params.py @@ -6,12 +6,21 @@ class FinancingOfferCreateParams(TypedDict): advance_amount: int + """ + Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. """ fee_amount: int + """ + Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. + """ financing_type: Literal["cash_advance", "fixed_term_loan", "flex_loan"] + """ + The type of financing offer. + """ status: NotRequired[ Literal[ "accepted", @@ -27,4 +36,10 @@ class FinancingOfferCreateParams(TypedDict): "undelivered", ] ] + """ + The status of the financing offer. + """ withhold_rate: float + """ + Per-transaction rate at which Stripe withholds funds to repay the financing. + """ diff --git a/stripe/params/test_helpers/capital/_financing_offer_refill_params.py b/stripe/params/test_helpers/capital/_financing_offer_refill_params.py index a4f19fcbc..c0a40cd38 100644 --- a/stripe/params/test_helpers/capital/_financing_offer_refill_params.py +++ b/stripe/params/test_helpers/capital/_financing_offer_refill_params.py @@ -6,12 +6,21 @@ class FinancingOfferRefillParams(TypedDict): advance_amount: int + """ + Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. """ fee_amount: int + """ + Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. + """ financing_type: Literal["cash_advance", "fixed_term_loan", "flex_loan"] + """ + The type of financing offer + """ status: NotRequired[ Literal[ "accepted", @@ -27,4 +36,10 @@ class FinancingOfferRefillParams(TypedDict): "undelivered", ] ] + """ + The status of the financing offer + """ withhold_rate: float + """ + Per-transaction rate at which Stripe withholds funds to repay the financing. + """ diff --git a/stripe/params/v2/__init__.py b/stripe/params/v2/__init__.py index b24a8d82f..487637cf5 100644 --- a/stripe/params/v2/__init__.py +++ b/stripe/params/v2/__init__.py @@ -10,7 +10,6 @@ money_management as money_management, payments as payments, reporting as reporting, - tax as tax, test_helpers as test_helpers, ) @@ -21,7 +20,6 @@ "money_management": ("stripe.params.v2.money_management", True), "payments": ("stripe.params.v2.payments", True), "reporting": ("stripe.params.v2.reporting", True), - "tax": ("stripe.params.v2.tax", True), "test_helpers": ("stripe.params.v2.test_helpers", True), } if not TYPE_CHECKING: diff --git a/stripe/params/v2/tax/__init__.py b/stripe/params/v2/tax/__init__.py deleted file mode 100644 index fc3f70d67..000000000 --- a/stripe/params/v2/tax/__init__.py +++ /dev/null @@ -1,60 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from importlib import import_module -from typing_extensions import TYPE_CHECKING - -if TYPE_CHECKING: - from stripe.params.v2.tax._automatic_rule_create_params import ( - AutomaticRuleCreateParams as AutomaticRuleCreateParams, - ) - from stripe.params.v2.tax._automatic_rule_deactivate_params import ( - AutomaticRuleDeactivateParams as AutomaticRuleDeactivateParams, - ) - from stripe.params.v2.tax._automatic_rule_find_params import ( - AutomaticRuleFindParams as AutomaticRuleFindParams, - ) - from stripe.params.v2.tax._automatic_rule_retrieve_params import ( - AutomaticRuleRetrieveParams as AutomaticRuleRetrieveParams, - ) - from stripe.params.v2.tax._automatic_rule_update_params import ( - AutomaticRuleUpdateParams as AutomaticRuleUpdateParams, - ) - -# name -> (import_target, is_submodule) -_import_map = { - "AutomaticRuleCreateParams": ( - "stripe.params.v2.tax._automatic_rule_create_params", - False, - ), - "AutomaticRuleDeactivateParams": ( - "stripe.params.v2.tax._automatic_rule_deactivate_params", - False, - ), - "AutomaticRuleFindParams": ( - "stripe.params.v2.tax._automatic_rule_find_params", - False, - ), - "AutomaticRuleRetrieveParams": ( - "stripe.params.v2.tax._automatic_rule_retrieve_params", - False, - ), - "AutomaticRuleUpdateParams": ( - "stripe.params.v2.tax._automatic_rule_update_params", - False, - ), -} -if not TYPE_CHECKING: - - def __getattr__(name): - try: - target, is_submodule = _import_map[name] - module = import_module(target) - if is_submodule: - return module - - return getattr( - module, - name, - ) - except KeyError: - raise AttributeError() diff --git a/stripe/params/v2/tax/_automatic_rule_create_params.py b/stripe/params/v2/tax/_automatic_rule_create_params.py deleted file mode 100644 index 392da6e14..000000000 --- a/stripe/params/v2/tax/_automatic_rule_create_params.py +++ /dev/null @@ -1,14 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from typing_extensions import TypedDict - - -class AutomaticRuleCreateParams(TypedDict): - billable_item: str - """ - The BillableItem ID to set automatic Tax configuration for. - """ - tax_code: str - """ - The TaxCode object to be used for automatic tax calculations. - """ diff --git a/stripe/params/v2/tax/_automatic_rule_deactivate_params.py b/stripe/params/v2/tax/_automatic_rule_deactivate_params.py deleted file mode 100644 index ae5ad8606..000000000 --- a/stripe/params/v2/tax/_automatic_rule_deactivate_params.py +++ /dev/null @@ -1,7 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from typing_extensions import TypedDict - - -class AutomaticRuleDeactivateParams(TypedDict): - pass diff --git a/stripe/params/v2/tax/_automatic_rule_find_params.py b/stripe/params/v2/tax/_automatic_rule_find_params.py deleted file mode 100644 index 82a048bbb..000000000 --- a/stripe/params/v2/tax/_automatic_rule_find_params.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from typing_extensions import TypedDict - - -class AutomaticRuleFindParams(TypedDict): - billable_item: str - """ - The BillableItem ID to search by. - """ diff --git a/stripe/params/v2/tax/_automatic_rule_retrieve_params.py b/stripe/params/v2/tax/_automatic_rule_retrieve_params.py deleted file mode 100644 index fcaa2b9de..000000000 --- a/stripe/params/v2/tax/_automatic_rule_retrieve_params.py +++ /dev/null @@ -1,7 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from typing_extensions import TypedDict - - -class AutomaticRuleRetrieveParams(TypedDict): - pass diff --git a/stripe/params/v2/tax/_automatic_rule_update_params.py b/stripe/params/v2/tax/_automatic_rule_update_params.py deleted file mode 100644 index b2d67eebb..000000000 --- a/stripe/params/v2/tax/_automatic_rule_update_params.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from typing_extensions import TypedDict - - -class AutomaticRuleUpdateParams(TypedDict): - tax_code: str - """ - The TaxCode object to be used for automatic tax calculations. - """ diff --git a/stripe/v2/__init__.py b/stripe/v2/__init__.py index e3cfe9c2f..44d5d9059 100644 --- a/stripe/v2/__init__.py +++ b/stripe/v2/__init__.py @@ -13,7 +13,6 @@ money_management as money_management, payments as payments, reporting as reporting, - tax as tax, test_helpers as test_helpers, ) from stripe.v2._billing_service import BillingService as BillingService @@ -32,7 +31,6 @@ from stripe.v2._reporting_service import ( ReportingService as ReportingService, ) - from stripe.v2._tax_service import TaxService as TaxService from stripe.v2._test_helper_service import ( TestHelperService as TestHelperService, ) @@ -44,7 +42,6 @@ "money_management": ("stripe.v2.money_management", True), "payments": ("stripe.v2.payments", True), "reporting": ("stripe.v2.reporting", True), - "tax": ("stripe.v2.tax", True), "test_helpers": ("stripe.v2.test_helpers", True), "BillingService": ("stripe.v2._billing_service", False), "CoreService": ("stripe.v2._core_service", False), @@ -60,7 +57,6 @@ "MoneyManagementService": ("stripe.v2._money_management_service", False), "PaymentService": ("stripe.v2._payment_service", False), "ReportingService": ("stripe.v2._reporting_service", False), - "TaxService": ("stripe.v2._tax_service", False), "TestHelperService": ("stripe.v2._test_helper_service", False), } if not TYPE_CHECKING: diff --git a/stripe/v2/_tax_service.py b/stripe/v2/_tax_service.py deleted file mode 100644 index 3c51bf9b7..000000000 --- a/stripe/v2/_tax_service.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from stripe._stripe_service import StripeService -from importlib import import_module -from typing_extensions import TYPE_CHECKING - -if TYPE_CHECKING: - from stripe.v2.tax._automatic_rule_service import AutomaticRuleService - -_subservices = { - "automatic_rules": [ - "stripe.v2.tax._automatic_rule_service", - "AutomaticRuleService", - ], -} - - -class TaxService(StripeService): - automatic_rules: "AutomaticRuleService" - - def __init__(self, requestor): - super().__init__(requestor) - - def __getattr__(self, name): - try: - import_from, service = _subservices[name] - service_class = getattr( - import_module(import_from), - service, - ) - setattr( - self, - name, - service_class(self._requestor), - ) - return getattr(self, name) - except KeyError: - raise AttributeError() diff --git a/stripe/v2/billing/_meter_event.py b/stripe/v2/billing/_meter_event.py index 7ab581a1a..9d5a304dd 100644 --- a/stripe/v2/billing/_meter_event.py +++ b/stripe/v2/billing/_meter_event.py @@ -37,8 +37,7 @@ class MeterEvent(StripeObject): """ The payload of the event. This must contain the fields corresponding to a meter's `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and - `value_settings.event_payload_key` (default is `value`). Read more about - the [payload](https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage#payload-key-overrides).. + `value_settings.event_payload_key` (default is `value`). Read more about the payload. """ timestamp: str """ diff --git a/stripe/v2/tax/__init__.py b/stripe/v2/tax/__init__.py deleted file mode 100644 index 500795911..000000000 --- a/stripe/v2/tax/__init__.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from importlib import import_module -from typing_extensions import TYPE_CHECKING - -if TYPE_CHECKING: - from stripe.v2.tax._automatic_rule import AutomaticRule as AutomaticRule - from stripe.v2.tax._automatic_rule_service import ( - AutomaticRuleService as AutomaticRuleService, - ) - -# name -> (import_target, is_submodule) -_import_map = { - "AutomaticRule": ("stripe.v2.tax._automatic_rule", False), - "AutomaticRuleService": ("stripe.v2.tax._automatic_rule_service", False), -} -if not TYPE_CHECKING: - - def __getattr__(name): - try: - target, is_submodule = _import_map[name] - module = import_module(target) - if is_submodule: - return module - - return getattr( - module, - name, - ) - except KeyError: - raise AttributeError() diff --git a/stripe/v2/tax/_automatic_rule.py b/stripe/v2/tax/_automatic_rule.py deleted file mode 100644 index 734c72959..000000000 --- a/stripe/v2/tax/_automatic_rule.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from stripe._stripe_object import StripeObject -from typing import ClassVar -from typing_extensions import Literal - - -class AutomaticRule(StripeObject): - """ - An AutomaticRule holds automatic Tax configuration for a BillableItem. - """ - - OBJECT_NAME: ClassVar[Literal["v2.tax.automatic_rule"]] = ( - "v2.tax.automatic_rule" - ) - billable_item: str - """ - The ID of the BillableItem. - """ - created: str - """ - The time at which the AutomaticRule object was created. - """ - id: str - """ - The ID of the AutomaticRule object. - """ - livemode: bool - """ - Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. - """ - object: Literal["v2.tax.automatic_rule"] - """ - String representing the object's type. Objects of the same type share the same value of the object field. - """ - status: Literal["active", "inactive"] - """ - The status of the AutomaticRule object. - """ - tax_code: str - """ - A TaxCode object that will be used for automatic tax calculations. - """ diff --git a/stripe/v2/tax/_automatic_rule_service.py b/stripe/v2/tax/_automatic_rule_service.py deleted file mode 100644 index 60de7b072..000000000 --- a/stripe/v2/tax/_automatic_rule_service.py +++ /dev/null @@ -1,227 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from stripe._stripe_service import StripeService -from stripe._util import sanitize_id -from typing import Optional, cast -from typing_extensions import TYPE_CHECKING - -if TYPE_CHECKING: - from stripe._request_options import RequestOptions - from stripe.params.v2.tax._automatic_rule_create_params import ( - AutomaticRuleCreateParams, - ) - from stripe.params.v2.tax._automatic_rule_deactivate_params import ( - AutomaticRuleDeactivateParams, - ) - from stripe.params.v2.tax._automatic_rule_find_params import ( - AutomaticRuleFindParams, - ) - from stripe.params.v2.tax._automatic_rule_retrieve_params import ( - AutomaticRuleRetrieveParams, - ) - from stripe.params.v2.tax._automatic_rule_update_params import ( - AutomaticRuleUpdateParams, - ) - from stripe.v2.tax._automatic_rule import AutomaticRule - - -class AutomaticRuleService(StripeService): - def create( - self, - params: "AutomaticRuleCreateParams", - options: Optional["RequestOptions"] = None, - ) -> "AutomaticRule": - """ - Creates an AutomaticRule object. - """ - return cast( - "AutomaticRule", - self._request( - "post", - "/v2/tax/automatic_rules", - base_address="api", - params=params, - options=options, - ), - ) - - async def create_async( - self, - params: "AutomaticRuleCreateParams", - options: Optional["RequestOptions"] = None, - ) -> "AutomaticRule": - """ - Creates an AutomaticRule object. - """ - return cast( - "AutomaticRule", - await self._request_async( - "post", - "/v2/tax/automatic_rules", - base_address="api", - params=params, - options=options, - ), - ) - - def find( - self, - params: "AutomaticRuleFindParams", - options: Optional["RequestOptions"] = None, - ) -> "AutomaticRule": - """ - Finds an AutomaticRule object by BillableItem ID. - """ - return cast( - "AutomaticRule", - self._request( - "get", - "/v2/tax/automatic_rules/find", - base_address="api", - params=params, - options=options, - ), - ) - - async def find_async( - self, - params: "AutomaticRuleFindParams", - options: Optional["RequestOptions"] = None, - ) -> "AutomaticRule": - """ - Finds an AutomaticRule object by BillableItem ID. - """ - return cast( - "AutomaticRule", - await self._request_async( - "get", - "/v2/tax/automatic_rules/find", - base_address="api", - params=params, - options=options, - ), - ) - - def retrieve( - self, - id: str, - params: Optional["AutomaticRuleRetrieveParams"] = None, - options: Optional["RequestOptions"] = None, - ) -> "AutomaticRule": - """ - Retrieves an AutomaticRule object by ID. - """ - return cast( - "AutomaticRule", - self._request( - "get", - "/v2/tax/automatic_rules/{id}".format(id=sanitize_id(id)), - base_address="api", - params=params, - options=options, - ), - ) - - async def retrieve_async( - self, - id: str, - params: Optional["AutomaticRuleRetrieveParams"] = None, - options: Optional["RequestOptions"] = None, - ) -> "AutomaticRule": - """ - Retrieves an AutomaticRule object by ID. - """ - return cast( - "AutomaticRule", - await self._request_async( - "get", - "/v2/tax/automatic_rules/{id}".format(id=sanitize_id(id)), - base_address="api", - params=params, - options=options, - ), - ) - - def update( - self, - id: str, - params: "AutomaticRuleUpdateParams", - options: Optional["RequestOptions"] = None, - ) -> "AutomaticRule": - """ - Updates the automatic Tax configuration for an AutomaticRule object. - """ - return cast( - "AutomaticRule", - self._request( - "post", - "/v2/tax/automatic_rules/{id}".format(id=sanitize_id(id)), - base_address="api", - params=params, - options=options, - ), - ) - - async def update_async( - self, - id: str, - params: "AutomaticRuleUpdateParams", - options: Optional["RequestOptions"] = None, - ) -> "AutomaticRule": - """ - Updates the automatic Tax configuration for an AutomaticRule object. - """ - return cast( - "AutomaticRule", - await self._request_async( - "post", - "/v2/tax/automatic_rules/{id}".format(id=sanitize_id(id)), - base_address="api", - params=params, - options=options, - ), - ) - - def deactivate( - self, - id: str, - params: Optional["AutomaticRuleDeactivateParams"] = None, - options: Optional["RequestOptions"] = None, - ) -> "AutomaticRule": - """ - Deactivates an AutomaticRule object. Deactivated AutomaticRule objects are ignored in future tax calculations. - """ - return cast( - "AutomaticRule", - self._request( - "post", - "/v2/tax/automatic_rules/{id}/deactivate".format( - id=sanitize_id(id), - ), - base_address="api", - params=params, - options=options, - ), - ) - - async def deactivate_async( - self, - id: str, - params: Optional["AutomaticRuleDeactivateParams"] = None, - options: Optional["RequestOptions"] = None, - ) -> "AutomaticRule": - """ - Deactivates an AutomaticRule object. Deactivated AutomaticRule objects are ignored in future tax calculations. - """ - return cast( - "AutomaticRule", - await self._request_async( - "post", - "/v2/tax/automatic_rules/{id}/deactivate".format( - id=sanitize_id(id), - ), - base_address="api", - params=params, - options=options, - ), - ) diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py index ad48a94e5..bbe17b134 100644 --- a/tests/test_generated_examples.py +++ b/tests/test_generated_examples.py @@ -47504,121 +47504,6 @@ def test_v2_reporting_report_run_get_service( api_base="https://api.stripe.com", ) - def test_v2_tax_automatic_rule_post_service( - self, http_client_mock: HTTPClientMock - ) -> None: - http_client_mock.stub_request( - "post", - "/v2/tax/automatic_rules", - ) - client = StripeClient( - "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), - ) - - client.v2.tax.automatic_rules.create( - { - "billable_item": "billable_item", - "tax_code": "tax_code", - } - ) - http_client_mock.assert_requested( - "post", - path="/v2/tax/automatic_rules", - query_string="", - api_base="https://api.stripe.com", - post_data='{"billable_item":"billable_item","tax_code":"tax_code"}', - is_json=True, - ) - - def test_v2_tax_automatic_rule_get_service( - self, http_client_mock: HTTPClientMock - ) -> None: - http_client_mock.stub_request( - "get", - "/v2/tax/automatic_rules/find", - "billable_item=billable_item", - ) - client = StripeClient( - "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), - ) - - client.v2.tax.automatic_rules.find({"billable_item": "billable_item"}) - http_client_mock.assert_requested( - "get", - path="/v2/tax/automatic_rules/find", - query_string="billable_item=billable_item", - api_base="https://api.stripe.com", - ) - - def test_v2_tax_automatic_rule_get_2_service( - self, http_client_mock: HTTPClientMock - ) -> None: - http_client_mock.stub_request( - "get", - "/v2/tax/automatic_rules/id_123", - ) - client = StripeClient( - "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), - ) - - client.v2.tax.automatic_rules.retrieve("id_123") - http_client_mock.assert_requested( - "get", - path="/v2/tax/automatic_rules/id_123", - query_string="", - api_base="https://api.stripe.com", - ) - - def test_v2_tax_automatic_rule_post_2_service( - self, http_client_mock: HTTPClientMock - ) -> None: - http_client_mock.stub_request( - "post", - "/v2/tax/automatic_rules/id_123", - ) - client = StripeClient( - "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), - ) - - client.v2.tax.automatic_rules.update( - "id_123", - {"tax_code": "tax_code"}, - ) - http_client_mock.assert_requested( - "post", - path="/v2/tax/automatic_rules/id_123", - query_string="", - api_base="https://api.stripe.com", - post_data='{"tax_code":"tax_code"}', - is_json=True, - ) - - def test_v2_tax_automatic_rule_post_3_service( - self, http_client_mock: HTTPClientMock - ) -> None: - http_client_mock.stub_request( - "post", - "/v2/tax/automatic_rules/id_123/deactivate", - ) - client = StripeClient( - "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), - ) - - client.v2.tax.automatic_rules.deactivate("id_123") - http_client_mock.assert_requested( - "post", - path="/v2/tax/automatic_rules/id_123/deactivate", - query_string="", - api_base="https://api.stripe.com", - post_data="{}", - is_json=True, - ) - def test_v2_test_helpers_financial_address_post_service( self, http_client_mock: HTTPClientMock ) -> None: