Skip to content

Feat/sep 12 kyc#58

Merged
Ceejaytech25 merged 5 commits intoceejaylaboratory:mainfrom
Vivian-04:feat/sep-12-kyc
Mar 30, 2026
Merged

Feat/sep 12 kyc#58
Ceejaytech25 merged 5 commits intoceejaylaboratory:mainfrom
Vivian-04:feat/sep-12-kyc

Conversation

@Vivian-04
Copy link
Copy Markdown
Contributor

PR #10 Backend: SEP-12 (KYC) Basic Data Model & Service

Description

This PR implements the foundational data model and backend service for managing Stellar Ecosystem Proposal 12 (KYC), as requested in the issue

The implementation enables robust customer identity management and status tracking (PENDING, ACCEPTED, REJECTED) while keeping the logic independent of the core transaction engine to avoid state conflicts.

Key Features

  • Database Schema:
    • Introduced the KycCustomer model linked to the existing User.
    • Added a KYCStatus enum for standardized lifecycle management.
  • KYC Service:
    • getKycStatus: Retrieves a user's current identity verification state.
    • submitKycData: Handles new identity submissions and updates (upsert logic).
    • adminUpdateStatus: Administrative utility for manual approval or rejection of KYC applications.
  • Quality Assurance:
    • Full test suite in kyc.service.test.ts covering success paths, error handling, and data integrity.
    • Resolved Prisma casing issues to ensure consistent camelCase access throughout the TypeScript codebase.

Implementation Details

  • Backend Path: src/services/kyc.service.ts
  • Model: KycCustomer (mapped to kycCustomer in Prisma Client)

Verification

I have confirmed the implementation by running the full backend test suite and the linter. All tests passed, and the Prisma client was successfully regenerated to support the new model.

Closes #10

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 28, 2026

@Vivian-04 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Ceejaytech25
Copy link
Copy Markdown
Contributor

@Vivian-04 , pls resolve conflict

@Vivian-04
Copy link
Copy Markdown
Contributor Author

Kindly confirm..Thankss

@Ceejaytech25 Ceejaytech25 merged commit 02d3b22 into ceejaylaboratory:main Mar 30, 2026
1 check 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.

Backend: SEP-12 (KYC) Basic Data Model & Service

2 participants