Skip to content

Commit 8485f96

Browse files
committed
Release 1.6.27
1 parent 1affb88 commit 8485f96

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
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.26"
3+
version = "1.6.27"
44
description = ""
55
readme = "README.md"
66
authors = []

src/flagright/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
ListMetadata,
9797
ListSubtype,
9898
ListType,
99-
MartialStatus,
99+
MaritalStatus,
100100
MccDetails,
101101
MpesaDetails,
102102
MpesaPaymentMethod,
@@ -401,7 +401,7 @@
401401
"ListMetadata",
402402
"ListSubtype",
403403
"ListType",
404-
"MartialStatus",
404+
"MaritalStatus",
405405
"MccDetails",
406406
"MpesaDetails",
407407
"MpesaPaymentMethod",

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.26",
17+
"X-Fern-SDK-Version": "1.6.27",
1818
}
1919
headers["x-api-key"] = self.api_key
2020
return headers

src/flagright/types/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
from .list_metadata import ListMetadata
100100
from .list_subtype import ListSubtype
101101
from .list_type import ListType
102-
from .martial_status import MartialStatus
102+
from .marital_status import MaritalStatus
103103
from .mcc_details import MccDetails
104104
from .mpesa_details import MpesaDetails
105105
from .mpesa_payment_method import MpesaPaymentMethod
@@ -381,7 +381,7 @@
381381
"ListMetadata",
382382
"ListSubtype",
383383
"ListType",
384-
"MartialStatus",
384+
"MaritalStatus",
385385
"MccDetails",
386386
"MpesaDetails",
387387
"MpesaPaymentMethod",
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
T_Result = typing.TypeVar("T_Result")
77

88

9-
class MartialStatus(str, enum.Enum):
9+
class MaritalStatus(str, enum.Enum):
1010
"""
11-
Martial status of the individual
11+
Marital status of the individual
1212
"""
1313

1414
DIVORCED = "DIVORCED"
@@ -25,13 +25,13 @@ def visit(
2525
widowed: typing.Callable[[], T_Result],
2626
na: typing.Callable[[], T_Result],
2727
) -> T_Result:
28-
if self is MartialStatus.DIVORCED:
28+
if self is MaritalStatus.DIVORCED:
2929
return divorced()
30-
if self is MartialStatus.MARRIED:
30+
if self is MaritalStatus.MARRIED:
3131
return married()
32-
if self is MartialStatus.SINGLE:
32+
if self is MaritalStatus.SINGLE:
3333
return single()
34-
if self is MartialStatus.WIDOWED:
34+
if self is MaritalStatus.WIDOWED:
3535
return widowed()
36-
if self is MartialStatus.NA:
36+
if self is MaritalStatus.NA:
3737
return na()

src/flagright/types/user_details.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from .consumer_name import ConsumerName
88
from .country_code import CountryCode
99
from .gender import Gender
10-
from .martial_status import MartialStatus
10+
from .marital_status import MaritalStatus
1111
from .place_of_birth import PlaceOfBirth
1212

1313
try:
@@ -31,7 +31,7 @@ class UserDetails(pydantic.BaseModel):
3131
country_of_residence: typing.Optional[CountryCode] = pydantic.Field(alias="countryOfResidence")
3232
country_of_nationality: typing.Optional[CountryCode] = pydantic.Field(alias="countryOfNationality")
3333
gender: typing.Optional[Gender]
34-
martial_status: typing.Optional[MartialStatus] = pydantic.Field(alias="martialStatus")
34+
marital_status: typing.Optional[MaritalStatus] = pydantic.Field(alias="maritalStatus")
3535
place_of_birth: typing.Optional[PlaceOfBirth] = pydantic.Field(alias="placeOfBirth")
3636

3737
def json(self, **kwargs: typing.Any) -> str:

0 commit comments

Comments
 (0)