open-banking-pfm-sdk
Version:
The Open Banking PFM SDK uses Client classes and with **Promises** to get responses from the Open Banking PFM API in an easier way and structured as data models.
20 lines (19 loc) • 612 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const CategoryAnalysis_1 = __importDefault(require("./CategoryAnalysis"));
class Analysis {
constructor({ date, categories }) {
this._date = date;
this._categories = categories.map((cat) => new CategoryAnalysis_1.default(cat));
}
get date() {
return this._date;
}
get categories() {
return this._categories;
}
}
exports.default = Analysis;