8000 Update generated code for v1748 · stripe/stripe-python@f069ba2 · GitHub
[go: up one dir, main page]

Skip to content

Commit f069ba2

Browse files
Update generated code for v1748
1 parent 0477b6b commit f069ba2

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1747
1+
v1748

stripe/_balance.py

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,69 @@ class SourceTypes(StripeObject):
194194
source_types: Optional[SourceTypes]
195195
_inner_class_types = {"source_types": SourceTypes}
196196

197+
class RefundAndDisputePrefunding(StripeObject):
198+
class Available(StripeObject):
199+
class SourceTypes(StripeObject):
200+
bank_account: Optional[int]
201+
"""
202+
Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
203+
"""
204+
card: Optional[int]
205+
"""
206+
Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
207+
"""
208+
fpx: Optional[int]
209+
"""
210+
Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
211+
"""
212+
213+
amount: int
214+
"""
215+
Balance amount.
216+
"""
217+
currency: str
218+
"""
219+
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).
220+
"""
221+
source_types: Optional[SourceTypes]
222+
_inner_class_types = {"source_types": SourceTypes}
223+
224+
class Pending(StripeObject):
225+
class SourceTypes(StripeObject):
226+
bank_account: Optional[int]
227+
"""
228+
Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
229+
"""
230+
card: Optional[int]
231+
"""
232+
Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
233+
"""
234+
fpx: Optional[int]
235+
"""
236+
Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
237+
"""
238+
239+
amount: int
240+
"""
241+
Balance amount.
242+
"""
243+
currency: str
244+
"""
245+
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).
246+
"""
247+
source_types: Optional[SourceTypes]
248+
_inner_class_types = {"source_types": SourceTypes}
249+
250+
available: List[Available]
251+
"""
252+
Funds that are available for use.
253+
"""
254+
pending: List[Pending]
255+
"""
256+
Funds that are pending
257+
"""
258+
_inner_class_types = {"available": Available, "pending": Pending}
259+
197260
class RetrieveParams(RequestOptions):
198261
expand: NotRequired[List[str]]
199262
"""
@@ -225,6 +288,7 @@ class RetrieveParams(RequestOptions):
225288
"""
226289
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.
227290
"""
291+
refund_and_dispute_prefunding: Optional[RefundAndDisputePrefunding]
228292

229293
@classmethod
230294
def retrieve(cls, **params: Unpack["Balance.RetrieveParams"]) -> "Balance":
@@ -258,4 +322,5 @@ def class_url(cls):
258322
"instant_available": InstantAvailable,
259323
"issuing": Issuing,
260324
"pending": Pending,
325+
"refund_and_dispute_prefunding": RefundAndDisputePrefunding,
261326
}

0 commit comments

Comments
 (0)
0