Skip to content

Commit 9574be3

Browse files
Merge upstream and update generated code for v2103 and
2 parents 34b4d2e + 0323750 commit 9574be3

File tree

11 files changed

+53
-137
lines changed

11 files changed

+53
-137
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b7d9dec4da43fdbe727b3b4d8007a7099aa61beb
1+
8b9ebc471599fa8287b507df4a0e686cae2455cd

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2101
1+
v2103

stripe/_application_fee.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@ class FeeSource(StripeObject):
5151
"""
5252
Payout ID that created this application fee.
5353
"""
54-
transfer: Optional[str]
55-
"""
56-
Transfer ID that created this application fee.
57-
"""
58-
type: Literal["charge", "payout", "transfer"]
54+
type: Literal["charge", "payout"]
5955
"""
6056
Type of object that created the application fee.
6157
"""

stripe/_balance.py

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -254,69 +254,6 @@ class SourceTypes(StripeObject):
254254
"""
255255
_inner_class_types = {"available": Available, "pending": Pending}
256256

257-
class TransitBalancesTotal(StripeObject):
258-
class Available(StripeObject):
259-
class SourceTypes(StripeObject):
260-
bank_account: Optional[int]
261-
"""
262-
Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
263-
"""
264-
card: Optional[int]
265-
"""
266-
Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
267-
"""
268-
fpx: Optional[int]
269-
"""
270-
Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
271-
"""
272-
273-
amount: int
274-
"""
275-
Balance amount.
276-
"""
277-
currency: str
278-
"""
279-
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).
280-
"""
281-
source_types: Optional[SourceTypes]
282-
_inner_class_types = {"source_types": SourceTypes}
283-
284-
class Pending(StripeObject):
285-
class SourceTypes(StripeObject):
286-
bank_account: Optional[int]
287-
"""
288-
Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
289-
"""
290-
card: Optional[int]
291-
"""
292-
Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
293-
"""
294-
fpx: Optional[int]
295-
"""
296-
Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
297-
"""
298-
299-
amount: int
300-
"""
301-
Balance amount.
302-
"""
303-
currency: str
304-
"""
305-
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).
306-
"""
307-
source_types: Optional[SourceTypes]
308-
_inner_class_types = {"source_types": SourceTypes}
309-
310-
available: List[Available]
311-
"""
312-
Funds that are available for use.
313-
"""
314-
pending: List[Pending]
315-
"""
316-
Funds that are pending
317-
"""
318-
_inner_class_types = {"available": Available, "pending": Pending}
319-
320257
available: List[Available]
321258
"""
322259
Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
@@ -343,7 +280,6 @@ class SourceTypes(StripeObject):
343280
Funds that aren't available in the balance yet. You can find the pending balance for each currency and each payment type in the `source_types` property.
344281
"""
345282
refund_and_dispute_prefunding: Optional[RefundAndDisputePrefunding]
346-
transit_balances_total: Optional[TransitBalancesTotal]
347283

348284
@classmethod
349285
def retrieve(cls, **params: Unpack["BalanceRetrieveParams"]) -> "Balance":
@@ -378,5 +314,4 @@ def class_url(cls):
378314
"issuing": Issuing,
379315
"pending": Pending,
380316
"refund_and_dispute_prefunding": RefundAndDisputePrefunding,
381-
"transit_balances_total": TransitBalancesTotal,
382317
}

stripe/_balance_transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class FeeDetail(StripeObject):
7777
The date that the transaction's net funds become available in the Stripe balance.
7878
"""
7979
balance_type: Literal[
80-
"issuing", "payments", "refund_and_dispute_prefunding", "transit"
80+
"issuing", "payments", "refund_and_dispute_prefunding"
8181
]
8282
"""
8383
The balance that this transaction impacts.

stripe/_payment_intent.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,6 @@ class PaymentIntent(
105105

106106
OBJECT_NAME: ClassVar[Literal["payment_intent"]] = "payment_intent"
107107

108-
class AllocatedFunds(StripeObject):
109-
enabled: Optional[bool]
110-
"""
111-
Allocated Funds configuration for this PaymentIntent.
112-
"""
113-
114108
class AmountDetails(StripeObject):
115109
class Shipping(StripeObject):
116110
amount: Optional[int]
@@ -3386,10 +3380,6 @@ class TransferData(StripeObject):
33863380
The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success.
33873381
"""
33883382

3389-
allocated_funds: Optional[AllocatedFunds]
3390-
"""
3391-
Allocated Funds configuration for this PaymentIntent.
3392-
"""
33933383
amount: int
33943384
"""
33953385
Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
@@ -5418,7 +5408,6 @@ async def list_amount_details_line_items_async(
54185408
)
54195409

54205410
_inner_class_types = {
5421-
"allocated_funds": AllocatedFunds,
54225411
"amount_details": AmountDetails,
54235412
"automatic_payment_methods": AutomaticPaymentMethods,
54245413
"hooks": Hooks,

stripe/_transfer.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
if TYPE_CHECKING:
1414
from stripe._account import Account
15-
from stripe._application_fee import ApplicationFee
1615
from stripe._balance_transaction import BalanceTransaction
1716
from stripe._charge import Charge
1817
from stripe._reversal import Reversal
@@ -62,8 +61,6 @@ class Transfer(
6261
"""
6362
Amount in cents (or local equivalent) reversed (can be less than the amount attribute on the transfer if a partial reversal was issued).
6463
"""
65-
application_fee: Optional[ExpandableField["ApplicationFee"]]
66-
application_fee_amount: Optional[int]
6764
balance_transaction: Optional[ExpandableField["BalanceTransaction"]]
6865
"""
6966
Balance transaction that describes the impact of this transfer on your account balance.

stripe/params/_transfer_create_params.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,3 @@ class TransferCreateParams(RequestOptions):
4646
"""
4747
A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
4848
"""
49-
application_fee_amount: NotRequired[int]

stripe/params/delegated_checkout/__init__.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
if TYPE_CHECKING:
77
from stripe.params.delegated_checkout._requested_session_confirm_params import (
88
RequestedSessionConfirmParams as RequestedSessionConfirmParams,
9-
RequestedSessionConfirmParamsRiskDetails as RequestedSessionConfirmParamsRiskDetails,
10-
RequestedSessionConfirmParamsRiskDetailsClientDeviceMetadataDetails as RequestedSessionConfirmParamsRiskDetailsClientDeviceMetadataDetails,
119
)
1210
from stripe.params.delegated_checkout._requested_session_create_params import (
1311
RequestedSessionCreateParams as RequestedSessionCreateParams,
@@ -18,6 +16,8 @@
1816
RequestedSessionCreateParamsPaymentMethodDataBillingDetails as RequestedSessionCreateParamsPaymentMethodDataBillingDetails,
1917
RequestedSessionCreateParamsPaymentMethodDataBillingDetailsAddress as RequestedSessionCreateParamsPaymentMethodDataBillingDetailsAddress,
2018
RequestedSessionCreateParamsPaymentMethodDataCard as RequestedSessionCreateParamsPaymentMethodDataCard,
19+
RequestedSessionCreateParamsRiskDetails as RequestedSessionCreateParamsRiskDetails,
20+
RequestedSessionCreateParamsRiskDetailsClientDeviceMetadataDetails as RequestedSessionCreateParamsRiskDetailsClientDeviceMetadataDetails,
2121
RequestedSessionCreateParamsSellerDetails as RequestedSessionCreateParamsSellerDetails,
2222
)
2323
from stripe.params.delegated_checkout._requested_session_expire_params import (
@@ -57,14 +57,6 @@
5757
"stripe.params.delegated_checkout._requested_session_confirm_params",
5858
False,
5959
),
60-
"RequestedSessionConfirmParamsRiskDetails": (
61-
"stripe.params.delegated_checkout._requested_session_confirm_params",
62-
False,
63-
),
64-
"RequestedSessionConfirmParamsRiskDetailsClientDeviceMetadataDetails": (
65-
"stripe.params.delegated_checkout._requested_session_confirm_params",
66-
False,
67-
),
6860
"RequestedSessionCreateParams": (
6961
"stripe.params.delegated_checkout._requested_session_create_params",
7062
False,
@@ -97,6 +89,14 @@
9789
"stripe.params.delegated_checkout._requested_session_create_params",
9890
False,
9991
),
92+
"RequestedSessionCreateParamsRiskDetails": (
93+
"stripe.params.delegated_checkout._requested_session_create_params",
94+
False,
95+
),
96+
"RequestedSessionCreateParamsRiskDetailsClientDeviceMetadataDetails": (
97+
"stripe.params.delegated_checkout._requested_session_create_params",
98+
False,
99+
),
100100
"RequestedSessionCreateParamsSellerDetails": (
101101
"stripe.params.delegated_checkout._requested_session_create_params",
102102
False,

stripe/params/delegated_checkout/_requested_session_confirm_params.py

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# File generated from our OpenAPI spec
33
from stripe._request_options import RequestOptions
44
from typing import List
5-
from typing_extensions import NotRequired, TypedDict
5+
from typing_extensions import NotRequired
66

77

88
class RequestedSessionConfirmParams(RequestOptions):
@@ -14,41 +14,3 @@ class RequestedSessionConfirmParams(RequestOptions):
1414
"""
1515
The PaymentMethod to use with the requested session.
1616
"""
17-
risk_details: NotRequired["RequestedSessionConfirmParamsRiskDetails"]
18-
"""
19-
Risk details/signals associated with the requested session
20-
"""
21-
22-
23-
class RequestedSessionConfirmParamsRiskDetails(TypedDict):
24-
client_device_metadata_details: NotRequired[
25-
"RequestedSessionConfirmParamsRiskDetailsClientDeviceMetadataDetails"
26-
]
27-
"""
28-
The client device metadata details for this requested session.
29-
"""
30-
31-
32-
class RequestedSessionConfirmParamsRiskDetailsClientDeviceMetadataDetails(
33-
TypedDict,
34-
):
35-
radar_session: NotRequired[str]
36-
"""
37-
The radar session.
38-
"""
39-
referrer: NotRequired[str]
40-
"""
41-
The referrer of the client device.
42-
"""
43-
remote_ip: NotRequired[str]
44-
"""
45-
The remote IP address of the client device.
46-
"""
47-
time_on_page_ms: NotRequired[int]
48-
"""
49-
The time on page in milliseconds.
50-
"""
51-
user_agent: NotRequired[str]
52-
"""
53-
The user agent of the client device.
54-
"""

0 commit comments

Comments
 (0)