Skip to content

Add accounting query params #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2025
Merged
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
31 changes: 17 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "MergePythonClient"

[tool.poetry]
name = "MergePythonClient"
version = "1.2.0"
version = "1.2.1"
description = ""
readme = "README.md"
authors = []
Expand Down
32 changes: 32 additions & 0 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -36386,6 +36386,14 @@ client.accounting.accounts.list()
<dl>
<dd>

**status:** `typing.Optional[str]` — If provided, will only return accounts with this status.

</dd>
</dl>

<dl>
<dd>

**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.

</dd>
Expand Down Expand Up @@ -39232,6 +39240,14 @@ client.accounting.contacts.list()
<dl>
<dd>

**status:** `typing.Optional[str]` — If provided, will only return Contacts that match this status.

</dd>
</dl>

<dl>
<dd>

**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.

</dd>
Expand Down Expand Up @@ -47353,6 +47369,14 @@ client.accounting.tracking_categories.list()
<dl>
<dd>

**category_type:** `typing.Optional[str]` — If provided, will only return tracking categories with this type.

</dd>
</dl>

<dl>
<dd>

**company_id:** `typing.Optional[str]` — If provided, will only return tracking categories for this company.

</dd>
Expand Down Expand Up @@ -47473,6 +47497,14 @@ client.accounting.tracking_categories.list()
<dl>
<dd>

**status:** `typing.Optional[str]` — If provided, will only return tracking categories with this status.

</dd>
</dl>

<dl>
<dd>

**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.

</dd>
Expand Down
4 changes: 2 additions & 2 deletions src/merge/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ def __init__(

def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"User-Agent": "MergePythonClient/1.2.0",
"User-Agent": "MergePythonClient/1.2.1",
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "MergePythonClient",
"X-Fern-SDK-Version": "1.2.0",
"X-Fern-SDK-Version": "1.2.1",
}
if self._account_token is not None:
headers["X-Account-Token"] = self._account_token
Expand Down
10 changes: 10 additions & 0 deletions src/merge/resources/accounting/resources/accounts/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def list(
remote_fields: typing.Optional[AccountsListRequestRemoteFields] = None,
remote_id: typing.Optional[str] = None,
show_enum_origins: typing.Optional[AccountsListRequestShowEnumOrigins] = None,
status: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> PaginatedAccountList:
"""
Expand Down Expand Up @@ -110,6 +111,9 @@ def list(
show_enum_origins : typing.Optional[AccountsListRequestShowEnumOrigins]
A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)

status : typing.Optional[str]
If provided, will only return accounts with this status.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Expand Down Expand Up @@ -145,6 +149,7 @@ def list(
remote_fields=remote_fields,
remote_id=remote_id,
show_enum_origins=show_enum_origins,
status=status,
request_options=request_options,
)
return response.data
Expand Down Expand Up @@ -322,6 +327,7 @@ async def list(
remote_fields: typing.Optional[AccountsListRequestRemoteFields] = None,
remote_id: typing.Optional[str] = None,
show_enum_origins: typing.Optional[AccountsListRequestShowEnumOrigins] = None,
status: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> PaginatedAccountList:
"""
Expand Down Expand Up @@ -377,6 +383,9 @@ async def list(
show_enum_origins : typing.Optional[AccountsListRequestShowEnumOrigins]
A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)

status : typing.Optional[str]
If provided, will only return accounts with this status.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Expand Down Expand Up @@ -420,6 +429,7 @@ async def main() -> None:
remote_fields=remote_fields,
remote_id=remote_id,
show_enum_origins=show_enum_origins,
status=status,
request_options=request_options,
)
return response.data
Expand Down
10 changes: 10 additions & 0 deletions src/merge/resources/accounting/resources/accounts/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def list(
remote_fields: typing.Optional[AccountsListRequestRemoteFields] = None,
remote_id: typing.Optional[str] = None,
show_enum_origins: typing.Optional[AccountsListRequestShowEnumOrigins] = None,
status: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[PaginatedAccountList]:
"""
Expand Down Expand Up @@ -104,6 +105,9 @@ def list(
show_enum_origins : typing.Optional[AccountsListRequestShowEnumOrigins]
A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)

status : typing.Optional[str]
If provided, will only return accounts with this status.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Expand Down Expand Up @@ -132,6 +136,7 @@ def list(
"remote_fields": remote_fields,
"remote_id": remote_id,
"show_enum_origins": show_enum_origins,
"status": status,
},
request_options=request_options,
)
Expand Down Expand Up @@ -338,6 +343,7 @@ async def list(
remote_fields: typing.Optional[AccountsListRequestRemoteFields] = None,
remote_id: typing.Optional[str] = None,
show_enum_origins: typing.Optional[AccountsListRequestShowEnumOrigins] = None,
status: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[PaginatedAccountList]:
"""
Expand Down Expand Up @@ -393,6 +399,9 @@ async def list(
show_enum_origins : typing.Optional[AccountsListRequestShowEnumOrigins]
A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)

status : typing.Optional[str]
If provided, will only return accounts with this status.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Expand Down Expand Up @@ -421,6 +430,7 @@ async def list(
"remote_fields": remote_fields,
"remote_id": remote_id,
"show_enum_origins": show_enum_origins,
"status": status,
},
request_options=request_options,
)
Expand Down
10 changes: 10 additions & 0 deletions src/merge/resources/accounting/resources/contacts/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def list(
remote_fields: typing.Optional[typing.Literal["status"]] = None,
remote_id: typing.Optional[str] = None,
show_enum_origins: typing.Optional[typing.Literal["status"]] = None,
status: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> PaginatedContactList:
"""
Expand Down Expand Up @@ -121,6 +122,9 @@ def list(
show_enum_origins : typing.Optional[typing.Literal["status"]]
A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)

status : typing.Optional[str]
If provided, will only return Contacts that match this status.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Expand Down Expand Up @@ -159,6 +163,7 @@ def list(
remote_fields=remote_fields,
remote_id=remote_id,
show_enum_origins=show_enum_origins,
status=status,
request_options=request_options,
)
return response.data
Expand Down Expand Up @@ -407,6 +412,7 @@ async def list(
remote_fields: typing.Optional[typing.Literal["status"]] = None,
remote_id: typing.Optional[str] = None,
show_enum_origins: typing.Optional[typing.Literal["status"]] = None,
status: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> PaginatedContactList:
"""
Expand Down Expand Up @@ -471,6 +477,9 @@ async def list(
show_enum_origins : typing.Optional[typing.Literal["status"]]
A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)

status : typing.Optional[str]
If provided, will only return Contacts that match this status.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Expand Down Expand Up @@ -517,6 +526,7 @@ async def main() -> None:
remote_fields=remote_fields,
remote_id=remote_id,
show_enum_origins=show_enum_origins,
status=status,
request_options=request_options,
)
return response.data
Expand Down
10 changes: 10 additions & 0 deletions src/merge/resources/accounting/resources/contacts/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def list(
remote_fields: typing.Optional[typing.Literal["status"]] = None,
remote_id: typing.Optional[str] = None,
show_enum_origins: typing.Optional[typing.Literal["status"]] = None,
status: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[PaginatedContactList]:
"""
Expand Down Expand Up @@ -115,6 +116,9 @@ def list(
show_enum_origins : typing.Optional[typing.Literal["status"]]
A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)

status : typing.Optional[str]
If provided, will only return Contacts that match this status.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Expand Down Expand Up @@ -146,6 +150,7 @@ def list(
"remote_fields": remote_fields,
"remote_id": remote_id,
"show_enum_origins": show_enum_origins,
"status": status,
},
request_options=request_options,
)
Expand Down Expand Up @@ -430,6 +435,7 @@ async def list(
remote_fields: typing.Optional[typing.Literal["status"]] = None,
remote_id: typing.Optional[str] = None,
show_enum_origins: typing.Optional[typing.Literal["status"]] = None,
status: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[PaginatedContactList]:
"""
Expand Down Expand Up @@ -494,6 +500,9 @@ async def list(
show_enum_origins : typing.Optional[typing.Literal["status"]]
A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)

status : typing.Optional[str]
If provided, will only return Contacts that match this status.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Expand Down Expand Up @@ -525,6 +534,7 @@ async def list(
"remote_fields": remote_fields,
"remote_id": remote_id,
"show_enum_origins": show_enum_origins,
"status": status,
},
request_options=request_options,
)
Expand Down
Loading