Skip to content

Commit

Permalink
tracking_categories updated to be non-optional (#92)
Browse files Browse the repository at this point in the history
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
  • Loading branch information
fern-api[bot] authored Jul 1, 2024
1 parent 564fc34 commit f5df8b6
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "MergePythonClient"
version = "1.0.11"
version = "1.0.12"
description = ""
readme = "README.md"
authors = []
Expand Down
4 changes: 2 additions & 2 deletions src/merge/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def __init__(
)
self.ats = AtsClient(client_wrapper=self._client_wrapper)
self.crm = CrmClient(client_wrapper=self._client_wrapper)
self.hris = HrisClient(client_wrapper=self._client_wrapper)
self.filestorage = FilestorageClient(client_wrapper=self._client_wrapper)
self.ticketing = TicketingClient(client_wrapper=self._client_wrapper)
self.hris = HrisClient(client_wrapper=self._client_wrapper)
self.accounting = AccountingClient(client_wrapper=self._client_wrapper)


Expand Down Expand Up @@ -148,9 +148,9 @@ def __init__(
)
self.ats = AsyncAtsClient(client_wrapper=self._client_wrapper)
self.crm = AsyncCrmClient(client_wrapper=self._client_wrapper)
self.hris = AsyncHrisClient(client_wrapper=self._client_wrapper)
self.filestorage = AsyncFilestorageClient(client_wrapper=self._client_wrapper)
self.ticketing = AsyncTicketingClient(client_wrapper=self._client_wrapper)
self.hris = AsyncHrisClient(client_wrapper=self._client_wrapper)
self.accounting = AsyncAccountingClient(client_wrapper=self._client_wrapper)


Expand Down
2 changes: 1 addition & 1 deletion src/merge/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "MergePythonClient",
"X-Fern-SDK-Version": "1.0.11",
"X-Fern-SDK-Version": "1.0.12",
}
if self._account_token is not None:
headers["X-Account-Token"] = self._account_token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class CreditNoteLineItem(pydantic_v1.BaseModel):
The credit note line item's associated tracking category.
"""

tracking_categories: typing.List[str] = pydantic_v1.Field()
tracking_categories: typing.Optional[typing.List[typing.Optional[str]]] = pydantic_v1.Field()
"""
The credit note line item's associated tracking categories.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class PurchaseOrderLineItem(pydantic_v1.BaseModel):
The purchase order line item's associated tracking category.
"""

tracking_categories: typing.List[str] = pydantic_v1.Field()
tracking_categories: typing.Optional[typing.List[typing.Optional[str]]] = pydantic_v1.Field()
"""
The purchase order line item's associated tracking categories.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class PurchaseOrderLineItemRequest(pydantic_v1.BaseModel):
The purchase order line item's associated tracking category.
"""

tracking_categories: typing.List[str] = pydantic_v1.Field()
tracking_categories: typing.Optional[typing.List[typing.Optional[str]]] = pydantic_v1.Field()
"""
The purchase order line item's associated tracking categories.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class TransactionLineItem(pydantic_v1.BaseModel):
The line's associated tracking category.
"""

tracking_categories: typing.List[str] = pydantic_v1.Field()
tracking_categories: typing.Optional[typing.List[typing.Optional[str]]] = pydantic_v1.Field()
"""
The line's associated tracking categories.
"""
Expand Down
2 changes: 1 addition & 1 deletion src/merge/resources/accounting/types/vendor_credit_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class VendorCreditLine(pydantic_v1.BaseModel):
The line's associated tracking category.
"""

tracking_categories: typing.List[str] = pydantic_v1.Field()
tracking_categories: typing.Optional[typing.List[typing.Optional[str]]] = pydantic_v1.Field()
"""
The line's associated tracking categories.
"""
Expand Down

0 comments on commit f5df8b6

Please sign in to comment.