Closed
Description
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 tooutgoingPayments
table that is required and maps to an id on thetenants
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
- See feat(backend): wallet address response with tenant id #2986 for existing implementation on old feature branch.
- Note: the outgoing payment should be created only for the same tenant/wallet address where the quote was created, i.e. since an outgoing payment depends on a quote (which in turn depends on a wallet address), we shouldn't be able to have a situation where we have an outgoing payment on tenant B and a quote on tenant A.
Prerequisites
Metadata
Metadata
Assignees
Type
Projects
Status
Done