Skip to content

Commit 570c4f3

Browse files
committed
Release 1.8.8
1 parent c23595e commit 570c4f3

192 files changed

Lines changed: 3992 additions & 2483 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- name: Checkout repo
9-
uses: actions/checkout@v3
9+
uses: actions/checkout@v4
1010
- name: Set up python
1111
uses: actions/setup-python@v4
1212
with:
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout repo
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
- name: Set up python
2727
uses: actions/setup-python@v4
2828
with:
@@ -42,7 +42,7 @@ jobs:
4242
runs-on: ubuntu-latest
4343
steps:
4444
- name: Checkout repo
45-
uses: actions/checkout@v3
45+
uses: actions/checkout@v4
4646
- name: Set up python
4747
uses: actions/setup-python@v4
4848
with:

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
dist/
21
.mypy_cache/
2+
.ruff_cache/
33
__pycache__/
4+
dist/
45
poetry.toml
5-
.ruff_cache/

poetry.lock

Lines changed: 58 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 25 additions & 5 deletions
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.7"
6+
version = "1.8.8"
77
description = ""
88
readme = "README.md"
99
authors = []
@@ -37,16 +37,16 @@ Repository = 'https://github.com/flagright/flagright-python'
3737
python = "^3.8"
3838
httpx = ">=0.21.2"
3939
pydantic = ">= 1.9.2"
40-
pydantic-core = "^2.18.2"
40+
pydantic-core = ">=2.18.2"
4141
typing_extensions = ">= 4.0.0"
4242

43-
[tool.poetry.dev-dependencies]
44-
mypy = "1.0.1"
43+
[tool.poetry.group.dev.dependencies]
44+
mypy = "==1.13.0"
4545
pytest = "^7.4.0"
4646
pytest-asyncio = "^0.23.5"
4747
python-dateutil = "^2.9.0"
4848
types-python-dateutil = "^2.9.0.20240316"
49-
ruff = "^0.5.6"
49+
ruff = "==0.11.5"
5050

5151
[tool.pytest.ini_options]
5252
testpaths = [ "tests" ]
@@ -58,6 +58,26 @@ plugins = ["pydantic.mypy"]
5858
[tool.ruff]
5959
line-length = 120
6060

61+
[tool.ruff.lint]
62+
select = [
63+
"E", # pycodestyle errors
64+
"F", # pyflakes
65+
"I", # isort
66+
]
67+
ignore = [
68+
"E402", # Module level import not at top of file
69+
"E501", # Line too long
70+
"E711", # Comparison to `None` should be `cond is not None`
71+
"E712", # Avoid equality comparisons to `True`; use `if ...:` checks
72+
"E721", # Use `is` and `is not` for type comparisons, or `isinstance()` for insinstance checks
73+
"E722", # Do not use bare `except`
74+
"E731", # Do not assign a `lambda` expression, use a `def`
75+
"F821", # Undefined name
76+
"F841" # Local variable ... is assigned to but never used
77+
]
78+
79+
[tool.ruff.lint.isort]
80+
section-order = ["future", "standard-library", "third-party", "first-party"]
6181

6282
[build-system]
6383
requires = ["poetry-core"]

reference.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ client = Flagright(
6060
api_key="YOUR_API_KEY",
6161
)
6262
client.transactions.verify(
63+
validate_origin_user_id="true",
64+
validate_destination_user_id="true",
6365
type="DEPOSIT",
6466
transaction_id="7b80a539eea6e78acbd6d458e5971482",
6567
timestamp=1641654664000.0,
@@ -411,6 +413,8 @@ client = Flagright(
411413
api_key="YOUR_API_KEY",
412414
)
413415
client.batch.verify_transaction(
416+
validate_origin_user_id="true",
417+
validate_destination_user_id="true",
414418
data=[
415419
Transaction(
416420
type="type",
@@ -498,6 +502,8 @@ client = Flagright(
498502
)
499503
client.batch.get(
500504
batch_id="batchId",
505+
page_size=1.1,
506+
page=1.1,
501507
)
502508

503509
```
@@ -639,6 +645,8 @@ client = Flagright(
639645
api_key="YOUR_API_KEY",
640646
)
641647
client.batch.create_consumer_users(
648+
lock_cra_risk_level="true",
649+
lock_kyc_risk_level="true",
642650
data=[
643651
User(
644652
user_id="userId",
@@ -724,6 +732,8 @@ client = Flagright(
724732
api_key="YOUR_API_KEY",
725733
)
726734
client.batch.create_business_users(
735+
lock_cra_risk_level="true",
736+
lock_kyc_risk_level="true",
727737
data=[
728738
Business(
729739
user_id="userId",
@@ -816,6 +826,8 @@ client = Flagright(
816826
api_key="YOUR_API_KEY",
817827
)
818828
client.batch.create_consumer_user_events(
829+
lock_cra_risk_level="true",
830+
lock_kyc_risk_level="true",
819831
data=[
820832
ConsumerUserEvent(
821833
timestamp=1.1,
@@ -901,6 +913,8 @@ client = Flagright(
901913
api_key="YOUR_API_KEY",
902914
)
903915
client.batch.create_business_user_events(
916+
lock_cra_risk_level="true",
917+
lock_kyc_risk_level="true",
904918
data=[
905919
BusinessUserEvent(
906920
timestamp=1.1,
@@ -1260,6 +1274,9 @@ client = Flagright(
12601274
api_key="YOUR_API_KEY",
12611275
)
12621276
client.consumer_users.create(
1277+
lock_cra_risk_level="true",
1278+
lock_kyc_risk_level="true",
1279+
validate_user_id="true",
12631280
user_id="96647cfd9e8fe66ee0f3362e011e34e8",
12641281
created_timestamp=1641654664000.0,
12651282
user_details=UserDetails(
@@ -1726,6 +1743,9 @@ client = Flagright(
17261743
api_key="YOUR_API_KEY",
17271744
)
17281745
client.business_users.create(
1746+
lock_cra_risk_level="true",
1747+
lock_kyc_risk_level="true",
1748+
validate_user_id="true",
17291749
user_id="userId",
17301750
created_timestamp=1.1,
17311751
legal_entity=LegalEntity(
@@ -2081,6 +2101,9 @@ client = Flagright(
20812101
api_key="YOUR_API_KEY",
20822102
)
20832103
client.consumer_user_events.create(
2104+
allow_user_type_conversion="true",
2105+
lock_kyc_risk_level="true",
2106+
lock_cra_risk_level="true",
20842107
timestamp=1.1,
20852108
user_id="userId",
20862109
)
@@ -2314,6 +2337,9 @@ client = Flagright(
23142337
api_key="YOUR_API_KEY",
23152338
)
23162339
client.business_user_events.create(
2340+
allow_user_type_conversion="true",
2341+
lock_kyc_risk_level="true",
2342+
lock_cra_risk_level="true",
23172343
timestamp=1.1,
23182344
user_id="userId",
23192345
)

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
httpx>=0.21.2
22
pydantic>= 1.9.2
3-
pydantic-core==^2.18.2
3+
pydantic-core>=2.18.2
44
typing_extensions>= 4.0.0

0 commit comments

Comments
 (0)