Skip to content
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

tracking_categories updated to be non-optional #92

Merged
merged 1 commit into from
Jul 1, 2024
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
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
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
Loading