Skip to content

Commit

Permalink
Update generated code for v626
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Oct 26, 2023
1 parent 4fe269b commit b92e033
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 36 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v603
v626
6 changes: 4 additions & 2 deletions stripe/api_resources/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ class Error(StripeObject):
"invalid_company_name_denylisted",
"invalid_dob_age_over_maximum",
"invalid_dob_age_under_18",
"invalid_dob_age_under_minimum",
"invalid_product_description_length",
"invalid_product_description_url_match",
"invalid_representative_country",
Expand Down Expand Up @@ -653,7 +654,7 @@ class Error(StripeObject):
"""
disabled_reason: Optional[str]
"""
This is typed as a string for consistency with `requirements.disabled_reason`, but it safe to assume `future_requirements.disabled_reason` is empty because fields in `future_requirements` will never disable the account.
This is typed as a string for consistency with `requirements.disabled_reason`.
"""
errors: Optional[List[Error]]
"""
Expand Down Expand Up @@ -694,6 +695,7 @@ class Error(StripeObject):
"invalid_company_name_denylisted",
"invalid_dob_age_over_maximum",
"invalid_dob_age_under_18",
"invalid_dob_age_under_minimum",
"invalid_product_description_length",
"invalid_product_description_url_match",
"invalid_representative_country",
Expand Down Expand Up @@ -799,7 +801,7 @@ class Error(StripeObject):
"""
disabled_reason: Optional[str]
"""
If the account is disabled, this string describes why. Can be `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.listed`, `rejected.terms_of_service`, `rejected.other`, `under_review`, or `other`.
If the account is disabled, this string describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification). Can be `action_required.requested_capabilities`, `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.incomplete_verification`, `rejected.listed`, `rejected.other`, `rejected.terms_of_service`, `under_review`, or `other`.
"""
errors: Optional[List[Error]]
"""
Expand Down
2 changes: 2 additions & 0 deletions stripe/api_resources/bank_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class Error(StripeObject):
"invalid_company_name_denylisted",
"invalid_dob_age_over_maximum",
"invalid_dob_age_under_18",
"invalid_dob_age_under_minimum",
"invalid_product_description_length",
"invalid_product_description_url_match",
"invalid_representative_country",
Expand Down Expand Up @@ -168,6 +169,7 @@ class Error(StripeObject):
"invalid_company_name_denylisted",
"invalid_dob_age_over_maximum",
"invalid_dob_age_under_18",
"invalid_dob_age_under_minimum",
"invalid_product_description_length",
"invalid_product_description_url_match",
"invalid_representative_country",
Expand Down
2 changes: 2 additions & 0 deletions stripe/api_resources/capability.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class Error(StripeObject):
"invalid_company_name_denylisted",
"invalid_dob_age_over_maximum",
"invalid_dob_age_under_18",
"invalid_dob_age_under_minimum",
"invalid_product_description_length",
"invalid_product_description_url_match",
"invalid_representative_country",
Expand Down Expand Up @@ -185,6 +186,7 @@ class Error(StripeObject):
"invalid_company_name_denylisted",
"invalid_dob_age_over_maximum",
"invalid_dob_age_under_18",
"invalid_dob_age_under_minimum",
"invalid_product_description_length",
"invalid_product_description_url_match",
"invalid_representative_country",
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ class LastFinalizationError(StripeObject):
"application_fees_not_allowed",
"authentication_required",
"balance_insufficient",
"balance_invalid_parameter",
"bank_account_bad_routing_numbers",
"bank_account_declined",
"bank_account_exists",
Expand Down
21 changes: 2 additions & 19 deletions stripe/api_resources/payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class LastPaymentError(StripeObject):
"application_fees_not_allowed",
"authentication_required",
"balance_insufficient",
"balance_invalid_parameter",
"bank_account_bad_routing_numbers",
"bank_account_declined",
"bank_account_exists",
Expand Down Expand Up @@ -2600,12 +2601,6 @@ class ConfirmParamsPaymentMethodOptionsCardPresent(TypedDict):
"""
Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity)
"""
request_incremental_authorization: NotRequired[
"Literal['if_available', 'never']|None"
]
"""
Request ability to [increment](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
"""
request_incremental_authorization_support: NotRequired["bool|None"]
"""
Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support.
Expand Down Expand Up @@ -3682,7 +3677,7 @@ class CreateParams(RequestOptions):
"PaymentIntent.CreateParamsTransferData|None"
]
"""
The parameters that you can use to automatically create a Transfer after the payment succeeds.
The parameters that you can use to automatically create a Transfer.
Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
"""
transfer_group: NotRequired["str|None"]
Expand Down Expand Up @@ -4446,12 +4441,6 @@ class CreateParamsPaymentMethodOptionsCardPresent(TypedDict):
"""
Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity)
"""
request_incremental_authorization: NotRequired[
"Literal['if_available', 'never']|None"
]
"""
Request ability to [increment](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
"""
request_incremental_authorization_support: NotRequired["bool|None"]
"""
Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support.
Expand Down Expand Up @@ -6292,12 +6281,6 @@ class ModifyParamsPaymentMethodOptionsCardPresent(TypedDict):
"""
Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity)
"""
request_incremental_authorization: NotRequired[
"Literal['if_available', 'never']|None"
]
"""
Request ability to [increment](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
"""
request_incremental_authorization_support: NotRequired["bool|None"]
"""
Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support.
Expand Down
4 changes: 2 additions & 2 deletions stripe/api_resources/payment_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ class ShippingOption(StripeObject):
class SubscriptionData(StripeObject):
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.
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.
"""
metadata: Dict[str, str]
"""
Expand Down Expand Up @@ -735,7 +735,7 @@ class CreateParamsTaxIdCollection(TypedDict):
class CreateParamsSubscriptionData(TypedDict):
description: NotRequired["str|None"]
"""
The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
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.
"""
metadata: NotRequired["Dict[str, str]|None"]
"""
Expand Down
2 changes: 2 additions & 0 deletions stripe/api_resources/person.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ class Error(StripeObject):
"invalid_company_name_denylisted",
"invalid_dob_age_over_maximum",
"invalid_dob_age_under_18",
"invalid_dob_age_under_minimum",
"invalid_product_description_length",
"invalid_product_description_url_match",
"invalid_representative_country",
Expand Down Expand Up @@ -357,6 +358,7 @@ class Error(StripeObject):
"invalid_company_name_denylisted",
"invalid_dob_age_over_maximum",
"invalid_dob_age_under_18",
"invalid_dob_age_under_minimum",
"invalid_product_description_length",
"invalid_product_description_url_match",
"invalid_representative_country",
Expand Down
6 changes: 3 additions & 3 deletions stripe/api_resources/quote.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ class StatusTransitions(StripeObject):
class SubscriptionData(StripeObject):
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.
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.
"""
effective_date: Optional[int]
"""
Expand Down Expand Up @@ -518,7 +518,7 @@ class CreateParamsTransferData(TypedDict):
class CreateParamsSubscriptionData(TypedDict):
description: NotRequired["str|None"]
"""
The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
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.
"""
effective_date: NotRequired[
"Literal['']|Literal['current_period_end']|int|None"
Expand Down Expand Up @@ -800,7 +800,7 @@ class ModifyParamsTransferData(TypedDict):
class ModifyParamsSubscriptionData(TypedDict):
description: NotRequired["Literal['']|str|None"]
"""
The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
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.
"""
effective_date: NotRequired[
"Literal['']|Literal['current_period_end']|int|None"
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/setup_attempt.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ class SetupError(StripeObject):
"application_fees_not_allowed",
"authentication_required",
"balance_insufficient",
"balance_invalid_parameter",
"bank_account_bad_routing_numbers",
"bank_account_declined",
"bank_account_exists",
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/setup_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ class LastSetupError(StripeObject):
"application_fees_not_allowed",
"authentication_required",
"balance_insufficient",
"balance_invalid_parameter",
"bank_account_bad_routing_numbers",
"bank_account_declined",
"bank_account_exists",
Expand Down
6 changes: 3 additions & 3 deletions stripe/api_resources/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ class CreateParams(RequestOptions):
"""
description: NotRequired["str|None"]
"""
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.
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.
"""
expand: NotRequired["List[str]|None"]
"""
Expand Down Expand Up @@ -1132,7 +1132,7 @@ class ModifyParams(RequestOptions):
"""
description: NotRequired["Literal['']|str|None"]
"""
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.
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.
"""
expand: NotRequired["List[str]|None"]
"""
Expand Down Expand Up @@ -1751,7 +1751,7 @@ class SearchParams(RequestOptions):
"""
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.
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.
"""
discount: Optional["Discount"]
"""
Expand Down
12 changes: 6 additions & 6 deletions stripe/api_resources/subscription_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class TransferData(StripeObject):
"""
description: Optional[str]
"""
Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
Subscription 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.
"""
invoice_settings: Optional[InvoiceSettings]
"""
Expand Down Expand Up @@ -259,7 +259,7 @@ class TransferData(StripeObject):
"""
description: Optional[str]
"""
Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
Subscription 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.
"""
end_date: int
"""
Expand Down Expand Up @@ -417,7 +417,7 @@ class CreateParamsPhase(TypedDict):
"""
description: NotRequired["Literal['']|str|None"]
"""
Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
Subscription 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.
"""
end_date: NotRequired["int|None"]
"""
Expand Down Expand Up @@ -655,7 +655,7 @@ class CreateParamsDefaultSettings(TypedDict):
"""
description: NotRequired["Literal['']|str|None"]
"""
Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
Subscription 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.
"""
invoice_settings: NotRequired[
"SubscriptionSchedule.CreateParamsDefaultSettingsInvoiceSettings|None"
Expand Down Expand Up @@ -915,7 +915,7 @@ class ModifyParamsPhase(TypedDict):
"""
description: NotRequired["Literal['']|str|None"]
"""
Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
Subscription 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.
"""
end_date: NotRequired["int|Literal['now']|None"]
"""
Expand Down Expand Up @@ -1157,7 +1157,7 @@ class ModifyParamsDefaultSettings(TypedDict):
"""
description: NotRequired["Literal['']|str|None"]
"""
Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
Subscription 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.
"""
invoice_settings: NotRequired[
"SubscriptionSchedule.ModifyParamsDefaultSettingsInvoiceSettings|None"
Expand Down

0 comments on commit b92e033

Please sign in to comment.