Skip to content

fix(support): compliance reviewer feedback (api side)#3689

Draft
bernd2022 wants to merge 1 commit into
developfrom
fix/compliance-support-feedback
Draft

fix(support): compliance reviewer feedback (api side)#3689
bernd2022 wants to merge 1 commit into
developfrom
fix/compliance-support-feedback

Conversation

@bernd2022
Copy link
Copy Markdown
Collaborator

Summary

API-side changes that go with the services PR DFXswiss/services#1087.

Changes

  • BankData support endpoint: each BankData entry is now returned with alternatives — other approved BankData rows that share the same IBAN (different id). Compliance uses this in the BankData review to spot user collisions. Added BankDataAlternative DTO and BankDataService.getApprovedAlternatives() which fetches all alternatives in a single batched query (In(ibans) / Not(In(ids))).
  • Pending Transactions endpoint: new GET /support/pending-transactions that returns BuyCrypto + BuyFiat with amlReason=ManualCheck and amlCheck=Pending. Used by the new Pending Transactions section on the compliance dashboard. Added PendingTransactionInfo DTO.

Test plan

  • GET /v1/support/:id returns each BankData with optional alternatives array; for entries with a same-IBAN approved counterpart at a different user, the array contains the other entry (id, userDataId, name, verifiedName, accountType, type).
  • GET /v1/support/pending-transactions returns the expected list (matches what the AML Pending tab shows per user).
  • npm test, npm run lint, npx tsc --noEmit remain green.

- BankData: expose approved alternatives with the same IBAN
  (different bankData id) on the support endpoint so the compliance
  BankData review can surface collisions across users. Added
  BankDataAlternative DTO and BankDataService.getApprovedAlternatives
  (single batched query).
- Pending Transactions: new GET /support/pending-transactions endpoint
  returning BuyCrypto + BuyFiat with amlReason=ManualCheck and
  amlCheck=Pending, used by the new Pending Transactions section on
  the compliance dashboard. Added PendingTransactionInfo DTO.
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.

1 participant