Skip to content

Release: develop -> main#3590

Merged
davidleomay merged 6 commits intomainfrom
develop
Apr 22, 2026
Merged

Release: develop -> main#3590
davidleomay merged 6 commits intomainfrom
develop

Conversation

@github-actions
Copy link
Copy Markdown

Automatic Release PR

This PR was automatically created after changes were pushed to develop.

Commits: 1 new commit(s)

Checklist

  • Review all changes
  • Verify CI passes
  • Approve and merge when ready for production

Yannick1712 and others added 5 commits April 20, 2026 17:13
* [NOTASK] SupportIssue type, reason update

* [NOTASK] autoExpiry supportIssue

* [NOTASK] Refactoring

* [NOTASK] Refactoring 2
…3586)

- Allow compliance role to update bankData, buyCrypto, buyFiat amlCheck
- Add buyCryptoId/buyFiatId to TransactionSupportInfo so the UI can
  address the correct entity when editing AML decisions
- Read amlCheck from buyCrypto/buyFiat in support response to reflect
  the actual decision state
- Expand transaction relations used for history display
…counts (#3585)

* feat: require phone verification for users referred by non-trading accounts

Add AML check that requires phone verification when the referrer
has never completed a purchase (buyVolume === 0). Trusted referrers
are exempt from this check.

* fix: include sell and crypto volume in referrer trade history check

A referrer with any trade history (buy, sell, or crypto-to-crypto)
should not trigger the phone verification requirement.

* feat: require trade history to send or confirm invitations

Add hasTradeHistory getter on UserData that checks buyVolume,
sellVolume and cryptoVolume. Block all recommendation paths
(create, confirm, code redemption, auto-confirm) when the
recommender has no trade history.

* fix: check recommender instead of refUser for trade history AML check

The trade history check incorrectly validated the refUser (referral code
owner) instead of the recommender (invitation sender). Load the actual
recommender via RecommendationService and pass it through the full AML
pipeline. Rename enum to RECOMMENDER_NO_TRADE_HISTORY for clarity.

* refactor: clean up recommender parameter ordering and error messages

Place recommender parameter directly after refUser in getAmlResult
and entity methods to avoid undefined placeholders. Unify error
messages for trade history checks in recommendation service.

* style: fix prettier formatting

* fix: find confirmed recommendation instead of first match
Apply the same phone verification gate when the refUser (referral
code owner) has no trade history. Rename enum to REFERRAL_NO_TRADE_HISTORY
to reflect both referral paths (recommendation and ref code).
* Add legal entity types: PublicInstitution, OHG, KG

* Add legal entity types: GmbHCoKG, Cooperative, CollectiveCompany, ListedAG
@davidleomay davidleomay merged commit eea7511 into main Apr 22, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants