UNPKG

fedapay

Version:

NodeJs library for FedaPay Api

63 lines (62 loc) 2.16 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Balance = void 0; var Resource_1 = require("./Resource"); /** * Class Balance * * @property int $id * @property int $currency_id * @property int $account_id * @property int $amount * @property string $mode * @property string $deleted_at * @property string $created_at * @property string $updated_at */ var Balance = /** @class */ (function (_super) { __extends(Balance, _super); function Balance() { return _super !== null && _super.apply(this, arguments) || this; } /** * @param {string|number} id * @param {Object|null} params * @param {Object|null} headers * @returns {Promise<Customer>} */ Balance.retrieve = function (id, params, headers) { if (params === void 0) { params = {}; } if (headers === void 0) { headers = {}; } return this._retrieve(id, params, headers); }; /** * @param {Object|null} params * @param {Object|null} headers * * @returns {Promise<FedaPayObject>} */ Balance.all = function (params, headers) { if (params === void 0) { params = {}; } if (headers === void 0) { headers = {}; } return this._all(params, headers); }; Balance.ressourceName = 'balance'; return Balance; }(Resource_1.Resource)); exports.Balance = Balance;