Skip to content

Commit 82cd22e

Browse files
committed
Release 1.6.34
1 parent c727243 commit 82cd22e

File tree

10 files changed

+46
-2
lines changed

10 files changed

+46
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "flagright"
3-
version = "1.6.33"
3+
version = "1.6.34"
44
description = ""
55
readme = "README.md"
66
authors = []

src/flagright/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
ConsumerUserSegment,
8383
ContactDetails,
8484
CountryCode,
85+
CraRiskLevelUpdatedDetails,
8586
CurrencyCode,
8687
Date,
8788
DeviceData,
@@ -382,6 +383,7 @@
382383
"ConsumerUsersCreateResponse",
383384
"ContactDetails",
384385
"CountryCode",
386+
"CraRiskLevelUpdatedDetails",
385387
"CurrencyCode",
386388
"Date",
387389
"DeviceData",

src/flagright/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1414
headers: typing.Dict[str, str] = {
1515
"X-Fern-Language": "Python",
1616
"X-Fern-SDK-Name": "flagright",
17-
"X-Fern-SDK-Version": "1.6.33",
17+
"X-Fern-SDK-Version": "1.6.34",
1818
}
1919
headers["x-api-key"] = self.api_key
2020
return headers

src/flagright/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
from .consumer_user_segment import ConsumerUserSegment
8888
from .contact_details import ContactDetails
8989
from .country_code import CountryCode
90+
from .cra_risk_level_updated_details import CraRiskLevelUpdatedDetails
9091
from .currency_code import CurrencyCode
9192
from .date import Date
9293
from .device_data import DeviceData
@@ -386,6 +387,7 @@
386387
"ConsumerUserSegment",
387388
"ContactDetails",
388389
"CountryCode",
390+
"CraRiskLevelUpdatedDetails",
389391
"CurrencyCode",
390392
"Date",
391393
"DeviceData",

src/flagright/types/company_general_details.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class CompanyGeneralDetails(pydantic.BaseModel):
3030
alias="userSegment", description="Segmentation of the business user"
3131
)
3232
user_registration_status: typing.Optional[UserRegistrationStatus] = pydantic.Field(alias="userRegistrationStatus")
33+
alias: typing.Optional[typing.List[str]] = pydantic.Field(description="Alias names of the business entity")
3334
tags: typing.Optional[typing.List[Tag]] = pydantic.Field(
3435
description="Additional information that can be added via tags"
3536
)

src/flagright/types/company_registration_details.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class CompanyRegistrationDetails(pydantic.BaseModel):
2323
description="Commercial registry registration number for the company in its registration country",
2424
)
2525
registration_country: CountryCode = pydantic.Field(alias="registrationCountry")
26+
tax_residence_country: typing.Optional[CountryCode] = pydantic.Field(alias="taxResidenceCountry")
2627
tax_identifier: typing.Optional[str] = pydantic.Field(
2728
alias="taxIdentifier", description="Tax ID number of the registered entity"
2829
)
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import datetime as dt
4+
import typing
5+
6+
from ..core.datetime_utils import serialize_datetime
7+
8+
try:
9+
import pydantic.v1 as pydantic # type: ignore
10+
except ImportError:
11+
import pydantic # type: ignore
12+
13+
14+
class CraRiskLevelUpdatedDetails(pydantic.BaseModel):
15+
risk_level: typing.Optional[str] = pydantic.Field(alias="riskLevel")
16+
user_id: typing.Optional[str] = pydantic.Field(alias="userId")
17+
18+
def json(self, **kwargs: typing.Any) -> str:
19+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
20+
return super().json(**kwargs_with_defaults)
21+
22+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
23+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
24+
return super().dict(**kwargs_with_defaults)
25+
26+
class Config:
27+
frozen = True
28+
smart_union = True
29+
allow_population_by_field_name = True
30+
json_encoders = {dt.datetime: serialize_datetime}

src/flagright/types/user_details.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ class UserDetails(pydantic.BaseModel):
2929
alias="userCategory", description="Internal category of the user"
3030
)
3131
country_of_residence: typing.Optional[CountryCode] = pydantic.Field(alias="countryOfResidence")
32+
country_of_tax_residence: typing.Optional[CountryCode] = pydantic.Field(alias="countryOfTaxResidence")
3233
country_of_nationality: typing.Optional[CountryCode] = pydantic.Field(alias="countryOfNationality")
3334
gender: typing.Optional[Gender]
3435
marital_status: typing.Optional[MaritalStatus] = pydantic.Field(alias="maritalStatus")
3536
place_of_birth: typing.Optional[PlaceOfBirth] = pydantic.Field(alias="placeOfBirth")
37+
alias: typing.Optional[typing.List[str]] = pydantic.Field(description="Alias names of the user")
3638

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

src/flagright/types/webhook_event_data.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from .alert_opened_details import AlertOpenedDetails
77
from .case_closed_details import CaseClosedDetails
88
from .case_opened_details import CaseOpenedDetails
9+
from .cra_risk_level_updated_details import CraRiskLevelUpdatedDetails
910
from .kyc_status_details import KycStatusDetails
1011
from .transaction_status_details import TransactionStatusDetails
1112
from .user_state_details import UserStateDetails
@@ -20,4 +21,5 @@
2021
TransactionStatusDetails,
2122
KycStatusDetails,
2223
UserTagsUpdate,
24+
CraRiskLevelUpdatedDetails,
2325
]

src/flagright/types/webhook_event_type.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class WebhookEventType(str, enum.Enum):
1515
CASE_OPENED = "CASE_OPENED"
1616
ALERT_OPENED = "ALERT_OPENED"
1717
USER_TAGS_UPDATED = "USER_TAGS_UPDATED"
18+
CRA_RISK_LEVEL_UPDATED = "CRA_RISK_LEVEL_UPDATED"
1819

1920
def visit(
2021
self,
@@ -26,6 +27,7 @@ def visit(
2627
case_opened: typing.Callable[[], T_Result],
2728
alert_opened: typing.Callable[[], T_Result],
2829
user_tags_updated: typing.Callable[[], T_Result],
30+
cra_risk_level_updated: typing.Callable[[], T_Result],
2931
) -> T_Result:
3032
if self is WebhookEventType.CASE_CLOSED:
3133
return case_closed()
@@ -43,3 +45,5 @@ def visit(
4345
return alert_opened()
4446
if self is WebhookEventType.USER_TAGS_UPDATED:
4547
return user_tags_updated()
48+
if self is WebhookEventType.CRA_RISK_LEVEL_UPDATED:
49+
return cra_risk_level_updated()

0 commit comments

Comments
 (0)