Skip to content

Commit 6318ae3

Browse files
feat(api): api update
1 parent 8363681 commit 6318ae3

File tree

2 files changed

+29
-9
lines changed

2 files changed

+29
-9
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 236
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-2d7155feee87cb1c64ae2b6f31d769c46725b615f1622558f998f2a637cfb57c.yml
3-
openapi_spec_hash: c3117360164f38ece4a984800813813c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-4a9671050881b7d7579bd118589b25ed43dccb69677f5ab8576df6f70de9a0dc.yml
3+
openapi_spec_hash: b72da714aeef1e6652e6cc595ef65f94
44
config_hash: 25d7d7aa4882db6189b4b53e8e249e80

src/increase/types/intrafi_balance.py

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List, Optional
3+
from typing import TYPE_CHECKING, Dict, List, Optional
44
from datetime import date
55
from typing_extensions import Literal
66

7+
from pydantic import Field as FieldInfo
8+
79
from .._models import BaseModel
810

911
__all__ = ["IntrafiBalance", "Balance", "BalanceBankLocation"]
@@ -20,9 +22,6 @@ class BalanceBankLocation(BaseModel):
2022

2123

2224
class Balance(BaseModel):
23-
id: str
24-
"""The identifier of this balance."""
25-
2625
balance: int
2726
"""The balance, in minor units of `currency`, held with this bank."""
2827

@@ -39,15 +38,24 @@ class Balance(BaseModel):
3938
identify the institution.
4039
"""
4140

41+
if TYPE_CHECKING:
42+
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
43+
# value to this field, so for compatibility we avoid doing it at runtime.
44+
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
45+
46+
# Stub to indicate that arbitrary properties are accepted.
47+
# To access properties that are not valid identifiers you can use `getattr`, e.g.
48+
# `getattr(obj, '$type')`
49+
def __getattr__(self, attr: str) -> object: ...
50+
else:
51+
__pydantic_extra__: Dict[str, object]
52+
4253

4354
class IntrafiBalance(BaseModel):
4455
"""
4556
When using IntraFi, each account's balance over the standard FDIC insurance amount is swept to various other institutions. Funds are rebalanced across banks as needed once per business day.
4657
"""
4758

48-
id: str
49-
"""The identifier of this balance."""
50-
5159
balances: List[Balance]
5260
"""Each entry represents a balance held at a different bank.
5361
@@ -77,3 +85,15 @@ class IntrafiBalance(BaseModel):
7785
7886
For this resource it will always be `intrafi_balance`.
7987
"""
88+
89+
if TYPE_CHECKING:
90+
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
91+
# value to this field, so for compatibility we avoid doing it at runtime.
92+
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
93+
94+
# Stub to indicate that arbitrary properties are accepted.
95+
# To access properties that are not valid identifiers you can use `getattr`, e.g.
96+
# `getattr(obj, '$type')`
97+
def __getattr__(self, attr: str) -> object: ...
98+
else:
99+
__pydantic_extra__: Dict[str, object]

0 commit comments

Comments
 (0)