Merged
Conversation
|
@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! 🚀 |
Contributor
|
@Vivian-04 , pls resolve conflict |
Contributor
Author
|
Kindly confirm..Thankss |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
KycCustomermodel linked to the existingUser.KYCStatusenum for standardized lifecycle management.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.kyc.service.test.tscovering success paths, error handling, and data integrity.Implementation Details
src/services/kyc.service.tsKycCustomer(mapped tokycCustomerin 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