Skip to content

Commit 9093cca

Browse files
Add accounting query params (#118)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 0ba32aa commit 9093cca

File tree

10 files changed

+132
-17
lines changed

10 files changed

+132
-17
lines changed

poetry.lock

Lines changed: 17 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "MergePythonClient"
33

44
[tool.poetry]
55
name = "MergePythonClient"
6-
version = "1.2.0"
6+
version = "1.2.1"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36386,6 +36386,14 @@ client.accounting.accounts.list()
3638636386
<dl>
3638736387
<dd>
3638836388

36389+
**status:** `typing.Optional[str]` — If provided, will only return accounts with this status.
36390+
36391+
</dd>
36392+
</dl>
36393+
36394+
<dl>
36395+
<dd>
36396+
3638936397
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
3639036398

3639136399
</dd>
@@ -39232,6 +39240,14 @@ client.accounting.contacts.list()
3923239240
<dl>
3923339241
<dd>
3923439242

39243+
**status:** `typing.Optional[str]` — If provided, will only return Contacts that match this status.
39244+
39245+
</dd>
39246+
</dl>
39247+
39248+
<dl>
39249+
<dd>
39250+
3923539251
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
3923639252

3923739253
</dd>
@@ -47353,6 +47369,14 @@ client.accounting.tracking_categories.list()
4735347369
<dl>
4735447370
<dd>
4735547371

47372+
**category_type:** `typing.Optional[str]` — If provided, will only return tracking categories with this type.
47373+
47374+
</dd>
47375+
</dl>
47376+
47377+
<dl>
47378+
<dd>
47379+
4735647380
**company_id:** `typing.Optional[str]` — If provided, will only return tracking categories for this company.
4735747381

4735847382
</dd>
@@ -47473,6 +47497,14 @@ client.accounting.tracking_categories.list()
4747347497
<dl>
4747447498
<dd>
4747547499

47500+
**status:** `typing.Optional[str]` — If provided, will only return tracking categories with this status.
47501+
47502+
</dd>
47503+
</dl>
47504+
47505+
<dl>
47506+
<dd>
47507+
4747647508
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
4747747509

4747847510
</dd>

src/merge/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def __init__(
2222

2323
def get_headers(self) -> typing.Dict[str, str]:
2424
headers: typing.Dict[str, str] = {
25-
"User-Agent": "MergePythonClient/1.2.0",
25+
"User-Agent": "MergePythonClient/1.2.1",
2626
"X-Fern-Language": "Python",
2727
"X-Fern-SDK-Name": "MergePythonClient",
28-
"X-Fern-SDK-Version": "1.2.0",
28+
"X-Fern-SDK-Version": "1.2.1",
2929
}
3030
if self._account_token is not None:
3131
headers["X-Account-Token"] = self._account_token

src/merge/resources/accounting/resources/accounts/client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def list(
5555
remote_fields: typing.Optional[AccountsListRequestRemoteFields] = None,
5656
remote_id: typing.Optional[str] = None,
5757
show_enum_origins: typing.Optional[AccountsListRequestShowEnumOrigins] = None,
58+
status: typing.Optional[str] = None,
5859
request_options: typing.Optional[RequestOptions] = None,
5960
) -> PaginatedAccountList:
6061
"""
@@ -110,6 +111,9 @@ def list(
110111
show_enum_origins : typing.Optional[AccountsListRequestShowEnumOrigins]
111112
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)
112113
114+
status : typing.Optional[str]
115+
If provided, will only return accounts with this status.
116+
113117
request_options : typing.Optional[RequestOptions]
114118
Request-specific configuration.
115119
@@ -145,6 +149,7 @@ def list(
145149
remote_fields=remote_fields,
146150
remote_id=remote_id,
147151
show_enum_origins=show_enum_origins,
152+
status=status,
148153
request_options=request_options,
149154
)
150155
return response.data
@@ -322,6 +327,7 @@ async def list(
322327
remote_fields: typing.Optional[AccountsListRequestRemoteFields] = None,
323328
remote_id: typing.Optional[str] = None,
324329
show_enum_origins: typing.Optional[AccountsListRequestShowEnumOrigins] = None,
330+
status: typing.Optional[str] = None,
325331
request_options: typing.Optional[RequestOptions] = None,
326332
) -> PaginatedAccountList:
327333
"""
@@ -377,6 +383,9 @@ async def list(
377383
show_enum_origins : typing.Optional[AccountsListRequestShowEnumOrigins]
378384
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)
379385
386+
status : typing.Optional[str]
387+
If provided, will only return accounts with this status.
388+
380389
request_options : typing.Optional[RequestOptions]
381390
Request-specific configuration.
382391
@@ -420,6 +429,7 @@ async def main() -> None:
420429
remote_fields=remote_fields,
421430
remote_id=remote_id,
422431
show_enum_origins=show_enum_origins,
432+
status=status,
423433
request_options=request_options,
424434
)
425435
return response.data

src/merge/resources/accounting/resources/accounts/raw_client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def list(
4949
remote_fields: typing.Optional[AccountsListRequestRemoteFields] = None,
5050
remote_id: typing.Optional[str] = None,
5151
show_enum_origins: typing.Optional[AccountsListRequestShowEnumOrigins] = None,
52+
status: typing.Optional[str] = None,
5253
request_options: typing.Optional[RequestOptions] = None,
5354
) -> HttpResponse[PaginatedAccountList]:
5455
"""
@@ -104,6 +105,9 @@ def list(
104105
show_enum_origins : typing.Optional[AccountsListRequestShowEnumOrigins]
105106
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)
106107
108+
status : typing.Optional[str]
109+
If provided, will only return accounts with this status.
110+
107111
request_options : typing.Optional[RequestOptions]
108112
Request-specific configuration.
109113
@@ -132,6 +136,7 @@ def list(
132136
"remote_fields": remote_fields,
133137
"remote_id": remote_id,
134138
"show_enum_origins": show_enum_origins,
139+
"status": status,
135140
},
136141
request_options=request_options,
137142
)
@@ -338,6 +343,7 @@ async def list(
338343
remote_fields: typing.Optional[AccountsListRequestRemoteFields] = None,
339344
remote_id: typing.Optional[str] = None,
340345
show_enum_origins: typing.Optional[AccountsListRequestShowEnumOrigins] = None,
346+
status: typing.Optional[str] = None,
341347
request_options: typing.Optional[RequestOptions] = None,
342348
) -> AsyncHttpResponse[PaginatedAccountList]:
343349
"""
@@ -393,6 +399,9 @@ async def list(
393399
show_enum_origins : typing.Optional[AccountsListRequestShowEnumOrigins]
394400
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)
395401
402+
status : typing.Optional[str]
403+
If provided, will only return accounts with this status.
404+
396405
request_options : typing.Optional[RequestOptions]
397406
Request-specific configuration.
398407
@@ -421,6 +430,7 @@ async def list(
421430
"remote_fields": remote_fields,
422431
"remote_id": remote_id,
423432
"show_enum_origins": show_enum_origins,
433+
"status": status,
424434
},
425435
request_options=request_options,
426436
)

src/merge/resources/accounting/resources/contacts/client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def list(
5757
remote_fields: typing.Optional[typing.Literal["status"]] = None,
5858
remote_id: typing.Optional[str] = None,
5959
show_enum_origins: typing.Optional[typing.Literal["status"]] = None,
60+
status: typing.Optional[str] = None,
6061
request_options: typing.Optional[RequestOptions] = None,
6162
) -> PaginatedContactList:
6263
"""
@@ -121,6 +122,9 @@ def list(
121122
show_enum_origins : typing.Optional[typing.Literal["status"]]
122123
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)
123124
125+
status : typing.Optional[str]
126+
If provided, will only return Contacts that match this status.
127+
124128
request_options : typing.Optional[RequestOptions]
125129
Request-specific configuration.
126130
@@ -159,6 +163,7 @@ def list(
159163
remote_fields=remote_fields,
160164
remote_id=remote_id,
161165
show_enum_origins=show_enum_origins,
166+
status=status,
162167
request_options=request_options,
163168
)
164169
return response.data
@@ -407,6 +412,7 @@ async def list(
407412
remote_fields: typing.Optional[typing.Literal["status"]] = None,
408413
remote_id: typing.Optional[str] = None,
409414
show_enum_origins: typing.Optional[typing.Literal["status"]] = None,
415+
status: typing.Optional[str] = None,
410416
request_options: typing.Optional[RequestOptions] = None,
411417
) -> PaginatedContactList:
412418
"""
@@ -471,6 +477,9 @@ async def list(
471477
show_enum_origins : typing.Optional[typing.Literal["status"]]
472478
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)
473479
480+
status : typing.Optional[str]
481+
If provided, will only return Contacts that match this status.
482+
474483
request_options : typing.Optional[RequestOptions]
475484
Request-specific configuration.
476485
@@ -517,6 +526,7 @@ async def main() -> None:
517526
remote_fields=remote_fields,
518527
remote_id=remote_id,
519528
show_enum_origins=show_enum_origins,
529+
status=status,
520530
request_options=request_options,
521531
)
522532
return response.data

src/merge/resources/accounting/resources/contacts/raw_client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def list(
5151
remote_fields: typing.Optional[typing.Literal["status"]] = None,
5252
remote_id: typing.Optional[str] = None,
5353
show_enum_origins: typing.Optional[typing.Literal["status"]] = None,
54+
status: typing.Optional[str] = None,
5455
request_options: typing.Optional[RequestOptions] = None,
5556
) -> HttpResponse[PaginatedContactList]:
5657
"""
@@ -115,6 +116,9 @@ def list(
115116
show_enum_origins : typing.Optional[typing.Literal["status"]]
116117
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)
117118
119+
status : typing.Optional[str]
120+
If provided, will only return Contacts that match this status.
121+
118122
request_options : typing.Optional[RequestOptions]
119123
Request-specific configuration.
120124
@@ -146,6 +150,7 @@ def list(
146150
"remote_fields": remote_fields,
147151
"remote_id": remote_id,
148152
"show_enum_origins": show_enum_origins,
153+
"status": status,
149154
},
150155
request_options=request_options,
151156
)
@@ -430,6 +435,7 @@ async def list(
430435
remote_fields: typing.Optional[typing.Literal["status"]] = None,
431436
remote_id: typing.Optional[str] = None,
432437
show_enum_origins: typing.Optional[typing.Literal["status"]] = None,
438+
status: typing.Optional[str] = None,
433439
request_options: typing.Optional[RequestOptions] = None,
434440
) -> AsyncHttpResponse[PaginatedContactList]:
435441
"""
@@ -494,6 +500,9 @@ async def list(
494500
show_enum_origins : typing.Optional[typing.Literal["status"]]
495501
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)
496502
503+
status : typing.Optional[str]
504+
If provided, will only return Contacts that match this status.
505+
497506
request_options : typing.Optional[RequestOptions]
498507
Request-specific configuration.
499508
@@ -525,6 +534,7 @@ async def list(
525534
"remote_fields": remote_fields,
526535
"remote_id": remote_id,
527536
"show_enum_origins": show_enum_origins,
537+
"status": status,
528538
},
529539
request_options=request_options,
530540
)

0 commit comments

Comments
 (0)