@infosel-sdk/funds
Version:
SDK de Fondos para la plataforma de servicios financieros Infosel
32 lines • 1.16 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const core_1 = require("@infosel-sdk/core");
const funds_datasource_impl_1 = tslib_1.__importDefault(require("../datasources/funds_datasource_impl"));
const funds_repository_impl_1 = tslib_1.__importDefault(require("../repositories/funds_repository_impl"));
class InfoselFundsModule {
constructor(url, sdkManager) {
this.url = url;
this.sdkManager = sdkManager;
}
get httpClient() {
if (!this._httpClient) {
this._httpClient = core_1.InfoselHttpClient.newInstance(this.url, this.sdkManager);
}
return this._httpClient;
}
get datasource() {
if (!this._datasource) {
this._datasource = new funds_datasource_impl_1.default(this.httpClient);
}
return this._datasource;
}
get repository() {
if (!this._repository) {
this._repository = new funds_repository_impl_1.default(this.datasource);
}
return this._repository;
}
}
exports.default = InfoselFundsModule;
//# sourceMappingURL=funds_module.js.map