-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3c0138c
commit e0eb3b7
Showing
9 changed files
with
34 additions
and
2,398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,164 changes: 2 additions & 1,162 deletions
1,164
src/flagright/resources/business_user_events/client.py
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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( | ||
|
@@ -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", | ||
), | ||
], | ||
), | ||
), | ||
) | ||
""" | ||
|
@@ -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( | ||
|
@@ -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", | ||
), | ||
], | ||
), | ||
), | ||
) | ||
""" | ||
|
Oops, something went wrong.