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.
32 lines (31 loc) • 788 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class TransactionAnalysis {
constructor({ description, average, quantity, amount }) {
this._description = description;
this._average = average;
this._quantity = quantity;
this._amount = amount;
}
get description() {
return this._description;
}
get average() {
return this._average;
}
get quantity() {
return this._quantity;
}
get amount() {
return this._amount;
}
toObject() {
return {
description: this._description,
average: this._average,
quantity: this._quantity,
amount: this._amount
};
}
}
exports.default = TransactionAnalysis;