-
Notifications
You must be signed in to change notification settings - Fork 0
feat: account and operational event types #420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,6 +22,7 @@ | |
| CardType, | ||
| EventType, | ||
| KYCFileType, | ||
| OperationalEventAction, | ||
| SessionType, | ||
| TermsOfService, | ||
| TransferNetwork, | ||
|
|
@@ -153,6 +154,11 @@ class AccountQuery(QueryParams): | |
| account_number: Optional[str] = None | ||
|
|
||
|
|
||
| class OperationalEventQuery(QueryParams): | ||
| actor_id: Optional[str] = None | ||
| action: Optional[OperationalEventAction] = None | ||
|
Comment on lines
+157
to
+159
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Add The new public query model has no examples for 🤖 Prompt for AI Agents |
||
|
|
||
|
|
||
| class BalanceEntryQuery(QueryParams): | ||
| funding_instrument_uri: Optional[str] = None | ||
| wallet_id: str = 'default' | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| __version__ = '2.1.40' | ||
| __version__ = '2.1.41.dev0' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: #!/bin/bash
set -euo pipefail
# Expect the build to publish stable 2.1.41 and downstream pins to use that value.
rg -n --hidden -g '!*.pyc' \
-e "__version__" \
-e "2\.1\.41" \
-e "python -m build" \
-e "twine upload" \
-e "cuenca_validations" .Repository: cuenca-mx/cuenca-validations Length of output: 1840 🏁 Script executed: #!/bin/bash
set -euo pipefail
printf '%s\n' '--- repository conventions ---'
head -5 /tmp/coderabbit-repo-knowledge/cuenca-mx-cuenca-validations-1cc7b77f/*/*.md 2>/dev/null || true
printf '%s\n' '--- package metadata ---'
cat -n setup.py
cat -n cuenca_validations/version.py
cat -n cuenca_validations/__init__.py
printf '%s\n' '--- release targets ---'
sed -n '1,90p' Makefile
printf '%s\n' '--- workflow and release files ---'
git ls-files | grep -E '(^|/)(\.github/workflows|release|publish|pyproject\.toml|setup\.cfg|tox\.ini|Makefile)' || trueRepository: cuenca-mx/cuenca-validations Length of output: 4038 🏁 Script executed: #!/bin/bash
set -euo pipefail
cat -n .github/workflows/release.ymlRepository: cuenca-mx/cuenca-validations Length of output: 986 Publish the stable The release workflow builds directly from 🤖 Prompt for AI Agents |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Resolve the RUF022 warning in
__all__.Ruff reports the list as unsorted. The account block starts with
AccountUseTypebeforeAccountQuery,AccountRequest, andAccountUpdateRequest. Apply Ruff’s autofix or sort the full__all__list before merge.🧰 Tools
🪛 Ruff (0.16.2)
[warning] 1-132:
__all__is not sortedApply an isort-style sorting to
__all__(RUF022)
🤖 Prompt for AI Agents
Source: Linters/SAST tools