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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1467
1+
v1472

stripe/_account.py

+17-2
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

+2-2
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

+21
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

+21
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

+2-2
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

+2-2
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

+2-2
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

+4-4
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

+6-6
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[

stripe/_quote_preview_invoice.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -911,9 +911,9 @@ class Tax(StripeObject):
911911
"""
912912
rate: "TaxRate"
913913
"""
914-
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.
914+
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.
915915
916-
Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
916+
Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
917917
"""
918918
taxability_reason: Optional[
919919
Literal[

stripe/_tax_rate.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ class TaxRate(
1717
UpdateableAPIResource["TaxRate"],
1818
):
1919
"""
20-
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.
20+
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.
2121
22-
Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
22+
Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
2323
"""
2424

2525
OBJECT_NAME: ClassVar[Literal["tax_rate"]] = "tax_rate"
@@ -73,7 +73,7 @@ class CreateParams(RequestOptions):
7373
"""
7474
state: NotRequired[str]
7575
"""
76-
[ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States.
76+
[ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States.
7777
"""
7878
tax_type: NotRequired[
7979
Literal[
@@ -176,7 +176,7 @@ class ModifyParams(RequestOptions):
176176
"""
177177
state: NotRequired[str]
178178
"""
179-
[ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States.
179+
[ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States.
180180
"""
181181
tax_type: NotRequired[
182182
Literal[
@@ -276,7 +276,7 @@ class RetrieveParams(RequestOptions):
276276
"""
277277
state: Optional[str]
278278
"""
279-
[ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States.
279+
[ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States.
280280
"""
281281
tax_type: Optional[
282282
Literal[

stripe/_tax_rate_service.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class CreateParams(TypedDict):
4949
"""
5050
state: NotRequired[str]
5151
"""
52-
[ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States.
52+
[ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States.
5353
"""
5454
tax_type: NotRequired[
5555
Literal[
@@ -158,7 +158,7 @@ class UpdateParams(TypedDict):
158158
"""
159159
state: NotRequired[str]
160160
"""
161-
[ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States.
161+
[ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States.
162162
"""
163163
tax_type: NotRequired[
164164
Literal[

stripe/_token.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ class CreateParamsPerson(TypedDict):
808808
"""
809809
The person's phone number.
810810
"""
811-
political_exposure: NotRequired[str]
811+
political_exposure: NotRequired[Literal["existing", "none"]]
812812
"""
813813
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.
814814
"""

stripe/_token_service.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ class CreateParamsPerson(TypedDict):
781781
"""
782782
The person's phone number.
783783
"""
784-
political_exposure: NotRequired[str]
784+
political_exposure: NotRequired[Literal["existing", "none"]]
785785
"""
786786
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.
787787
"""

stripe/billing/_credit_balance_summary.py

+14
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,20 @@ class RetrieveParamsFilterApplicabilityScope(TypedDict):
111111
"""
112112
The price type that credit grants can apply to. We currently only support the `metered` price type.
113113
"""
114+
prices: NotRequired[
115+
List[
116+
"CreditBalanceSummary.RetrieveParamsFilterApplicabilityScopePrice"
117+
]
118+
]
119+
"""
120+
A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
121+
"""
122+
123+
class RetrieveParamsFilterApplicabilityScopePrice(TypedDict):
124+
id: str
125+
"""
126+
The price ID this credit grant should apply to.
127+
"""
114128

115129
balances: List[Balance]
116130
"""

stripe/billing/_credit_balance_summary_service.py

+14
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,20 @@ class RetrieveParamsFilterApplicabilityScope(TypedDict):
4343
"""
4444
The price type that credit grants can apply to. We currently only support the `metered` price type.
4545
"""
46+
prices: NotRequired[
47+
List[
48+
"CreditBalanceSummaryService.RetrieveParamsFilterApplicabilityScopePrice"
49+
]
50+
]
51+
"""
52+
A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
53+
"""
54+
55+
class RetrieveParamsFilterApplicabilityScopePrice(TypedDict):
56+
id: str
57+
"""
58+
The price ID this credit grant should apply to.
59+
"""
4660

4761
def retrieve(
4862
self,

0 commit comments

Comments
 (0)