Skip to content

Commit a547f8b

Browse files
feat(api): api update
1 parent b7fdd19 commit a547f8b

File tree

4 files changed

+47
-3
lines changed

4 files changed

+47
-3
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: 230
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f184b6347de456d3db4fc3d5c691beb9dec85f74849cc4439a9dd4635998b1ec.yml
3-
openapi_spec_hash: 255de9f0f702449bddf655b19a09a0cd
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-86f5f21622005ed0d2488066a1194b09fb6add92314eb797edc1ced57d7e0435.yml
3+
openapi_spec_hash: e2e09186517e41d2332a8b59cff9b6e7
44
config_hash: ff2eb5f192b4de36611b37b27961c2d8

src/increase/types/account_statement.py

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

3+
from typing import TYPE_CHECKING, Dict
34
from datetime import datetime
45
from typing_extensions import Literal
56

7+
from pydantic import Field as FieldInfo
8+
69
from .._models import BaseModel
710

811
__all__ = ["AccountStatement"]
@@ -52,3 +55,15 @@ class AccountStatement(BaseModel):
5255
5356
For this resource it will always be `account_statement`.
5457
"""
58+
59+
if TYPE_CHECKING:
60+
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
61+
# value to this field, so for compatibility we avoid doing it at runtime.
62+
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
63+
64+
# Stub to indicate that arbitrary properties are accepted.
65+
# To access properties that are not valid identifiers you can use `getattr`, e.g.
66+
# `getattr(obj, '$type')`
67+
def __getattr__(self, attr: str) -> object: ...
68+
else:
69+
__pydantic_extra__: Dict[str, object]

src/increase/types/balance_lookup.py

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

3+
from typing import TYPE_CHECKING, Dict
34
from typing_extensions import Literal
45

6+
from pydantic import Field as FieldInfo
7+
58
from .._models import BaseModel
69

710
__all__ = ["BalanceLookup"]
@@ -32,3 +35,15 @@ class BalanceLookup(BaseModel):
3235
3336
For this resource it will always be `balance_lookup`.
3437
"""
38+
39+
if TYPE_CHECKING:
40+
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
41+
# value to this field, so for compatibility we avoid doing it at runtime.
42+
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
43+
44+
# Stub to indicate that arbitrary properties are accepted.
45+
# To access properties that are not valid identifiers you can use `getattr`, e.g.
46+
# `getattr(obj, '$type')`
47+
def __getattr__(self, attr: str) -> object: ...
48+
else:
49+
__pydantic_extra__: Dict[str, object]

src/increase/types/program.py

Lines changed: 15 additions & 1 deletion
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 Optional
3+
from typing import TYPE_CHECKING, Dict, Optional
44
from datetime import datetime
55
from typing_extensions import Literal
66

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

911
__all__ = ["Program"]
@@ -59,3 +61,15 @@ class Program(BaseModel):
5961
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Program
6062
was last updated.
6163
"""
64+
65+
if TYPE_CHECKING:
66+
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
67+
# value to this field, so for compatibility we avoid doing it at runtime.
68+
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
69+
70+
# Stub to indicate that arbitrary properties are accepted.
71+
# To access properties that are not valid identifiers you can use `getattr`, e.g.
72+
# `getattr(obj, '$type')`
73+
def __getattr__(self, attr: str) -> object: ...
74+
else:
75+
__pydantic_extra__: Dict[str, object]

0 commit comments

Comments
 (0)