Skip to content

Commit 01c9508

Browse files
Update generated code for v1472
1 parent 3fa0acd commit 01c9508

24 files changed

+224
-41
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1467
1+
v1472

stripe/_account.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,21 @@ class Payouts(StripeObject):
11451145

11461146
charges: Charges
11471147
payouts: Payouts
1148+
rejected_reason: Optional[
1149+
Literal[
1150+
"credit",
1151+
"fraud",
1152+
"fraud_no_intent_to_fulfill",
1153+
"fraud_other",
1154+
"fraud_payment_method_casher",
1155+
"fraud_payment_method_tester",
1156+
"other",
1157+
"terms_of_service",
1158+
]
1159+
]
1160+
"""
1161+
Represents the rejected reason of the account. Empty if account is not rejected, or rejected by Stripe. Please see [this page for more details](https://stripe.com/docs/connect/)
1162+
"""
11481163
_inner_class_types = {"charges": Charges, "payouts": Payouts}
11491164

11501165
class Settings(StripeObject):
@@ -3548,7 +3563,7 @@ class CreatePersonParams(RequestOptions):
35483563
"""
35493564
The person's phone number.
35503565
"""
3551-
political_exposure: NotRequired[str]
3566+
political_exposure: NotRequired[Literal["existing", "none"]]
35523567
"""
35533568
Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
35543569
"""
@@ -4137,7 +4152,7 @@ class ModifyPersonParams(RequestOptions):
41374152
"""
41384153
The person's phone number.
41394154
"""
4140-
political_exposure: NotRequired[str]
4155+
political_exposure: NotRequired[Literal["existing", "none"]]
41414156
"""
41424157
Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
41434158
"""

stripe/_account_person_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class CreateParams(TypedDict):
109109
"""
110110
The person's phone number.
111111
"""
112-
political_exposure: NotRequired[str]
112+
political_exposure: NotRequired[Literal["existing", "none"]]
113113
"""
114114
Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
115115
"""
@@ -546,7 +546,7 @@ class UpdateParams(TypedDict):
546546
"""
547547
The person's phone number.
548548
"""
549-
political_exposure: NotRequired[str]
549+
political_exposure: NotRequired[Literal["existing", "none"]]
550550
"""
551551
Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
552552
"""

stripe/_account_session.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,12 @@ class CreateParamsComponents(TypedDict):
528528
"""
529529
Configuration for the payouts list embedded component.
530530
"""
531+
product_tax_code_selector: NotRequired[
532+
"AccountSession.CreateParamsComponentsProductTaxCodeSelector"
533+
]
534+
"""
535+
Configuration for the product tax code selector embedded component.
536+
"""
531537
recipients: NotRequired[
532538
"AccountSession.CreateParamsComponentsRecipients"
533539
]
@@ -1008,6 +1014,21 @@ class CreateParamsComponentsPayoutsList(TypedDict):
10081014
class CreateParamsComponentsPayoutsListFeatures(TypedDict):
10091015
pass
10101016

1017+
class CreateParamsComponentsProductTaxCodeSelector(TypedDict):
1018+
enabled: bool
1019+
"""
1020+
Whether the embedded component is enabled.
1021+
"""
1022+
features: NotRequired[
1023+
"AccountSession.CreateParamsComponentsProductTaxCodeSelectorFeatures"
1024+
]
1025+
"""
1026+
The list of features enabled in the embedded component.
1027+
"""
1028+
1029+
class CreateParamsComponentsProductTaxCodeSelectorFeatures(TypedDict):
1030+
pass
1031+
10111032
class CreateParamsComponentsRecipients(TypedDict):
10121033
enabled: bool
10131034
"""

stripe/_account_session_service.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@ class CreateParamsComponents(TypedDict):
143143
"""
144144
Configuration for the payouts list embedded component.
145145
"""
146+
product_tax_code_selector: NotRequired[
147+
"AccountSessionService.CreateParamsComponentsProductTaxCodeSelector"
148+
]
149+
"""
150+
Configuration for the product tax code selector embedded component.
151+
"""
146152
recipients: NotRequired[
147153
"AccountSessionService.CreateParamsComponentsRecipients"
148154
]
@@ -623,6 +629,21 @@ class CreateParamsComponentsPayoutsList(TypedDict):
623629
class CreateParamsComponentsPayoutsListFeatures(TypedDict):
624630
pass
625631

632+
class CreateParamsComponentsProductTaxCodeSelector(TypedDict):
633+
enabled: bool
634+
"""
635+
Whether the embedded component is enabled.
636+
"""
637+
features: NotRequired[
638+
"AccountSessionService.CreateParamsComponentsProductTaxCodeSelectorFeatures"
639+
]
640+
"""
641+
The list of features enabled in the embedded component.
642+
"""
643+
644+
class CreateParamsComponentsProductTaxCodeSelectorFeatures(TypedDict):
645+
pass
646+
626647
class CreateParamsComponentsRecipients(TypedDict):
627648
enabled: bool
628649
"""

stripe/_credit_note.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ class Tax(StripeObject):
9494
"""
9595
rate: "TaxRate"
9696
"""
97-
Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
97+
Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
9898
99-
Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
99+
Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
100100
"""
101101
taxability_reason: Optional[
102102
Literal[

stripe/_invoice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -929,9 +929,9 @@ class Tax(StripeObject):
929929
"""
930930
rate: "TaxRate"
931931
"""
932-
Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
932+
Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
933933

934-
Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
934+
Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
935935
"""
936936
taxability_reason: Optional[
937937
Literal[

stripe/_line_item.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ class Tax(StripeObject):
4949
"""
5050
rate: "TaxRate"
5151
"""
52-
Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
52+
Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
5353
54-
Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
54+
Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
5555
"""
5656
taxability_reason: Optional[
5757
Literal[

stripe/_order.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -685,9 +685,9 @@ class Tax(StripeObject):
685685
"""
686686
rate: "TaxRate"
687687
"""
688-
Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
688+
Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
689689
690-
Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
690+
Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
691691
"""
692692
taxability_reason: Optional[
693693
Literal[
@@ -924,9 +924,9 @@ class Tax(StripeObject):
924924
"""
925925
rate: "TaxRate"
926926
"""
927-
Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
927+
Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
928928
929-
Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
929+
Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
930930
"""
931931
taxability_reason: Optional[
932932
Literal[

stripe/_quote.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ class Tax(StripeObject):
129129
"""
130130
rate: "TaxRate"
131131
"""
132-
Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
132+
Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
133133
134-
Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
134+
Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
135135
"""
136136
taxability_reason: Optional[
137137
Literal[
@@ -227,9 +227,9 @@ class Tax(StripeObject):
227227
"""
228228
rate: "TaxRate"
229229
"""
230-
Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
230+
Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
231231
232-
Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
232+
Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
233233
"""
234234
taxability_reason: Optional[
235235
Literal[
@@ -818,9 +818,9 @@ class Tax(StripeObject):
818818
"""
819819
rate: "TaxRate"
820820
"""
821-
Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
821+
Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
822822
823-
Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
823+
Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
824824
"""
825825
taxability_reason: Optional[
826826
Literal[

0 commit comments

Comments
 (0)