Skip to content
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
6 changes: 3 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"cliVersion": "4.46.0",
"cliVersion": "4.65.2",
"generatorName": "fernapi/fern-python-sdk",
"generatorVersion": "4.64.1",
"generatorConfig": {
Expand All @@ -18,6 +18,6 @@
"skip_validation": true
}
},
"originGitCommit": "f25a5c52b4f8c7fb0eab7532cf4d3032bce1c05c",
"sdkVersion": "4.0.9"
"originGitCommit": "d2e18d0bd27160206c8251e11269b139a3b4ea10",
"sdkVersion": "4.0.10"
}
260 changes: 130 additions & 130 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]

[tool.poetry]
name = "brevo-python"
version = "4.0.9"
version = "4.0.10"
description = ""
readme = "README.md"
authors = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

import typing

CreateContactRequestAttributesValue = typing.Union[float, str, bool, typing.List[str]]
CreateContactRequestAttributesValue = typing.Union[float, int, str, bool, typing.List[str]]
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

import typing

UpdateContactRequestAttributesValue = typing.Union[float, str, bool, typing.List[str]]
UpdateContactRequestAttributesValue = typing.Union[float, int, str, bool, typing.List[str]]
4 changes: 2 additions & 2 deletions src/brevo/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ def get_headers(self) -> typing.Dict[str, str]:
import platform

headers: typing.Dict[str, str] = {
"User-Agent": "brevo-python/4.0.9",
"User-Agent": "brevo-python/4.0.10",
"X-Fern-Language": "Python",
"X-Fern-Runtime": f"python/{platform.python_version()}",
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
"X-Fern-SDK-Name": "brevo-python",
"X-Fern-SDK-Version": "4.0.9",
"X-Fern-SDK-Version": "4.0.10",
**(self.get_custom_headers() or {}),
}
headers["api-key"] = self.api_key
Expand Down
10 changes: 5 additions & 5 deletions src/brevo/ecommerce/types/create_batch_order_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
import typing

import pydantic
import typing_extensions
from ...core.pydantic_utilities import IS_PYDANTIC_V2
from ...core.serialization import FieldMetadata
from ...core.unchecked_base_model import UncheckedBaseModel


class CreateBatchOrderResponse(UncheckedBaseModel):
batch_id: typing_extensions.Annotated[
float, FieldMetadata(alias="batchId"), pydantic.Field(alias="batchId", description="Batch ID of the request")
]
count: typing.Optional[int] = pydantic.Field(default=None)
"""
Number of orders
"""

batch_id: float = pydantic.Field()
"""
Batch ID of the request
"""

if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

import typing

CreateBatchEventsRequestItemContactPropertiesValue = typing.Union[str, int]
CreateBatchEventsRequestItemContactPropertiesValue = typing.Union[str, int, bool]
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
import typing

CreateBatchEventsRequestItemEventPropertiesValue = typing.Union[
str, int, typing.Dict[str, typing.Any], typing.List[typing.Any]
str, int, bool, typing.Dict[str, typing.Any], typing.List[typing.Any]
]
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

import typing

CreateEventRequestContactPropertiesValue = typing.Union[str, int]
CreateEventRequestContactPropertiesValue = typing.Union[str, int, bool]
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

import typing

CreateEventRequestEventPropertiesValue = typing.Union[str, int, typing.Dict[str, typing.Any], typing.List[typing.Any]]
CreateEventRequestEventPropertiesValue = typing.Union[
str, int, bool, typing.Dict[str, typing.Any], typing.List[typing.Any]
]
4 changes: 2 additions & 2 deletions src/brevo/process/types/get_process_response_info_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class GetProcessResponseInfoImport(UncheckedBaseModel):
Number of duplicate external IDs
"""

duplicate_email_id: typing.Optional[int] = pydantic.Field(default=None)
duplicate_email_id: typing.Optional[str] = pydantic.Field(default=None)
"""
Number of duplicate email IDs
URL to CSV file containing duplicate email IDs, or null if none
"""

duplicate_phone_id: typing.Optional[int] = pydantic.Field(default=None)
Expand Down
2 changes: 1 addition & 1 deletion src/brevo/process/types/get_process_response_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
import typing

GetProcessResponseStatus = typing.Union[
typing.Literal["queued", "processing", "completed", "failed", "cancelled"], typing.Any
typing.Literal["queued", "in_process", "processing", "completed", "failed", "cancelled"], typing.Any
]
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class GetProcessesResponseProcessesItemInfoImport(UncheckedBaseModel):
Number of duplicate external IDs
"""

duplicate_email_id: typing.Optional[int] = pydantic.Field(default=None)
duplicate_email_id: typing.Optional[str] = pydantic.Field(default=None)
"""
Number of duplicate email IDs
URL to CSV file containing duplicate email IDs, or null if none
"""

duplicate_phone_id: typing.Optional[int] = pydantic.Field(default=None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
import typing

GetProcessesResponseProcessesItemStatus = typing.Union[
typing.Literal["queued", "processing", "completed", "failed", "cancelled"], typing.Any
typing.Literal["queued", "in_process", "processing", "completed", "failed", "cancelled"], typing.Any
]
2 changes: 1 addition & 1 deletion wiremock/wiremock-mappings.json

Large diffs are not rendered by default.

Loading