Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Multi-Tenant] Tenanted Outgoing Payments #3119

Open
4 tasks
Tracked by #2893
njlie opened this issue Nov 21, 2024 · 0 comments
Open
4 tasks
Tracked by #2893

[Multi-Tenant] Tenanted Outgoing Payments #3119

njlie opened this issue Nov 21, 2024 · 0 comments
Labels
pkg: backend Changes in the backend package.

Comments

@njlie
Copy link
Contributor

njlie commented Nov 21, 2024

Outgoing Payments should become tenanted as per the Multi-Tenancy design, and will be logically separated in the backend database by a tenantId row that serves as a foreign key on the tenants table.

  • Add tenantId row to outgoingPayments table that is required and maps to an id on the tenants table.
  • Add tenantId to database queries on outgoing payments.
  • Acquire tenantId from request headers on routes involving outgoing payments and pass them into outgoing payment service logic.
  • Include tenantId in path of outgoing payment URL. e.g. http://exampe-rafiki/:tenantId/outgoing-payments/:id

Prerequisites

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: backend Changes in the backend package.
Projects
Status: Backlog
Development

No branches or pull requests

1 participant