Skip to content

Commit f5df8b6

Browse files
tracking_categories updated to be non-optional (#92)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 564fc34 commit f5df8b6

8 files changed

+9
-9
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "MergePythonClient"
3-
version = "1.0.11"
3+
version = "1.0.12"
44
description = ""
55
readme = "README.md"
66
authors = []

src/merge/client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ def __init__(
7878
)
7979
self.ats = AtsClient(client_wrapper=self._client_wrapper)
8080
self.crm = CrmClient(client_wrapper=self._client_wrapper)
81+
self.hris = HrisClient(client_wrapper=self._client_wrapper)
8182
self.filestorage = FilestorageClient(client_wrapper=self._client_wrapper)
8283
self.ticketing = TicketingClient(client_wrapper=self._client_wrapper)
83-
self.hris = HrisClient(client_wrapper=self._client_wrapper)
8484
self.accounting = AccountingClient(client_wrapper=self._client_wrapper)
8585

8686

@@ -148,9 +148,9 @@ def __init__(
148148
)
149149
self.ats = AsyncAtsClient(client_wrapper=self._client_wrapper)
150150
self.crm = AsyncCrmClient(client_wrapper=self._client_wrapper)
151+
self.hris = AsyncHrisClient(client_wrapper=self._client_wrapper)
151152
self.filestorage = AsyncFilestorageClient(client_wrapper=self._client_wrapper)
152153
self.ticketing = AsyncTicketingClient(client_wrapper=self._client_wrapper)
153-
self.hris = AsyncHrisClient(client_wrapper=self._client_wrapper)
154154
self.accounting = AsyncAccountingClient(client_wrapper=self._client_wrapper)
155155

156156

src/merge/core/client_wrapper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def get_headers(self) -> typing.Dict[str, str]:
2525
headers: typing.Dict[str, str] = {
2626
"X-Fern-Language": "Python",
2727
"X-Fern-SDK-Name": "MergePythonClient",
28-
"X-Fern-SDK-Version": "1.0.11",
28+
"X-Fern-SDK-Version": "1.0.12",
2929
}
3030
if self._account_token is not None:
3131
headers["X-Account-Token"] = self._account_token

src/merge/resources/accounting/types/credit_note_line_item.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class CreditNoteLineItem(pydantic_v1.BaseModel):
6262
The credit note line item's associated tracking category.
6363
"""
6464

65-
tracking_categories: typing.List[str] = pydantic_v1.Field()
65+
tracking_categories: typing.Optional[typing.List[typing.Optional[str]]] = pydantic_v1.Field()
6666
"""
6767
The credit note line item's associated tracking categories.
6868
"""

src/merge/resources/accounting/types/purchase_order_line_item.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class PurchaseOrderLineItem(pydantic_v1.BaseModel):
6464
The purchase order line item's associated tracking category.
6565
"""
6666

67-
tracking_categories: typing.List[str] = pydantic_v1.Field()
67+
tracking_categories: typing.Optional[typing.List[typing.Optional[str]]] = pydantic_v1.Field()
6868
"""
6969
The purchase order line item's associated tracking categories.
7070
"""

src/merge/resources/accounting/types/purchase_order_line_item_request.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class PurchaseOrderLineItemRequest(pydantic_v1.BaseModel):
5353
The purchase order line item's associated tracking category.
5454
"""
5555

56-
tracking_categories: typing.List[str] = pydantic_v1.Field()
56+
tracking_categories: typing.Optional[typing.List[typing.Optional[str]]] = pydantic_v1.Field()
5757
"""
5858
The purchase order line item's associated tracking categories.
5959
"""

src/merge/resources/accounting/types/transaction_line_item.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class TransactionLineItem(pydantic_v1.BaseModel):
6464
The line's associated tracking category.
6565
"""
6666

67-
tracking_categories: typing.List[str] = pydantic_v1.Field()
67+
tracking_categories: typing.Optional[typing.List[typing.Optional[str]]] = pydantic_v1.Field()
6868
"""
6969
The line's associated tracking categories.
7070
"""

src/merge/resources/accounting/types/vendor_credit_line.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class VendorCreditLine(pydantic_v1.BaseModel):
4747
The line's associated tracking category.
4848
"""
4949

50-
tracking_categories: typing.List[str] = pydantic_v1.Field()
50+
tracking_categories: typing.Optional[typing.List[typing.Optional[str]]] = pydantic_v1.Field()
5151
"""
5252
The line's associated tracking categories.
5353
"""

0 commit comments

Comments
 (0)