Skip to content

Commit ea20765

Browse files
Merge pull request #1426 from stripe/latest-codegen-beta
Update generated code for beta
2 parents 6d8f770 + 2023549 commit ea20765

38 files changed

+369
-163
lines changed

OPENAPI_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1370
1+
v1384

stripe/_account.py

+19-1
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ class Capabilities(StripeObject):
184184
"""
185185
The status of the BECS Direct Debit (AU) payments capability of the account, or whether the account can directly process BECS Direct Debit (AU) charges.
186186
"""
187+
automatic_indirect_tax: Optional[
188+
Literal["active", "inactive", "pending"]
189+
]
190+
"""
191+
The status of the automatic_indirect_tax capability of the account.
192+
"""
187193
bacs_debit_payments: Optional[Literal["active", "inactive", "pending"]]
188194
"""
189195
The status of the Bacs Direct Debits payments capability of the account, or whether the account can directly process Bacs Direct Debits charges.
@@ -1492,7 +1498,7 @@ class CreateParams(RequestOptions):
14921498
"""
14931499
groups: NotRequired["Account.CreateParamsGroups"]
14941500
"""
1495-
A hash of account group type to tokens. These are account groups this account should be added to
1501+
A hash of account group type to tokens. These are account groups this account should be added to.
14961502
"""
14971503
individual: NotRequired["Account.CreateParamsIndividual"]
14981504
"""
@@ -1685,6 +1691,12 @@ class CreateParamsCapabilities(TypedDict):
16851691
"""
16861692
The au_becs_debit_payments capability.
16871693
"""
1694+
automatic_indirect_tax: NotRequired[
1695+
"Account.CreateParamsCapabilitiesAutomaticIndirectTax"
1696+
]
1697+
"""
1698+
The automatic_indirect_tax capability.
1699+
"""
16881700
bacs_debit_payments: NotRequired[
16891701
"Account.CreateParamsCapabilitiesBacsDebitPayments"
16901702
]
@@ -2072,6 +2084,12 @@ class CreateParamsCapabilitiesAuBecsDebitPayments(TypedDict):
20722084
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
20732085
"""
20742086

2087+
class CreateParamsCapabilitiesAutomaticIndirectTax(TypedDict):
2088+
requested: NotRequired[bool]
2089+
"""
2090+
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2091+
"""
2092+
20752093
class CreateParamsCapabilitiesBacsDebitPayments(TypedDict):
20762094
requested: NotRequired[bool]
20772095
"""

stripe/_account_service.py

+26-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class CreateParams(TypedDict):
8989
"""
9090
groups: NotRequired["AccountService.CreateParamsGroups"]
9191
"""
92-
A hash of account group type to tokens. These are account groups this account should be added to
92+
A hash of account group type to tokens. These are account groups this account should be added to.
9393
"""
9494
individual: NotRequired["AccountService.CreateParamsIndividual"]
9595
"""
@@ -282,6 +282,12 @@ class CreateParamsCapabilities(TypedDict):
282282
"""
283283
The au_becs_debit_payments capability.
284284
"""
285+
automatic_indirect_tax: NotRequired[
286+
"AccountService.CreateParamsCapabilitiesAutomaticIndirectTax"
287+
]
288+
"""
289+
The automatic_indirect_tax capability.
290+
"""
285291
bacs_debit_payments: NotRequired[
286292
"AccountService.CreateParamsCapabilitiesBacsDebitPayments"
287293
]
@@ -673,6 +679,12 @@ class CreateParamsCapabilitiesAuBecsDebitPayments(TypedDict):
673679
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
674680
"""
675681

682+
class CreateParamsCapabilitiesAutomaticIndirectTax(TypedDict):
683+
requested: NotRequired[bool]
684+
"""
685+
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
686+
"""
687+
676688
class CreateParamsCapabilitiesBacsDebitPayments(TypedDict):
677689
requested: NotRequired[bool]
678690
"""
@@ -2105,7 +2117,7 @@ class UpdateParams(TypedDict):
21052117
"""
21062118
groups: NotRequired["AccountService.UpdateParamsGroups"]
21072119
"""
2108-
A hash of account group type to tokens. These are account groups this account should be added to
2120+
A hash of account group type to tokens. These are account groups this account should be added to.
21092121
"""
21102122
individual: NotRequired["AccountService.UpdateParamsIndividual"]
21112123
"""
@@ -2294,6 +2306,12 @@ class UpdateParamsCapabilities(TypedDict):
22942306
"""
22952307
The au_becs_debit_payments capability.
22962308
"""
2309+
automatic_indirect_tax: NotRequired[
2310+
"AccountService.UpdateParamsCapabilitiesAutomaticIndirectTax"
2311+
]
2312+
"""
2313+
The automatic_indirect_tax capability.
2314+
"""
22972315
bacs_debit_payments: NotRequired[
22982316
"AccountService.UpdateParamsCapabilitiesBacsDebitPayments"
22992317
]
@@ -2685,6 +2703,12 @@ class UpdateParamsCapabilitiesAuBecsDebitPayments(TypedDict):
26852703
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
26862704
"""
26872705

2706+
class UpdateParamsCapabilitiesAutomaticIndirectTax(TypedDict):
2707+
requested: NotRequired[bool]
2708+
"""
2709+
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2710+
"""
2711+
26882712
class UpdateParamsCapabilitiesBacsDebitPayments(TypedDict):
26892713
requested: NotRequired[bool]
26902714
"""

stripe/_balance_transaction.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class ListParams(RequestOptions):
104104
"""
105105
type: NotRequired[str]
106106
"""
107-
Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
107+
Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
108108
"""
109109

110110
class ListParamsCreated(TypedDict):
@@ -236,6 +236,8 @@ class RetrieveParams(RequestOptions):
236236
"payout",
237237
"payout_cancel",
238238
"payout_failure",
239+
"payout_minimum_balance_hold",
240+
"payout_minimum_balance_release",
239241
"refund",
240242
"refund_failure",
241243
"reserve_transaction",
@@ -251,7 +253,7 @@ class RetrieveParams(RequestOptions):
251253
"transfer_refund",
252254
]
253255
"""
254-
Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
256+
Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
255257
"""
256258

257259
@classmethod

stripe/_balance_transaction_service.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ListParams(TypedDict):
4545
"""
4646
type: NotRequired[str]
4747
"""
48-
Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
48+
Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
4949
"""
5050

5151
class ListParamsCreated(TypedDict):

stripe/_customer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ class ModifyParamsTax(TypedDict):
12001200
Literal["auto", "deferred", "immediately"]
12011201
]
12021202
"""
1203-
A flag that indicates when Stripe should validate the customer tax location. Defaults to `deferred`.
1203+
A flag that indicates when Stripe should validate the customer tax location. Defaults to `auto`.
12041204
"""
12051205

12061206
class ModifySourceParams(RequestOptions):

stripe/_customer_service.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ class UpdateParamsTax(TypedDict):
665665
Literal["auto", "deferred", "immediately"]
666666
]
667667
"""
668-
A flag that indicates when Stripe should validate the customer tax location. Defaults to `deferred`.
668+
A flag that indicates when Stripe should validate the customer tax location. Defaults to `auto`.
669669
"""
670670

671671
def delete(

stripe/_invoice.py

+14-5
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,15 @@ class Liability(StripeObject):
148148
Type of the account referenced.
149149
"""
150150

151+
disabled_reason: Optional[
152+
Literal[
153+
"finalization_requires_location_inputs",
154+
"finalization_system_error",
155+
]
156+
]
157+
"""
158+
If Stripe disabled automatic tax, this enum describes why.
159+
"""
151160
enabled: bool
152161
"""
153162
Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/docs/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.
@@ -3891,7 +3900,7 @@ class CreatePreviewParamsSubscriptionDetailsItem(TypedDict):
38913900
"""
38923901
clear_usage: NotRequired[bool]
38933902
"""
3894-
Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`.
3903+
Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
38953904
"""
38963905
deleted: NotRequired[bool]
38973906
"""
@@ -6739,7 +6748,7 @@ class UpcomingLinesParamsSubscriptionDetailsItem(TypedDict):
67396748
"""
67406749
clear_usage: NotRequired[bool]
67416750
"""
6742-
Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`.
6751+
Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
67436752
"""
67446753
deleted: NotRequired[bool]
67456754
"""
@@ -6895,7 +6904,7 @@ class UpcomingLinesParamsSubscriptionItem(TypedDict):
68956904
"""
68966905
clear_usage: NotRequired[bool]
68976906
"""
6898-
Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`.
6907+
Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
68996908
"""
69006909
deleted: NotRequired[bool]
69016910
"""
@@ -8770,7 +8779,7 @@ class UpcomingParamsSubscriptionDetailsItem(TypedDict):
87708779
"""
87718780
clear_usage: NotRequired[bool]
87728781
"""
8773-
Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`.
8782+
Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
87748783
"""
87758784
deleted: NotRequired[bool]
87768785
"""
@@ -8922,7 +8931,7 @@ class UpcomingParamsSubscriptionItem(TypedDict):
89228931
"""
89238932
clear_usage: NotRequired[bool]
89248933
"""
8925-
Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`.
8934+
Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
89268935
"""
89278936
deleted: NotRequired[bool]
89288937
"""

stripe/_invoice_service.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2776,7 +2776,7 @@ class CreatePreviewParamsSubscriptionDetailsItem(TypedDict):
27762776
"""
27772777
clear_usage: NotRequired[bool]
27782778
"""
2779-
Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`.
2779+
Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
27802780
"""
27812781
deleted: NotRequired[bool]
27822782
"""
@@ -4853,7 +4853,7 @@ class UpcomingParamsSubscriptionDetailsItem(TypedDict):
48534853
"""
48544854
clear_usage: NotRequired[bool]
48554855
"""
4856-
Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`.
4856+
Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
48574857
"""
48584858
deleted: NotRequired[bool]
48594859
"""
@@ -5003,7 +5003,7 @@ class UpcomingParamsSubscriptionItem(TypedDict):
50035003
"""
50045004
clear_usage: NotRequired[bool]
50055005
"""
5006-
Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`.
5006+
Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
50075007
"""
50085008
deleted: NotRequired[bool]
50095009
"""

stripe/_invoice_upcoming_lines_service.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,7 @@ class ListParamsSubscriptionDetailsItem(TypedDict):
17611761
"""
17621762
clear_usage: NotRequired[bool]
17631763
"""
1764-
Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`.
1764+
Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
17651765
"""
17661766
deleted: NotRequired[bool]
17671767
"""
@@ -1911,7 +1911,7 @@ class ListParamsSubscriptionItem(TypedDict):
19111911
"""
19121912
clear_usage: NotRequired[bool]
19131913
"""
1914-
Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`.
1914+
Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
19151915
"""
19161916
deleted: NotRequired[bool]
19171917
"""

0 commit comments

Comments
 (0)