Skip to content

Commit

Permalink
Release 1.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jun 26, 2024
1 parent d9120f3 commit 6bf6668
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 2 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.6.4"
version = "1.6.5"
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 @@ -96,6 +96,7 @@
PaymentMethod,
PepStatus,
Person,
PlaceOfBirth,
RiskLevel,
RuleAction,
RuleFailureException,
Expand Down Expand Up @@ -372,6 +373,7 @@
"PaymentMethod",
"PepStatus",
"Person",
"PlaceOfBirth",
"RiskLevel",
"RuleAction",
"RuleFailureException",
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.6.4",
"X-Fern-SDK-Version": "1.6.5",
}
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 @@ -99,6 +99,7 @@
from .payment_method import PaymentMethod
from .pep_status import PepStatus
from .person import Person
from .place_of_birth import PlaceOfBirth
from .risk_level import RiskLevel
from .rule_action import RuleAction
from .rule_failure_exception import RuleFailureException
Expand Down Expand Up @@ -343,6 +344,7 @@
"PaymentMethod",
"PepStatus",
"Person",
"PlaceOfBirth",
"RiskLevel",
"RuleAction",
"RuleFailureException",
Expand Down
35 changes: 35 additions & 0 deletions src/flagright/types/place_of_birth.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This file was auto-generated by Fern from our API Definition.

import datetime as dt
import typing

from ..core.datetime_utils import serialize_datetime
from .country_code import CountryCode

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


class PlaceOfBirth(pydantic.BaseModel):
"""
Place of birth of the individual
"""

city: typing.Optional[str]
state: typing.Optional[str]
country: CountryCode

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
json_encoders = {dt.datetime: serialize_datetime}
2 changes: 2 additions & 0 deletions src/flagright/types/user_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from .consumer_name import ConsumerName
from .country_code import CountryCode
from .gender import Gender
from .place_of_birth import PlaceOfBirth

try:
import pydantic.v1 as pydantic # type: ignore
Expand All @@ -26,6 +27,7 @@ class UserDetails(pydantic.BaseModel):
country_of_residence: typing.Optional[CountryCode] = pydantic.Field(alias="countryOfResidence")
country_of_nationality: typing.Optional[CountryCode] = pydantic.Field(alias="countryOfNationality")
gender: typing.Optional[Gender]
place_of_birth: typing.Optional[PlaceOfBirth] = pydantic.Field(alias="placeOfBirth")

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

0 comments on commit 6bf6668

Please sign in to comment.