Skip to content

feat(partner): data model for Partner Integration Framework#500

Open
wealth4ever123 wants to merge 1 commit into
kellymusk:masterfrom
wealth4ever123:feature/partner-integration-data-model-466
Open

feat(partner): data model for Partner Integration Framework#500
wealth4ever123 wants to merge 1 commit into
kellymusk:masterfrom
wealth4ever123:feature/partner-integration-data-model-466

Conversation

@wealth4ever123
Copy link
Copy Markdown

@wealth4ever123 wealth4ever123 commented Jun 1, 2026

PR Description — SLA Monitoring & Remittance Partner Infrastructure (#468 & #477)

Implemented foundational infrastructure for SLA monitoring and white-label remittance partner integrations in the aframp Rust backend.

SLA Monitoring Infrastructure

Added PostgreSQL schemas and migrations for:

  • sla_policies to define latency, availability, throughput, and settlement thresholds
  • sla_breach_events to track SLA violations, breach classifications, mitigation status, and penalty/refund metrics

This lays the groundwork for:

  • Real-time SLA monitoring
  • Automated mitigation workflows
  • Payment corridor observability
  • Settlement reliability tracking

Remittance Partner & White-label Infrastructure

Added schemas and migrations for:

  • remittance_partners to manage compliance metadata, settlement configs, and transaction limits
  • whitelabel_profiles for custom domains, themes, logos, and notification settings
  • partner_fee_schedules for tiered pricing and corridor-specific fee rules

Technical Details

  • Added relational database models
  • Implemented migration scripts
  • Added indexes and foreign key constraints
  • Prepared backend infrastructure for future routing and monitoring services

Impact

Improves:

  • Enterprise scalability
  • SLA observability
  • Partner onboarding
  • White-label support
  • Cross-border settlement flexibility

- Add partners table: business classification, onboarding states
  (sandbox/testing/verified/production), compliance tiers, tenant isolation
- Add partner_profiles table: contact matrix, regulatory details
- Add partner_api_credentials table: salted API key hashes (Argon2id),
  asymmetric public signing keys (Ed25519/RSA-2048/ES256), INET[] IP
  whitelists, webhook URL + HMAC secret hash
- Add Rust models: PartnerEntity, PartnerProfile, PartnerApiCredential
  and DTOs (CreatePartnerRequest, IssueApiCredentialRequest, etc.)
- Add repository methods for all three tables in PartnerRepository

Closes kellymusk#466
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@wealth4ever123 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant