📋 Description
verification.rs exposes is_business_verified, get_verification, and bucket listers like get_rejected_businesses. A client wanting "is this business verified, and if rejected, why?" must call multiple functions and unpack the full BusinessVerification. This issue adds a compact get_business_kyc_status(business) -> (KycState, Option<String>).
Why this matters: the most common KYC query is "status + reason". A single compact read avoids deserializing the whole verification record and gives the UI a stable, minimal contract.
🎯 Requirements & Context
Context & constraints
- SDK
25.1.1. Pure read; no auth.
🛠️ Suggested Execution
git checkout -b feature/business-kyc-status-query
cargo test -p quicklendx-contracts business_kyc_status -- --nocapture
cargo clippy -p quicklendx-contracts --all-targets -- -D warnings
- Edge cases: no record (None); verified (reason None); rejected (reason Some); pending.
Example commit message
feat(kyc): add compact get_business_kyc_status (state + rejection reason)
Single read returning verification state and reason instead of unpacking the
full record.
✅ Acceptance Criteria & Guidelines
| Requirement |
Target |
| Compact status+reason read |
Required |
| None for missing record |
Required |
| Test coverage |
≥ 95% |
cargo clippy clean |
Required |
| Timeframe |
96 hours from assignment |
💬 Community & Support
Join Discord: https://discord.gg/VpngvTjWa — comment to claim. 🚀
📋 Description
verification.rsexposesis_business_verified,get_verification, and bucket listers likeget_rejected_businesses. A client wanting "is this business verified, and if rejected, why?" must call multiple functions and unpack the fullBusinessVerification. This issue adds a compactget_business_kyc_status(business) -> (KycState, Option<String>).🎯 Requirements & Context
get_business_kyc_status(env, business) -> Option<(KycState, Option<String>)>deriving fromget_verification.Nonefor businesses with no verification record.Someonly when the state is rejected; otherwiseNone.///docs.Context & constraints
25.1.1. Pure read; no auth.🛠️ Suggested Execution
git checkout -b feature/business-kyc-status-query cargo test -p quicklendx-contracts business_kyc_status -- --nocapture cargo clippy -p quicklendx-contracts --all-targets -- -D warningsExample commit message
✅ Acceptance Criteria & Guidelines
cargo clippyclean💬 Community & Support
Join Discord: https://discord.gg/VpngvTjWa — comment to claim. 🚀