Skip to content

Commit

Permalink
Release 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Apr 23, 2024
1 parent 3c0138c commit e0eb3b7
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 2,398 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.5.2"
version = "1.5.3"
description = ""
readme = "README.md"
authors = []
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.5.2",
"X-Fern-SDK-Version": "1.5.3",
}
headers["x-api-key"] = self.api_key
return headers
Expand Down
1,164 changes: 2 additions & 1,162 deletions src/flagright/resources/business_user_events/client.py

Large diffs are not rendered by default.

624 changes: 6 additions & 618 deletions src/flagright/resources/business_users/client.py

Large diffs are not rendered by default.

300 changes: 2 additions & 298 deletions src/flagright/resources/consumer_user_events/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,7 @@ def create(
- request: ConsumerUserEvent.
---
from flagright import (
Address,
Amount,
ConsumerName,
ConsumerUserEvent,
ContactDetails,
CountryCode,
CurrencyCode,
LegalDocument,
Tag,
TransactionLimits,
UserDetails,
UserOptional,
)
from flagright import ConsumerUserEvent
from flagright.client import Flagright
client = Flagright(
Expand All @@ -80,141 +67,6 @@ def create(
request=ConsumerUserEvent(
timestamp=1.1,
user_id="userId",
updated_consumer_user_attributes=UserOptional(
user_details=UserDetails(
name=ConsumerName(
first_name="Baran",
middle_name="Realblood",
last_name="Ozkan",
),
date_of_birth="1991-01-01",
country_of_residence=CountryCode.US,
country_of_nationality=CountryCode.DE,
),
legal_documents=[
LegalDocument(
document_type="passport",
document_number="Z9431P",
document_issued_date=1639939034000.0,
document_expiration_date=1839939034000.0,
document_issued_country=CountryCode.DE,
tags=[
Tag(
key="customerType",
value="wallet",
),
Tag(
key="customKey",
value="customValue",
),
],
name_on_document=ConsumerName(
first_name="Baran",
middle_name="Realblood",
last_name="Ozkan",
),
),
LegalDocument(
document_type="passport",
document_number="Z9431P",
document_issued_date=1639939034000.0,
document_expiration_date=1839939034000.0,
document_issued_country=CountryCode.DE,
tags=[
Tag(
key="customerType",
value="wallet",
),
Tag(
key="customKey",
value="customValue",
),
],
name_on_document=ConsumerName(
first_name="Baran",
middle_name="Realblood",
last_name="Ozkan",
),
),
],
contact_details=ContactDetails(
email_ids=["[email protected]", "emailIds"],
contact_numbers=["+37112345432", "contactNumbers"],
websites=["flagright.com", "websites"],
addresses=[
Address(
address_lines=["Klara-Franke Str 20"],
postcode="10557",
city="Berlin",
state="Berlin",
country="Germany",
tags=[
Tag(
key="customKey",
value="customValue",
),
Tag(
key="customKey",
value="customValue",
),
],
),
Address(
address_lines=["Klara-Franke Str 20"],
postcode="10557",
city="Berlin",
state="Berlin",
country="Germany",
tags=[
Tag(
key="customKey",
value="customValue",
),
Tag(
key="customKey",
value="customValue",
),
],
),
],
),
transaction_limits=TransactionLimits(
maximum_daily_transaction_limit=Amount(
amount_value=800.0,
amount_currency=CurrencyCode.GBP,
),
maximum_weekly_transaction_limit=Amount(
amount_value=800.0,
amount_currency=CurrencyCode.GBP,
),
maximum_monthly_transaction_limit=Amount(
amount_value=800.0,
amount_currency=CurrencyCode.GBP,
),
maximum_quarterly_transaction_limit=Amount(
amount_value=800.0,
amount_currency=CurrencyCode.GBP,
),
maximum_transaction_limit=Amount(
amount_value=800.0,
amount_currency=CurrencyCode.GBP,
),
maximum_yearly_transaction_limit=Amount(
amount_value=800.0,
amount_currency=CurrencyCode.GBP,
),
),
tags=[
Tag(
key="customKey",
value="customValue",
),
Tag(
key="customKey",
value="customValue",
),
],
),
),
)
"""
Expand Down Expand Up @@ -310,20 +162,7 @@ async def create(
- request: ConsumerUserEvent.
---
from flagright import (
Address,
Amount,
ConsumerName,
ConsumerUserEvent,
ContactDetails,
CountryCode,
CurrencyCode,
LegalDocument,
Tag,
TransactionLimits,
UserDetails,
UserOptional,
)
from flagright import ConsumerUserEvent
from flagright.client import AsyncFlagright
client = AsyncFlagright(
Expand All @@ -333,141 +172,6 @@ async def create(
request=ConsumerUserEvent(
timestamp=1.1,
user_id="userId",
updated_consumer_user_attributes=UserOptional(
user_details=UserDetails(
name=ConsumerName(
first_name="Baran",
middle_name="Realblood",
last_name="Ozkan",
),
date_of_birth="1991-01-01",
country_of_residence=CountryCode.US,
country_of_nationality=CountryCode.DE,
),
legal_documents=[
LegalDocument(
document_type="passport",
document_number="Z9431P",
document_issued_date=1639939034000.0,
document_expiration_date=1839939034000.0,
document_issued_country=CountryCode.DE,
tags=[
Tag(
key="customerType",
value="wallet",
),
Tag(
key="customKey",
value="customValue",
),
],
name_on_document=ConsumerName(
first_name="Baran",
middle_name="Realblood",
last_name="Ozkan",
),
),
LegalDocument(
document_type="passport",
document_number="Z9431P",
document_issued_date=1639939034000.0,
document_expiration_date=1839939034000.0,
document_issued_country=CountryCode.DE,
tags=[
Tag(
key="customerType",
value="wallet",
),
Tag(
key="customKey",
value="customValue",
),
],
name_on_document=ConsumerName(
first_name="Baran",
middle_name="Realblood",
last_name="Ozkan",
),
),
],
contact_details=ContactDetails(
email_ids=["[email protected]", "emailIds"],
contact_numbers=["+37112345432", "contactNumbers"],
websites=["flagright.com", "websites"],
addresses=[
Address(
address_lines=["Klara-Franke Str 20"],
postcode="10557",
city="Berlin",
state="Berlin",
country="Germany",
tags=[
Tag(
key="customKey",
value="customValue",
),
Tag(
key="customKey",
value="customValue",
),
],
),
Address(
address_lines=["Klara-Franke Str 20"],
postcode="10557",
city="Berlin",
state="Berlin",
country="Germany",
tags=[
Tag(
key="customKey",
value="customValue",
),
Tag(
key="customKey",
value="customValue",
),
],
),
],
),
transaction_limits=TransactionLimits(
maximum_daily_transaction_limit=Amount(
amount_value=800.0,
amount_currency=CurrencyCode.GBP,
),
maximum_weekly_transaction_limit=Amount(
amount_value=800.0,
amount_currency=CurrencyCode.GBP,
),
maximum_monthly_transaction_limit=Amount(
amount_value=800.0,
amount_currency=CurrencyCode.GBP,
),
maximum_quarterly_transaction_limit=Amount(
amount_value=800.0,
amount_currency=CurrencyCode.GBP,
),
maximum_transaction_limit=Amount(
amount_value=800.0,
amount_currency=CurrencyCode.GBP,
),
maximum_yearly_transaction_limit=Amount(
amount_value=800.0,
amount_currency=CurrencyCode.GBP,
),
),
tags=[
Tag(
key="customKey",
value="customValue",
),
Tag(
key="customKey",
value="customValue",
),
],
),
),
)
"""
Expand Down
Loading

0 comments on commit e0eb3b7

Please sign in to comment.