UNPKG

infusionsoft-nodejs

Version:

A NodeJS SDK automatically generated from Infusionsoft API Swagger definitions.

103 lines (69 loc) 2.39 kB
/** * Infusionsoft REST API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: V1.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. * */ import ApiClient from '../ApiClient'; import Transaction from './Transaction'; /** * The TransactionList model module. * @module model/TransactionList * @version V1.0 */ export default class TransactionList { /** * Constructs a new <code>TransactionList</code>. * @alias module:model/TransactionList * @class */ constructor() { } /** * Constructs a <code>TransactionList</code> from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:model/TransactionList} obj Optional instance to populate. * @return {module:model/TransactionList} The populated <code>TransactionList</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new TransactionList(); if (data.hasOwnProperty('count')) { obj['count'] = ApiClient.convertToType(data['count'], 'Number'); } if (data.hasOwnProperty('next')) { obj['next'] = ApiClient.convertToType(data['next'], 'String'); } if (data.hasOwnProperty('previous')) { obj['previous'] = ApiClient.convertToType(data['previous'], 'String'); } if (data.hasOwnProperty('transactions')) { obj['transactions'] = ApiClient.convertToType(data['transactions'], [Transaction]); } } return obj; } /** * @member {Number} count */ count = undefined; /** * @member {String} next */ next = undefined; /** * @member {String} previous */ previous = undefined; /** * @member {Array.<module:model/Transaction>} transactions */ transactions = undefined; }