Skip to content

Commit 0d5094a

Browse files
Release 1.8.34
1 parent c4d30b9 commit 0d5094a

15 files changed

Lines changed: 108 additions & 3 deletions

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "flagright"
33

44
[tool.poetry]
55
name = "flagright"
6-
version = "1.8.33"
6+
version = "1.8.34"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1899,6 +1899,14 @@ client.business_users.create(
18991899
<dl>
19001900
<dd>
19011901

1902+
**eodd_date:** `typing.Optional[float]`
1903+
1904+
</dd>
1905+
</dl>
1906+
1907+
<dl>
1908+
<dd>
1909+
19021910
**corporate_entities:** `typing.Optional[typing.Sequence[CorporateEntityDetails]]` — Corporate entities of the user
19031911

19041912
</dd>

src/flagright/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
BatchBusinessUserWithRulesResultSavedPaymentDetailsItem_Wallet,
3434
BatchBusinessUserWithRulesResultShareHoldersItem,
3535
BatchBusinessUsersWithRulesResults,
36+
BatchCompletedDetails,
37+
BatchCompletedDetailsType,
3638
BatchConsumerUserEventWithRulesResult,
3739
BatchConsumerUserEventsRulesResult,
3840
BatchConsumerUserWithRulesResult,
@@ -418,6 +420,8 @@
418420
"BatchBusinessUserWithRulesResultSavedPaymentDetailsItem_Wallet": ".types",
419421
"BatchBusinessUserWithRulesResultShareHoldersItem": ".types",
420422
"BatchBusinessUsersWithRulesResults": ".types",
423+
"BatchCompletedDetails": ".types",
424+
"BatchCompletedDetailsType": ".types",
421425
"BatchConsumerUserEventWithRulesResult": ".types",
422426
"BatchConsumerUserEventsRulesResult": ".types",
423427
"BatchConsumerUserWithRulesResult": ".types",
@@ -827,6 +831,8 @@ def __dir__():
827831
"BatchBusinessUserWithRulesResultSavedPaymentDetailsItem_Wallet",
828832
"BatchBusinessUserWithRulesResultShareHoldersItem",
829833
"BatchBusinessUsersWithRulesResults",
834+
"BatchCompletedDetails",
835+
"BatchCompletedDetailsType",
830836
"BatchConsumerUserEventWithRulesResult",
831837
"BatchConsumerUserEventsRulesResult",
832838
"BatchConsumerUserWithRulesResult",

src/flagright/business_users/client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def create(
5858
activated_timestamp: typing.Optional[float] = OMIT,
5959
user_state_details: typing.Optional[UserStateDetails] = OMIT,
6060
kyc_status_details: typing.Optional[KycStatusDetails] = OMIT,
61+
eodd_date: typing.Optional[float] = OMIT,
6162
corporate_entities: typing.Optional[typing.Sequence[CorporateEntityDetails]] = OMIT,
6263
share_holders: typing.Optional[typing.Sequence[BusinessShareHoldersItem]] = OMIT,
6364
directors: typing.Optional[typing.Sequence[Person]] = OMIT,
@@ -124,6 +125,8 @@ def create(
124125
125126
kyc_status_details : typing.Optional[KycStatusDetails]
126127
128+
eodd_date : typing.Optional[float]
129+
127130
corporate_entities : typing.Optional[typing.Sequence[CorporateEntityDetails]]
128131
Corporate entities of the user
129132
@@ -218,6 +221,7 @@ def create(
218221
activated_timestamp=activated_timestamp,
219222
user_state_details=user_state_details,
220223
kyc_status_details=kyc_status_details,
224+
eodd_date=eodd_date,
221225
corporate_entities=corporate_entities,
222226
share_holders=share_holders,
223227
directors=directors,
@@ -307,6 +311,7 @@ async def create(
307311
activated_timestamp: typing.Optional[float] = OMIT,
308312
user_state_details: typing.Optional[UserStateDetails] = OMIT,
309313
kyc_status_details: typing.Optional[KycStatusDetails] = OMIT,
314+
eodd_date: typing.Optional[float] = OMIT,
310315
corporate_entities: typing.Optional[typing.Sequence[CorporateEntityDetails]] = OMIT,
311316
share_holders: typing.Optional[typing.Sequence[BusinessShareHoldersItem]] = OMIT,
312317
directors: typing.Optional[typing.Sequence[Person]] = OMIT,
@@ -373,6 +378,8 @@ async def create(
373378
374379
kyc_status_details : typing.Optional[KycStatusDetails]
375380
381+
eodd_date : typing.Optional[float]
382+
376383
corporate_entities : typing.Optional[typing.Sequence[CorporateEntityDetails]]
377384
Corporate entities of the user
378385
@@ -475,6 +482,7 @@ async def main() -> None:
475482
activated_timestamp=activated_timestamp,
476483
user_state_details=user_state_details,
477484
kyc_status_details=kyc_status_details,
485+
eodd_date=eodd_date,
478486
corporate_entities=corporate_entities,
479487
share_holders=share_holders,
480488
directors=directors,

src/flagright/business_users/raw_client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def create(
5656
activated_timestamp: typing.Optional[float] = OMIT,
5757
user_state_details: typing.Optional[UserStateDetails] = OMIT,
5858
kyc_status_details: typing.Optional[KycStatusDetails] = OMIT,
59+
eodd_date: typing.Optional[float] = OMIT,
5960
corporate_entities: typing.Optional[typing.Sequence[CorporateEntityDetails]] = OMIT,
6061
share_holders: typing.Optional[typing.Sequence[BusinessShareHoldersItem]] = OMIT,
6162
directors: typing.Optional[typing.Sequence[Person]] = OMIT,
@@ -122,6 +123,8 @@ def create(
122123
123124
kyc_status_details : typing.Optional[KycStatusDetails]
124125
126+
eodd_date : typing.Optional[float]
127+
125128
corporate_entities : typing.Optional[typing.Sequence[CorporateEntityDetails]]
126129
Corporate entities of the user
127130
@@ -205,6 +208,7 @@ def create(
205208
"kycStatusDetails": convert_and_respect_annotation_metadata(
206209
object_=kyc_status_details, annotation=KycStatusDetails, direction="write"
207210
),
211+
"eoddDate": eodd_date,
208212
"corporateEntities": convert_and_respect_annotation_metadata(
209213
object_=corporate_entities, annotation=typing.Sequence[CorporateEntityDetails], direction="write"
210214
),
@@ -403,6 +407,7 @@ async def create(
403407
activated_timestamp: typing.Optional[float] = OMIT,
404408
user_state_details: typing.Optional[UserStateDetails] = OMIT,
405409
kyc_status_details: typing.Optional[KycStatusDetails] = OMIT,
410+
eodd_date: typing.Optional[float] = OMIT,
406411
corporate_entities: typing.Optional[typing.Sequence[CorporateEntityDetails]] = OMIT,
407412
share_holders: typing.Optional[typing.Sequence[BusinessShareHoldersItem]] = OMIT,
408413
directors: typing.Optional[typing.Sequence[Person]] = OMIT,
@@ -469,6 +474,8 @@ async def create(
469474
470475
kyc_status_details : typing.Optional[KycStatusDetails]
471476
477+
eodd_date : typing.Optional[float]
478+
472479
corporate_entities : typing.Optional[typing.Sequence[CorporateEntityDetails]]
473480
Corporate entities of the user
474481
@@ -552,6 +559,7 @@ async def create(
552559
"kycStatusDetails": convert_and_respect_annotation_metadata(
553560
object_=kyc_status_details, annotation=KycStatusDetails, direction="write"
554561
),
562+
"eoddDate": eodd_date,
555563
"corporateEntities": convert_and_respect_annotation_metadata(
556564
object_=corporate_entities, annotation=typing.Sequence[CorporateEntityDetails], direction="write"
557565
),

src/flagright/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def __init__(
2222

2323
def get_headers(self) -> typing.Dict[str, str]:
2424
headers: typing.Dict[str, str] = {
25-
"User-Agent": "flagright/1.8.33",
25+
"User-Agent": "flagright/1.8.34",
2626
"X-Fern-Language": "Python",
2727
"X-Fern-SDK-Name": "flagright",
28-
"X-Fern-SDK-Version": "1.8.33",
28+
"X-Fern-SDK-Version": "1.8.34",
2929
**(self.get_custom_headers() or {}),
3030
}
3131
headers["x-api-key"] = self.api_key

src/flagright/types/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
BatchBusinessUserWithRulesResultShareHoldersItem,
3737
)
3838
from .batch_business_users_with_rules_results import BatchBusinessUsersWithRulesResults
39+
from .batch_completed_details import BatchCompletedDetails
40+
from .batch_completed_details_type import BatchCompletedDetailsType
3941
from .batch_consumer_user_event_with_rules_result import BatchConsumerUserEventWithRulesResult
4042
from .batch_consumer_user_events_rules_result import BatchConsumerUserEventsRulesResult
4143
from .batch_consumer_user_with_rules_result import BatchConsumerUserWithRulesResult
@@ -428,6 +430,8 @@
428430
"BatchBusinessUserWithRulesResultSavedPaymentDetailsItem_Wallet": ".batch_business_user_with_rules_result_saved_payment_details_item",
429431
"BatchBusinessUserWithRulesResultShareHoldersItem": ".batch_business_user_with_rules_result_share_holders_item",
430432
"BatchBusinessUsersWithRulesResults": ".batch_business_users_with_rules_results",
433+
"BatchCompletedDetails": ".batch_completed_details",
434+
"BatchCompletedDetailsType": ".batch_completed_details_type",
431435
"BatchConsumerUserEventWithRulesResult": ".batch_consumer_user_event_with_rules_result",
432436
"BatchConsumerUserEventsRulesResult": ".batch_consumer_user_events_rules_result",
433437
"BatchConsumerUserWithRulesResult": ".batch_consumer_user_with_rules_result",
@@ -818,6 +822,8 @@ def __dir__():
818822
"BatchBusinessUserWithRulesResultSavedPaymentDetailsItem_Wallet",
819823
"BatchBusinessUserWithRulesResultShareHoldersItem",
820824
"BatchBusinessUsersWithRulesResults",
825+
"BatchCompletedDetails",
826+
"BatchCompletedDetailsType",
821827
"BatchConsumerUserEventWithRulesResult",
822828
"BatchConsumerUserEventsRulesResult",
823829
"BatchConsumerUserWithRulesResult",

src/flagright/types/batch_business_user_with_rules_result.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class BatchBusinessUserWithRulesResult(UniversalBaseModel):
5555
kyc_status_details: typing_extensions.Annotated[
5656
typing.Optional[KycStatusDetails], FieldMetadata(alias="kycStatusDetails")
5757
] = None
58+
eodd_date: typing_extensions.Annotated[typing.Optional[float], FieldMetadata(alias="eoddDate")] = None
5859
corporate_entities: typing_extensions.Annotated[
5960
typing.Optional[typing.List[CorporateEntityDetails]], FieldMetadata(alias="corporateEntities")
6061
] = pydantic.Field(default=None)
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
import pydantic
6+
import typing_extensions
7+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8+
from ..core.serialization import FieldMetadata
9+
from .batch_completed_details_type import BatchCompletedDetailsType
10+
11+
12+
class BatchCompletedDetails(UniversalBaseModel):
13+
"""
14+
Payload sent when a batch import is fully processed
15+
"""
16+
17+
batch_id: typing_extensions.Annotated[str, FieldMetadata(alias="batchId")] = pydantic.Field()
18+
"""
19+
Unique identifier of the batch
20+
"""
21+
22+
type: BatchCompletedDetailsType = pydantic.Field()
23+
"""
24+
Type of batch entity
25+
"""
26+
27+
total_count: typing_extensions.Annotated[int, FieldMetadata(alias="totalCount")] = pydantic.Field()
28+
"""
29+
Total number of successfully validated records in the batch
30+
"""
31+
32+
processed_count: typing_extensions.Annotated[int, FieldMetadata(alias="processedCount")] = pydantic.Field()
33+
"""
34+
Number of records that were processed
35+
"""
36+
37+
status: typing.Literal["COMPLETED"] = "COMPLETED"
38+
created_at: typing_extensions.Annotated[int, FieldMetadata(alias="createdAt")] = pydantic.Field()
39+
"""
40+
Timestamp when the batch was created (in milliseconds)
41+
"""
42+
43+
completed_at: typing_extensions.Annotated[int, FieldMetadata(alias="completedAt")] = pydantic.Field()
44+
"""
45+
Timestamp when the batch was completed (in milliseconds)
46+
"""
47+
48+
if IS_PYDANTIC_V2:
49+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
50+
else:
51+
52+
class Config:
53+
frozen = True
54+
smart_union = True
55+
extra = pydantic.Extra.allow
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
BatchCompletedDetailsType = typing.Union[
6+
typing.Literal["TRANSACTION_BATCH", "TRANSACTION_EVENT_BATCH", "USER_BATCH", "USER_EVENT_BATCH"], typing.Any
7+
]

0 commit comments

Comments
 (0)