Skip to content

Commit 35f06be

Browse files
feat(api): api update
1 parent 14f2eca commit 35f06be

2 files changed

Lines changed: 17 additions & 16 deletions

File tree

.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-c8283ca199163ab2079f2cafac18348f54e96e9049864f39cd7e89958e80db0d.yml
3-
openapi_spec_hash: a4f32a1c462a8ad1380f6a7a1d7b75ec
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e3103e9bb8480e11581841c322e0bd0255b64413d401873c96cd00a3e6d6c3f7.yml
3+
openapi_spec_hash: 962e1efe27066cf84b405a6695dd8288
44
config_hash: 4945e03affdf289484733306e4797f81

src/increase/types/group.py

Lines changed: 15 additions & 14 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__ = ["Group"]
@@ -17,20 +20,6 @@ class Group(BaseModel):
1720
id: str
1821
"""The Group identifier."""
1922

20-
ach_debit_status: Literal["disabled", "enabled"]
21-
"""If the Group is allowed to create ACH debits.
22-
23-
- `disabled` - The Group cannot make ACH debits.
24-
- `enabled` - The Group can make ACH debits.
25-
"""
26-
27-
activation_status: Literal["unactivated", "activated"]
28-
"""If the Group is activated or not.
29-
30-
- `unactivated` - The Group is not activated.
31-
- `activated` - The Group is activated.
32-
"""
33-
3423
created_at: datetime
3524
"""
3625
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Group
@@ -42,3 +31,15 @@ class Group(BaseModel):
4231
4332
For this resource it will always be `group`.
4433
"""
34+
35+
if TYPE_CHECKING:
36+
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
37+
# value to this field, so for compatibility we avoid doing it at runtime.
38+
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
39+
40+
# Stub to indicate that arbitrary properties are accepted.
41+
# To access properties that are not valid identifiers you can use `getattr`, e.g.
42+
# `getattr(obj, '$type')`
43+
def __getattr__(self, attr: str) -> object: ...
44+
else:
45+
__pydantic_extra__: Dict[str, object]

0 commit comments

Comments
 (0)