- 
                Notifications
    
You must be signed in to change notification settings  - Fork 102
 
Closed
Labels
pkg: backendChanges in the backend package.Changes in the backend package.
Milestone
Description
Incoming 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 
tenantIdrow toincomingPaymentstable that is required and maps to an id on thetenantstable. -  Add 
tenantIdto database queries on incoming payments -  Acquire 
tenantIdfrom request headers on routes involving incoming payments and pass them into incoming payment service logic. -  Include 
tenantIdin path of incoming payment URL. e.g.http://exampe-rafiki/:tenantId/incoming-payments/:id- See feat(backend): wallet address response with tenant id #2986 for existing implementation on old feature branch.
 
 -  Additionally, we should be able to support fetching an incoming payment with and without tenant id:
- for GraphQL Admin API requests to get (and update) an incoming payment, 
tenantIdwill be provided in those requests, and it should be used when getting (or updating) the incoming payments. - However, because we are able to make payments across tenanted resources (ie. an outgoing payment on tenant A can pay into an incoming payment on tenant B), we should also have the functionality to to look up the incoming payment just by the Id, tenant-agnostic
 
 - for GraphQL Admin API requests to get (and update) an incoming payment, 
 
Prerequisites
Metadata
Metadata
Assignees
Labels
pkg: backendChanges in the backend package.Changes in the backend package.
Type
Projects
Status
Done