Skip to content

Commit c0bae76

Browse files
Update generated code (#1188)
* Update generated code for v742 * Update generated code for v745 * Update generated code for v745 * Update generated code for v747 * Update generated code for v748 * Update generated code for v750 * Update generated code for v752 * Update generated code for v753 * Update generated code for v755 * Update generated code for v755 * Update generated code for v755 * Update generated code for v755 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: pakrym-stripe <[email protected]>
1 parent 1447d3b commit c0bae76

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+13279
-13093
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v742
1+
v755

stripe/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ def __getattr__(name):
243243
from stripe._customer_cash_balance_transaction import (
244244
CustomerCashBalanceTransaction as CustomerCashBalanceTransaction,
245245
)
246+
from stripe._customer_session import CustomerSession as CustomerSession
246247
from stripe._discount import Discount as Discount
247248
from stripe._dispute import Dispute as Dispute
248249
from stripe._ephemeral_key import EphemeralKey as EphemeralKey

stripe/_account.py

Lines changed: 1172 additions & 1172 deletions
Large diffs are not rendered by default.

stripe/_account_session.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -145,45 +145,34 @@ class CreateParamsComponents(TypedDict):
145145
Configuration for the payouts embedded component.
146146
"""
147147

148-
class CreateParamsComponentsPayouts(TypedDict):
148+
class CreateParamsComponentsAccountOnboarding(TypedDict):
149149
enabled: bool
150150
"""
151151
Whether the embedded component is enabled.
152152
"""
153153
features: NotRequired[
154-
"AccountSession.CreateParamsComponentsPayoutsFeatures"
154+
"AccountSession.CreateParamsComponentsAccountOnboardingFeatures"
155155
]
156156
"""
157157
The list of features enabled in the embedded component.
158158
"""
159159

160-
class CreateParamsComponentsPayoutsFeatures(TypedDict):
161-
edit_payout_schedule: NotRequired["bool"]
162-
"""
163-
Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
164-
"""
165-
instant_payouts: NotRequired["bool"]
166-
"""
167-
Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
168-
"""
169-
standard_payouts: NotRequired["bool"]
170-
"""
171-
Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
172-
"""
160+
class CreateParamsComponentsAccountOnboardingFeatures(TypedDict):
161+
pass
173162

174-
class CreateParamsComponentsPayments(TypedDict):
163+
class CreateParamsComponentsPaymentDetails(TypedDict):
175164
enabled: bool
176165
"""
177166
Whether the embedded component is enabled.
178167
"""
179168
features: NotRequired[
180-
"AccountSession.CreateParamsComponentsPaymentsFeatures"
169+
"AccountSession.CreateParamsComponentsPaymentDetailsFeatures"
181170
]
182171
"""
183172
The list of features enabled in the embedded component.
184173
"""
185174

186-
class CreateParamsComponentsPaymentsFeatures(TypedDict):
175+
class CreateParamsComponentsPaymentDetailsFeatures(TypedDict):
187176
capture_payments: NotRequired["bool"]
188177
"""
189178
Whether to allow capturing and cancelling payment intents. This is `true` by default.
@@ -197,19 +186,19 @@ class CreateParamsComponentsPaymentsFeatures(TypedDict):
197186
Whether to allow sending refunds. This is `true` by default.
198187
"""
199188

200-
class CreateParamsComponentsPaymentDetails(TypedDict):
189+
class CreateParamsComponentsPayments(TypedDict):
201190
enabled: bool
202191
"""
203192
Whether the embedded component is enabled.
204193
"""
205194
features: NotRequired[
206-
"AccountSession.CreateParamsComponentsPaymentDetailsFeatures"
195+
"AccountSession.CreateParamsComponentsPaymentsFeatures"
207196
]
208197
"""
209198
The list of features enabled in the embedded component.
210199
"""
211200

212-
class CreateParamsComponentsPaymentDetailsFeatures(TypedDict):
201+
class CreateParamsComponentsPaymentsFeatures(TypedDict):
213202
capture_payments: NotRequired["bool"]
214203
"""
215204
Whether to allow capturing and cancelling payment intents. This is `true` by default.
@@ -223,20 +212,31 @@ class CreateParamsComponentsPaymentDetailsFeatures(TypedDict):
223212
Whether to allow sending refunds. This is `true` by default.
224213
"""
225214

226-
class CreateParamsComponentsAccountOnboarding(TypedDict):
215+
class CreateParamsComponentsPayouts(TypedDict):
227216
enabled: bool
228217
"""
229218
Whether the embedded component is enabled.
230219
"""
231220
features: NotRequired[
232-
"AccountSession.CreateParamsComponentsAccountOnboardingFeatures"
221+
"AccountSession.CreateParamsComponentsPayoutsFeatures"
233222
]
234223
"""
235224
The list of features enabled in the embedded component.
236225
"""
237226

238-
class CreateParamsComponentsAccountOnboardingFeatures(TypedDict):
239-
pass
227+
class CreateParamsComponentsPayoutsFeatures(TypedDict):
228+
edit_payout_schedule: NotRequired["bool"]
229+
"""
230+
Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
231+
"""
232+
instant_payouts: NotRequired["bool"]
233+
"""
234+
Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
235+
"""
236+
standard_payouts: NotRequired["bool"]
237+
"""
238+
Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
239+
"""
240240

241241
account: str
242242
"""

stripe/_api_version.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# -*- coding: utf-8 -*-
22
# File generated from our OpenAPI spec
3-
4-
53
class _ApiVersion:
64
CURRENT = "2023-10-16"

stripe/_application_fee.py

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,20 @@
2828
class ApplicationFee(ListableAPIResource["ApplicationFee"]):
2929
OBJECT_NAME: ClassVar[Literal["application_fee"]] = "application_fee"
3030

31+
class CreateRefundParams(RequestOptions):
32+
amount: NotRequired["int"]
33+
"""
34+
A positive integer, in _cents (or local equivalent)_, representing how much of this fee to refund. Can refund only up to the remaining unrefunded amount of the fee.
35+
"""
36+
expand: NotRequired["List[str]"]
37+
"""
38+
Specifies which fields in the response should be expanded.
39+
"""
40+
metadata: NotRequired["Dict[str, str]"]
41+
"""
42+
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
43+
"""
44+
3145
class ListParams(RequestOptions):
3246
charge: NotRequired["str"]
3347
"""
@@ -69,27 +83,35 @@ class ListParamsCreated(TypedDict):
6983
Maximum value to filter by (inclusive)
7084
"""
7185

72-
class RefundParams(RequestOptions):
73-
amount: NotRequired["int"]
86+
class ListRefundsParams(RequestOptions):
87+
ending_before: NotRequired["str"]
7488
"""
75-
A positive integer, in _cents (or local equivalent)_, representing how much of this fee to refund. Can refund only up to the remaining unrefunded amount of the fee.
89+
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
7690
"""
7791
expand: NotRequired["List[str]"]
7892
"""
7993
Specifies which fields in the response should be expanded.
8094
"""
81-
metadata: NotRequired["Dict[str, str]"]
95+
limit: NotRequired["int"]
8296
"""
83-
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
97+
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
98+
"""
99+
starting_after: NotRequired["str"]
100+
"""
101+
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
84102
"""
85103

86-
class RetrieveParams(RequestOptions):
104+
class ModifyRefundParams(RequestOptions):
87105
expand: NotRequired["List[str]"]
88106
"""
89107
Specifies which fields in the response should be expanded.
90108
"""
109+
metadata: NotRequired["Literal['']|Dict[str, str]"]
110+
"""
111+
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
112+
"""
91113

92-
class CreateRefundParams(RequestOptions):
114+
class RefundParams(RequestOptions):
93115
amount: NotRequired["int"]
94116
"""
95117
A positive integer, in _cents (or local equivalent)_, representing how much of this fee to refund. Can refund only up to the remaining unrefunded amount of the fee.
@@ -103,39 +125,17 @@ class CreateRefundParams(RequestOptions):
103125
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
104126
"""
105127

106-
class RetrieveRefundParams(RequestOptions):
128+
class RetrieveParams(RequestOptions):
107129
expand: NotRequired["List[str]"]
108130
"""
109131
Specifies which fields in the response should be expanded.
110132
"""
111133

112-
class ModifyRefundParams(RequestOptions):
113-
expand: NotRequired["List[str]"]
114-
"""
115-
Specifies which fields in the response should be expanded.
116-
"""
117-
metadata: NotRequired["Literal['']|Dict[str, str]"]
118-
"""
119-
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
120-
"""
121-
122-
class ListRefundsParams(RequestOptions):
123-
ending_before: NotRequired["str"]
124-
"""
125-
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
126-
"""
134+
class RetrieveRefundParams(RequestOptions):
127135
expand: NotRequired["List[str]"]
128136
"""
129137
Specifies which fields in the response should be expanded.
130138
"""
131-
limit: NotRequired["int"]
132-
"""
133-
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
134-
"""
135-
starting_after: NotRequired["str"]
136-
"""
137-
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
138-
"""
139139

140140
account: ExpandableField["Account"]
141141
"""

stripe/_balance_transaction.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class ListParams(RequestOptions):
102102
"""
103103
type: NotRequired["str"]
104104
"""
105-
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_inbound`, `obligation_outbound`, `obligation_reversal_inbound`, `obligation_reversal_outbound`, `obligation_payout`, `obligation_payout_failure`, `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`.
105+
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`.
106106
"""
107107

108108
class ListParamsCreated(TypedDict):
@@ -223,12 +223,8 @@ class RetrieveParams(RequestOptions):
223223
"issuing_authorization_release",
224224
"issuing_dispute",
225225
"issuing_transaction",
226-
"obligation_inbound",
227226
"obligation_outbound",
228-
"obligation_payout",
229-
"obligation_payout_failure",
230227
"obligation_reversal_inbound",
231-
"obligation_reversal_outbound",
232228
"payment",
233229
"payment_failure_refund",
234230
"payment_network_reserve_hold",
@@ -252,9 +248,13 @@ class RetrieveParams(RequestOptions):
252248
"transfer_cancel",
253249
"transfer_failure",
254250
"transfer_refund",
251+
"obligation_inbound",
252+
"obligation_payout",
253+
"obligation_payout_failure",
254+
"obligation_reversal_outbound",
255255
]
256256
"""
257-
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_inbound`, `obligation_outbound`, `obligation_reversal_inbound`, `obligation_reversal_outbound`, `obligation_payout`, `obligation_payout_failure`, `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.
257+
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.
258258
"""
259259

260260
@classmethod

stripe/_charge.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1784,14 +1784,20 @@ class CreateParams(RequestOptions):
17841784
A string that identifies this transaction as part of a group. For details, see [Grouping transactions](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options).
17851785
"""
17861786

1787-
class CreateParamsTransferData(TypedDict):
1787+
class CreateParamsDestination(TypedDict):
1788+
account: str
1789+
"""
1790+
ID of an existing, connected Stripe account.
1791+
"""
17881792
amount: NotRequired["int"]
17891793
"""
1790-
The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
1794+
The amount to transfer to the destination account without creating an `Application Fee` object. Cannot be combined with the `application_fee` parameter. Must be less than or equal to the charge amount.
17911795
"""
1792-
destination: str
1796+
1797+
class CreateParamsRadarOptions(TypedDict):
1798+
session: NotRequired["str"]
17931799
"""
1794-
ID of an existing, connected Stripe account.
1800+
A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
17951801
"""
17961802

17971803
class CreateParamsShipping(TypedDict):
@@ -1842,21 +1848,15 @@ class CreateParamsShippingAddress(TypedDict):
18421848
State, county, province, or region.
18431849
"""
18441850

1845-
class CreateParamsRadarOptions(TypedDict):
1846-
session: NotRequired["str"]
1851+
class CreateParamsTransferData(TypedDict):
1852+
amount: NotRequired["int"]
18471853
"""
1848-
A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
1854+
The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
18491855
"""
1850-
1851-
class CreateParamsDestination(TypedDict):
1852-
account: str
1856+
destination: str
18531857
"""
18541858
ID of an existing, connected Stripe account.
18551859
"""
1856-
amount: NotRequired["int"]
1857-
"""
1858-
The amount to transfer to the destination account without creating an `Application Fee` object. Cannot be combined with the `application_fee` parameter. Must be less than or equal to the charge amount.
1859-
"""
18601860

18611861
class ListParams(RequestOptions):
18621862
created: NotRequired["Charge.ListParamsCreated|int"]
@@ -1941,6 +1941,12 @@ class ModifyParams(RequestOptions):
19411941
A string that identifies this transaction as part of a group. `transfer_group` may only be provided if it has not been set. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
19421942
"""
19431943

1944+
class ModifyParamsFraudDetails(TypedDict):
1945+
user_report: Union[Literal[""], Literal["fraudulent", "safe"]]
1946+
"""
1947+
Either `safe` or `fraudulent`.
1948+
"""
1949+
19441950
class ModifyParamsShipping(TypedDict):
19451951
address: "Charge.ModifyParamsShippingAddress"
19461952
"""
@@ -1989,12 +1995,6 @@ class ModifyParamsShippingAddress(TypedDict):
19891995
State, county, province, or region.
19901996
"""
19911997

1992-
class ModifyParamsFraudDetails(TypedDict):
1993-
user_report: Union[Literal[""], Literal["fraudulent", "safe"]]
1994-
"""
1995-
Either `safe` or `fraudulent`.
1996-
"""
1997-
19981998
class RetrieveParams(RequestOptions):
19991999
expand: NotRequired["List[str]"]
20002000
"""

0 commit comments

Comments
 (0)