Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 255
openapi_spec_hash: 0c2a6908b65af7107b19958604ff5cb8
openapi_spec_hash: 60853461b5673694977394cb36aecad2
config_hash: de151ebd21a0bd391662389b310a8f49
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

16 changes: 14 additions & 2 deletions src/increase/types/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class EntityCsv(BaseModel):
class FeeCsvCreatedAt(BaseModel):
"""Filter fees by their created date.

The time range must not include any fees that are part of an open fee statement.
The time range must not include any fees on an open fee statement.
"""

after: Optional[datetime] = None
Expand All @@ -187,9 +187,21 @@ class FeeCsv(BaseModel):
created_at: Optional[FeeCsvCreatedAt] = None
"""Filter fees by their created date.

The time range must not include any fees that are part of an open fee statement.
The time range must not include any fees on an open fee statement.
"""

if TYPE_CHECKING:
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
# value to this field, so for compatibility we avoid doing it at runtime.
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]

# Stub to indicate that arbitrary properties are accepted.
# To access properties that are not valid identifiers you can use `getattr`, e.g.
# `getattr(obj, '$type')`
def __getattr__(self, attr: str) -> object: ...
else:
__pydantic_extra__: Dict[str, object]


class Form1099Int(BaseModel):
"""Details of the Form 1099-INT export.
Expand Down
2 changes: 1 addition & 1 deletion src/increase/types/export_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ class FeeCsvCreatedAt(TypedDict, total=False):
"""


class FeeCsv(TypedDict, total=False):
class FeeCsv(TypedDict, total=False, extra_items=object): # type: ignore[call-arg]
"""Options for the created export. Required if `category` is equal to `fee_csv`."""

created_at: FeeCsvCreatedAt
Expand Down
Loading