import wretch from 'wretch';
import { BenefitsAppService } from '../services/benefits-app.service';
export class BackendApiClient {
  static setParameters(apiBaseUrl, jwt) {
    this._apiBaseUrl = apiBaseUrl;
    this._jwt = jwt;
  }
  static get instance() {
    return wretch(this._apiBaseUrl).headers({
      Authorization: `Bearer ${this._jwt}`,
      'X-PROFILE-ID': BenefitsAppService.profileId,
      'X-ACCOUNT-ID': BenefitsAppService.accountIdOrDefault,
      'X-PARTNER-ID': BenefitsAppService.partnerIdOrDefault
    });
  }
}
