Skip to content

Commit

Permalink
Release 1.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jun 20, 2024
1 parent 2a47d9b commit ba6ae9c
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 16 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.1"
version = "1.6.2"
description = ""
readme = "README.md"
authors = []
Expand Down
4 changes: 2 additions & 2 deletions src/flagright/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
ApiErrorResponse,
BooleanString,
BusinessBase,
BusinessEntityLink,
BusinessOptional,
BusinessOptionalSavedPaymentDetailsItem,
BusinessOptionalSavedPaymentDetailsItem_Ach,
Expand Down Expand Up @@ -190,6 +189,7 @@
UpiPaymentMethod,
UserBase,
UserDetails,
UserEntityLink,
UserOptional,
UserOptionalSavedPaymentDetailsItem,
UserOptionalSavedPaymentDetailsItem_Ach,
Expand Down Expand Up @@ -272,7 +272,6 @@
"BadRequestError",
"BooleanString",
"BusinessBase",
"BusinessEntityLink",
"BusinessOptional",
"BusinessOptionalSavedPaymentDetailsItem",
"BusinessOptionalSavedPaymentDetailsItem_Ach",
Expand Down Expand Up @@ -467,6 +466,7 @@
"UpiPaymentMethod",
"UserBase",
"UserDetails",
"UserEntityLink",
"UserOptional",
"UserOptionalSavedPaymentDetailsItem",
"UserOptionalSavedPaymentDetailsItem_Ach",
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.1",
"X-Fern-SDK-Version": "1.6.2",
}
headers["x-api-key"] = self.api_key
return headers
Expand Down
10 changes: 5 additions & 5 deletions src/flagright/resources/business_users/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from ...errors.unauthorized_error import UnauthorizedError
from ...types.acquisition_channel import AcquisitionChannel
from ...types.api_error_response import ApiErrorResponse
from ...types.business_entity_link import BusinessEntityLink
from ...types.business_with_rules_result import BusinessWithRulesResult
from ...types.kyc_status_details import KycStatusDetails
from ...types.legal_entity import LegalEntity
Expand All @@ -22,6 +21,7 @@
from ...types.risk_level import RiskLevel
from ...types.tag import Tag
from ...types.transaction_limits import TransactionLimits
from ...types.user_entity_link import UserEntityLink
from ...types.user_state_details import UserStateDetails
from .types.business_saved_payment_details_item import BusinessSavedPaymentDetailsItem
from .types.business_users_create_response import BusinessUsersCreateResponse
Expand Down Expand Up @@ -52,7 +52,7 @@ def create(
transaction_limits: typing.Optional[TransactionLimits] = OMIT,
risk_level: typing.Optional[RiskLevel] = OMIT,
allowed_payment_methods: typing.Optional[typing.List[PaymentMethod]] = OMIT,
linked_entities: typing.Optional[BusinessEntityLink] = OMIT,
linked_entities: typing.Optional[UserEntityLink] = OMIT,
acquisition_channel: typing.Optional[AcquisitionChannel] = OMIT,
saved_payment_details: typing.Optional[typing.List[BusinessSavedPaymentDetailsItem]] = OMIT,
mcc_details: typing.Optional[MccDetails] = OMIT,
Expand Down Expand Up @@ -94,7 +94,7 @@ def create(
- allowed_payment_methods: typing.Optional[typing.List[PaymentMethod]].
- linked_entities: typing.Optional[BusinessEntityLink].
- linked_entities: typing.Optional[UserEntityLink].
- acquisition_channel: typing.Optional[AcquisitionChannel].
Expand Down Expand Up @@ -230,7 +230,7 @@ async def create(
transaction_limits: typing.Optional[TransactionLimits] = OMIT,
risk_level: typing.Optional[RiskLevel] = OMIT,
allowed_payment_methods: typing.Optional[typing.List[PaymentMethod]] = OMIT,
linked_entities: typing.Optional[BusinessEntityLink] = OMIT,
linked_entities: typing.Optional[UserEntityLink] = OMIT,
acquisition_channel: typing.Optional[AcquisitionChannel] = OMIT,
saved_payment_details: typing.Optional[typing.List[BusinessSavedPaymentDetailsItem]] = OMIT,
mcc_details: typing.Optional[MccDetails] = OMIT,
Expand Down Expand Up @@ -272,7 +272,7 @@ async def create(
- allowed_payment_methods: typing.Optional[typing.List[PaymentMethod]].
- linked_entities: typing.Optional[BusinessEntityLink].
- linked_entities: typing.Optional[UserEntityLink].
- acquisition_channel: typing.Optional[AcquisitionChannel].
Expand Down
11 changes: 11 additions & 0 deletions src/flagright/resources/consumer_users/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from ...types.tag import Tag
from ...types.transaction_limits import TransactionLimits
from ...types.user_details import UserDetails
from ...types.user_entity_link import UserEntityLink
from ...types.user_state_details import UserStateDetails
from ...types.user_with_rules_result import UserWithRulesResult
from .types.consumer_users_create_response import ConsumerUsersCreateResponse
Expand Down Expand Up @@ -60,6 +61,7 @@ def create(
source_of_funds: typing.Optional[typing.List[SourceOfFunds]] = OMIT,
user_segment: typing.Optional[ConsumerUserSegment] = OMIT,
pep_status: typing.Optional[typing.List[PepStatus]] = OMIT,
linked_entities: typing.Optional[UserEntityLink] = OMIT,
saved_payment_details: typing.Optional[typing.List[UserSavedPaymentDetailsItem]] = OMIT,
tags: typing.Optional[typing.List[Tag]] = OMIT,
) -> ConsumerUsersCreateResponse:
Expand Down Expand Up @@ -110,6 +112,8 @@ def create(
- pep_status: typing.Optional[typing.List[PepStatus]].
- linked_entities: typing.Optional[UserEntityLink].
- saved_payment_details: typing.Optional[typing.List[UserSavedPaymentDetailsItem]].
- tags: typing.Optional[typing.List[Tag]]. Additional information that can be added via tags
Expand Down Expand Up @@ -213,6 +217,8 @@ def create(
_request["userSegment"] = user_segment
if pep_status is not OMIT:
_request["pepStatus"] = pep_status
if linked_entities is not OMIT:
_request["linkedEntities"] = linked_entities
if saved_payment_details is not OMIT:
_request["savedPaymentDetails"] = saved_payment_details
if tags is not OMIT:
Expand Down Expand Up @@ -302,6 +308,7 @@ async def create(
source_of_funds: typing.Optional[typing.List[SourceOfFunds]] = OMIT,
user_segment: typing.Optional[ConsumerUserSegment] = OMIT,
pep_status: typing.Optional[typing.List[PepStatus]] = OMIT,
linked_entities: typing.Optional[UserEntityLink] = OMIT,
saved_payment_details: typing.Optional[typing.List[UserSavedPaymentDetailsItem]] = OMIT,
tags: typing.Optional[typing.List[Tag]] = OMIT,
) -> ConsumerUsersCreateResponse:
Expand Down Expand Up @@ -352,6 +359,8 @@ async def create(
- pep_status: typing.Optional[typing.List[PepStatus]].
- linked_entities: typing.Optional[UserEntityLink].
- saved_payment_details: typing.Optional[typing.List[UserSavedPaymentDetailsItem]].
- tags: typing.Optional[typing.List[Tag]]. Additional information that can be added via tags
Expand Down Expand Up @@ -455,6 +464,8 @@ async def create(
_request["userSegment"] = user_segment
if pep_status is not OMIT:
_request["pepStatus"] = pep_status
if linked_entities is not OMIT:
_request["linkedEntities"] = linked_entities
if saved_payment_details is not OMIT:
_request["savedPaymentDetails"] = saved_payment_details
if tags is not OMIT:
Expand Down
4 changes: 2 additions & 2 deletions src/flagright/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from .api_error_response import ApiErrorResponse
from .boolean_string import BooleanString
from .business_base import BusinessBase
from .business_entity_link import BusinessEntityLink
from .business_optional import BusinessOptional
from .business_optional_saved_payment_details_item import (
BusinessOptionalSavedPaymentDetailsItem,
Expand Down Expand Up @@ -205,6 +204,7 @@
from .upi_payment_method import UpiPaymentMethod
from .user_base import UserBase
from .user_details import UserDetails
from .user_entity_link import UserEntityLink
from .user_optional import UserOptional
from .user_optional_saved_payment_details_item import (
UserOptionalSavedPaymentDetailsItem,
Expand Down Expand Up @@ -256,7 +256,6 @@
"ApiErrorResponse",
"BooleanString",
"BusinessBase",
"BusinessEntityLink",
"BusinessOptional",
"BusinessOptionalSavedPaymentDetailsItem",
"BusinessOptionalSavedPaymentDetailsItem_Ach",
Expand Down Expand Up @@ -435,6 +434,7 @@
"UpiPaymentMethod",
"UserBase",
"UserDetails",
"UserEntityLink",
"UserOptional",
"UserOptionalSavedPaymentDetailsItem",
"UserOptionalSavedPaymentDetailsItem_Ach",
Expand Down
4 changes: 2 additions & 2 deletions src/flagright/types/business_optional.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from ..core.datetime_utils import serialize_datetime
from .acquisition_channel import AcquisitionChannel
from .business_entity_link import BusinessEntityLink
from .business_optional_saved_payment_details_item import BusinessOptionalSavedPaymentDetailsItem
from .kyc_status_details import KycStatusDetails
from .legal_entity import LegalEntity
Expand All @@ -15,6 +14,7 @@
from .risk_level import RiskLevel
from .tag import Tag
from .transaction_limits import TransactionLimits
from .user_entity_link import UserEntityLink
from .user_state_details import UserStateDetails

try:
Expand All @@ -41,7 +41,7 @@ class BusinessOptional(pydantic.BaseModel):
transaction_limits: typing.Optional[TransactionLimits] = pydantic.Field(alias="transactionLimits")
risk_level: typing.Optional[RiskLevel] = pydantic.Field(alias="riskLevel")
allowed_payment_methods: typing.Optional[typing.List[PaymentMethod]] = pydantic.Field(alias="allowedPaymentMethods")
linked_entities: typing.Optional[BusinessEntityLink] = pydantic.Field(alias="linkedEntities")
linked_entities: typing.Optional[UserEntityLink] = pydantic.Field(alias="linkedEntities")
acquisition_channel: typing.Optional[AcquisitionChannel] = pydantic.Field(alias="acquisitionChannel")
saved_payment_details: typing.Optional[typing.List[BusinessOptionalSavedPaymentDetailsItem]] = pydantic.Field(
alias="savedPaymentDetails"
Expand Down
4 changes: 2 additions & 2 deletions src/flagright/types/business_with_rules_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from ..core.datetime_utils import serialize_datetime
from .acquisition_channel import AcquisitionChannel
from .business_entity_link import BusinessEntityLink
from .business_with_rules_result_saved_payment_details_item import BusinessWithRulesResultSavedPaymentDetailsItem
from .executed_rules_result import ExecutedRulesResult
from .hit_rules_details import HitRulesDetails
Expand All @@ -17,6 +16,7 @@
from .risk_level import RiskLevel
from .tag import Tag
from .transaction_limits import TransactionLimits
from .user_entity_link import UserEntityLink
from .user_risk_score_details import UserRiskScoreDetails
from .user_state_details import UserStateDetails

Expand Down Expand Up @@ -44,7 +44,7 @@ class BusinessWithRulesResult(pydantic.BaseModel):
transaction_limits: typing.Optional[TransactionLimits] = pydantic.Field(alias="transactionLimits")
risk_level: typing.Optional[RiskLevel] = pydantic.Field(alias="riskLevel")
allowed_payment_methods: typing.Optional[typing.List[PaymentMethod]] = pydantic.Field(alias="allowedPaymentMethods")
linked_entities: typing.Optional[BusinessEntityLink] = pydantic.Field(alias="linkedEntities")
linked_entities: typing.Optional[UserEntityLink] = pydantic.Field(alias="linkedEntities")
acquisition_channel: typing.Optional[AcquisitionChannel] = pydantic.Field(alias="acquisitionChannel")
saved_payment_details: typing.Optional[
typing.List[BusinessWithRulesResultSavedPaymentDetailsItem]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import pydantic # type: ignore


class BusinessEntityLink(pydantic.BaseModel):
class UserEntityLink(pydantic.BaseModel):
parent_user_id: typing.Optional[str] = pydantic.Field(alias="parentUserId")
child_user_ids: typing.Optional[typing.List[str]] = pydantic.Field(alias="childUserIds")

Expand Down
2 changes: 2 additions & 0 deletions src/flagright/types/user_optional.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from .tag import Tag
from .transaction_limits import TransactionLimits
from .user_details import UserDetails
from .user_entity_link import UserEntityLink
from .user_optional_saved_payment_details_item import UserOptionalSavedPaymentDetailsItem
from .user_state_details import UserStateDetails

Expand Down Expand Up @@ -46,6 +47,7 @@ class UserOptional(pydantic.BaseModel):
source_of_funds: typing.Optional[typing.List[SourceOfFunds]] = pydantic.Field(alias="sourceOfFunds")
user_segment: typing.Optional[ConsumerUserSegment] = pydantic.Field(alias="userSegment")
pep_status: typing.Optional[typing.List[PepStatus]] = pydantic.Field(alias="pepStatus")
linked_entities: typing.Optional[UserEntityLink] = pydantic.Field(alias="linkedEntities")
saved_payment_details: typing.Optional[typing.List[UserOptionalSavedPaymentDetailsItem]] = pydantic.Field(
alias="savedPaymentDetails"
)
Expand Down
2 changes: 2 additions & 0 deletions src/flagright/types/user_with_rules_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from .tag import Tag
from .transaction_limits import TransactionLimits
from .user_details import UserDetails
from .user_entity_link import UserEntityLink
from .user_risk_score_details import UserRiskScoreDetails
from .user_state_details import UserStateDetails
from .user_with_rules_result_saved_payment_details_item import UserWithRulesResultSavedPaymentDetailsItem
Expand Down Expand Up @@ -47,6 +48,7 @@ class UserWithRulesResult(pydantic.BaseModel):
source_of_funds: typing.Optional[typing.List[SourceOfFunds]] = pydantic.Field(alias="sourceOfFunds")
user_segment: typing.Optional[ConsumerUserSegment] = pydantic.Field(alias="userSegment")
pep_status: typing.Optional[typing.List[PepStatus]] = pydantic.Field(alias="pepStatus")
linked_entities: typing.Optional[UserEntityLink] = pydantic.Field(alias="linkedEntities")
saved_payment_details: typing.Optional[typing.List[UserWithRulesResultSavedPaymentDetailsItem]] = pydantic.Field(
alias="savedPaymentDetails"
)
Expand Down

0 comments on commit ba6ae9c

Please sign in to comment.