Skip to content

Commit

Permalink
Release 1.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Feb 9, 2024
1 parent 6dfeb0a commit 93e2f10
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 3 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 = "flagright"
version = "1.3.5"
version = "1.3.6"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 2 additions & 0 deletions src/flagright/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
CaseManagementEvent,
CaseManagementEventCaseStatus,
CaseManagementEventCaseStatusReason,
CaseOpenedDetails,
CheckDeliveryStatus,
CheckDetails,
CheckPaymentMethod,
Expand Down Expand Up @@ -204,6 +205,7 @@
"CaseManagementEvent",
"CaseManagementEventCaseStatus",
"CaseManagementEventCaseStatusReason",
"CaseOpenedDetails",
"CheckDeliveryStatus",
"CheckDetails",
"CheckPaymentMethod",
Expand Down
2 changes: 1 addition & 1 deletion src/flagright/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.3.5",
"X-Fern-SDK-Version": "1.3.6",
}
headers["x-api-key"] = self.api_key
return headers
Expand Down
2 changes: 2 additions & 0 deletions src/flagright/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
from .case_management_event import CaseManagementEvent
from .case_management_event_case_status import CaseManagementEventCaseStatus
from .case_management_event_case_status_reason import CaseManagementEventCaseStatusReason
from .case_opened_details import CaseOpenedDetails
from .check_delivery_status import CheckDeliveryStatus
from .check_details import CheckDetails
from .check_payment_method import CheckPaymentMethod
Expand Down Expand Up @@ -193,6 +194,7 @@
"CaseManagementEvent",
"CaseManagementEventCaseStatus",
"CaseManagementEventCaseStatusReason",
"CaseOpenedDetails",
"CheckDeliveryStatus",
"CheckDetails",
"CheckPaymentMethod",
Expand Down
32 changes: 32 additions & 0 deletions src/flagright/types/case_opened_details.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This file was auto-generated by Fern from our API Definition.

import datetime as dt
import typing

from ..core.datetime_utils import serialize_datetime

try:
import pydantic.v1 as pydantic # type: ignore
except ImportError:
import pydantic # type: ignore


class CaseOpenedDetails(pydantic.BaseModel):
case_id: typing.Optional[str] = pydantic.Field(alias="caseId")
status: typing.Optional[str]
user_id: typing.Optional[str] = pydantic.Field(alias="userId")
transaction_ids: typing.Optional[typing.List[str]] = pydantic.Field(alias="transactionIds")

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
return super().json(**kwargs_with_defaults)

def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
return super().dict(**kwargs_with_defaults)

class Config:
frozen = True
smart_union = True
allow_population_by_field_name = True
json_encoders = {dt.datetime: serialize_datetime}
8 changes: 7 additions & 1 deletion src/flagright/types/webhook_event_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@

from .alert_closed_details import AlertClosedDetails
from .case_closed_details import CaseClosedDetails
from .case_opened_details import CaseOpenedDetails
from .kyc_status_details import KycStatusDetails
from .transaction_status_details import TransactionStatusDetails
from .user_state_details import UserStateDetails

WebhookEventData = typing.Union[
UserStateDetails, CaseClosedDetails, AlertClosedDetails, TransactionStatusDetails, KycStatusDetails
UserStateDetails,
CaseClosedDetails,
CaseOpenedDetails,
AlertClosedDetails,
TransactionStatusDetails,
KycStatusDetails,
]

0 comments on commit 93e2f10

Please sign in to comment.