Skip to content

Commit e0eb3b7

Browse files
committed
Release 1.5.3
1 parent 3c0138c commit e0eb3b7

File tree

9 files changed

+34
-2398
lines changed

9 files changed

+34
-2398
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.5.2"
3+
version = "1.5.3"
44
description = ""
55
readme = "README.md"
66
authors = []

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

src/flagright/resources/business_user_events/client.py

Lines changed: 2 additions & 1162 deletions
Large diffs are not rendered by default.

src/flagright/resources/business_users/client.py

Lines changed: 6 additions & 618 deletions
Large diffs are not rendered by default.

src/flagright/resources/consumer_user_events/client.py

Lines changed: 2 additions & 298 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,7 @@ def create(
5757
5858
- request: ConsumerUserEvent.
5959
---
60-
from flagright import (
61-
Address,
62-
Amount,
63-
ConsumerName,
64-
ConsumerUserEvent,
65-
ContactDetails,
66-
CountryCode,
67-
CurrencyCode,
68-
LegalDocument,
69-
Tag,
70-
TransactionLimits,
71-
UserDetails,
72-
UserOptional,
73-
)
60+
from flagright import ConsumerUserEvent
7461
from flagright.client import Flagright
7562
7663
client = Flagright(
@@ -80,141 +67,6 @@ def create(
8067
request=ConsumerUserEvent(
8168
timestamp=1.1,
8269
user_id="userId",
83-
updated_consumer_user_attributes=UserOptional(
84-
user_details=UserDetails(
85-
name=ConsumerName(
86-
first_name="Baran",
87-
middle_name="Realblood",
88-
last_name="Ozkan",
89-
),
90-
date_of_birth="1991-01-01",
91-
country_of_residence=CountryCode.US,
92-
country_of_nationality=CountryCode.DE,
93-
),
94-
legal_documents=[
95-
LegalDocument(
96-
document_type="passport",
97-
document_number="Z9431P",
98-
document_issued_date=1639939034000.0,
99-
document_expiration_date=1839939034000.0,
100-
document_issued_country=CountryCode.DE,
101-
tags=[
102-
Tag(
103-
key="customerType",
104-
value="wallet",
105-
),
106-
Tag(
107-
key="customKey",
108-
value="customValue",
109-
),
110-
],
111-
name_on_document=ConsumerName(
112-
first_name="Baran",
113-
middle_name="Realblood",
114-
last_name="Ozkan",
115-
),
116-
),
117-
LegalDocument(
118-
document_type="passport",
119-
document_number="Z9431P",
120-
document_issued_date=1639939034000.0,
121-
document_expiration_date=1839939034000.0,
122-
document_issued_country=CountryCode.DE,
123-
tags=[
124-
Tag(
125-
key="customerType",
126-
value="wallet",
127-
),
128-
Tag(
129-
key="customKey",
130-
value="customValue",
131-
),
132-
],
133-
name_on_document=ConsumerName(
134-
first_name="Baran",
135-
middle_name="Realblood",
136-
last_name="Ozkan",
137-
),
138-
),
139-
],
140-
contact_details=ContactDetails(
141-
email_ids=["baran@flagright.com", "emailIds"],
142-
contact_numbers=["+37112345432", "contactNumbers"],
143-
websites=["flagright.com", "websites"],
144-
addresses=[
145-
Address(
146-
address_lines=["Klara-Franke Str 20"],
147-
postcode="10557",
148-
city="Berlin",
149-
state="Berlin",
150-
country="Germany",
151-
tags=[
152-
Tag(
153-
key="customKey",
154-
value="customValue",
155-
),
156-
Tag(
157-
key="customKey",
158-
value="customValue",
159-
),
160-
],
161-
),
162-
Address(
163-
address_lines=["Klara-Franke Str 20"],
164-
postcode="10557",
165-
city="Berlin",
166-
state="Berlin",
167-
country="Germany",
168-
tags=[
169-
Tag(
170-
key="customKey",
171-
value="customValue",
172-
),
173-
Tag(
174-
key="customKey",
175-
value="customValue",
176-
),
177-
],
178-
),
179-
],
180-
),
181-
transaction_limits=TransactionLimits(
182-
maximum_daily_transaction_limit=Amount(
183-
amount_value=800.0,
184-
amount_currency=CurrencyCode.GBP,
185-
),
186-
maximum_weekly_transaction_limit=Amount(
187-
amount_value=800.0,
188-
amount_currency=CurrencyCode.GBP,
189-
),
190-
maximum_monthly_transaction_limit=Amount(
191-
amount_value=800.0,
192-
amount_currency=CurrencyCode.GBP,
193-
),
194-
maximum_quarterly_transaction_limit=Amount(
195-
amount_value=800.0,
196-
amount_currency=CurrencyCode.GBP,
197-
),
198-
maximum_transaction_limit=Amount(
199-
amount_value=800.0,
200-
amount_currency=CurrencyCode.GBP,
201-
),
202-
maximum_yearly_transaction_limit=Amount(
203-
amount_value=800.0,
204-
amount_currency=CurrencyCode.GBP,
205-
),
206-
),
207-
tags=[
208-
Tag(
209-
key="customKey",
210-
value="customValue",
211-
),
212-
Tag(
213-
key="customKey",
214-
value="customValue",
215-
),
216-
],
217-
),
21870
),
21971
)
22072
"""
@@ -310,20 +162,7 @@ async def create(
310162
311163
- request: ConsumerUserEvent.
312164
---
313-
from flagright import (
314-
Address,
315-
Amount,
316-
ConsumerName,
317-
ConsumerUserEvent,
318-
ContactDetails,
319-
CountryCode,
320-
CurrencyCode,
321-
LegalDocument,
322-
Tag,
323-
TransactionLimits,
324-
UserDetails,
325-
UserOptional,
326-
)
165+
from flagright import ConsumerUserEvent
327166
from flagright.client import AsyncFlagright
328167
329168
client = AsyncFlagright(
@@ -333,141 +172,6 @@ async def create(
333172
request=ConsumerUserEvent(
334173
timestamp=1.1,
335174
user_id="userId",
336-
updated_consumer_user_attributes=UserOptional(
337-
user_details=UserDetails(
338-
name=ConsumerName(
339-
first_name="Baran",
340-
middle_name="Realblood",
341-
last_name="Ozkan",
342-
),
343-
date_of_birth="1991-01-01",
344-
country_of_residence=CountryCode.US,
345-
country_of_nationality=CountryCode.DE,
346-
),
347-
legal_documents=[
348-
LegalDocument(
349-
document_type="passport",
350-
document_number="Z9431P",
351-
document_issued_date=1639939034000.0,
352-
document_expiration_date=1839939034000.0,
353-
document_issued_country=CountryCode.DE,
354-
tags=[
355-
Tag(
356-
key="customerType",
357-
value="wallet",
358-
),
359-
Tag(
360-
key="customKey",
361-
value="customValue",
362-
),
363-
],
364-
name_on_document=ConsumerName(
365-
first_name="Baran",
366-
middle_name="Realblood",
367-
last_name="Ozkan",
368-
),
369-
),
370-
LegalDocument(
371-
document_type="passport",
372-
document_number="Z9431P",
373-
document_issued_date=1639939034000.0,
374-
document_expiration_date=1839939034000.0,
375-
document_issued_country=CountryCode.DE,
376-
tags=[
377-
Tag(
378-
key="customerType",
379-
value="wallet",
380-
),
381-
Tag(
382-
key="customKey",
383-
value="customValue",
384-
),
385-
],
386-
name_on_document=ConsumerName(
387-
first_name="Baran",
388-
middle_name="Realblood",
389-
last_name="Ozkan",
390-
),
391-
),
392-
],
393-
contact_details=ContactDetails(
394-
email_ids=["baran@flagright.com", "emailIds"],
395-
contact_numbers=["+37112345432", "contactNumbers"],
396-
websites=["flagright.com", "websites"],
397-
addresses=[
398-
Address(
399-
address_lines=["Klara-Franke Str 20"],
400-
postcode="10557",
401-
city="Berlin",
402-
state="Berlin",
403-
country="Germany",
404-
tags=[
405-
Tag(
406-
key="customKey",
407-
value="customValue",
408-
),
409-
Tag(
410-
key="customKey",
411-
value="customValue",
412-
),
413-
],
414-
),
415-
Address(
416-
address_lines=["Klara-Franke Str 20"],
417-
postcode="10557",
418-
city="Berlin",
419-
state="Berlin",
420-
country="Germany",
421-
tags=[
422-
Tag(
423-
key="customKey",
424-
value="customValue",
425-
),
426-
Tag(
427-
key="customKey",
428-
value="customValue",
429-
),
430-
],
431-
),
432-
],
433-
),
434-
transaction_limits=TransactionLimits(
435-
maximum_daily_transaction_limit=Amount(
436-
amount_value=800.0,
437-
amount_currency=CurrencyCode.GBP,
438-
),
439-
maximum_weekly_transaction_limit=Amount(
440-
amount_value=800.0,
441-
amount_currency=CurrencyCode.GBP,
442-
),
443-
maximum_monthly_transaction_limit=Amount(
444-
amount_value=800.0,
445-
amount_currency=CurrencyCode.GBP,
446-
),
447-
maximum_quarterly_transaction_limit=Amount(
448-
amount_value=800.0,
449-
amount_currency=CurrencyCode.GBP,
450-
),
451-
maximum_transaction_limit=Amount(
452-
amount_value=800.0,
453-
amount_currency=CurrencyCode.GBP,
454-
),
455-
maximum_yearly_transaction_limit=Amount(
456-
amount_value=800.0,
457-
amount_currency=CurrencyCode.GBP,
458-
),
459-
),
460-
tags=[
461-
Tag(
462-
key="customKey",
463-
value="customValue",
464-
),
465-
Tag(
466-
key="customKey",
467-
value="customValue",
468-
),
469-
],
470-
),
471175
),
472176
)
473177
"""

0 commit comments

Comments
 (0)