Skip to content

[Multi-Tenant] Tenanted Rates endpoints #3120

@njlie

Description

@njlie

As quotes and outgoing payments are now tenanted, tenants should now be responsible for setting their own rates and hosting them at their own endpoint.

In the backend business logic, the existing rates service gets rates from an environment variable for a URL. The Rates service should instead be updated to require a tenantId when acquiring rates, so that it pulls from the tenant's ratesEndpoint when calculating rates.

  • Update the RatesService.rates() method to retrieve rates based on the url from a provided tenant id.
  • Update the RatesService to cache rates on a per-tenant basis.

Prerequisites

Metadata

Metadata

Assignees

Labels

pkg: backendChanges in the backend package.

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions